Sha256: ea0f7fe822a244f0b71af0f1f9c876b666d280eb8a0a4e65b4f769814d54fbb5
Contents?: true
Size: 260 Bytes
Versions: 1
Compression:
Stored size: 260 Bytes
Contents
module Rubocop module Cop class LineLengthCop < Cop def inspect(file) File.readlines(file).each_with_index do |line, index| add_offence(file, index, line, "Line too long") if line.size > 80 end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rubocop-0.0.0 | lib/rubocop/cop/line_length_cop.rb |