rubocop-rickselby 0.14.0.pre.3 → 0.14.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: 3351cf0efebead9294f5b1a098fdc7535e9fc783214439b05e04b1427c92fce8
4
- data.tar.gz: e464354cf9c57c2e0a9e89c23fcacc84dae84f9d64307bccb07620306ee967a9
3
+ metadata.gz: 02ae733e60e042ff1e081e32e2fe447b7a0dd81edf6d4f5cba37106ad366f573
4
+ data.tar.gz: f7ada6c9d60b4090a5333597b2f8b7e769a3d386c746b938e7c74ddb45bac6f7
5
5
  SHA512:
6
- metadata.gz: 35981280bfa735e55a0c8ec552d030611625779c88ec127ea3e98031f5fbb19a81cab141b8549c81780ffb86eb67b6294c8f4aff76b23b75c32853a44c41c909
7
- data.tar.gz: 8a1e617c8d66fca2f543774a0a2a3e5108ff316e6b780f4f97f81e9260415d10a985918b09fe12ed83cc6fb653efbc07708fcc185deba51356502b56b214cccf
6
+ metadata.gz: f0ac5a39c49da88684f59c4e66b0e3a24674ed54c403610f3e1bdd2952df8ed6a652a5e80b48da33c694e63210b60f6f026e4e811055ba0df920c90ca2d2e80c
7
+ data.tar.gz: fb505b7f6ecafa91a65a44a6771b5892285b95e97eaad493e1811abc13cb5a2a6b52649959253fc6ea653a47bcc0a1792f511fc5cde577cb770f31625f7d228f
data/README.md CHANGED
@@ -7,9 +7,8 @@ Config in `./config`
7
7
  Add `rubocop-rickselby` to your Gemfile:
8
8
 
9
9
  ```ruby
10
-
11
10
  group :development, :test do
12
- gem "rubocop-rickselby", "~> 0.10", require: false
11
+ gem "rubocop-rickselby", "~> 0.14", require: false
13
12
  end
14
13
  ```
15
14
 
@@ -27,6 +26,31 @@ inherit_gem:
27
26
  - config/sequel.yml # sequel-specific rules and cops
28
27
  ```
29
28
 
29
+ You can override cops in your own local `.rubocop.yml` file as required.
30
+
31
+ ### `erb-lint`
32
+
33
+ Config is also available for [https://github.com/Shopify/erb-lint](erb-lint).
34
+
35
+ Add a local `.erb-lint.yml` file to your project:
36
+
37
+ ```yaml
38
+ ---
39
+ exclude:
40
+ - 'node_modules/**/*'
41
+ - 'vendor/**/*'
42
+ inherit_gem:
43
+ rubocop-rickselby:
44
+ - config/erb-lint.yml
45
+ ```
46
+
47
+ The default file path is `**/*.html{+*,}.erb` - this can be changed with a `glob` setting in `.erb-lint.yml`, e.g.
48
+
49
+ ```yaml
50
+ ---
51
+ glob: "**/*.erb"
52
+ ```
53
+
30
54
  ## Contributing
31
55
  Bug reports and pull requests are welcome on GitHub at https://github.com/rickselby/rubocop-rickselby.
32
56
 
data/config/erb-lint.yml CHANGED
@@ -1,8 +1,5 @@
1
1
  ---
2
2
  EnableDefaultLinters: true
3
- exclude:
4
- - '**/node_modules/**/*'
5
- - '**/vendor/**/*'
6
3
  linters:
7
4
  ErbSafety:
8
5
  enabled: true
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Rubocop
4
4
  module Rickselby
5
- VERSION = "0.14.0.pre.3"
5
+ VERSION = "0.14.0"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-rickselby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.0.pre.3
4
+ version: 0.14.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rick Selby