Lint: We will not fix Style/ModuleFunction

[ci skip]
This commit is contained in:
Jared Beck 2016-04-08 18:14:42 -04:00
parent 5dd74484ed
commit 3b73566ef7
2 changed files with 10 additions and 6 deletions

View File

@ -64,6 +64,16 @@ Style/GuardClause:
Style/LineEndConcatenation:
Enabled: false
# Using `module_function` instead of `extend self` would make the instance
# methods in these modules private. That would be a breaking change, so these
# modules are excluded. See discussion in:
# - https://github.com/airblade/paper_trail/pull/756
# - https://github.com/bbatsov/ruby-style-guide/issues/556
Style/ModuleFunction:
Exclude:
- 'lib/paper_trail/serializers/json.rb'
- 'lib/paper_trail/serializers/yaml.rb'
Style/MultilineMethodCallIndentation:
EnforcedStyle: indented

View File

@ -21,9 +21,3 @@ Metrics/PerceivedComplexity:
# Offense count: 33
Style/Documentation:
Enabled: false
# Offense count: 2
Style/ModuleFunction:
Exclude:
- 'lib/paper_trail/serializers/json.rb'
- 'lib/paper_trail/serializers/yaml.rb'