]> git.openstreetmap.org Git - rails.git/blob - .rubocop.yml
Update for rubocop 0.54.0
[rails.git] / .rubocop.yml
1 inherit_from: .rubocop_todo.yml
2
3 Rails:
4   Enabled: true
5
6 Layout/ExtraSpacing:
7   AllowForAlignment: true
8
9 Lint/PercentStringArray:
10   Exclude:
11     - 'config/initializers/secure_headers.rb'
12     - 'app/controllers/site_controller.rb'
13
14 Naming/FileName:
15   Exclude:
16     - 'script/deliver-message'
17     - 'script/locale/reload-languages'
18     - 'script/update-spam-blocks'
19
20 Naming/UncommunicativeMethodParamName:
21   Enabled: false
22
23 Rails/ApplicationRecord:
24   Enabled: false
25
26 Rails/CreateTableWithTimestamps:
27   Enabled: false
28
29 Rails/HasManyOrHasOneDependent:
30   Enabled: false
31
32 Rails/HttpPositionalArguments:
33   Enabled: false
34
35 Rails/InverseOf:
36   Enabled: false
37
38 Rails/SkipsModelValidations:
39   Exclude:
40     - 'db/migrate/*.rb'
41     - 'app/controllers/user_controller.rb'
42
43 Style/BracesAroundHashParameters:
44   EnforcedStyle: context_dependent
45
46 Style/FormatStringToken:
47   EnforcedStyle: template
48
49 Style/IfInsideElse:
50   Enabled: false
51
52 Style/GlobalVars:
53   Exclude:
54     - 'lib/quad_tile/extconf.rb'
55
56 Style/GuardClause:
57   Enabled: false
58
59 Style/HashSyntax:
60   EnforcedStyle: hash_rockets
61   Exclude:
62     - 'lib/tasks/testing.rake'
63     - 'config/initializers/wrap_parameters.rb'
64
65 Style/StringLiterals:
66   EnforcedStyle: double_quotes
67
68 Style/SymbolArray:
69   EnforcedStyle: brackets