nucop 0.7.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 30002f7a5d17b3853feacf67687280bf3367a54ac9cb897cba41e239623eea8b
4
- data.tar.gz: 1c35996b84674d981b12029e80280b344d14582ad8b4e0a879b3209bd35367ea
3
+ metadata.gz: b06c2da379c5ceea08460f4fef215b819753f14fccadf5af591e683accb6ef66
4
+ data.tar.gz: b9d59749fb3b9c0071939ea7d04c499226f7d71bf525817cec8e0ab3e028f226
5
5
  SHA512:
6
- metadata.gz: 9dbab800cda4dd3918162d6e29669467dca2f00a7c01d89a0ba63324452fa936d391fbc0467c968e8dd8134c44f2ee61b9a79d3ab09982beb970a4f8448f2adf
7
- data.tar.gz: 6c196e24daf8a46dd5669147aa4a413ffdd8f56bc5652e3e666c9a001d8908d5a3ad6759cb8d0e30edaaca5923599107255d0b720e0720f5a3b847edf32f70bd
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.7.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.7.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: 2023-02-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
@@ -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.4.6
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