Skip to content

Commit

Permalink
Adjust rubocop rules
Browse files Browse the repository at this point in the history
  • Loading branch information
yuriGoncharovFunding committed Jan 11, 2024
1 parent c961bf1 commit 078bb26
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 12 deletions.
4 changes: 4 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,7 @@ AllCops:
ExtraDetails: true
UseCache: true
NewCops: enable
SuggestExtensions: false

Style/HashSyntax:
EnforcedShorthandSyntax: never
25 changes: 13 additions & 12 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# This configuration was generated by
# `rubocop --auto-gen-config --exclude-limit 99999999`
# on 2023-04-19 12:16:33 UTC using RuboCop version 1.28.2.
# on 2024-01-11 10:49:40 UTC using RuboCop version 1.59.0.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.

# Offense count: 1
# Configuration parameters: Include.
# Configuration parameters: Severity, Include.
# Include: **/*.gemspec
Gemspec/RequiredRubyVersion:
Exclude:
Expand All @@ -20,23 +20,24 @@ Lint/EmptyBlock:
- 'spec/spec_helper.rb'

# Offense count: 1
# Configuration parameters: AllowedParentClasses.
Lint/MissingSuper:
Exclude:
- 'lib/postcode_anywhere/bank_account_validation.rb'

# Offense count: 2
# Configuration parameters: IgnoredMethods, CountRepeatedAttributes.
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
Metrics/AbcSize:
Max: 58

# Offense count: 1
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods.
# IgnoredMethods: refine
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
# AllowedMethods: refine
Metrics/BlockLength:
Max: 82

# Offense count: 2
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods.
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
Metrics/MethodLength:
Max: 26

Expand All @@ -49,9 +50,9 @@ Naming/FileName:
- 'lib/ruby-postcodeanywhere.rb'

# Offense count: 5
# Configuration parameters: EnforcedStyle, CheckMethodNames, CheckSymbols, AllowedIdentifiers.
# Configuration parameters: EnforcedStyle, CheckMethodNames, CheckSymbols, AllowedIdentifiers, AllowedPatterns.
# SupportedStyles: snake_case, normalcase, non_integer
# AllowedIdentifiers: capture3, iso8601, rfc1123_date, rfc822, rfc2822, rfc3339
# AllowedIdentifiers: capture3, iso8601, rfc1123_date, rfc822, rfc2822, rfc3339, x86_64
Naming/VariableNumber:
Exclude:
- 'lib/ruby-postcodeanywhere.rb'
Expand All @@ -61,7 +62,7 @@ Style/ClassVars:
Exclude:
- 'lib/ruby-postcodeanywhere.rb'

# Offense count: 5
# Offense count: 7
# Configuration parameters: AllowedConstants.
Style/Documentation:
Exclude:
Expand All @@ -70,9 +71,9 @@ Style/Documentation:
- 'lib/postcode_anywhere/bank_account_validation.rb'
- 'lib/ruby-postcodeanywhere.rb'

# Offense count: 2
# This cop supports safe auto-correction (--auto-correct).
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns, IgnoredPatterns.
# Offense count: 3
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns.
# URISchemes: http, https
Layout/LineLength:
Max: 200

0 comments on commit 078bb26

Please sign in to comment.