Skip to content

Commit

Permalink
Rubocop config
Browse files Browse the repository at this point in the history
  • Loading branch information
CloCkWeRX committed Jul 13, 2024
1 parent 487f909 commit b739730
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
inherit_from: .rubocop_todo.yml
AllCops:
NewCops: enable
51 changes: 50 additions & 1 deletion .rubocop_todo.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2024-07-13 08:41:03 UTC using RuboCop version 1.65.0.
# on 2024-07-13 08:42:11 UTC using RuboCop version 1.65.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
Expand All @@ -14,6 +14,30 @@ Bundler/OrderedGems:
Exclude:
- 'Gemfile'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: Include.
# Include: **/*.gemspec
Gemspec/AddRuntimeDependency:
Exclude:
- 'acts_as_commentable.gemspec'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: Severity, Include.
# Include: **/*.gemspec
Gemspec/DeprecatedAttributeAssignment:
Exclude:
- 'acts_as_commentable.gemspec'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: Severity, Include.
# Include: **/*.gemspec
Gemspec/RequireMFA:
Exclude:
- 'acts_as_commentable.gemspec'

# Offense count: 1
# Configuration parameters: Severity, Include.
# Include: **/*.gemspec
Expand All @@ -34,6 +58,14 @@ Lint/SendWithMixinArgument:
Exclude:
- 'lib/commentable_methods.rb'

# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: strict, consistent
Lint/SymbolConversion:
Exclude:
- 'lib/commentable_methods.rb'

# Offense count: 5
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
Metrics/AbcSize:
Expand Down Expand Up @@ -79,6 +111,11 @@ Naming/PredicateName:
- 'lib/comment_methods.rb'
- 'lib/commentable_methods.rb'

# Offense count: 1
Style/DocumentDynamicEvalDefinition:
Exclude:
- 'lib/commentable_methods.rb'

# Offense count: 6
# Configuration parameters: AllowedConstants.
Style/Documentation:
Expand Down Expand Up @@ -119,6 +156,18 @@ Style/FrozenStringLiteralComment:
- 'test/models.rb'
- 'test/schema.rb'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Style/NegatedIfElseCondition:
Exclude:
- 'lib/commentable_methods.rb'

# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
Style/RedundantDoubleSplatHashBraces:
Exclude:
- 'lib/commentable_methods.rb'

# Offense count: 5
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: Mode.
Expand Down

0 comments on commit b739730

Please sign in to comment.