-
Notifications
You must be signed in to change notification settings - Fork 18
/
.rubocop.yml
156 lines (114 loc) · 3.67 KB
/
.rubocop.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
AllCops:
Exclude:
- spec/*
- tasks/*
- Rakefile
- Gemfile
- "*.gemspec"
# for disabling the 'Missing magic comment # frozen_string_literal: true' warmning.
Style/FrozenStringLiteralComment:
Enabled: false
# for disabling extra space warning
Layout/ExtraSpacing:
Enabled: false
# for disabling 'Final new line missing' warning.
Layout/TrailingEmptyLines:
Enabled: false
# for disabling 'Carriage return character missing.' warning
Layout/EndOfLine:
Enabled: false
# for disabling the use snake_case for variable
Naming/VariableName:
Enabled: false
# for disabling ' %w-literals should be delimited by [ and ].' warning
Style/PercentLiteralDelimiters:
Enabled: false
# for disabling the warning about 'Only use lowercase characters for block parameter'
Naming/BlockParameterName:
Enabled: false
# for disabling the warning about - 'The closing array brace must be on the same line as the last array element when the opening brace is on the same line as the first array element'
Layout/MultilineArrayBraceLayout:
Enabled: false
# set maximum length for block
Metrics/BlockLength:
Max: 500
# for disabling the warning about - 'Space missing inside the block braces'
Layout/SpaceInsideBlockBraces:
Enabled: false
# set maximum length for Line
Metrics/LineLength:
Max: 500
# remove extra space line warning
Layout/EmptyLinesAroundBlockBody:
Enabled: false
# remove warning about Prefer single-quoted strings when you don't need string interpolation or special symbols.
Style/StringLiterals:
Enabled: false
# set minimum length for method parameter
Naming/MethodParameterName:
MinNameLength: 1
# disable Extra empty line detection
Layout/EmptyLinesAroundClassBody:
Enabled: false
# disable Class length warning
Metrics/ClassLength:
Enabled: false
# disable 'Missing space after #' for comment
Layout/LeadingCommentSpace:
Enabled: false
# do not assign mutable objects to constant,- Disable the warning about Freeze mutable objects assigned to constants.
Style/MutableConstant:
Enabled: false
# set the maximum method length
Metrics/MethodLength:
Max: 40
# disabled warning - 'should be surrounded by a single space'
Layout/SpaceAroundOperators:
Enabled: false
# disable warning about tab
Layout/IndentationStyle:
Enabled: false
# Unnecessary disabling of Metrics/MethodLength
Lint/RedundantCopDisableDirective:
Enabled: false
# Disable the warning about - gem shoul be in alphabetical order
Bundler/OrderedGems:
Enabled: false
# disable warning about trailing whitespaces
Layout/TrailingWhitespace:
Enabled: false
# disable warning about 'Checks style of how access modifiers are used'
Style/AccessModifierDeclarations:
Enabled: false
# disable warning about extra line added in code
Layout/EmptyLines:
Enabled: false
# disable warning about 'Checks for a `# rubocop:enable` after `# rubocop:disable`.'
Lint/MissingCopEnableDirective:
Enabled: false
# disbale warning about 'Add empty line after guard clause.'
Layout/EmptyLineAfterGuardClause:
Enabled: false
# disable warning about 'top level class documentation comment'
Style/Documentation:
Enabled: false
# disable warning about 'Use the new Ruby 1.9 has syntax '
Style/HashSyntax:
Enabled: false
# disable warning about duplicate case
Lint/DuplicateCaseCondition:
Enabled: false
# disable warning about same line comment
Style/CommentedKeyword:
Enabled: false
# diable warning about Indentation width
Layout/IndentationWidth:
Enabled: false
# disable warning about Block alignment
Layout/BlockAlignment:
Enabled: false
# diable warning about Check the naming of accessor methods for get_/set_
Naming/AccessorMethodName:
Enabled: false
Naming/FileName:
Enabled: false