rubocop-govuk 0.2.0 → 1.0.0
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 +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +12 -1
- data/config/{all.yml → default.yml} +0 -3
- data/config/{other-rails.yml → rails.yml} +4 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 64fec5146e2d9675100ef4f3e9e2e20662b9fe142c3543ba944b093a22567e5c
|
|
4
|
+
data.tar.gz: e3b797ff3bda459208fab3db93f3cdb852cbbe694afdd7ef75df89cf290e1cdc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1f31c42621eb74cea67290c161c8febe47f85adffa4a6caa392290d8a48b02f2c0113e992aa1e97aca3335d8a1aae2ed97b2d133622c0e3215238bf988fa0dc2
|
|
7
|
+
data.tar.gz: 751fdab0163a353a6c65233c9a752df7b011fb5e551caf48a0e848013050fbcd343ba263fda5de2667fb4eaabe0d1910b06cadb55758020e7248a5f67af47f4e
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
|
@@ -14,7 +14,18 @@ Inherit rules from the gem by adding the following to your project's RuboCop con
|
|
|
14
14
|
```yaml
|
|
15
15
|
# .rubocop
|
|
16
16
|
inherit_gem:
|
|
17
|
-
rubocop-govuk:
|
|
17
|
+
rubocop-govuk:
|
|
18
|
+
- config/default.yml
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
or if you also need Rails specific rules:
|
|
22
|
+
|
|
23
|
+
```yaml
|
|
24
|
+
# .rubocop
|
|
25
|
+
inherit_gem:
|
|
26
|
+
rubocop-govuk:
|
|
27
|
+
- config/default.yml
|
|
28
|
+
- config/rails.yml
|
|
18
29
|
```
|
|
19
30
|
|
|
20
31
|
## Usage
|
|
@@ -11,12 +11,9 @@ AllCops:
|
|
|
11
11
|
Description: 'Display style guide URLs in offense messages.'
|
|
12
12
|
Enabled: true
|
|
13
13
|
|
|
14
|
-
require: rubocop-rails
|
|
15
|
-
|
|
16
14
|
inherit_from:
|
|
17
15
|
- gds-ruby-styleguide.yml
|
|
18
16
|
- other-lint.yml
|
|
19
|
-
- other-rails.yml
|
|
20
17
|
- other-style.yml
|
|
21
18
|
- other-metrics.yml
|
|
22
19
|
- other-excludes.yml
|
|
@@ -2,8 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
# By default Rails is switched off so this can be used by non-Rails apps,
|
|
4
4
|
# this can be enabled in a local .rubocop.yml file
|
|
5
|
+
|
|
6
|
+
require: rubocop-rails
|
|
7
|
+
|
|
5
8
|
Rails:
|
|
6
|
-
Enabled:
|
|
9
|
+
Enabled: true
|
|
7
10
|
|
|
8
11
|
Rails/ActionFilter:
|
|
9
12
|
Description: 'Enforces consistent use of action filter methods.'
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rubocop-govuk
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 1.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Government Digital Service
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-11-
|
|
11
|
+
date: 2019-11-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rake
|
|
@@ -76,13 +76,13 @@ files:
|
|
|
76
76
|
- CHANGELOG.md
|
|
77
77
|
- LICENSE.md
|
|
78
78
|
- README.md
|
|
79
|
-
- config/
|
|
79
|
+
- config/default.yml
|
|
80
80
|
- config/gds-ruby-styleguide.yml
|
|
81
81
|
- config/other-excludes.yml
|
|
82
82
|
- config/other-lint.yml
|
|
83
83
|
- config/other-metrics.yml
|
|
84
|
-
- config/other-rails.yml
|
|
85
84
|
- config/other-style.yml
|
|
85
|
+
- config/rails.yml
|
|
86
86
|
homepage: https://github.com/alphagov/rubocop-govuk
|
|
87
87
|
licenses:
|
|
88
88
|
- MIT
|