rubocop-govuk 5.1.10 → 5.1.11

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +4 -0
  3. data/config/rails.yml +8 -0
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e7f0e61894c2bd9251abc6a404638d3697081bb5662f33e4489c607dc49d5ea7
4
- data.tar.gz: 61691e54ab32417a143924f2943b88e86f7af78a21046466d110faa8451052cd
3
+ metadata.gz: 6e3c0d190a7c990ea9535aa2457f553d671dec658927cf8f0c407811b51697b3
4
+ data.tar.gz: 9715dabfc5cff28d978c895406c9426c4d26bfec0c54f02e2a39feffef8b1478
5
5
  SHA512:
6
- metadata.gz: 64e58a848b72a9da3a3fadb744d0bdac7949d24f3406cbe86b5be43847814333719db39ab72fd7c82088a1fa270bfecbaf375bb009983447e30086378ef0ff1a
7
- data.tar.gz: a8ad6751a157441f7769a38a77981994b55ed74b1e785eae19bc18ebb92968ad7e8f944073243c171d3b96b97dec02aa04cb8a91667218dd63c072ccaa0008d8
6
+ metadata.gz: 50467456dc45080158547994610b39acbbb2028578d80bd19c8d94e0b74e4ed280e67a5d4629ab95b15788c9ebfc7f543b6f70ed1a457093c6174b5fe48f2d61
7
+ data.tar.gz: d34d61ad518f619ce0cec936d80b48db8a9639cda9d6324fe943f6505d93fbaa10c115004cace064f06eb458ac6350da043212d6780216848f4e738a3774f2cf
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 5.1.11
2
+
3
+ * Exclude `*_test.rb` files from being checked against HelperInstanceVariable rule as it is picking out helper test files as well.
4
+
1
5
  # 5.1.10
2
6
 
3
7
  * Update dependencies
data/config/rails.yml CHANGED
@@ -92,3 +92,11 @@ Rails/SaveBang:
92
92
  # about whether we mean 'Time[.zone].now'.
93
93
  Rails/TimeZone:
94
94
  EnforcedStyle: "strict"
95
+
96
+ # This rule to avoid using instance variables in helpers
97
+ # is over aggressive and is catching helper tests and helpers specs
98
+ # as well. Minitests that don't use the Rspec let convention need
99
+ # instance variables to do the testing. Excluding them from the rule.
100
+ Rails/HelperInstanceVariable:
101
+ Exclude:
102
+ - '**/*_test.rb'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-govuk
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.1.10
4
+ version: 5.1.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Government Digital Service