]> git.openstreetmap.org Git - rails.git/blob - .rubocop.yml
Update to iD v2.9.2
[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/application_controller.rb'
13     - 'app/controllers/site_controller.rb'
14
15 Naming/FileName:
16   Exclude:
17     - 'script/deliver-message'
18     - 'script/locale/reload-languages'
19     - 'script/update-spam-blocks'
20
21 Naming/UncommunicativeMethodParamName:
22   Enabled: false
23
24 Rails/ApplicationRecord:
25   Enabled: false
26
27 Rails/CreateTableWithTimestamps:
28   Enabled: false
29
30 Rails/HasManyOrHasOneDependent:
31   Enabled: false
32
33 Rails/HttpPositionalArguments:
34   Enabled: false
35
36 Rails/InverseOf:
37   Enabled: false
38
39 Rails/SkipsModelValidations:
40   Exclude:
41     - 'db/migrate/*.rb'
42     - 'app/controllers/user_controller.rb'
43
44 Style/BracesAroundHashParameters:
45   EnforcedStyle: context_dependent
46
47 Style/FormatStringToken:
48   EnforcedStyle: template
49
50 Style/IfInsideElse:
51   Enabled: false
52
53 Style/GlobalVars:
54   Exclude:
55     - 'lib/quad_tile/extconf.rb'
56
57 Style/GuardClause:
58   Enabled: false
59
60 Style/HashSyntax:
61   EnforcedStyle: hash_rockets
62   Exclude:
63     - 'lib/tasks/testing.rake'
64     - 'config/initializers/wrap_parameters.rb'
65
66 Style/MixinUsage:
67   Exclude:
68     - 'bin/setup'
69     - 'bin/update'
70
71 Style/StringLiterals:
72   EnforcedStyle: double_quotes
73
74 Style/SymbolArray:
75   EnforcedStyle: brackets