Skip to content

Commit

Permalink
Added defaults.reek to the gem
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinrutherford committed Mar 31, 2009
1 parent 9cccf31 commit 045ad84
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 13 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
config
doc
pkg
spec/output
53 changes: 53 additions & 0 deletions config/defaults.reek
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
---
LargeClass:
max_methods: 25
exclude:
- Array
- Hash
- Module
- String
enabled: true
LongParameterList:
max_params: 3
exclude: []

enabled: true
FeatureEnvy:
exclude:
- initialize
enabled: true
UncommunicativeName:
accept:
- Inline::C
exclude: []

enabled: true
reject:
- !ruby/regexp /^.[0-9]*$/
NestedIterators:
exclude: []

enabled: true
LongMethod:
max_statements: 5
exclude:
- initialize
enabled: true
Duplication:
exclude: []

enabled: true
max_calls: 1
UtilityFunction:
exclude: []

enabled: true
ControlCouple:
exclude:
- initialize
enabled: true
LongYieldList:
max_params: 3
exclude: []

enabled: true
21 changes: 9 additions & 12 deletions tasks/develop.rake
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,18 @@ end

task CONFIG_FILE => FileList['lib/reek/smells/*.rb']

namespace 'git' do
#- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

task 'github' do
`git push origin`
`git push --tags origin`
end
task :release_notes do
puts "1) git commit -m \"Release #{Reek::VERSION}\""
puts "2) git tag -a \"v#{Reek::VERSION}\" -m \"Release #{Reek::VERSION}\""
puts "3) git push"
puts "4) git push --tags"
end

task 'rubyforge' do
`git push rubyforge`
`git push --tags rubyforge`
end
task :gemspec => :release_notes

desc 'push the current master to all remotes'
task 'push' => ['github', 'rubyforge']
end
#- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

desc 'runs the unit and integration tests'
task 'cruise' => ['clobber', 'rspec:all']
Expand Down

0 comments on commit 045ad84

Please sign in to comment.