rubocop-iknow 0.0.2 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/rubocop.yml +28 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cab74c8ba8cf2dc6274a65203c0e27ab58e687f038c5a8cdd1b2e1b692fd2a94
|
4
|
+
data.tar.gz: 119c8bc5fa399b06873e550e124f8c5ae5c5043483f8f85297f459fb17dcbbd5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6baa63db33e31ee914f8f03df5e5a75867ca0b19dd8bdbb2de79dc94bbb1b81f1c7350aa2c016c7e6d709ff0fa641361be50f64cc9dc2f31b0b3151f92051eaf
|
7
|
+
data.tar.gz: 9bb7effb6f4176f85e285de8ee675ae9ef2bf3d274e4cc7b7f11f0e6c6954ded24f98d2abfcbc1700ad0b6a486fe8e05e76dd83a1631e78c5b2cb841c2fd927b
|
data/rubocop.yml
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
---
|
2
2
|
AllCops:
|
3
3
|
TargetRubyVersion: 2.5
|
4
|
-
|
4
|
+
NewCops: enable
|
5
|
+
Layout/LineLength:
|
5
6
|
# Max: 100
|
6
7
|
Enabled: false # Potentially bring this back later
|
7
8
|
Metrics/BlockLength:
|
@@ -68,11 +69,20 @@ Style/RescueModifier:
|
|
68
69
|
# That said, nobody in our team is going to use one of these unless
|
69
70
|
# it's a valid case
|
70
71
|
Enabled: false
|
72
|
+
Style/ExplicitBlockArgument:
|
73
|
+
# This goes too far by demanding expensive block allocation always
|
74
|
+
Enabled: false
|
75
|
+
Lint/UnusedBlockArgument:
|
76
|
+
AllowUnusedKeywordArguments: true
|
71
77
|
Lint/UnusedMethodArgument:
|
72
78
|
AllowUnusedKeywordArguments: true
|
73
79
|
IgnoreEmptyMethods: true
|
74
80
|
Lint/EmptyWhen:
|
75
81
|
Enabled: false
|
82
|
+
Lint/RaiseException:
|
83
|
+
Enabled: true
|
84
|
+
Lint/StructNewOverride:
|
85
|
+
Enabled: false
|
76
86
|
Style/ClassAndModuleChildren:
|
77
87
|
Enabled: false
|
78
88
|
Style/NonNilCheck:
|
@@ -81,10 +91,12 @@ Style/HashSyntax:
|
|
81
91
|
# We explicitly choose to use rocket style syntax when the Hash is being used
|
82
92
|
# to represent some other sort of data structure (trees, pairs, etc).
|
83
93
|
Enabled: false
|
84
|
-
Style/
|
85
|
-
|
86
|
-
|
87
|
-
Enabled:
|
94
|
+
Style/HashEachMethods:
|
95
|
+
Enabled: true
|
96
|
+
Style/HashTransformKeys:
|
97
|
+
Enabled: true
|
98
|
+
Style/HashTransformValues:
|
99
|
+
Enabled: true
|
88
100
|
Layout/FirstArgumentIndentation:
|
89
101
|
# This forbids indentation relative to the expression
|
90
102
|
Enabled: false
|
@@ -110,8 +122,17 @@ Style/TrailingCommaInHashLiteral:
|
|
110
122
|
EnforcedStyleForMultiline: comma
|
111
123
|
Style/TrailingCommaInArguments:
|
112
124
|
EnforcedStyleForMultiline: comma
|
125
|
+
Style/TrailingUnderscoreVariable:
|
126
|
+
# I think this does more harm than good by hiding the array destructuring
|
127
|
+
Enabled: false
|
113
128
|
Style/SymbolLiteral:
|
114
129
|
Enabled: false
|
130
|
+
Style/KeywordParametersOrder:
|
131
|
+
Enabled: false
|
132
|
+
Style/StringConcatenation:
|
133
|
+
Enabled: false
|
134
|
+
Style/AccessorGrouping:
|
135
|
+
Enabled: false
|
115
136
|
Naming/AccessorMethodName:
|
116
137
|
Enabled: false
|
117
138
|
Naming/MethodParameterName:
|
@@ -120,6 +141,8 @@ Naming/VariableNumber:
|
|
120
141
|
Enabled: false
|
121
142
|
Naming/PredicateName:
|
122
143
|
NamePrefix: ['is_']
|
144
|
+
Naming/RescuedExceptionsVariableName:
|
145
|
+
Enabled: false
|
123
146
|
Style/SingleLineMethods:
|
124
147
|
Enabled: false
|
125
148
|
Style/CommentedKeyword:
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubocop-iknow
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- iKnow Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-10-08 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email: edge@iknow.jp
|