Project

General

Profile

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

hammer-cli-csv / .rubocop.yml @ f8ecc788

1

    
2
LineLength:
3
  Max: 200
4

    
5
ParameterLists:
6
  Max: 10
7

    
8
CollectionMethods:
9
  PreferredMethods:
10
    map: collect
11

    
12
SignalException:
13
  Enabled: false
14

    
15
StringLiterals:
16
  Enabled: true
17

    
18
SpaceAroundBlockBraces:
19
  Enabled: true
20

    
21
BlockNesting:
22
  Enabled: 4
23

    
24
ClassLength:
25
  Enabled: false
26

    
27
IndentationWidth:
28
  Enabled: 2
29

    
30
EmptyLinesAroundBody:
31
  Enabled: true
32

    
33
Output:
34
  Enabled: false
35

    
36
CyclomaticComplexity:
37
  Enabled: false
38

    
39
BracesAroundHashParameters:
40
  Enabled: false
41

    
42
AlignHash:
43
  Enabled: true
44

    
45
IndentationConsistency:
46
  Enabled: true
47

    
48
TrailingComma:
49
  Enabled: true
50

    
51
ConditionPosition:
52
  Enabled: true
53

    
54
AccessorMethodName:
55
  Enabled: true
56

    
57
AllCops:
58
  RunRailsCops: true # automatically run rails cops
59
  Excludes:
60
    - script/rails
61
    - script/thin
62
    - db/migrate/20131014135042_katello_tables.rb
63
    - engines/bastion/node_modules/**
64
    - engines/bastion/vendor/assets/dev-components/**
65
    # TODO: remove these other paths as we fix them
66
    - spec/**
67
    - test/**
68
    - config/navigation.rb
69

    
70
MethodLength:
71
  Max: 250
72

    
73
SpaceInsideHashLiteralBraces:
74
  EnforcedStyleIsWithSpaces: false
75

    
76
HashSyntax:
77
  Enabled: false # don't force 1.9 hash syntax
78

    
79
SpaceInsideHashLiteralBraces:
80
  Enabled: false # allow spaces (eg { :a => 1 })
81

    
82
LeadingCommentSpace:
83
  Enabled: false
84

    
85
IfUnlessModifier:
86
  Enabled: false
87

    
88
RescueModifier:
89
  Enabled: false
90

    
91
AssignmentInCondition:
92
  Enabled: false
93

    
94
FavorUnlessOverNegatedIf:
95
  Enabled: false
96

    
97
WhileUntilModifier:
98
  Enabled: false
99

    
100
AlignParameters:
101
  Enabled: false # don't care if parameters are not aligned
102

    
103
ParenthesesAroundCondition:
104
  Enabled: false
105

    
106
DotPosition:
107
  Enabled: false
108

    
109
Lambda:
110
  Enabled: false # don't require -> for single line lambdas
111

    
112
FavorSprintf:
113
  Enabled: false # we use % for i18n
114

    
115
RedundantSelf:
116
  Enabled: false
117

    
118
RedundantReturn:
119
  Enabled: false
120

    
121
SpaceInsideHashLiteralBraces:
122
  Enabled: false # we allow spaces inside hash brackets
123

    
124
Documentation:
125
  Enabled: false # don't require documentation
126

    
127
Encoding:
128
  Enabled: false # don't require utf-8 encoding on every file
129

    
130
MethodCalledOnDoEndBlock:
131
  Enabled: true
132

    
133
SingleLineBlockParams:
134
  Enabled: false
135

    
136
NumericLiterals:
137
  Enabled: false