class Licensee::Matchers::Copyright
Constants
- COPYRIGHT_SYMBOLS
rubocop:disable Layout/LineLength
- REGEX
Attributes
file[R]
Public Instance Methods
confidence()
click to toggle source
# File lib/licensee/matchers/copyright.rb, line 22 def confidence 100 end
match()
click to toggle source
rubocop:enable Layout/LineLength
# File lib/licensee/matchers/copyright.rb, line 13 def match # Note: must use content, and not content_normalized here if file.content.strip =~ /#{REGEX}+\z/i Licensee::License.find('no-license') end rescue Encoding::CompatibilityError nil end