]> git.openstreetmap.org Git - rails.git/blob - .rubocop.yml
Move scheduling of trace import and destruction to the model
[rails.git] / .rubocop.yml
1 inherit_from: .rubocop_todo.yml
2
3 require:
4   - rubocop-capybara
5   - rubocop-factory_bot
6   - rubocop-minitest
7   - rubocop-performance
8   - rubocop-rails
9   - rubocop-rake
10
11 AllCops:
12   TargetRubyVersion: 3.0
13   NewCops: enable
14   Exclude:
15     - 'vendor/**/*'
16
17 Rails:
18   Enabled: true
19
20 Layout/ExtraSpacing:
21   AllowForAlignment: true
22
23 Lint/PercentStringArray:
24   Exclude:
25     - 'config/initializers/secure_headers.rb'
26     - 'app/controllers/application_controller.rb'
27     - 'app/controllers/site_controller.rb'
28
29 Metrics/BlockLength:
30   Exclude:
31     - 'config/routes.rb'
32
33 Metrics/ClassLength:
34   Exclude:
35     - 'test/**/*'
36
37 Metrics/ModuleLength:
38   Max: 150
39
40 Naming/FileName:
41   Exclude:
42     - 'script/deliver-message'
43     - 'script/update-spam-blocks'
44
45 Naming/MethodParameterName:
46   Enabled: false
47
48 Rails/CreateTableWithTimestamps:
49   Enabled: false
50
51 Rails/FindBy:
52   IgnoreWhereFirst: false
53
54 Rails/FindEach:
55   Enabled: false
56
57 Rails/HasManyOrHasOneDependent:
58   Enabled: false
59
60 Rails/HttpPositionalArguments:
61   Enabled: false
62
63 Rails/ReflectionClassName:
64   Enabled: false
65
66 Rails/SkipsModelValidations:
67   Exclude:
68     - 'db/migrate/*.rb'
69     - 'app/controllers/users_controller.rb'
70
71 Style/Documentation:
72   Enabled: false
73
74 Style/FormatStringToken:
75   Exclude:
76     - 'config/routes.rb'
77
78 Style/IfInsideElse:
79   Enabled: false
80
81 Style/GuardClause:
82   Enabled: false
83
84 Style/HashEachMethods:
85   Enabled: true
86
87 Style/HashSyntax:
88   EnforcedStyle: hash_rockets
89   Exclude:
90     - 'lib/tasks/testing.rake'
91     - 'config/initializers/wrap_parameters.rb'
92
93 Style/HashTransformKeys:
94   Enabled: true
95
96 Style/HashTransformValues:
97   Enabled: true
98
99 Style/MixinUsage:
100   Exclude:
101     - 'bin/setup'
102     - 'bin/update'
103
104 Style/StringLiterals:
105   EnforcedStyle: double_quotes
106
107 Style/SymbolArray:
108   EnforcedStyle: brackets