Project

General

Profile

Revision 367f39d2

Added by Sebastian Gräßl over 5 years ago

Fixes #19694 - Align rubocop configuration with foreman-core

And fix offenses

View differences:

.rubocop.yml
1
# TODO: remove this file by either moving cops here or fixing code
2
inherit_from:
3
  - .rubocop_todo.yml
4

  
1 5
AllCops:
2
  RunRailsCops: true # always run the rails cops
6
  TargetRubyVersion: 2.0
7

  
8
Rails: # always run the rails cops
9
  Enabled: true
10

  
11
# Don't is_a? over kind_of?
12
Style/ClassCheck:
13
  Enabled: false
3 14

  
4 15
# Don't enforce documentation
5 16
Style/Documentation:
6 17
  Enabled: false
7 18

  
8
# Need to support ruby 1.8
19
# Support both ruby19 and hash_rockets
9 20
Style/HashSyntax:
10
  EnforcedStyle: hash_rockets
11

  
12
# Force before_filter until upgrade to Rails 4
13
Rails/ActionFilter:
14
  EnforcedStyle: filter
15

  
16
Metrics/LineLength:
17
  Max: 100
21
  Enabled: false
18 22

  
19
Metrics/MethodLength:
20
  Max: 20
23
Style/StringLiterals:
24
  Enabled: false
21 25

  
22
StringLiterals:
26
Style/FrozenStringLiteralComment:
23 27
  Enabled: false
24 28

  
25 29
Metrics/ClassLength:
26
  Max: 200
27

  
28
Metrics/AbcSize:
29
  Enabled: false # should we turn this on?
30

  
31
Style/MethodCalledOnDoEndBlock:
32
  Enabled: true
30
  Exclude:
31
    - 'test/**/*'
33 32

  
34
Style/DotPosition:
35
  EnforcedStyle: 'leading'
33
Performance/FixedSize:
34
  Exclude:
35
    - 'test/**/*'
36 36

  
37 37
Rails/Date:
38 38
  Exclude:

Also available in: Unified diff