From 7e782df044a4f5d028ebc46123c1c8c1ab7520e4 Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Sun, 18 Aug 2019 13:40:26 -0700 Subject: [PATCH] Autocorrect Apache v2.0 license to Apache-2.0 A ran into this one as well. Seems like that might be common. Signed-off-by: Tim Smith --- lib/rubocop/cop/chef/correctness/invalid_license_string.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/rubocop/cop/chef/correctness/invalid_license_string.rb b/lib/rubocop/cop/chef/correctness/invalid_license_string.rb index c9539333f..bd58351a5 100644 --- a/lib/rubocop/cop/chef/correctness/invalid_license_string.rb +++ b/lib/rubocop/cop/chef/correctness/invalid_license_string.rb @@ -440,6 +440,7 @@ class InvalidLicenseString < Cop COMMON_TYPOS = { "all_rights": 'all rights reserved', "apache 2.0": 'Apache-2.0', + "apache v2.0": 'Apache-2.0', "apache license version 2.0": 'Apache-2.0', "apache2": 'Apache-2.0', "mit": 'MIT',