Skip to content

Commit

Permalink
Merge pull request #91 from jgarber623/rubocop-config-changes
Browse files Browse the repository at this point in the history
Alphabetize RuboCop config, add todo file
  • Loading branch information
radar authored May 12, 2024
2 parents a6b193f + 19ff793 commit ffe7b9f
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 32 deletions.
41 changes: 9 additions & 32 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,46 +1,23 @@
inherit_from: .rubocop_todo.yml

AllCops:
TargetRubyVersion: 3.1
NewCops: enable

Metrics/CollectionLiteralLength:
Enabled: false

Gemspec/DevelopmentDependencies:
Enabled: false

Style/StringLiterals:
Enabled: false

Style/FrozenStringLiteralComment:
Enabled: false

Style/Documentation:
Enabled: false
TargetRubyVersion: 3.1

Layout/LineLength:
Max: 200
Exclude:
- lib/humanize/locales/constants/*.rb

Metrics/MethodLength:
Max: 30

Metrics/AbcSize:
Max: 30

Metrics/CyclomaticComplexity:
Max: 10

Metrics/PerceivedComplexity:
Max: 10

Metrics/BlockLength:
Exclude:
- spec/**/*.rb

Metrics/CollectionLiteralLength:
Enabled: false

Style/Documentation:
Enabled: false

Style/WordArray:
Exclude:
- lib/humanize/locales/constants/*.rb

Style/SpecialGlobalVars:
Enabled: false
53 changes: 53 additions & 0 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# This configuration was generated by
# `rubocop --auto-gen-config --auto-gen-only-exclude`
# on 2024-05-12 03:22:52 UTC using RuboCop version 1.63.5.
# 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: 5
# Configuration parameters: EnforcedStyle, AllowedGems, Include.
# SupportedStyles: Gemfile, gems.rb, gemspec
# Include: **/*.gemspec, **/Gemfile, **/gems.rb
Gemspec/DevelopmentDependencies:
Exclude:
- 'humanize.gemspec'

# Offense count: 1
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes, Max.
Metrics/AbcSize:
Exclude:
- 'lib/humanize/module.rb'

# Offense count: 1
# Configuration parameters: AllowedMethods, AllowedPatterns, Max.
Metrics/CyclomaticComplexity:
Exclude:
- 'lib/humanize/module.rb'

# Offense count: 18
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
Metrics/MethodLength:
Max: 18

# Offense count: 56
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: always, always_true, never
Style/FrozenStringLiteralComment:
Enabled: false

# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: RequireEnglish.
# SupportedStyles: use_perl_names, use_english_names, use_builtin_english_names
Style/SpecialGlobalVars:
EnforcedStyle: use_perl_names

# Offense count: 3330
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
# SupportedStyles: single_quotes, double_quotes
Style/StringLiterals:
Enabled: false

0 comments on commit ffe7b9f

Please sign in to comment.