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