rubocop-rootstrap 0.1.0 → 1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2912f1055344a69127b4794da099e9e6ffdbdb65ed7b6845727bd772975dd6ce
4
- data.tar.gz: '08e8ac5e626b862f2c0e2285634ec6214dae864d75bff4da8353191aa68c9ea9'
3
+ metadata.gz: 0a3dc4920d0791c4669d9ddc2b259548989e94305559151b7a1178f31b553f6c
4
+ data.tar.gz: 8dd881ab78d98140e5bfb2a8df7cade5e2cdf8392aec29dbf9cc93af4dee1222
5
5
  SHA512:
6
- metadata.gz: 70dfbc8b8e179ece1c1148aad211e3fb1cb3dfe292f3b7ed249ad75389e64d0885b970bd235ae4104a5b25d662211a28f10335c2fa3b1d01b9f5fdc4d12fb754
7
- data.tar.gz: 2371c2350ae469632e6bd3fcfef34c38724584d64707c4f678bb02114376cccf041a3ce002308804f0e0ca5b8e92c6f98d1223b2e766372dde1bddc737c0c12e
6
+ metadata.gz: dc97b48ad578eeb8de60c6b34f3e0986139ec63ff5089cac65520ed64f97012b26b94fee759416d20e631224214de5ca00fd868cc6647b5fbdc6114542aba78f
7
+ data.tar.gz: b4f5ba52341740ec503ee2d10c05b7acf98b7b5bd5cd64b5909e4647095d0c5690cfd3f235c71dbbbe41109b0fe0448dfc71052dc89e8e399cde0323bdb44afb
@@ -1,8 +1,11 @@
1
- Documentation:
2
- Enabled: false
3
-
4
- Layout/ClassStructure:
5
- Enabled: true
1
+ Layout/LineLength:
2
+ Max: 100
3
+ # To make it possible to copy or click on URIs in the code, we allow lines
4
+ # containing a URI to be longer than Max.
5
+ AllowURI: true
6
+ URISchemes:
7
+ - http
8
+ - https
6
9
 
7
10
  Lint/AmbiguousBlockAssociation:
8
11
  Exclude:
@@ -12,10 +15,14 @@ Metrics/AbcSize:
12
15
  # The ABC size is a calculated magnitude, so this number can be an Integer or
13
16
  # a Float.
14
17
  Max: 15
18
+ Exclude:
19
+ - db/migrate/**/*
15
20
 
16
21
  Metrics/BlockLength:
17
22
  CountComments: false
18
23
  Max: 25
24
+ Exclude:
25
+ - spec/**/*
19
26
 
20
27
  Metrics/BlockNesting:
21
28
  Max: 4
@@ -36,15 +43,6 @@ Metrics/ModuleLength:
36
43
  CountComments: false
37
44
  Max: 200
38
45
 
39
- Metrics/LineLength:
40
- Max: 100
41
- # To make it possible to copy or click on URIs in the code, we allow lines
42
- # containing a URI to be longer than Max.
43
- AllowURI: true
44
- URISchemes:
45
- - http
46
- - https
47
-
48
46
  Metrics/ParameterLists:
49
47
  Max: 5
50
48
  CountKeywordArgs: true
@@ -55,6 +53,9 @@ Metrics/PerceivedComplexity:
55
53
  Style/BlockDelimiters:
56
54
  EnforcedStyle: braces_for_chaining
57
55
 
56
+ Style/Documentation:
57
+ Enabled: false
58
+
58
59
  Style/ExpandPathArguments:
59
60
  Enabled: false
60
61
 
@@ -1,31 +1,121 @@
1
1
  inherit_from: default.yml
2
2
 
3
+ AllCops:
4
+ NewCops: enable
5
+
6
+ Layout/ClassStructure:
7
+ Enabled: true
8
+
3
9
  Layout/EmptyLinesAroundAttributeAccessor:
4
10
  Enabled: true
5
11
 
6
12
  Layout/SpaceAroundMethodCallOperator:
7
13
  Enabled: true
8
14
 
15
+ Lint/BinaryOperatorWithIdenticalOperands:
16
+ Enabled: false
17
+
9
18
  Lint/DeprecatedOpenSSLConstant:
19
+ Enabled: false
20
+
21
+ Lint/DuplicateElsifCondition:
22
+ Enabled: true
23
+
24
+ Lint/DuplicateRescueException:
25
+ Enabled: true
26
+
27
+ Lint/EmptyConditionalBody:
28
+ Enabled: true
29
+
30
+ Lint/FloatComparison:
31
+ Enabled: true
32
+
33
+ Lint/MissingSuper:
10
34
  Enabled: true
