lib/rordan_gramsay/lint/cookbook_comments_checker.rb
# Detects if copyright line is included
Detects if copyright line is included
Detects if copyright line is included
def copyright?
          @copyright ||= @lines.any? do |line|
            break true if line =~ /(?:^| )\(c\)(?:$| )/i 
            break true if line.include? '©' #
            break true if line =~ /copyright/i
            break true if line =~ /&copy;/i 
            false
          end
        end
def copyright? @copyright ||= @lines . any? do | line | break true if line =~ / (?:^| ) \( c \) (?:$| ) /i break true if line . include? '©'  break true if line =~ / copyright /i break true if line =~ / &copy; /i false end end
Detects if copyright line is included
Detects if copyright line is included
# copyright symbol as "(c)"  Actual copyright symbol # HTML entity is still indicative of copyright