renuocop 0.4.1 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bae716364aeaf10a33ccc09c44042add836de0fbc32d13aa22b25284837affaa
4
- data.tar.gz: 11316ea963d1f030854ec74b80a0aed245c5142f6542f83444051be313bfdf14
3
+ metadata.gz: 3fdea08ec2b5afe9a9e70bae81ce412abc359e54b47c2ed7d65fd4e200956c36
4
+ data.tar.gz: ab9e932b48eacd2c5fcf541933439fb78e1f92b812d840f2eee9bbebc29ef460
5
5
  SHA512:
6
- metadata.gz: 5e8992c52ff48b7fbc1c75faad2181bd11ce62d05db53b8c783ea0897d620fc3150ed3cfd7875d6a8041f6a3fbafce5ce6539da040a498a8bfd4889d9a94a9c5
7
- data.tar.gz: 0dd7685d32d2d313a0524be7fe602c2da07f25cb4a6030aacbdfe9d810531f76fe60f4755174f4178a4356f1a3ff270ec1f37bf3a2c7dd3f1ae45478992f5dda
6
+ metadata.gz: ffb8babe4293b526eb1ec08b7144e1d91dae2f4d8bc496c4787738885f8e0f60ab4b1ea41b43740c9ad7abea232f2ab175c99cbb52d6700a40d5da467163d724
7
+ data.tar.gz: 7b7d49d0c1a714af8bf13fdd824695cca5cd4ade43b54b34041513ad9069b0998ade134d7c854b18fa6b167b15ed84de6aa99927359f7760bce81412b92f825e
data/CHANGELOG.md CHANGED
@@ -1,6 +1,14 @@
1
+ ## [0.6.0]
2
+
3
+ - Enable rubocop-capybara and rubocop-factory_bot by default
4
+
5
+ ## [0.5.0]
6
+
7
+ - Disable `Capybara/ClickLinkOrButtonStyle`
8
+
1
9
  ## [0.4.1]
2
10
 
3
- - Do not enable `Style/YodaExpression` cop by default
11
+ - Disable `Style/YodaExpression`
4
12
 
5
13
  ## [0.1.0] - 2023-01-04
6
14
 
data/README.md CHANGED
@@ -23,9 +23,24 @@ Or install it yourself as:
23
23
 
24
24
  ## Usage
25
25
 
26
- To run renuocop on your project, just run:
26
+ To run renuocop on your project, add `renuocop` to your Gemfile
27
27
 
28
- $ bundle exec renuocop
28
+ ```ruby
29
+ group :development, :test do
30
+ gem 'renuocop'
31
+ end
32
+ ```
33
+
34
+ Then create a .rubocop.yml
35
+
36
+ ```yaml
37
+ inherit_gem:
38
+ renuocop: config/base.yml
39
+ ```
40
+
41
+ And then run it with
42
+
43
+ $ bundle exec rubocop
29
44
 
30
45
  ## Development
31
46
 
data/config/base.yml CHANGED
@@ -1,4 +1,6 @@
1
1
  require:
2
+ - rubocop-capybara
3
+ - rubocop-factory_bot
2
4
  - rubocop-performance
3
5
  - rubocop-rails
4
6
  - rubocop-rspec
@@ -23,7 +25,7 @@ Gemspec/DuplicatedAssignment:
23
25
  Enabled: true
24
26
 
25
27
  Gemspec/OrderedDependencies:
26
- Enabled: true
28
+ Enabled: false
27
29
 
28
30
  Gemspec/RequireMFA:
29
31
  Enabled: true
@@ -414,6 +416,14 @@ Performance/TimesMap:
414
416
  RSpec/AnyInstance:
415
417
  Enabled: false
416
418
 
419
+ RSpec/ContextWording:
420
+ Prefixes:
421
+ - when
422
+ - with
423
+ - without
424
+ - and
425
+ - but
426
+
417
427
  RSpec/DescribeClass:
418
428
  Exclude:
419
429
  - 'spec/system/**/*'
@@ -450,6 +460,9 @@ RSpec/SortMetadata:
450
460
  RSpec/VerifiedDoubles:
451
461
  Enabled: false
452
462
 
463
+ Capybara/ClickLinkOrButtonStyle:
464
+ Enabled: false
465
+
453
466
  Rails/ActionControllerFlashBeforeRender:
454
467
  Enabled: false
455
468
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Renuocop
4
- VERSION = "0.4.1"
4
+ VERSION = "0.6.0"
5
5
  end
metadata CHANGED
@@ -1,31 +1,31 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: renuocop
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alessandro Rodi
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-03-23 00:00:00.000000000 Z
11
+ date: 2024-02-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: standard
14
+ name: rubocop-capybara
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '1'
19
+ version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '1'
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
- name: rubocop-rails
28
+ name: rubocop-factory_bot
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
@@ -39,7 +39,7 @@ dependencies:
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
- name: rubocop-rspec
42
+ name: rubocop-performance
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - ">="
@@ -53,7 +53,27 @@ dependencies:
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
- name: rubocop-performance
56
+ name: rubocop-rails
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "!="
60
+ - !ruby/object:Gem::Version
61
+ version: 2.20.0
62
+ - - "!="
63
+ - !ruby/object:Gem::Version
64
+ version: 2.20.1
65
+ type: :runtime
66
+ prerelease: false
67
+ version_requirements: !ruby/object:Gem::Requirement
68
+ requirements:
69
+ - - "!="
70
+ - !ruby/object:Gem::Version
71
+ version: 2.20.0
72
+ - - "!="
73
+ - !ruby/object:Gem::Version
74
+ version: 2.20.1
75
+ - !ruby/object:Gem::Dependency
76
+ name: rubocop-rspec
57
77
  requirement: !ruby/object:Gem::Requirement
58
78
  requirements:
59
79
  - - ">="
@@ -66,6 +86,20 @@ dependencies:
66
86
  - - ">="
67
87
  - !ruby/object:Gem::Version
68
88
  version: '0'
89
+ - !ruby/object:Gem::Dependency
90
+ name: standard
91
+ requirement: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - ">"
94
+ - !ruby/object:Gem::Version
95
+ version: '1'
96
+ type: :runtime
97
+ prerelease: false
98
+ version_requirements: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - ">"
101
+ - !ruby/object:Gem::Version
102
+ version: '1'
69
103
  description: Renuo default style guide, linter, and formatter.
70
104
  email:
71
105
  - alessandro.rodi@renuo.ch
@@ -106,7 +140,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
106
140
  - !ruby/object:Gem::Version
107
141
  version: '0'
108
142
  requirements: []
109
- rubygems_version: 3.4.8
143
+ rubygems_version: 3.2.22
110
144
  signing_key:
111
145
  specification_version: 4
112
146
  summary: Renuo default style guide, linter, and formatter.