renuocop 0.4.0 → 0.5.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: f130c5325aea692d7578a730e197a9aedb9d07d3f04f2bc476ce0da43b1ab0e7
4
- data.tar.gz: d27ed12f4453a0036dc0179394228159a041e14c33c3fd1e521266cae54d1f3d
3
+ metadata.gz: 60789a4d53732483ac9a7c4e8455e8e38b01bdf6dafc857d6a3a43ce10a480c8
4
+ data.tar.gz: 94f2316850459e5f862a07faa100ba33aca3e9b812106a58c2b45095ff1b286d
5
5
  SHA512:
6
- metadata.gz: e0dfb642b76c2c3842881a8d5329fd81a5997164b92b4c67daffc380f4a9a8e8ddd7228bff173ca8a37be1c5c3cbba3d5d078218dbeda377767dc0e473a4c168
7
- data.tar.gz: d1e4b7423352794744612a41fadc11ed92b9db82c7e3904715fdf16b9b039a5e37af99fdbeed6cf1db053e3c4ba7c5b53a4958218e2a109acd29cfa83389e9e7
6
+ metadata.gz: 4aa1cc031db5e58f559d7e19ff510d9c45067a281b08ebcc86d178ba275e45ff99fec6b1a6bb2e62c8df60be827ebf09fc0598a129eb999d167a5d92e9e34b1b
7
+ data.tar.gz: f124046334e4f1f2868bd0c74b5372efcdbe9499a61f64913b73a768af4f0f9a1cd5c56ada5cdffbf60c35fad99275b6d08802a1f1d8c41a18e50f2705111dcc
data/CHANGELOG.md CHANGED
@@ -1,4 +1,6 @@
1
- ## [Unreleased]
1
+ ## [0.4.1]
2
+
3
+ - Do not enable `Style/YodaExpression` cop by default
2
4
 
3
5
  ## [0.1.0] - 2023-01-04
4
6
 
data/README.md CHANGED
@@ -23,7 +23,22 @@ 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
+
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
27
42
 
28
43
  $ bundle exec renuocop
29
44
 
data/config/base.yml CHANGED
@@ -23,7 +23,7 @@ Gemspec/DuplicatedAssignment:
23
23
  Enabled: true
24
24
 
25
25
  Gemspec/OrderedDependencies:
26
- Enabled: true
26
+ Enabled: false
27
27
 
28
28
  Gemspec/RequireMFA:
29
29
  Enabled: true
@@ -414,6 +414,14 @@ Performance/TimesMap:
414
414
  RSpec/AnyInstance:
415
415
  Enabled: false
416
416
 
417
+ RSpec/ContextWording:
418
+ Prefixes:
419
+ - when
420
+ - with
421
+ - without
422
+ - and
423
+ - but
424
+
417
425
  RSpec/DescribeClass:
418
426
  Exclude:
419
427
  - 'spec/system/**/*'
@@ -450,6 +458,12 @@ RSpec/SortMetadata:
450
458
  RSpec/VerifiedDoubles:
451
459
  Enabled: false
452
460
 
461
+ Capybara/ClickLinkOrButtonStyle:
462
+ Enabled: false
463
+
464
+ Rails/ActionControllerFlashBeforeRender:
465
+ Enabled: false
466
+
453
467
  Rails/BulkChangeTable:
454
468
  Enabled: false
455
469
 
@@ -820,9 +834,6 @@ Style/WhileUntilModifier:
820
834
  Style/WordArray:
821
835
  Enabled: true
822
836
 
823
- Style/YodaExpression:
824
- Enabled: true
825
-
826
837
  Style/ZeroLengthPredicate:
827
838
  Enabled: true
828
839
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Renuocop
4
- VERSION = "0.4.0"
4
+ VERSION = "0.5.0"
5
5
  end
metadata CHANGED
@@ -1,43 +1,49 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: renuocop
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.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-02-02 00:00:00.000000000 Z
11
+ date: 2023-10-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: standard
14
+ name: rubocop-performance
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
28
  name: rubocop-rails
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - "!="
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: 2.20.0
34
+ - - "!="
35
+ - !ruby/object:Gem::Version
36
+ version: 2.20.1
34
37
  type: :runtime
35
38
  prerelease: false
36
39
  version_requirements: !ruby/object:Gem::Requirement
37
40
  requirements:
38
- - - ">="
41
+ - - "!="
39
42
  - !ruby/object:Gem::Version
40
- version: '0'
43
+ version: 2.20.0
44
+ - - "!="
45
+ - !ruby/object:Gem::Version
46
+ version: 2.20.1
41
47
  - !ruby/object:Gem::Dependency
42
48
  name: rubocop-rspec
43
49
  requirement: !ruby/object:Gem::Requirement
@@ -53,19 +59,19 @@ dependencies:
53
59
  - !ruby/object:Gem::Version
54
60
  version: '0'
55
61
  - !ruby/object:Gem::Dependency
56
- name: rubocop-performance
62
+ name: standard
57
63
  requirement: !ruby/object:Gem::Requirement
58
64
  requirements:
59
- - - ">="
65
+ - - ">"
60
66
  - !ruby/object:Gem::Version
61
- version: '0'
67
+ version: '1'
62
68
  type: :runtime
63
69
  prerelease: false
64
70
  version_requirements: !ruby/object:Gem::Requirement
65
71
  requirements:
66
- - - ">="
72
+ - - ">"
67
73
  - !ruby/object:Gem::Version
68
- version: '0'
74
+ version: '1'
69
75
  description: Renuo default style guide, linter, and formatter.
70
76
  email:
71
77
  - alessandro.rodi@renuo.ch
@@ -106,7 +112,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
106
112
  - !ruby/object:Gem::Version
107
113
  version: '0'
108
114
  requirements: []
109
- rubygems_version: 3.3.10
115
+ rubygems_version: 3.2.22
110
116
  signing_key:
111
117
  specification_version: 4
112
118
  summary: Renuo default style guide, linter, and formatter.