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 +4 -4
- data/README.md +26 -2
- data/config/erb-lint.yml +0 -3
- data/lib/rubocop/rickselby/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 02ae733e60e042ff1e081e32e2fe447b7a0dd81edf6d4f5cba37106ad366f573
|
4
|
+
data.tar.gz: f7ada6c9d60b4090a5333597b2f8b7e769a3d386c746b938e7c74ddb45bac6f7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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