Sha256: b8036a88fc922c10db8c83e08d1c06032ff90361251fc5c3ce2339f3fea042d2
Contents?: true
Size: 658 Bytes
Versions: 15
Compression:
Stored size: 658 Bytes
Contents
require 'roodi/checks/line_count_check' module Roodi module Checks # Checks a class to make sure the number of lines it has is under the specified limit. # # A class getting too large is a code smell that indicates it might be taking on too many # responsibilities. It should probably be refactored into multiple smaller classes. class ClassLineCountCheck < LineCountCheck DEFAULT_LINE_COUNT = 300 def initialize super() self.line_count = DEFAULT_LINE_COUNT end def interesting_nodes [:class] end def message_prefix 'Class' end end end end
Version data entries
15 entries across 15 versions & 2 rubygems