reek 4.0.0.pre1 → 4.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (33) hide show
  1. checksums.yaml +4 -4
  2. data/.codeclimate.yml +11 -2
  3. data/.gitignore +1 -0
  4. data/.travis.yml +1 -0
  5. data/CHANGELOG.md +8 -0
  6. data/Gemfile +3 -0
  7. data/README.md +2 -0
  8. data/docs/Attribute.md +1 -1
  9. data/docs/Uncommunicative-Method-Name.md +32 -2
  10. data/docs/Uncommunicative-Module-Name.md +29 -2
  11. data/docs/Uncommunicative-Parameter-Name.md +30 -2
  12. data/features/configuration_files/accept_setting.feature +70 -0
  13. data/features/configuration_files/exclude_directives.feature +34 -0
  14. data/features/configuration_files/mix_accept_reject_setting.feature +81 -0
  15. data/features/configuration_files/reject_setting.feature +78 -0
  16. data/features/configuration_files/unused_private_method.feature +66 -0
  17. data/lib/reek/configuration/app_configuration.rb +0 -30
  18. data/lib/reek/context/method_context.rb +15 -1
  19. data/lib/reek/smells/uncommunicative_method_name.rb +8 -7
  20. data/lib/reek/smells/uncommunicative_module_name.rb +8 -8
  21. data/lib/reek/smells/uncommunicative_parameter_name.rb +9 -7
  22. data/lib/reek/smells/unused_private_method.rb +7 -2
  23. data/lib/reek/version.rb +1 -1
  24. data/reek.gemspec +3 -4
  25. data/spec/reek/configuration/app_configuration_spec.rb +6 -27
  26. data/spec/reek/smells/uncommunicative_method_name_spec.rb +72 -16
  27. data/spec/reek/smells/uncommunicative_module_name_spec.rb +60 -47
  28. data/spec/reek/smells/uncommunicative_parameter_name_spec.rb +55 -9
  29. data/spec/reek/smells/unused_parameters_spec.rb +9 -0
  30. data/spec/reek/smells/unused_private_method_spec.rb +38 -0
  31. data/spec/reek/smells/utility_function_spec.rb +3 -5
  32. data/spec/spec_helper.rb +28 -1
  33. metadata +11 -7
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reek
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0.pre1
4
+ version: 4.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Rutherford
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2016-03-01 00:00:00.000000000 Z
14
+ date: 2016-03-21 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: codeclimate-engine-rb
@@ -61,9 +61,8 @@ dependencies:
61
61
  - - "~>"
62
62
  - !ruby/object:Gem::Version
63
63
  version: '2.0'
64
- description: |2
65
- Reek is a tool that examines Ruby classes, modules and methods and reports
66
- any code smells it finds.
64
+ description: Reek is a tool that examines Ruby classes, modules and methods and reports
65
+ any code smells it finds.
67
66
  email:
68
67
  - timo.roessner@googlemail.com
69
68
  executables:
@@ -143,8 +142,13 @@ files:
143
142
  - features/command_line_interface/smell_selection.feature
144
143
  - features/command_line_interface/smells_count.feature
145
144
  - features/command_line_interface/stdin.feature
145
+ - features/configuration_files/accept_setting.feature
146
146
  - features/configuration_files/directory_specific_directives.feature
147
+ - features/configuration_files/exclude_directives.feature
147
148
  - features/configuration_files/masking_smells.feature
149
+ - features/configuration_files/mix_accept_reject_setting.feature
150
+ - features/configuration_files/reject_setting.feature
151
+ - features/configuration_files/unused_private_method.feature
148
152
  - features/configuration_loading.feature
149
153
  - features/programmatic_access.feature
150
154
  - features/rake_task/rake_task.feature
@@ -396,9 +400,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
396
400
  version: 2.1.0
397
401
  required_rubygems_version: !ruby/object:Gem::Requirement
398
402
  requirements:
399
- - - ">"
403
+ - - ">="
400
404
  - !ruby/object:Gem::Version
401
- version: 1.3.1
405
+ version: '0'
402
406
  requirements: []
403
407
  rubyforge_project:
404
408
  rubygems_version: 2.5.1