Merge remote-tracking branch 'upstream/pull/2000'
[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/HasManyOrHasOneDependent:
34   Enabled: false
35
36 Rails/HttpPositionalArguments:
37   Enabled: false
38
39 Rails/InverseOf:
40   Enabled: false
41
42 Rails/SkipsModelValidations:
43   Exclude:
44     - 'db/migrate/*.rb'
45     - 'app/controllers/user_controller.rb'
46
47 Style/BracesAroundHashParameters:
48   EnforcedStyle: context_dependent
49
50 Style/FormatStringToken:
51   EnforcedStyle: template
52
53 Style/IfInsideElse:
54   Enabled: false
55
56 Style/GlobalVars:
57   Exclude:
58     - 'lib/quad_tile/extconf.rb'
59
60 Style/GuardClause:
61   Enabled: false
62
63 Style/HashSyntax:
64   EnforcedStyle: hash_rockets
65   Exclude:
66     - 'lib/tasks/testing.rake'
67     - 'config/initializers/wrap_parameters.rb'
68
69 Style/MixinUsage:
70   Exclude:
71     - 'bin/setup'
72     - 'bin/update'
73
74 Style/StringLiterals:
75   EnforcedStyle: double_quotes
76
77 Style/SymbolArray:
78   EnforcedStyle: brackets