class Licensee::Matchers::Copyright
Constants
- COPYRIGHT_SYMBOLS
- MAIN_LINE_REGEX
- OPTIONAL_LINE_REGEX
- REGEX
Attributes
file[R]
Public Instance Methods
confidence()
click to toggle source
# File lib/licensee/matchers/copyright.rb, line 19 def confidence 100 end
match()
click to toggle source
# File lib/licensee/matchers/copyright.rb, line 12 def match # NOTE: must use content, and not content_normalized here Licensee::License.find('no-license') if /#{REGEX}+\z/io.match?(file.content.strip) rescue Encoding::CompatibilityError nil end