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