summaryrefslogtreecommitdiff
path: root/lib/license
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2020-05-13 16:59:55 -0600
committermo khan <mo.khan@gmail.com>2020-05-13 16:59:55 -0600
commite7dd449c0fd531ec792737660fb7c8e5ee9fb92b (patch)
tree09e5ef646941b49ecce77699b18dab2036cee533 /lib/license
parent3f7b51a72e751d65ab25ef2880d3942050066ffe (diff)
Fix linter errors
Diffstat (limited to 'lib/license')
-rw-r--r--lib/license/finder/ext/yarn.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/license/finder/ext/yarn.rb b/lib/license/finder/ext/yarn.rb
index 13057ab..dba096b 100644
--- a/lib/license/finder/ext/yarn.rb
+++ b/lib/license/finder/ext/yarn.rb
@@ -2,7 +2,7 @@
module LicenseFinder
class Yarn
- INCOMPATIBLE_PACKAGE_REGEX = /(?<name>[\w,\-]+)@(?<version>(\d+\.?)+)/
+ INCOMPATIBLE_PACKAGE_REGEX = /(?<name>[\w,\-]+)@(?<version>(\d+\.?)+)/.freeze
PHANTOM_PACKAGE_REGEX = /workspace-aggregator-[a-zA-Z0-9]{8}-[a-zA-Z0-9]{4}-[a-zA-Z0-9]{4}-[a-zA-Z0-9]{4}-[a-zA-Z0-9]{12}/.freeze
def possible_package_paths
@@ -88,7 +88,7 @@ module LicenseFinder
matches = json['data'].to_s.match(INCOMPATIBLE_PACKAGE_REGEX)
return [] unless matches
- [YarnPackage.new( matches['name'], matches['version'], spec_licenses: ['unknown'])]
+ [YarnPackage.new(matches['name'], matches['version'], spec_licenses: ['unknown'])]
end
end
end