-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #129 from rainforestapp/reek-config
Add .reek.yml
- Loading branch information
Showing
6 changed files
with
77 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
source 'https://rubygems.org' do | ||
# Specify your gem's dependencies in rf-stylez.gemspec | ||
gemspec | ||
end | ||
source "https://rubygems.org" | ||
|
||
gemspec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,5 +13,8 @@ | |
|
||
module Rf | ||
module Stylez | ||
def self.reek_config_path | ||
File.expand_path("../../ruby/.reek.yml", __dir__) | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,6 @@ | |
|
||
module Rf | ||
module Stylez | ||
VERSION = '0.14.0' | ||
VERSION = '0.15.0' | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
--- | ||
### Generic smell configuration | ||
|
||
# You can check all defaults at https://github.com/troessner/reek/blob/master/docs/defaults.reek.yml | ||
detectors: | ||
# IrresponsibleModule duplicates rubocop top-level comment rule | ||
IrresponsibleModule: | ||
enabled: false | ||
|
||
NestedIterators: | ||
max_allowed_nesting: 1 | ||
|
||
UtilityFunction: | ||
public_methods_only: true | ||
|
||
TooManyStatements: | ||
max_statements: 10 | ||
|
||
TooManyMethods: | ||
max_methods: 20 | ||
|
||
TooManyInstanceVariables: | ||
max_instance_variables: 8 | ||
|
||
### Directory specific configuration | ||
|
||
# You can configure smells on a per-directory base. | ||
# E.g. the classic Rails case: controllers smell of NestedIterators (see /docs/Nested-Iterators.md) and | ||
# helpers smell of UtilityFunction (see docs/Utility-Function.md) | ||
# | ||
# Note that we only allow configuration on a directory level, not a file level, | ||
# so all paths have to point to directories. | ||
# A Dir.glob pattern can be used. | ||
directories: | ||
"app/controllers": | ||
NestedIterators: | ||
max_allowed_nesting: 2 | ||
UnusedPrivateMethod: | ||
enabled: false | ||
InstanceVariableAssumption: | ||
enabled: false | ||
"app/helpers": | ||
UtilityFunction: | ||
enabled: false | ||
"app/mailers": | ||
InstanceVariableAssumption: | ||
enabled: false | ||
"app/models": | ||
InstanceVariableAssumption: | ||
enabled: false | ||
"app/rack/api": | ||
MissingSafeMethod: | ||
exclude: | ||
- validate_param! | ||
InstanceVariableAssumption: | ||
enabled: false | ||
|
||
exclude_paths: | ||
- db/ | ||
- script/ | ||
- bin/ | ||
- app/jobs/data_correction/ |