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