Update bundle
[rails.git] / .rubocop.yml
1 inherit_from: .rubocop_todo.yml
2
3 require:
4   - rubocop-performance
5   - rubocop-rails
6
7 AllCops:
8   TargetRubyVersion: 2.5
9   Exclude:
10     - 'vendor/**/*'
11
12 Rails:
13   Enabled: true
14
15 Layout/ExtraSpacing:
16   AllowForAlignment: true
17
18 Lint/PercentStringArray:
19   Exclude:
20     - 'config/initializers/secure_headers.rb'
21     - 'app/controllers/application_controller.rb'
22     - 'app/controllers/site_controller.rb'
23
24 Metrics/BlockLength:
25   Exclude:
26     - 'config/routes.rb'
27
28 Metrics/ClassLength:
29   Exclude:
30     - 'test/**/*'
31
32 Naming/FileName:
33   Exclude:
34     - 'script/deliver-message'
35     - 'script/locale/reload-languages'
36     - 'script/update-spam-blocks'
37
38 Naming/MethodParameterName:
39   Enabled: false
40
41 Rails/CreateTableWithTimestamps:
42   Enabled: false
43
44 Rails/FindEach:
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/users_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/GuardClause:
71   Enabled: false
72
73 Style/HashSyntax:
74   EnforcedStyle: hash_rockets
75   Exclude:
76     - 'lib/tasks/testing.rake'
77     - 'config/initializers/wrap_parameters.rb'
78
79 Style/MixinUsage:
80   Exclude:
81     - 'bin/setup'
82     - 'bin/update'
83
84 Style/StringLiterals:
85   EnforcedStyle: double_quotes
86
87 Style/SymbolArray:
88   EnforcedStyle: brackets