rubocop-rickselby 0.14.0.pre.4 → 0.15.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: 3c5fe5c9bb9f5336f8428680f9ae8267540baddb4ea20e842a07fe18b10c8382
4
- data.tar.gz: b729000310965d2b30cb657334762e6c1d36dbfb19681d1cfad03deddc95631b
3
+ metadata.gz: 2d06b309ca3a4f1d1fe9b93f2d4d05a8fa194faeaa9fd6e676c5aa1a489fa0b1
4
+ data.tar.gz: fbb7d154e382abb15a00d031b16f841eee86fbf26fe52d78765ff844092804e9
5
5
  SHA512:
6
- metadata.gz: e6cbf19d950c898048b47e67ec3af293fc2131e8a39b33ae64c1bba2fb2df6ed943f74a02ab7f09f2b6fadf75da74aec599201517b05ec43f1398bf18c0deee2
7
- data.tar.gz: bc6106832667ea513af7d30bfc73c1b49d77b9c1cc80daf4260d96d6446ae42ab59e005518a8e1c69d28d35f220afd945300aaad2511ef12425f950520e52645
6
+ metadata.gz: 1d8bddd1d9e9665cadf8d6f109d55438c70be216ed2085eee85301567988c7dd454c7f55053c08e9acc7c938d104b8c6f6dad5d498fa8b5aba2bd31ee587b80e
7
+ data.tar.gz: a9e4aeaf609e893c390ca2f1723fb4b85d96ec4f10a0838634c4e994e250af020258e7d7b0e4c69ffd17ef8fefa0b61f81865dd9c3762035d738ef28d0449952
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
data/config/rails.yml CHANGED
@@ -44,6 +44,7 @@ Rails/TableNameAssignment:
44
44
  Style/Documentation:
45
45
  Exclude:
46
46
  - app/controllers/**/*
47
+ - app/mailers/**/*
47
48
  - app/models/**/*
48
49
  - config/**/*
49
50
  - db/migrate/**/*
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Rubocop
4
4
  module Rickselby
5
- VERSION = "0.14.0.pre.4"
5
+ VERSION = "0.15.0"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-rickselby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.0.pre.4
4
+ version: 0.15.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rick Selby
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-10 00:00:00.000000000 Z
11
+ date: 2024-01-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: erb_lint