Sha256: 436762c5496637ce0133ee7f734d895d0fab0e81181bf5c8475cc0e411560178
Contents?: true
Size: 379 Bytes
Versions: 2
Compression:
Stored size: 379 Bytes
Contents
# encoding: utf-8 module Rubocop module Cop class Encoding < Cop ERROR_MESSAGE = 'Missing encoding comment.' MAX_LINE_LENGTH = 80 def inspect(file, source, tokens, sexp) unless source[0] =~ /#.*coding: (UTF|utf)-8/ message = sprintf(ERROR_MESSAGE) add_offence(:convention, 1, message) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rubocop-0.2.1 | lib/rubocop/cop/encoding.rb |
rubocop-0.2.0 | lib/rubocop/cop/encoding.rb |