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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 40f84a8c1d1205d4b33bc14effe51e26e365ddca8e51068df0603b9b87d61818
4
- data.tar.gz: e3dd20d13999c8ac7a32b2b6637d65aa7d614943fd8677818543dd171ce46c83
3
+ metadata.gz: 64fec5146e2d9675100ef4f3e9e2e20662b9fe142c3543ba944b093a22567e5c
4
+ data.tar.gz: e3b797ff3bda459208fab3db93f3cdb852cbbe694afdd7ef75df89cf290e1cdc
5
5
  SHA512:
6
- metadata.gz: e4b2958fe04fb97c2b747fff19dae0659388017a1ca06d5e92b75cbeef7aa8c9547343a22fc62a4acbfde31b75bdbd6ef813dbc41bb8ac511766f98aedf68a71
7
- data.tar.gz: a8947cb7df4765416a3d2ce06de851955151cec7f37d46e78648db00f0c1e4b0b04b08d72205afd5f034475251f507dce49995717153fd8a8b1a89381ad23ce8
6
+ metadata.gz: 1f31c42621eb74cea67290c161c8febe47f85adffa4a6caa392290d8a48b02f2c0113e992aa1e97aca3335d8a1aae2ed97b2d133622c0e3215238bf988fa0dc2
7
+ data.tar.gz: 751fdab0163a353a6c65233c9a752df7b011fb5e551caf48a0e848013050fbcd343ba263fda5de2667fb4eaabe0d1910b06cadb55758020e7248a5f67af47f4e
@@ -1,3 +1,7 @@
1
+ # 1.0.0
2
+
3
+ * Allow importing of Ruby and Rails rules seperately
4
+
1
5
  # 0.2.0
2
6
 
3
7
  * Disable the Style/FormatStringToken cop
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: config/all.yml
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: false
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.2.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-04 00:00:00.000000000 Z
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/all.yml
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