nucop 0.6.0 → 0.8.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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/nucop/cli.rb +11 -3
  3. data/lib/nucop/version.rb +1 -1
  4. metadata +15 -15
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e71dbde954a64a032a66647897b9b1f6fbe958f59b5bbfd9de3fab916ec4c569
4
- data.tar.gz: 772c10cf45fbc941e43697b48c1c0a6d22401b75555ee26a4d4fbba924dc50de
3
+ metadata.gz: b06c2da379c5ceea08460f4fef215b819753f14fccadf5af591e683accb6ef66
4
+ data.tar.gz: b9d59749fb3b9c0071939ea7d04c499226f7d71bf525817cec8e0ab3e028f226
5
5
  SHA512:
6
- metadata.gz: 12133cde2275ba413c18814d70c1025b39081f77ce2bedb9d13694d7818222b86b8943c2b33e2874b69543d6a4e6b5fc0828e3846471e2a30e3bba3b85926607
7
- data.tar.gz: d1635fb6d929b0fad0e32d13a62d4ba7ef9692735deeebfecb657a98402c8c6de885617817565b7e7b4087ccdbe8a3d1a6b0fb935e54f8b59c3473699ade7526
6
+ metadata.gz: 1e612a9b8a530a1b3e37233a3e7f48aeaeb5cae8161a6b56ae8fd2453f28401d8419b65cf1e22599810d863bbbee217d0180ea4dc9dae850d8c4a87faec9e522
7
+ data.tar.gz: 1621ea5c7bde20e04de0737ba8f8611e1ff7a38957da5a5b9cd8a6156652845187c20c546b71b8d60981e6a9fb4dbedb14c8ad6dc226b063695c533ebcccf575
data/lib/nucop/cli.rb CHANGED
@@ -8,7 +8,9 @@ module Nucop
8
8
  class Cli < Thor
9
9
  desc "diff_enforced", "run RuboCop on the current diff using only the enforced cops"
10
10
  method_option "commit-spec", default: "origin/main", desc: "the commit used to determine the diff."
11
- method_option "auto-correct", type: :boolean, default: false, desc: "runs RuboCop with auto-correct option"
11
+ method_option "auto-correct", type: :boolean, default: false, desc: "runs RuboCop with auto-correct option (deprecated)"
12
+ method_option "autocorrect", type: :boolean, default: false, desc: "runs RuboCop with autocorrect option"
13
+ method_option "autocorrect-all", type: :boolean, default: false, desc: "runs RuboCop with autocorrect-all option"
12
14
  method_option "junit_report", type: :string, default: nil, desc: "runs RuboCop with junit formatter option"
13
15
  method_option "json", type: :string, default: nil, desc: "Output results as JSON format to the provided file"
14
16
  def diff_enforced
@@ -18,7 +20,9 @@ module Nucop
18
20
  desc "diff", "run RuboCop on the current diff"
19
21
  method_option "commit-spec", default: "origin/main", desc: "the commit used to determine the diff."
20
22
  method_option "only", desc: "run only specified cop(s) and/or cops in the specified departments"
21
- method_option "auto-correct", type: :boolean, default: false, desc: "runs RuboCop with auto-correct option"
23
+ method_option "auto-correct", type: :boolean, default: false, desc: "runs RuboCop with auto-correct option (deprecated)"
24
+ method_option "autocorrect", type: :boolean, default: false, desc: "runs RuboCop with autocorrect option"
25
+ method_option "autocorrect-all", type: :boolean, default: false, desc: "runs RuboCop with autocorrect-all option"
22
26
  method_option "ignore", type: :boolean, default: true, desc: "ignores files specified in #{options[:diffignore_file]}"
23
27
  method_option "added-only", type: :boolean, default: false, desc: "runs RuboCop only on files that have been added (not on files that have been modified)"
24
28
  method_option "exit", type: :boolean, default: true, desc: "disable to prevent task from exiting. Used by other Thor tasks when invoking this task, to prevent parent task from exiting"
@@ -62,7 +66,9 @@ module Nucop
62
66
 
63
67
  desc "rubocop", "run RuboCop on files provided"
64
68
  method_option "only", desc: "run only specified cop(s) and/or cops in the specified departments"
65
- method_option "auto-correct", type: :boolean, default: false, desc: "runs RuboCop with auto-correct option"
69
+ method_option "auto-correct", type: :boolean, default: false, desc: "runs RuboCop with auto-correct option (deprecated)"
70
+ method_option "autocorrect", type: :boolean, default: false, desc: "runs RuboCop with autocorrect option"
71
+ method_option "autocorrect-all", type: :boolean, default: false, desc: "runs RuboCop with autocorrect-all option"
66
72
  method_option "exclude-backlog", type: :boolean, default: false, desc: "when true, uses config which excludes violations in the RuboCop backlog"
67
73
  def rubocop(files = nil)
68
74
  print_cops_being_run(options[:only])
@@ -86,6 +92,8 @@ module Nucop
86
92
  "--force-exclusion",
87
93
  "--config", config_file,
88
94
  pass_through_option(options, "auto-correct"),
95
+ pass_through_option(options, "autocorrect"),
96
+ pass_through_option(options, "autocorrect-all"),
89
97
  pass_through_flag(options, "only"),
90
98
  files
91
99
  ].join(" ")
data/lib/nucop/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Nucop
2
- VERSION = "0.6.0"
2
+ VERSION = "0.8.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nucop
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Schweier
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-06-27 00:00:00.000000000 Z
11
+ date: 2023-03-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: git_diff_parser
@@ -30,56 +30,56 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1.30'
33
+ version: '1.46'
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: '1.30'
40
+ version: '1.46'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rubocop-graphql
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '0.14'
47
+ version: '1.0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '0.14'
54
+ version: '1.0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rubocop-performance
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '1.14'
61
+ version: '1.16'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '1.14'
68
+ version: '1.16'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rubocop-rails
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '2.15'
75
+ version: '2.18'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '2.15'
82
+ version: '2.18'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rubocop-rake
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -100,14 +100,14 @@ dependencies:
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '2.11'
103
+ version: '2.18'
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: '2.11'
110
+ version: '2.18'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: rubocop-rubycw
113
113
  requirement: !ruby/object:Gem::Requirement
@@ -170,14 +170,14 @@ dependencies:
170
170
  requirements:
171
171
  - - "~>"
172
172
  - !ruby/object:Gem::Version
173
- version: '3.11'
173
+ version: '3.12'
174
174
  type: :development
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
178
  - - "~>"
179
179
  - !ruby/object:Gem::Version
180
- version: '3.11'
180
+ version: '3.12'
181
181
  description:
182
182
  email:
183
183
  - jasons@nulogy.com
@@ -226,7 +226,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
226
226
  - !ruby/object:Gem::Version
227
227
  version: '0'
228
228
  requirements: []
229
- rubygems_version: 3.3.15
229
+ rubygems_version: 3.4.8
230
230
  signing_key:
231
231
  specification_version: 4
232
232
  summary: Nulogy's implementation of RuboCop, including custom cops and additional