webit-ruby-rubocop 3.1.16 → 3.1.17
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 +3 -29
- data/config.yml +1 -0
- data/cops/capybara/rspec.yml +26 -0
- data/cops/capybara.yml +3 -18
- metadata +5 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d33bbe945323db116152b7f86163946f01da3c4018591906b774d2ec72082419
|
|
4
|
+
data.tar.gz: f9e5e5eacf37f7c32d1912b5f3a661089c9b3b355d7cd4fa469ca1b848ad8bb1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bfa6be3cc927cdaeb18ccf37291cd7989b9ebab9ec772770aa6c7edd9c1d6ca165cd6c0cf53f7813679be4249d3807d5ffe1b1e4e8ab7f6c404752659a4c50d2
|
|
7
|
+
data.tar.gz: 74500ec64e6cc2680c7653b98092e9631d2e18b0de4782f691d42106719ba86fa78b7f728429be9fe7b444ffba797b8559228b46de29ab204c535b8ebe22d9fe
|
data/README.md
CHANGED
|
@@ -1,18 +1,15 @@
|
|
|
1
1
|
# webit-ruby-rubocop
|
|
2
2
|
|
|
3
|
-
This gem provides webit specific rubocop configurations. The current webit code conventions can be found here: see https://github.com/webit-de/webit-ruby-styleguide.
|
|
3
|
+
This gem provides webit! specific rubocop configurations. The current webit! code conventions can be found here: see https://github.com/webit-de/webit-ruby-styleguide.
|
|
4
4
|
|
|
5
|
-
If you are looking for Rails specific configuration, check out [webit-rails-rubocop](https://
|
|
5
|
+
If you are looking for Rails specific configuration, check out [webit-rails-rubocop](https://github.com/webit-de/webit-rails-rubocop).
|
|
6
6
|
|
|
7
7
|
## Installation
|
|
8
8
|
|
|
9
9
|
Add the following line to your Gemfile:
|
|
10
10
|
|
|
11
11
|
```ruby
|
|
12
|
-
|
|
13
|
-
git_source(:gitterlabor) { |repo| "git@gitterlabor.webit.de:webit/#{repo}.git" }
|
|
14
|
-
|
|
15
|
-
gem 'webit-ruby-rubocop', gitterlabor: 'intern/webit-ruby-rubocop'
|
|
12
|
+
gem "webit-ruby-rubocop"
|
|
16
13
|
```
|
|
17
14
|
|
|
18
15
|
In your own project, add a `.rubocop.yml` containing this configuration:
|
|
@@ -27,26 +24,3 @@ inherit_gem:
|
|
|
27
24
|
```bash
|
|
28
25
|
$ bundle exec rubocop
|
|
29
26
|
```
|
|
30
|
-
|
|
31
|
-
## Migrating to Version 3
|
|
32
|
-
|
|
33
|
-
With version 3 of the webit-ruby-rubocop gem we introduced some breaking changes. The following steps will guide you through the update process.
|
|
34
|
-
|
|
35
|
-
1. Update the gem's name in your `Gemfile`:
|
|
36
|
-
|
|
37
|
-
```diff
|
|
38
|
-
- gem 'webit-rubocop', gitterlabor: 'intern/webit-ruby-rubocop'
|
|
39
|
-
+ gem 'webit-ruby-rubocop', gitterlabor: 'intern/webit-ruby-rubocop'
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
2. Update your `.rubocop.yml` file:
|
|
43
|
-
|
|
44
|
-
```diff
|
|
45
|
-
- inherit_gem:
|
|
46
|
-
- webit-rubocop: config/webit.yml
|
|
47
|
-
|
|
48
|
-
+ inherit_gem:
|
|
49
|
-
+ webit-ruby-rubocop: config.yml
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
3. Since version 3, the configuration for Rails cops were moved to [webit-rails-rubocop](https://gitterlabor.webit.de/webit/intern/webit-rails-rubocop). If you need Rails cops as well, follow the installation guide there.
|
data/config.yml
CHANGED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
Capybara/RSpec/CurrentPathExpectation:
|
|
2
|
+
Enabled: true
|
|
3
|
+
|
|
4
|
+
Capybara/RSpec/HaveContent:
|
|
5
|
+
Enabled: true
|
|
6
|
+
|
|
7
|
+
Capybara/RSpec/HaveSelector:
|
|
8
|
+
Enabled: true
|
|
9
|
+
|
|
10
|
+
Capybara/RSpec/MatchStyle:
|
|
11
|
+
Enabled: true
|
|
12
|
+
|
|
13
|
+
Capybara/RSpec/NegationMatcher:
|
|
14
|
+
Enabled: true
|
|
15
|
+
|
|
16
|
+
Capybara/RSpec/NegationMatcherAfterVisit:
|
|
17
|
+
Enabled: true
|
|
18
|
+
|
|
19
|
+
Capybara/RSpec/PredicateMatcher:
|
|
20
|
+
Enabled: true
|
|
21
|
+
|
|
22
|
+
Capybara/RSpec/SpecificMatcher:
|
|
23
|
+
Enabled: true
|
|
24
|
+
|
|
25
|
+
Capybara/RSpec/VisibilityMatcher:
|
|
26
|
+
Enabled: true
|
data/cops/capybara.yml
CHANGED
|
@@ -1,32 +1,17 @@
|
|
|
1
|
-
Capybara/
|
|
2
|
-
Enabled: true
|
|
3
|
-
|
|
4
|
-
Capybara/FindAllFirst:
|
|
1
|
+
Capybara/AssertStyle:
|
|
5
2
|
Enabled: true
|
|
6
3
|
|
|
7
|
-
Capybara/
|
|
8
|
-
Enabled: true
|
|
9
|
-
|
|
10
|
-
Capybara/NegationMatcher:
|
|
4
|
+
Capybara/ClickLinkOrButtonStyle:
|
|
11
5
|
Enabled: true
|
|
12
6
|
|
|
13
|
-
Capybara/
|
|
7
|
+
Capybara/FindAllFirst:
|
|
14
8
|
Enabled: true
|
|
15
9
|
|
|
16
10
|
Capybara/RedundantWithinFind:
|
|
17
11
|
Enabled: true
|
|
18
12
|
|
|
19
|
-
Capybara/RSpec/HaveSelector:
|
|
20
|
-
Enabled: true
|
|
21
|
-
|
|
22
|
-
Capybara/RSpec/PredicateMatcher:
|
|
23
|
-
Enabled: true
|
|
24
|
-
|
|
25
13
|
Capybara/SpecificActions:
|
|
26
14
|
Enabled: true
|
|
27
15
|
|
|
28
16
|
Capybara/SpecificFinders:
|
|
29
17
|
Enabled: true
|
|
30
|
-
|
|
31
|
-
Capybara/SpecificMatcher:
|
|
32
|
-
Enabled: true
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: webit-ruby-rubocop
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.1.
|
|
4
|
+
version: 3.1.17
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Roland Schwarzer
|
|
@@ -30,14 +30,14 @@ dependencies:
|
|
|
30
30
|
requirements:
|
|
31
31
|
- - ">="
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: 2.
|
|
33
|
+
version: 2.23.0
|
|
34
34
|
type: :runtime
|
|
35
35
|
prerelease: false
|
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
37
|
requirements:
|
|
38
38
|
- - ">="
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
|
-
version: 2.
|
|
40
|
+
version: 2.23.0
|
|
41
41
|
- !ruby/object:Gem::Dependency
|
|
42
42
|
name: rubocop-minitest
|
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -77,6 +77,7 @@ files:
|
|
|
77
77
|
- README.md
|
|
78
78
|
- config.yml
|
|
79
79
|
- cops/capybara.yml
|
|
80
|
+
- cops/capybara/rspec.yml
|
|
80
81
|
- cops/gemspec.yml
|
|
81
82
|
- cops/layout.yml
|
|
82
83
|
- cops/lint.yml
|
|
@@ -106,7 +107,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
106
107
|
- !ruby/object:Gem::Version
|
|
107
108
|
version: '0'
|
|
108
109
|
requirements: []
|
|
109
|
-
rubygems_version:
|
|
110
|
+
rubygems_version: 3.6.9
|
|
110
111
|
specification_version: 4
|
|
111
112
|
summary: webit! specific rubocop configurations
|
|
112
113
|
test_files: []
|