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