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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/rubocop.yml +28 -5
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '083329e8d7072b5d6646b6ebaea4dc91d2dc6492be98ce3c9f643f1deb466733'
4
- data.tar.gz: a18dd8bc08a18cfcd5923da865fbe4728ba7ab2c4188445c5b734f3598f9bc2c
3
+ metadata.gz: cab74c8ba8cf2dc6274a65203c0e27ab58e687f038c5a8cdd1b2e1b692fd2a94
4
+ data.tar.gz: 119c8bc5fa399b06873e550e124f8c5ae5c5043483f8f85297f459fb17dcbbd5
5
5
  SHA512:
6
- metadata.gz: e7d100a831968f60a4686a3c9a074b83aff6981cd7d6a120bd9276a70caf911ea2baaa32df27541c9f7326ffa145b0e871c5a06b05d19f5feb0844f52ecfd7a7
7
- data.tar.gz: cce46344ec9f7bbbd8021d6685874b2d44f3f7b9fb4db5a41b967e95f1ca70c671e4fea7f4be2b2d0ca9bf7c02ae1a9d300f6b7e755211747f3dce755c31c94b
6
+ metadata.gz: 6baa63db33e31ee914f8f03df5e5a75867ca0b19dd8bdbb2de79dc94bbb1b81f1c7350aa2c016c7e6d709ff0fa641361be50f64cc9dc2f31b0b3151f92051eaf
7
+ data.tar.gz: 9bb7effb6f4176f85e285de8ee675ae9ef2bf3d274e4cc7b7f11f0e6c6954ded24f98d2abfcbc1700ad0b6a486fe8e05e76dd83a1631e78c5b2cb841c2fd927b
@@ -1,7 +1,8 @@
1
1
  ---
2
2
  AllCops:
3
3
  TargetRubyVersion: 2.5
4
- Metrics/LineLength:
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/BracesAroundHashParameters:
85
- # This rule prevents distinguishing between keyword arguments and a hash
86
- # parameter.
87
- Enabled: false
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.2
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: 2018-03-05 00:00:00.000000000 Z
11
+ date: 2020-10-08 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: edge@iknow.jp