Skip to content

Commit

Permalink
Create .rubocop.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
andrijzyn committed Dec 14, 2024
1 parent 2938928 commit 9380c9b
Showing 1 changed file with 77 additions and 0 deletions.
77 changes: 77 additions & 0 deletions config/.rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
AllCops:
SuggestExtensions: false
NewCops: enable
Exclude:
- 'bin/**/*'

inherit_gem:
rubocop-github:
- config/default.yml # generic Ruby rules and cops
- config/rails.yml # Rails-specific rules and cops

Gemspec/AddRuntimeDependency:
Enabled: true

Gemspec/DeprecatedAttributeAssignment:
Enabled: true

Gemspec/DevelopmentDependencies:
Enabled: true

Gemspec/RequireMFA:
Enabled: true

Layout/LineContinuationLeadingSpace:
Enabled: true

Layout/LineContinuationSpacing:
Enabled: true

Layout/LineEndStringConcatenationIndentation:
Enabled: true

Layout/SpaceBeforeBrackets:
Enabled: true

Lint/AmbiguousAssignment:
Enabled: true

Lint/AmbiguousOperatorPrecedence:
Enabled: true

Lint/AmbiguousRange:
Enabled: true

Lint/ConstantOverwrittenInRescue:
Enabled: true

Lint/DeprecatedConstants:
Enabled: true

Metrics/CyclomaticComplexity:
Max: 7
Enabled: false

Metrics/MethodLength:
Max: 10
Enabled: false

Metrics/PerceivedComplexity:
Max: 8
Enabled: false

Style/IfUnlessModifier:
Enabled: false

Layout/LineLength:
Max: 120
Enabled: false

Style/StringLiterals:
Enabled: false

Layout/ArgumentAlignment:
Enabled: false

Style/ExpandPathArguments:
Enabled: false

0 comments on commit 9380c9b

Please sign in to comment.