Websites/.rubocop.yml

202 lines
3.0 KiB
YAML
Raw Permalink Normal View History

2024-05-03 03:04:43 +00:00
inherit_mode:
merge:
- Exclude
- Include
require:
- rubocop-erb
- rubocop-rails
AllCops:
NewCops: enable
SuggestExtensions:
rubocop-factory_bot: false
Bundler/OrderedGems:
Enabled: true
Layout/EmptyLineAfterGuardClause:
Enabled: false
Layout/FirstArrayElementIndentation:
EnforcedStyle: consistent
Layout/FirstHashElementIndentation:
EnforcedStyle: consistent
Layout/LineLength:
Enabled: false
Lint/SymbolConversion:
EnforcedStyle: consistent
Metrics/AbcSize:
Enabled: false
Metrics/BlockLength:
AllowedMethods:
- class_methods
- concerning
- context
- create_table
- factory
- FactoryBot.define
- should
- should_eventually
Exclude:
- config/**/*.rb
Metrics/ClassLength:
Enabled: false
Metrics/CyclomaticComplexity:
Enabled: false
Metrics/MethodLength:
Enabled: false
Metrics/ModuleLength:
Enabled: false
Metrics/PerceivedComplexity:
Enabled: false
Naming/PredicateName:
Enabled: false
Rails/BulkChangeTable:
Enabled: false
Rails/HasManyOrHasOneDependent:
Enabled: false
Rails/HttpStatus:
EnforcedStyle: numeric
Rails/I18nLocaleTexts:
Enabled: false
Rails/InverseOf:
Enabled: false
Rails/Output:
Exclude:
- db/seeds.rb
- db/fixes/*.rb
Rails/ReversibleMigration:
Enabled: false
Rails/SkipsModelValidations:
Enabled: false
Rails/TimeZone:
Enabled: false
Rails/WhereEquals:
Enabled: false
Rails/WhereExists:
EnforcedStyle: where
Rails/WhereNotWithMultipleConditions:
Enabled: false
Style/ConditionalAssignment:
Enabled: false
Style/Documentation:
Enabled: false
Style/EmptyMethod:
EnforcedStyle: expanded
Style/FloatDivision:
Enabled: false
Style/GuardClause:
Enabled: false
Style/HashSyntax:
EnforcedShorthandSyntax: never
Style/IfUnlessModifier:
Enabled: true
Style/Lambda:
EnforcedStyle: literal
Style/NumericPredicate:
EnforcedStyle: comparison
Style/PerlBackrefs:
Enabled: false
Rails/OutputSafety:
Enabled: false
Style/QuotedSymbols:
Enabled: false
Style/StringLiterals:
EnforcedStyle: double_quotes
Style/TrailingCommaInArguments:
EnforcedStyleForMultiline: comma
Style/TrailingCommaInArrayLiteral:
EnforcedStyleForMultiline: consistent_comma
Style/TrailingCommaInHashLiteral:
EnforcedStyleForMultiline: consistent_comma
Style/RescueModifier:
Enabled: false
Lint/StructNewOverride:
Enabled: false
Layout/HashAlignment:
Enabled: true
EnforcedHashRocketStyle: table
EnforcedColonStyle: table
Style/MethodCallWithArgsParentheses:
Enabled: true
Style/MissingRespondToMissing:
Enabled: false
Style/ModuleFunction:
Enabled: false
Rails/ApplicationMailer:
Enabled: false
Style/ClassAndModuleChildren:
Enabled: false
Lint/MissingSuper:
Enabled: false
Lint/EmptyBlock:
Enabled: false
Rails/ActionControllerFlashBeforeRender:
Enabled: false
Rails/NegateInclude:
Enabled: false
Rails/DynamicFindBy:
Enabled: false
Rails/TransactionExitStatement:
Enabled: false
Style/NestedTernaryOperator:
Enabled: false
Metrics/ParameterLists:
Enabled: false