]> git.openstreetmap.org Git - rails.git/blob - .rubocop.yml
Add support for Active Storage attachments
[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
10 Rails:
11   Enabled: true
12
13 Layout/ExtraSpacing:
14   AllowForAlignment: true
15
16 Lint/PercentStringArray:
17   Exclude:
18     - 'config/initializers/secure_headers.rb'
19     - 'app/controllers/application_controller.rb'
20     - 'app/controllers/site_controller.rb'
21
22 Metrics/BlockLength:
23   Exclude:
24     - 'config/routes.rb'
25
26 Naming/FileName:
27   Exclude:
28     - 'script/deliver-message'
29     - 'script/locale/reload-languages'
30     - 'script/update-spam-blocks'
31
32 Naming/UncommunicativeMethodParamName:
33   Enabled: false
34
35 Rails/ApplicationRecord:
36   Enabled: false
37
38 Rails/CreateTableWithTimestamps:
39   Enabled: false
40
41 Rails/FindEach:
42   Enabled: false
43
44 Rails/HasManyOrHasOneDependent:
45   Enabled: false
46
47 Rails/HttpPositionalArguments:
48   Enabled: false
49
50 Rails/InverseOf:
51   Enabled: false
52
53 Rails/SkipsModelValidations:
54   Exclude:
55     - 'db/migrate/*.rb'
56     - 'app/controllers/users_controller.rb'
57
58 Style/BracesAroundHashParameters:
59   EnforcedStyle: context_dependent
60
61 Style/FormatStringToken:
62   EnforcedStyle: template
63
64 Style/IfInsideElse:
65   Enabled: false
66
67 Style/GuardClause:
68   Enabled: false
69
70 Style/HashSyntax:
71   EnforcedStyle: hash_rockets
72   Exclude:
73     - 'lib/tasks/testing.rake'
74     - 'config/initializers/wrap_parameters.rb'
75
76 Style/MixinUsage:
77   Exclude:
78     - 'bin/setup'
79     - 'bin/update'
80
81 Style/StringLiterals:
82   EnforcedStyle: double_quotes
83
84 Style/SymbolArray:
85   EnforcedStyle: brackets