foalfetch/.rubocop.yml

64 lines
1.1 KiB
YAML
Raw Normal View History

2024-04-06 13:00:46 +02:00
require: rubocop-rails
2024-04-04 10:21:23 +02:00
inherit_from: .rubocop_todo.yml
AllCops:
SuggestExtensions: false
NewCops: enable
Exclude:
- db/migrate/*.rb
- db/schema.rb
- vendor/**/*
- public/**/*
- tmp/**/*
- spec/rails_helper.rb
- lib/tasks/auto_annotate_models.rake
Style/FetchEnvVar:
Enabled: false
# I just don't like it
Layout/EmptyLineAfterMagicComment:
Enabled: false
# These next two are stylistic choices I don't agree with
Style/MultilineIfModifier:
Enabled: false
Style/IfUnlessModifier:
Enabled: false
# It just feels wrong
Style/HashSyntax:
EnforcedShorthandSyntax: never
# This is too convenient not to
Style/GlobalVars:
AllowedVariables:
- $redis
Style/FrozenStringLiteralComment:
Enabled: true
# Don't like it
Style/EmptyMethod:
Enabled: false
Style/ClassVars:
Enabled: false
Style/ClassAndModuleChildren:
EnforcedStyle: compact
2024-07-30 15:56:47 +02:00
# This does the opposite of what I want to do.
2024-04-04 10:21:23 +02:00
Layout/HashAlignment:
Enabled: false
Layout/CaseIndentation:
IndentOneStep: true
Style/NumericPredicate:
Enabled: false
# I've always been an "unnecessary this->" guy myself.
Style/RedundantSelf:
2024-07-30 15:56:47 +02:00
Enabled: false