Reduce our surface, extend self is useful for some modules.

We should handle extend self and module_function on a case-by-case basis because there
are times when extend self is useful, especially when you wish a module to be included but also
available on itself.  `module_function` does not allow this.
This commit is contained in:
Jordon Bedwell 2016-01-02 23:58:59 -06:00
parent 519c0f1b38
commit 2a280b7f62
1 changed files with 18 additions and 17 deletions

View File

@ -2,24 +2,25 @@ engines:
rubocop:
enabled: true
checks:
Rubocop/Style/SpaceInsideBrackets: { enabled: false }
Rubocop/Style/BracesAroundHashParameters: { enabled: false}
Rubocop/Style/SpaceInsideBrackets: { enabled: false }
Rubocop/Style/BracesAroundHashParameters: { enabled: false}
Rubocop/Style/EmptyLinesAroundAccessModifier: { enabled: false }
Rubocop/Style/EmptyLinesAroundModuleBody: { enabled: false }
Rubocop/Lint/FormatParameterMismatch: { enabled: false }
Rubocop/Lint/UselessAccessModifier: { enabled: false }
Rubocop/Lint/AssignmentInCondition: { enabled: false }
Rubocop/Style/SpaceAroundOperators: { enabled: false }
Rubocop/Style/AlignParameters: { enabled: false }
Rubocop/Style/SignalException: { enabled: false }
Rubocop/Style/Documentation: { enabled: false }
Rubocop/Style/DoubleNegation: { enabled: false }
Rubocop/Style/UnneededCapitalW: { enabled: false }
Rubocop/Style/IfUnlessModifier: { enabled: false }
Rubocop/Style/RescueModifier: { enabled: false }
Rubocop/Style/RegexpLiteral: { enabled: false }
Rubocop/Style/GuardClause: { enabled: false }
Rubocop/Style/FileName: { enabled: false }
Rubocop/Style/EmptyLinesAroundModuleBody: { enabled: false }
Rubocop/Lint/FormatParameterMismatch: { enabled: false }
Rubocop/Lint/UselessAccessModifier: { enabled: false }
Rubocop/Lint/AssignmentInCondition: { enabled: false }
Rubocop/Style/SpaceAroundOperators: { enabled: false }
Rubocop/Style/AlignParameters: { enabled: false }
Rubocop/Style/SignalException: { enabled: false }
Rubocop/Style/Documentation: { enabled: false }
Rubocop/Style/DoubleNegation: { enabled: false }
Rubocop/Style/UnneededCapitalW: { enabled: false }
Rubocop/Style/IfUnlessModifier: { enabled: false }
Rubocop/Style/RescueModifier: { enabled: false }
Rubocop/Style/RegexpLiteral: { enabled: false }
Rubocop/Style/GuardClause: { enabled: false }
Rubocop/Style/FileName: { enabled: false }
Rubocop/Style/ModuleFunction: { enabled: false }
fixme:
enabled: false
exclude_paths: