searchgov_style 0.1.19 → 0.1.21
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.default.yml +8 -0
- data/README.md +22 -3
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 741c7bb47c0de35c2bad60d2dadd592a1accde9e2946892cec6234829cbf3aaf
|
4
|
+
data.tar.gz: 7a5ea2d6e7414141d4d243eb487f626f91b19ff3037742dac9d8d24eaca869fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c1be4f7a3c0e25a21c868be4eb4d3505e51dc5bca399c3be910e66b6a5819da1d1249b35d6d33bdc6e022605c994f212485b4a9b1c85bfdc4c93801372491615
|
7
|
+
data.tar.gz: c9d0f01ed6ebc4ea158ad113e5cd5dd333ddf2467cf74c6cc8ae4b93ea892c30123dcdc80633e326290e5bec759691a2b4f5649e41611e6a3ee99ba593ef8b78
|
data/.default.yml
CHANGED
@@ -91,6 +91,11 @@ RSpec/DescribedClass:
|
|
91
91
|
RSpec/ExampleLength:
|
92
92
|
Enabled: false
|
93
93
|
|
94
|
+
# Marked as unsafe due to ongoing issues with awkward wording.
|
95
|
+
# See: https://github.com/rubocop/rubocop-rspec/issues/1179
|
96
|
+
RSpec/ExampleWording:
|
97
|
+
SafeAutoCorrect: false
|
98
|
+
|
94
99
|
RSpec/ExpectChange:
|
95
100
|
EnforcedStyle: block
|
96
101
|
|
@@ -103,6 +108,9 @@ RSpec/MessageChain:
|
|
103
108
|
RSpec/MultipleExpectations:
|
104
109
|
Enabled: false
|
105
110
|
|
111
|
+
RSpec/MultipleMemoizedHelpers:
|
112
|
+
Enabled: false
|
113
|
+
|
106
114
|
RSpec/NestedGroups:
|
107
115
|
Enabled: false
|
108
116
|
|
data/README.md
CHANGED
@@ -20,17 +20,36 @@ Or install it yourself as:
|
|
20
20
|
|
21
21
|
$ gem install searchgov_style
|
22
22
|
|
23
|
-
## Usage
|
24
|
-
|
25
23
|
In the root directory of the repo using this gem, create a `.rubocop.yml` with the following directives:
|
26
24
|
|
25
|
+
### For repositories that use Code Climate:
|
26
|
+
|
27
|
+
Refer to the [work around](https://github.com/codeclimate/codeclimate-rubocop/issues/71#issuecomment-635055223) for Code Climate's inability to use Rubocop's inherit_gem directive.
|
28
|
+
|
29
|
+
```yaml
|
30
|
+
inherit_from:
|
31
|
+
- https://raw.githubusercontent.com/GSA/searchgov_style/main/.default.yml
|
32
|
+
```
|
33
|
+
|
34
|
+
### For repositories that do not use Code Climate:
|
35
|
+
|
27
36
|
```yaml
|
28
37
|
inherit_gem:
|
29
38
|
searchgov_style:
|
30
39
|
- .default.yml
|
31
40
|
```
|
32
41
|
|
33
|
-
|
42
|
+
* Generate a `.rubocop_todo.yml`:
|
43
|
+
|
44
|
+
rubocop --auto-gen-config --auto-gen-only-exclude --exclude-limit 2000
|
45
|
+
|
46
|
+
* Add the following entry to `.gitignore`:
|
47
|
+
|
48
|
+
.rubocop*default-yml
|
49
|
+
|
50
|
+
## Usage
|
51
|
+
|
52
|
+
Run:
|
34
53
|
|
35
54
|
```bash
|
36
55
|
$ bundle exec rubocop
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: searchgov_style
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.21
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- MothOnMars
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-01-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - '='
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 1.
|
47
|
+
version: 1.39.0
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - '='
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 1.
|
54
|
+
version: 1.39.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rubocop-performance
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -133,7 +133,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
133
133
|
requirements:
|
134
134
|
- - ">="
|
135
135
|
- !ruby/object:Gem::Version
|
136
|
-
version: 2.
|
136
|
+
version: 2.6.0
|
137
137
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
138
138
|
requirements:
|
139
139
|
- - ">="
|