11
35
 
12
36
  Lint/MixedRegexpCaptureTypes:
13
37
  Enabled: true
14
38
 
39
+ Lint/OutOfRangeRegexpRef:
40
+ Enabled: true
41
+
15
42
  Lint/RaiseException:
43
+ Enabled: false
44
+
45
+ Lint/SelfAssignment:
16
46
  Enabled: true
17
47
 
18
48
  Lint/StructNewOverride:
19
49
  Enabled: true
20
50
 
51
+ Lint/TopLevelReturnWithArgument:
52
+ Enabled: true
53
+
54
+ Lint/UnreachableLoop:
55
+ Enabled: true
56
+
57
+ Style/AccessorGrouping:
58
+ Enabled: true
59
+ EnforcedStyle: grouped
60
+
61
+ Style/ArrayCoercion:
62
+ Enabled: true
63
+
64
+ Style/BisectedAttrAccessor:
65
+ Enabled: true
66
+
67
+ Style/CaseLikeIf:
68
+ Enabled: true
69
+
70
+ Style/ExplicitBlockArgument:
71
+ Enabled: true
72
+
21
73
  Style/ExponentialNotation:
74
+ Enabled: true
75
+ EnforcedStyle: scientific
76
+
77
+ Style/GlobalStdStream:
22
78
  Enabled: false
23
79
 
24
- Style/RedundantRegexpCharacterClass:
80
+ Style/HashAsLastArrayItem:
25
81
  Enabled: true
26
82
 
27
- Style/RedundantRegexpEscape:
83
+ Style/HashLikeCase:
84
+ Enabled: true
85
+ MinBranchesCount: 4
86
+
87
+ Style/HashEachMethods:
88
+ Enabled: false
89
+
90
+ Style/HashTransformKeys:
91
+ Enabled: false
92
+
93
+ Style/HashTransformValues:
94
+ Enabled: false
95
+
96
+ Style/OptionalBooleanParameter:
97
+ Enabled: true
98
+
99
+ Style/RedundantAssignment:
100
+ Enabled: true
101
+
102
+ Style/RedundantFetchBlock:
103
+ Enabled: false
104
+
105
+ Style/RedundantFileExtensionInRequire:
106
+ Enabled: false
107
+
108
+ Style/RedundantRegexpCharacterClass:
28
109
  Enabled: false
29
110
 
111
+ Style/RedundantRegexpEscape:
112
+ Enabled: true
113
+
114
+ Style/SingleArgumentDig:
115
+ Enabled: true
116
+
30
117
  Style/SlicingWithRange:
31
118
  Enabled: false
119
+
120
+ Style/StringConcatenation:
121
+ Enabled: false
metadata CHANGED
@@ -1,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-rootstrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: '1.2'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rootstrap
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-07-02 00:00:00.000000000 Z
11
+ date: 2020-12-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0.72'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '2'
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
25
28
  - !ruby/object:Gem::Version
26
29
  version: '0.72'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '2'
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: rake
29
35
  requirement: !ruby/object:Gem::Requirement
@@ -80,12 +86,11 @@ files:
80
86
  - config/default_rails.yml
81
87
  - config/rails.yml
82
88
  - config/rails_edge.yml
83
- - lib/rubocop/cop/rootstrap.rb
84
89
  homepage: https://github.com/rootstrap/rubocop-rootstrap
85
90
  licenses:
86
91
  - MIT
87
92
  metadata: {}
88
- post_install_message:
93
+ post_install_message:
89
94
  rdoc_options: []
90
95
  require_paths:
91
96
  - lib
@@ -93,15 +98,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
93
98
  requirements:
94
99
  - - ">="
95
100
  - !ruby/object:Gem::Version
96
- version: '0'
101
+ version: 2.4.0
97
102
  required_rubygems_version: !ruby/object:Gem::Requirement
98
103
  requirements:
99
104
  - - ">="
100
105
  - !ruby/object:Gem::Version
101
106
  version: '0'
102
107
  requirements: []
103
- rubygems_version: 3.1.2
104
- signing_key:
108
+ rubygems_version: 3.2.0
109
+ signing_key:
105
110
  specification_version: 4
106
111
  summary: RuboCop Rootstrap
107
112
  test_files: []
File without changes