From 2a280b7f626bf4e415062291a3b86e2f68ba927e Mon Sep 17 00:00:00 2001 From: Jordon Bedwell Date: Sat, 2 Jan 2016 23:58:59 -0600 Subject: [PATCH] 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. --- .codeclimate.yml | 35 ++++++++++++++++++----------------- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/.codeclimate.yml b/.codeclimate.yml index 29ed62d0..ae7e3d26 100644 --- a/.codeclimate.yml +++ b/.codeclimate.yml @@ -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: