gatemedia_rubocop 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/config/ruby/2.4/rubocop/0.49/default.yml +1548 -0
- data/config/ruby/2.4/rubocop/0.49/disabled.yml +126 -0
- data/config/ruby/2.4/rubocop/0.49/enabled.yml +1746 -0
- data/lib/gatemedia_rubocop/version.rb +1 -1
- metadata +5 -2
@@ -0,0 +1,126 @@
|
|
1
|
+
# These are all the cops that are disabled in the default configuration.
|
2
|
+
|
3
|
+
Layout/FirstArrayElementLineBreak:
|
4
|
+
Description: >-
|
5
|
+
Checks for a line break before the first element in a
|
6
|
+
multi-line array.
|
7
|
+
Enabled: false
|
8
|
+
|
9
|
+
Layout/FirstHashElementLineBreak:
|
10
|
+
Description: >-
|
11
|
+
Checks for a line break before the first element in a
|
12
|
+
multi-line hash.
|
13
|
+
Enabled: false
|
14
|
+
|
15
|
+
Layout/FirstMethodArgumentLineBreak:
|
16
|
+
Description: >-
|
17
|
+
Checks for a line break before the first argument in a
|
18
|
+
multi-line method call.
|
19
|
+
Enabled: false
|
20
|
+
|
21
|
+
Layout/FirstMethodParameterLineBreak:
|
22
|
+
Description: >-
|
23
|
+
Checks for a line break before the first parameter in a
|
24
|
+
multi-line method parameter definition.
|
25
|
+
Enabled: false
|
26
|
+
|
27
|
+
Layout/MultilineAssignmentLayout:
|
28
|
+
Description: 'Check for a newline after the assignment operator in multi-line assignments.'
|
29
|
+
StyleGuide: '#indent-conditional-assignment'
|
30
|
+
Enabled: false
|
31
|
+
|
32
|
+
# By default, the rails cops are not run. Override in project or home
|
33
|
+
# directory .rubocop.yml files, or by giving the -R/--rails option.
|
34
|
+
Rails:
|
35
|
+
Enabled: false
|
36
|
+
|
37
|
+
Rails/SaveBang:
|
38
|
+
Description: 'Identifies possible cases where Active Record save! or related should be used.'
|
39
|
+
StyleGuide: 'https://github.com/bbatsov/rails-style-guide#save-bang'
|
40
|
+
Enabled: false
|
41
|
+
|
42
|
+
Style/AutoResourceCleanup:
|
43
|
+
Description: 'Suggests the usage of an auto resource cleanup version of a method (if available).'
|
44
|
+
Enabled: false
|
45
|
+
|
46
|
+
Style/CollectionMethods:
|
47
|
+
Description: 'Preferred collection methods.'
|
48
|
+
StyleGuide: '#map-find-select-reduce-size'
|
49
|
+
Enabled: false
|
50
|
+
|
51
|
+
Style/Copyright:
|
52
|
+
Description: 'Include a copyright notice in each file before any code.'
|
53
|
+
Enabled: false
|
54
|
+
|
55
|
+
Style/Documentation:
|
56
|
+
Description: 'Document classes and non-namespace modules.'
|
57
|
+
Enabled: false
|
58
|
+
Exclude:
|
59
|
+
- 'spec/**/*'
|
60
|
+
- 'test/**/*'
|
61
|
+
|
62
|
+
Style/DocumentationMethod:
|
63
|
+
Description: 'Public methods.'
|
64
|
+
Enabled: false
|
65
|
+
Exclude:
|
66
|
+
- 'spec/**/*'
|
67
|
+
- 'test/**/*'
|
68
|
+
|
69
|
+
Style/Encoding:
|
70
|
+
Description: 'Use UTF-8 as the source file encoding.'
|
71
|
+
StyleGuide: '#utf-8'
|
72
|
+
Enabled: false
|
73
|
+
|
74
|
+
Style/ImplicitRuntimeError:
|
75
|
+
Description: >-
|
76
|
+
Use `raise` or `fail` with an explicit exception class and
|
77
|
+
message, rather than just a message.
|
78
|
+
Enabled: false
|
79
|
+
|
80
|
+
Style/InlineComment:
|
81
|
+
Description: 'Avoid trailing inline comments.'
|
82
|
+
Enabled: false
|
83
|
+
|
84
|
+
Style/MethodCallWithArgsParentheses:
|
85
|
+
Description: 'Use parentheses for method calls with arguments.'
|
86
|
+
StyleGuide: '#method-invocation-parens'
|
87
|
+
Enabled: false
|
88
|
+
|
89
|
+
Style/MethodCalledOnDoEndBlock:
|
90
|
+
Description: 'Avoid chaining a method call on a do...end block.'
|
91
|
+
StyleGuide: '#single-line-blocks'
|
92
|
+
Enabled: false
|
93
|
+
|
94
|
+
Style/MissingElse:
|
95
|
+
Description: >-
|
96
|
+
Require if/case expressions to have an else branches.
|
97
|
+
If enabled, it is recommended that
|
98
|
+
Style/UnlessElse and Style/EmptyElse be enabled.
|
99
|
+
This will conflict with Style/EmptyElse if
|
100
|
+
Style/EmptyElse is configured to style "both"
|
101
|
+
Enabled: false
|
102
|
+
EnforcedStyle: both
|
103
|
+
SupportedStyles:
|
104
|
+
# if - warn when an if expression is missing an else branch
|
105
|
+
# case - warn when a case expression is missing an else branch
|
106
|
+
# both - warn when an if or case expression is missing an else branch
|
107
|
+
- if
|
108
|
+
- case
|
109
|
+
- both
|
110
|
+
|
111
|
+
Style/OptionHash:
|
112
|
+
Description: "Don't use option hashes when you can use keyword arguments."
|
113
|
+
Enabled: false
|
114
|
+
|
115
|
+
Style/Send:
|
116
|
+
Description: 'Prefer `Object#__send__` or `Object#public_send` to `send`, as `send` may overlap with existing methods.'
|
117
|
+
StyleGuide: '#prefer-public-send'
|
118
|
+
Enabled: false
|
119
|
+
|
120
|
+
Style/StringMethods:
|
121
|
+
Description: 'Checks if configured preferred methods are used over non-preferred.'
|
122
|
+
Enabled: false
|
123
|
+
|
124
|
+
Style/SingleLineBlockParams:
|
125
|
+
Description: 'Enforces the names of some block params.'
|
126
|
+
Enabled: false
|