rubocop-iknow 0.0.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 +7 -0
- data/rubocop.yml +167 -0
- metadata +43 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 742ac8922b93772fced03fbdd83cae0348f2fac90a78e508583a20a4890f616e
|
4
|
+
data.tar.gz: 2e181d37ab4e143237e133b4439faf1ac0e750069ee8ff174cfd7d67aa0ea014
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 61976e486ab2beb4e6c2d47d451d4608e5f401979094d13a3eed7c00695bd2ef4cd163b919a74af1845297690dc1b6fe9e1b4b6584f985e7c482ebe5cab1a965
|
7
|
+
data.tar.gz: ab0f10599c1674671ec74f725a577f4887c21cc08a50cafb7fa168419b4a50c93bd4205be9ce715889f82695b0c1b3dd00d6beca1e3d2b47d94adccba4581041
|
data/rubocop.yml
ADDED
@@ -0,0 +1,167 @@
|
|
1
|
+
---
|
2
|
+
AllCops:
|
3
|
+
TargetRubyVersion: 2.5
|
4
|
+
Metrics/LineLength:
|
5
|
+
# Max: 100
|
6
|
+
Enabled: false # Potentially bring this back later
|
7
|
+
Metrics/BlockLength:
|
8
|
+
Enabled: false
|
9
|
+
Style/AsciiComments:
|
10
|
+
Enabled: false
|
11
|
+
Style/Documentation:
|
12
|
+
Enabled: false
|
13
|
+
Style/BlockDelimiters:
|
14
|
+
Enabled: false
|
15
|
+
Style/TernaryParentheses:
|
16
|
+
Enabled: false
|
17
|
+
Style/RedundantReturn:
|
18
|
+
Enabled: false
|
19
|
+
Style/RedundantSelf:
|
20
|
+
Enabled: false
|
21
|
+
Style/GuardClause:
|
22
|
+
Enabled: false
|
23
|
+
Style/IfUnlessModifier:
|
24
|
+
Enabled: false
|
25
|
+
Style/WhileUntilModifier:
|
26
|
+
Enabled: false
|
27
|
+
Style/RaiseArgs:
|
28
|
+
EnforcedStyle: compact
|
29
|
+
Style/RedundantException:
|
30
|
+
Enabled: false
|
31
|
+
Style/SpecialGlobalVars:
|
32
|
+
Enabled: false
|
33
|
+
Style/EmptyCaseCondition:
|
34
|
+
Enabled: false
|
35
|
+
Style/RedundantCondition:
|
36
|
+
Enabled: false
|
37
|
+
Metrics/AbcSize:
|
38
|
+
Enabled: false
|
39
|
+
Metrics/MethodLength:
|
40
|
+
Enabled: false
|
41
|
+
Metrics/CyclomaticComplexity:
|
42
|
+
Enabled: false
|
43
|
+
Metrics/PerceivedComplexity:
|
44
|
+
Enabled: false
|
45
|
+
Metrics/ClassLength:
|
46
|
+
Enabled: false
|
47
|
+
Metrics/ModuleLength:
|
48
|
+
Enabled: false
|
49
|
+
Style/Lambda:
|
50
|
+
Enabled: false
|
51
|
+
Style/LambdaCall:
|
52
|
+
Enabled: false
|
53
|
+
Style/MultilineBlockChain:
|
54
|
+
Enabled: false
|
55
|
+
Style/WordArray:
|
56
|
+
Enabled: false
|
57
|
+
Style/SymbolArray:
|
58
|
+
Enabled: false
|
59
|
+
Style/PreferredHashMethods:
|
60
|
+
EnforcedStyle: verbose
|
61
|
+
Metrics/ParameterLists:
|
62
|
+
Enabled: false
|
63
|
+
Layout/MultilineMethodCallIndentation:
|
64
|
+
# Cannot be configured to indent relative to expression.
|
65
|
+
Enabled: false
|
66
|
+
Style/RescueModifier:
|
67
|
+
# I can see valid uses for this but they're far and few between.
|
68
|
+
# That said, nobody in our team is going to use one of these unless
|
69
|
+
# it's a valid case
|
70
|
+
Enabled: false
|
71
|
+
Lint/UnusedMethodArgument:
|
72
|
+
AllowUnusedKeywordArguments: true
|
73
|
+
IgnoreEmptyMethods: true
|
74
|
+
Lint/EmptyWhen:
|
75
|
+
Enabled: false
|
76
|
+
Style/ClassAndModuleChildren:
|
77
|
+
Enabled: false
|
78
|
+
Style/NonNilCheck:
|
79
|
+
Enabled: false
|
80
|
+
Style/HashSyntax:
|
81
|
+
# We explicitly choose to use rocket style syntax when the Hash is being used
|
82
|
+
# to represent some other sort of data structure (trees, pairs, etc).
|
83
|
+
Enabled: false
|
84
|
+
Style/BracesAroundHashParameters:
|
85
|
+
# This rule prevents distinguishing between keyword arguments and a hash
|
86
|
+
# parameter.
|
87
|
+
Enabled: false
|
88
|
+
Layout/IndentFirstArgument:
|
89
|
+
# This forbids indentation relative to the expression
|
90
|
+
Enabled: false
|
91
|
+
Style/SafeNavigation:
|
92
|
+
Enabled: false
|
93
|
+
Layout/EmptyLinesAroundExceptionHandlingKeywords:
|
94
|
+
Enabled: false
|
95
|
+
Layout/SpaceInsideRangeLiteral:
|
96
|
+
Enabled: false
|
97
|
+
Style/SymbolProc:
|
98
|
+
Enabled: false
|
99
|
+
Lint/ParenthesesAsGroupedExpression:
|
100
|
+
Enabled: false
|
101
|
+
Style/EmptyElse:
|
102
|
+
Enabled: false
|
103
|
+
Style/NumericLiterals:
|
104
|
+
Enabled: false
|
105
|
+
Style/NumericPredicate:
|
106
|
+
Enabled: false
|
107
|
+
Style/TrailingCommaInArrayLiteral:
|
108
|
+
EnforcedStyleForMultiline: consistent_comma
|
109
|
+
Style/TrailingCommaInHashLiteral:
|
110
|
+
EnforcedStyleForMultiline: comma
|
111
|
+
Style/TrailingCommaInArguments:
|
112
|
+
EnforcedStyleForMultiline: comma
|
113
|
+
Style/SymbolLiteral:
|
114
|
+
Enabled: false
|
115
|
+
Naming/AccessorMethodName:
|
116
|
+
Enabled: false
|
117
|
+
Naming/UncommunicativeMethodParamName:
|
118
|
+
Enabled: false
|
119
|
+
Naming/VariableNumber:
|
120
|
+
Enabled: false
|
121
|
+
Naming/PredicateName:
|
122
|
+
NamePrefix: ['is_']
|
123
|
+
Style/SingleLineMethods:
|
124
|
+
Enabled: false
|
125
|
+
Style/CommentedKeyword:
|
126
|
+
Enabled: false
|
127
|
+
|
128
|
+
Layout/AlignHash:
|
129
|
+
EnforcedHashRocketStyle:
|
130
|
+
- table
|
131
|
+
- key
|
132
|
+
EnforcedColonStyle:
|
133
|
+
- table
|
134
|
+
- key
|
135
|
+
|
136
|
+
Style/ClassVars:
|
137
|
+
# Class vars are usually bad practice. Not universally.
|
138
|
+
Enabled: false
|
139
|
+
|
140
|
+
Layout/MultilineMethodDefinitionBraceLayout:
|
141
|
+
# None of their options are lovely
|
142
|
+
Enabled: false
|
143
|
+
|
144
|
+
Style/StringLiterals:
|
145
|
+
Enabled: true
|
146
|
+
Style/StringLiteralsInInterpolation:
|
147
|
+
Enabled: true
|
148
|
+
|
149
|
+
Lint/AmbiguousBlockAssociation:
|
150
|
+
# In practise this rule seems overly restrictive for
|
151
|
+
# DSLs like RSpec that avoid parens.
|
152
|
+
Enabled: false
|
153
|
+
|
154
|
+
Lint/ShadowingOuterLocalVariable:
|
155
|
+
# I like this rule, but can see arguments against it
|
156
|
+
Enabled: true
|
157
|
+
|
158
|
+
# Rules for formatting hash and method call braces: let's avoid these unless we
|
159
|
+
# can find something unambiguously positive.
|
160
|
+
Layout/MultilineMethodCallBraceLayout:
|
161
|
+
Enabled: false
|
162
|
+
Layout/MultilineHashBraceLayout:
|
163
|
+
Enabled: false
|
164
|
+
Layout/IndentFirstHashElement:
|
165
|
+
# This one in particular forbids what Emacs does by default for multi-line
|
166
|
+
# hash entries
|
167
|
+
Enabled: false
|
metadata
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: rubocop-iknow
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- iKnow Team
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2018-03-05 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description:
|
14
|
+
email: edge@iknow.jp
|
15
|
+
executables: []
|
16
|
+
extensions: []
|
17
|
+
extra_rdoc_files: []
|
18
|
+
files:
|
19
|
+
- rubocop.yml
|
20
|
+
homepage: https://github.com/iknow/rubocop-iknow
|
21
|
+
licenses:
|
22
|
+
- MIT
|
23
|
+
metadata: {}
|
24
|
+
post_install_message:
|
25
|
+
rdoc_options: []
|
26
|
+
require_paths:
|
27
|
+
- lib
|
28
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
29
|
+
requirements:
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
33
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
34
|
+
requirements:
|
35
|
+
- - ">="
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
requirements: []
|
39
|
+
rubygems_version: 3.0.3
|
40
|
+
signing_key:
|
41
|
+
specification_version: 4
|
42
|
+
summary: Rubocop Configuration used with iKnow Projects
|
43
|
+
test_files: []
|