nucop 0.4.0 → 0.4.1
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/lib/nucop/cli.rb +3 -3
- data/lib/nucop/formatters/git_diff_formatter.rb +1 -1
- data/lib/nucop/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 435a78a10fcc0b62541954def135338d700f18011cce1f5816a91e0b805d0097
|
4
|
+
data.tar.gz: 90494d2f1086bdc458350b5772df69b0fc5b916e7617a4955150a5b5b8f2516e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f502115d1678424d7ae2f7894daa3455ac9af6438adf1eb3479313350a22109224fd520bad86df7a3fec1cfb153fca4f6a07426dee41822a9a7ebd6735d9e5b0
|
7
|
+
data.tar.gz: 782ebe926d82e5f079e20b5ffd77f633ed0e848d9fe931c0c0007a6386d4a11a3174e8b82c06892d601cff577d8bf306781fa008db98561540020e99ca1861cd
|
data/lib/nucop/cli.rb
CHANGED
@@ -7,7 +7,7 @@ CONFIGURATION_FILEPATH = ".nucop.yml"
|
|
7
7
|
module Nucop
|
8
8
|
class Cli < Thor
|
9
9
|
desc "diff_enforced", "run RuboCop on the current diff using only the enforced cops"
|
10
|
-
method_option "commit-spec", default: "origin/
|
10
|
+
method_option "commit-spec", default: "origin/main", desc: "the commit used to determine the diff."
|
11
11
|
method_option "auto-correct", type: :boolean, default: false, desc: "runs RuboCop with auto-correct option"
|
12
12
|
method_option "junit_report", type: :string, default: nil, desc: "runs RuboCop with junit formatter option"
|
13
13
|
method_option "json", type: :string, default: nil, desc: "Output results as JSON format to the provided file"
|
@@ -16,7 +16,7 @@ module Nucop
|
|
16
16
|
end
|
17
17
|
|
18
18
|
desc "diff", "run RuboCop on the current diff"
|
19
|
-
method_option "commit-spec", default: "origin/
|
19
|
+
method_option "commit-spec", default: "origin/main", desc: "the commit used to determine the diff."
|
20
20
|
method_option "only", desc: "run only specified cop(s) and/or cops in the specified departments"
|
21
21
|
method_option "auto-correct", type: :boolean, default: false, desc: "runs RuboCop with auto-correct option"
|
22
22
|
method_option "ignore", type: :boolean, default: true, desc: "ignores files specified in #{options[:diffignore_file]}"
|
@@ -106,7 +106,7 @@ module Nucop
|
|
106
106
|
end
|
107
107
|
|
108
108
|
desc "modified_lines", "display RuboCop violations for ONLY modified lines"
|
109
|
-
method_option "commit-spec", default: "
|
109
|
+
method_option "commit-spec", default: "main", desc: "the commit used to determine the diff."
|
110
110
|
def modified_lines
|
111
111
|
diff_files, diff_status = Open3.capture2("git diff #{options[:'commit-spec']} --diff-filter=d --name-only | grep \"\\.rb$\"")
|
112
112
|
|
data/lib/nucop/version.rb
CHANGED
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.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jason Schweier
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-11-
|
11
|
+
date: 2020-11-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: git_diff_parser
|