Permalink
Browse files

Adding in config/roodi_config.yml to ignore assignment in an if condi…

…tion as a 'smell'
  • Loading branch information...
jscruggs committed Jun 28, 2010
1 parent bcb2da8 commit e066a167c3b8243f490f49b917a2a90ca8e7d72d
Showing with 13 additions and 0 deletions.
  1. +1 −0 Rakefile
  2. +12 −0 config/roodi_config.yml
View
@@ -10,6 +10,7 @@ Spec::Rake::SpecTask.new(:spec) do |t|
end
MetricFu::Configuration.run do |config|
+ config.roodi = config.roodi.merge(:roodi_config => 'config/roodi_config.yml')
config.template_class = AwesomeTemplate
end
View
@@ -0,0 +1,12 @@
+CaseMissingElseCheck: { }
+ClassLineCountCheck: { line_count: 300 }
+ClassNameCheck: { pattern: !ruby/regexp /^[A-Z][a-zA-Z0-9]*$/ }
+CyclomaticComplexityBlockCheck: { complexity: 4 }
+CyclomaticComplexityMethodCheck: { complexity: 8 }
+EmptyRescueBodyCheck: { }
+ForLoopCheck: { }
+MethodLineCountCheck: { line_count: 20 }
+MethodNameCheck: { pattern: !ruby/regexp /^[_a-z<>=\[\]|+-\/\*`]+[_a-z0-9_<>=~@\[\]]*[=!\?]?$/ }
+ModuleLineCountCheck: { line_count: 300 }
+ModuleNameCheck: { pattern: !ruby/regexp /^[A-Z][a-zA-Z0-9]*$/ }
+ParameterNumberCheck: { parameter_count: 5 }

0 comments on commit e066a16

Please sign in to comment.