rubocop-bridgetown 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +17 -3
  3. data/lib/rubocop-bridgetown.rb +2 -0
  4. metadata +5 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 11a1f8d566ad6962a16c7c1f2e87e1ee1a87b0569147636eca24b650e9a65b2b
4
- data.tar.gz: 688bb6290ab6d2c443cbc7e33a692b428d17717a178849668db1c345e02546c4
3
+ metadata.gz: d2cf6be785fdccacc37c7109664f28e0e42092fa3aa3feae743757cf7938a688
4
+ data.tar.gz: 49267146654881c7fc6dcd9bd6882eeaea10a4cf2a43591f375750db742bb2dc
5
5
  SHA512:
6
- metadata.gz: 4a0d668b99ad86771d7ea7a740d22d35ff9cb3661f42adbba7161a35936ea03f4fad21c58a08fd5d2661aae8b1b7fd757252dbb3001a61a800ac65e4100d6288
7
- data.tar.gz: 49d8e45ba882157533e61ea7c0cf7fcfa2c76abc229ffb6da779d10e1c4d644c149094f93fe0274cda9d72ab50f0ec3426cd3e45bc13421899c3ed2d8cf18815
6
+ metadata.gz: d7bf172273a46ec6d709fed8f948249f85a5c690c8f707b3d3f56c4f351024fddf8e6f1b0109ebef423f86f82cbdf96b730f3fb460888a19bb7f2815cfe594d2
7
+ data.tar.gz: bc6db52c2b3d5771edce16ef7a119ab2ccaeb003871d70806352ca53c54932be7541853d79ec396b2618f088f85f04b27b79dcc4eac7d09aa6e7833d858b564b
data/README.md CHANGED
@@ -19,12 +19,12 @@ or if you prefer Bundler, add it to your `Gemfile` or `gemspec`
19
19
  ```ruby
20
20
  # Gemfile
21
21
 
22
- gem "rubocop-bridgetown", "~> 0.2.0"
22
+ gem "rubocop-bridgetown", "~> 0.2"
23
23
  ```
24
24
  ```ruby
25
25
  # <plugin>.gemspec
26
26
 
27
- spec.add_development_dependency "rubocop-bridgetown", "~> 0.2.0"
27
+ spec.add_development_dependency "rubocop-bridgetown", "~> 0.2"
28
28
  ```
29
29
  and run `bundle install`
30
30
 
@@ -44,12 +44,26 @@ inherit_gem:
44
44
 
45
45
  Running `bundle exec rubocop` will now automatically load the `rubocop-bridgetown` cops together with the standard cops.
46
46
 
47
+ ## Exclude Folders List
48
+
49
+ Currently it seems Rubocop doesn't inherit the `Excludes` folder list from the gem configuration, so you may want to add it manually to your `.rubocop.yml` file:
50
+
51
+ ```yaml
52
+ AllCops:
53
+ Exclude:
54
+ - bin/**/*
55
+ - exe/**/*
56
+ - benchmark/**/*
57
+ - node_modules/**/*
58
+ - script/**/*
59
+ - vendor/**/*
60
+ - tmp/**/*
61
+ ```
47
62
 
48
63
  ## Customization
49
64
 
50
65
  You can override any settings inherited from the extension by subsequently redefining the concerned parameters.
51
66
 
52
-
53
67
  ## Release Cycle
54
68
 
55
69
  A new release of this gem is manually cut based on the adoption of the latest version of RuboCop by the [Bridgetown repository](https://github.com/bridgetownrb/bridgetown):
@@ -1,4 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require "rubocop"
4
+
3
5
  path_to_cops = File.join(File.expand_path("rubocop", __dir__), "cop", "**", "*.rb")
4
6
  Dir[path_to_cops].each { |cop| require cop }
metadata CHANGED
@@ -1,11 +1,11 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-bridgetown
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bridgetown Team
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
  date: 2020-12-12 00:00:00.000000000 Z
@@ -83,7 +83,7 @@ homepage: https://github.com/bridgetownrb/rubocop-bridgetown
83
83
  licenses:
84
84
  - MIT
85
85
  metadata: {}
86
- post_install_message:
86
+ post_install_message:
87
87
  rdoc_options: []
88
88
  require_paths:
89
89
  - lib
@@ -98,8 +98,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
98
98
  - !ruby/object:Gem::Version
99
99
  version: '0'
100
100
  requirements: []
101
- rubygems_version: 3.1.4
102
- signing_key:
101
+ rubygems_version: 3.2.0
102
+ signing_key:
103
103
  specification_version: 4
104
104
  summary: Code style check for Bridgetown plugins
105
105
  test_files: []