Project

General

Profile

Download (1.7 KB) Statistics
| Branch: | Tag: | Revision:

runcible / .rubocop.yml @ 27b106f4

1
# TODO: Remove the following once the rules in the file is addressed
2
inherit_from:
3
  - .rubocop_todo.yml
4
# end TODO
5

    
6
MethodLength:
7
  Description: 'Avoid methods longer than 30 lines of code.'
8
  Max: 45 # TODO: set to 30
9

    
10
SpaceInsideHashLiteralBraces:
11
  EnforcedStyleIsWithSpaces: false
12

    
13
HashSyntax:
14
  Enabled: false # don't force 1.9 hash syntax
15

    
16
SpaceInsideHashLiteralBraces:
17
  Enabled: false # allow spaces (eg { :a => 1 })
18

    
19
LeadingCommentSpace:
20
  Enabled: false
21

    
22
IfUnlessModifier:
23
  Enabled: false
24

    
25
RescueModifier:
26
  Enabled: false
27

    
28
AssignmentInCondition:
29
  Enabled: false
30

    
31
WhileUntilModifier:
32
  Enabled: false
33

    
34
AlignParameters:
35
  Enabled: false # don't care if parameters are not aligned
36

    
37
ParenthesesAroundCondition:
38
  Enabled: false
39

    
40
DotPosition:
41
  Enabled: false
42

    
43
Lint/UnusedMethodArgument:
44
  Enabled: false
45

    
46
Lambda:
47
  Enabled: false # don't require -> for single line lambdas
48

    
49
RedundantSelf:
50
  Enabled: false
51

    
52
RedundantReturn:
53
  Enabled: false
54

    
55
SpaceInsideHashLiteralBraces:
56
  Enabled: false # we allow spaces inside hash brackets
57

    
58
Documentation:
59
  Enabled: false # don't require documentation
60

    
61
Encoding:
62
  Enabled: false # don't require utf-8 encoding on every file
63

    
64
MethodCalledOnDoEndBlock:
65
  Enabled: true
66

    
67
SingleLineBlockParams:
68
  Enabled: false
69

    
70
Style/Next:
71
  Enabled: false # don't enforce next in loops over if/unless
72

    
73
Rails/ActionFilter:
74
  Enabled: false # Rails 4.0 check
75

    
76
FormatString:
77
  Enabled: false # we use % for i18n
78

    
79
Style/WordArray:
80
  Enabled: false # don't force usage of %w()
81

    
82
Metrics/LineLength:
83
  Max: 120
84

    
85
Style/GuardClause:
86
  Enabled: false
87

    
88
Metrics/ClassLength:
89
  Max: 600
90

    
91
Metrics/CyclomaticComplexity:
92
  Enabled: false
93

    
94
Style/StringLiterals:
95
  Enabled: false
96

    
97
Style/SignalException:
98
  EnforcedStyle: semantic