diff --git a/.rubocop.yml b/.rubocop.yml index 11861ed..16d3764 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -5,3 +5,18 @@ AllCops: Metrics/BlockLength: CountAsOne: ['array', 'hash', 'heredoc', 'method_call'] + AllowedMethods: + - describe + - context + - shared_examples + - RSpec::Matchers.define + +Naming/MethodParameterName: + AllowedNames: + - x + - y + - cr + - x1 + - y1 + - x2 + - y2 diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 708f8fd..a02d455 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -18,16 +18,6 @@ Gemspec/RequiredRubyVersion: Metrics/AbcSize: Max: 94 -# Offense count: 3 -# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods. -# IgnoredMethods: refine -Metrics/BlockLength: - AllowedMethods: - - describe - - context - - shared_examples - - RSpec::Matchers.define - # Offense count: 1 # Configuration parameters: CountComments, CountAsOne. Metrics/ClassLength: @@ -53,16 +43,6 @@ Metrics/ParameterLists: Metrics/PerceivedComplexity: Max: 17 -Naming/MethodParameterName: - AllowedNames: - - x - - y - - cr - - x1 - - y1 - - x2 - - y2 - # Offense count: 1 Naming/AccessorMethodName: Exclude: