lib/pelusa/lint/instance_variables.rb in pelusa-0.0.2 vs lib/pelusa/lint/instance_variables.rb in pelusa-0.1.0
- old
+ new
@@ -21,10 +21,10 @@
def name
"Uses less than #{limit} ivars"
end
def limit
- 3
+ Pelusa.configuration['InstanceVariables'].fetch('limit', 3)
end
def iterate_lines!(klass)
iterator = Iterator.new do |node|
if node.is_a?(Rubinius::AST::InstanceVariableAccess) || node.is_a?(Rubinius::AST::InstanceVariableAssignment)