silvercop 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +0 -5
- data/config/default.yml +37 -28
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 852ef35bae8abe1459190817d9841ea648fbb37f
|
4
|
+
data.tar.gz: 89d2b86d9485c6f4e451accc1dfabed9810df5ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 06427cca55fe38d6be48c588358c80b147b075c38cb6d4689eb83a91d3c9588a8d08dd26606e96215213bd6a6532b1506faf0d5c9218ab4ef8b7dff499622907
|
7
|
+
data.tar.gz: '097c3136d48c5d226074aa9ecbcab6fe6b587aa204e555fdd2bd5e1176155c5e4b4402cb881636a84d7d9ed4d2c524e0438596d553eadc9a600da7b584c6bdfd'
|
data/README.md
CHANGED
@@ -2,11 +2,6 @@
|
|
2
2
|
|
3
3
|
This gem houses RuboCop configuration files to be included in Silvercar Ruby projects.
|
4
4
|
|
5
|
-
## Known Issues
|
6
|
-
There's a typo in rubocop 0.77 that gives an invalid warning, which can be ignored.
|
7
|
-
|
8
|
-
Warning: Style/TrivialAccessors does not support AllowedMethods parameter.
|
9
|
-
|
10
5
|
## Usage
|
11
6
|
|
12
7
|
Add to gemfile:
|
data/config/default.yml
CHANGED
@@ -1,8 +1,5 @@
|
|
1
|
-
# This file was copied directly from https://github.com/rubocop-hq/rubocop/blob/v0.68.1/config/default.yml
|
2
|
-
# That means it has more configuration than it needs, but it's easier to copy and paste into new versions
|
3
|
-
# since we're just adopting everything in the new version.
|
4
|
-
|
5
1
|
# Common configuration.
|
2
|
+
|
6
3
|
AllCops:
|
7
4
|
RubyInterpreters:
|
8
5
|
- ruby
|
@@ -62,6 +59,7 @@ AllCops:
|
|
62
59
|
- '**/Vagrantfile'
|
63
60
|
Exclude:
|
64
61
|
- 'node_modules/**/*'
|
62
|
+
- 'tmp/**/*'
|
65
63
|
- 'vendor/**/*'
|
66
64
|
- '.git/**/*'
|
67
65
|
# Default formatter will be used if no `-f/--format` option is given.
|
@@ -199,9 +197,10 @@ Gemspec/RequiredRubyVersion:
|
|
199
197
|
VersionAdded: '0.52'
|
200
198
|
Include:
|
201
199
|
- '**/*.gemspec'
|
202
|
-
|
200
|
+
|
203
201
|
Gemspec/RubyVersionGlobalsUsage:
|
204
202
|
Description: Checks usage of RUBY_VERSION in gemspec.
|
203
|
+
StyleGuide: '#no-ruby-version-in-the-gemspec'
|
205
204
|
Enabled: true
|
206
205
|
VersionAdded: '0.72'
|
207
206
|
Include:
|
@@ -802,6 +801,29 @@ Layout/LeadingEmptyLines:
|
|
802
801
|
VersionAdded: '0.57'
|
803
802
|
VersionChanged: '0.77'
|
804
803
|
|
804
|
+
Layout/LineLength:
|
805
|
+
Description: 'Limit lines to 80 characters.'
|
806
|
+
StyleGuide: '#80-character-limits'
|
807
|
+
Enabled: true
|
808
|
+
VersionAdded: '0.25'
|
809
|
+
VersionChanged: '0.78'
|
810
|
+
AutoCorrect: false
|
811
|
+
Max: 80
|
812
|
+
# To make it possible to copy or click on URIs in the code, we allow lines
|
813
|
+
# containing a URI to be longer than Max.
|
814
|
+
AllowHeredoc: true
|
815
|
+
AllowURI: true
|
816
|
+
URISchemes:
|
817
|
+
- http
|
818
|
+
- https
|
819
|
+
# The IgnoreCopDirectives option causes the LineLength rule to ignore cop
|
820
|
+
# directives like '# rubocop: enable ...' when calculating a line's length.
|
821
|
+
IgnoreCopDirectives: true
|
822
|
+
# The IgnoredPatterns option is a list of !ruby/regexp and/or string
|
823
|
+
# elements. Strings will be converted to Regexp objects. A line that matches
|
824
|
+
# any regular expression listed in this option will be ignored by LineLength.
|
825
|
+
IgnoredPatterns: []
|
826
|
+
|
805
827
|
Layout/MultilineArrayBraceLayout:
|
806
828
|
Description: >-
|
807
829
|
Checks that the closing brace in an array literal is
|
@@ -1045,6 +1067,10 @@ Layout/SpaceAroundOperators:
|
|
1045
1067
|
# with an operator on the previous or next line, not counting empty lines
|
1046
1068
|
# or comment lines.
|
1047
1069
|
AllowForAlignment: true
|
1070
|
+
EnforcedStyleForExponentOperator: no_space
|
1071
|
+
SupportedStylesForExponentOperator:
|
1072
|
+
- space
|
1073
|
+
- no_space
|
1048
1074
|
|
1049
1075
|
Layout/SpaceBeforeBlockBraces:
|
1050
1076
|
Description: >-
|
@@ -1474,6 +1500,12 @@ Lint/NextWithoutAccumulator:
|
|
1474
1500
|
Enabled: true
|
1475
1501
|
VersionAdded: '0.36'
|
1476
1502
|
|
1503
|
+
Lint/NonDeterministicRequireOrder:
|
1504
|
+
Description: 'Always sort arrays returned by Dir.glob when requiring files.'
|
1505
|
+
Enabled: true
|
1506
|
+
VersionAdded: '0.78'
|
1507
|
+
Safe: false
|
1508
|
+
|
1477
1509
|
Lint/NonLocalExitFromIterator:
|
1478
1510
|
Description: 'Do not use return in iterator to cause non-local exit.'
|
1479
1511
|
Enabled: true
|
@@ -1812,29 +1844,6 @@ Metrics/CyclomaticComplexity:
|
|
1812
1844
|
VersionAdded: '0.25'
|
1813
1845
|
Max: 6
|
1814
1846
|
|
1815
|
-
Metrics/LineLength:
|
1816
|
-
Description: 'Limit lines to 80 characters.'
|
1817
|
-
StyleGuide: '#80-character-limits'
|
1818
|
-
Enabled: true
|
1819
|
-
VersionAdded: '0.25'
|
1820
|
-
VersionChanged: '0.68'
|
1821
|
-
AutoCorrect: false
|
1822
|
-
Max: 80
|
1823
|
-
# To make it possible to copy or click on URIs in the code, we allow lines
|
1824
|
-
# containing a URI to be longer than Max.
|
1825
|
-
AllowHeredoc: true
|
1826
|
-
AllowURI: true
|
1827
|
-
URISchemes:
|
1828
|
-
- http
|
1829
|
-
- https
|
1830
|
-
# The IgnoreCopDirectives option causes the LineLength rule to ignore cop
|
1831
|
-
# directives like '# rubocop: enable ...' when calculating a line's length.
|
1832
|
-
IgnoreCopDirectives: true
|
1833
|
-
# The IgnoredPatterns option is a list of !ruby/regexp and/or string
|
1834
|
-
# elements. Strings will be converted to Regexp objects. A line that matches
|
1835
|
-
# any regular expression listed in this option will be ignored by LineLength.
|
1836
|
-
IgnoredPatterns: []
|
1837
|
-
|
1838
1847
|
Metrics/MethodLength:
|
1839
1848
|
Description: 'Avoid methods longer than 10 lines of code.'
|
1840
1849
|
StyleGuide: '#short-methods'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: silvercop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Silvercar
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-01-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.78.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
26
|
+
version: 0.78.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rubocop-performance
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|