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