]> git.openstreetmap.org Git - rails.git/blob - .rubocop.yml
use no-r2 comment to block RTL gem from changing sprites
[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 Style/BracesAroundHashParameters:
31   EnforcedStyle: context_dependent
32
33 Style/FileName:
34   Exclude:
35     - 'script/deliver-message'
36     - 'script/locale/reload-languages'
37     - 'script/update-spam-blocks'
38
39 Style/FormatStringToken:
40   EnforcedStyle: template
41
42 Style/IfInsideElse:
43   Enabled: false
44
45 Style/GlobalVars:
46   Exclude:
47     - 'lib/quad_tile/extconf.rb'
48
49 Style/GuardClause:
50   Enabled: false
51
52 Style/HashSyntax:
53   EnforcedStyle: hash_rockets
54   Exclude:
55     - 'lib/tasks/testing.rake'
56     - 'config/initializers/wrap_parameters.rb'
57
58 Style/StringLiterals:
59   EnforcedStyle: double_quotes
60
61 Style/SymbolArray:
62   EnforcedStyle: brackets
63
64 Rails/ApplicationRecord:
65   Enabled: false
66
67 Rails/HttpPositionalArguments:
68   Enabled: false
69
70 Rails/SkipsModelValidations:
71   Exclude:
72     - 'db/migrate/*.rb'
73     - 'app/controllers/user_controller.rb'
74
75 Lint/PercentStringArray:
76   Exclude:
77     - 'config/initializers/secure_headers.rb'
78     - 'app/controllers/site_controller.rb'