quiet_quality 1.0.0 → 1.0.1

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: 92fb13c8040117b5c0117af41e7253d793c2818a05c4d69b8f522677f20b96a7
4
- data.tar.gz: 27da41d1430f7a09a22444fa117904f231b8feec6006c48393bd9d0cf9859707
3
+ metadata.gz: d010c46c43c33aaa187197305d66ff34335393d169274e22b49a4483629c06bc
4
+ data.tar.gz: 11e9c2d0c8a19f56593e6ad3a425b1c3822f3e74b273788adaa129ed3be15b42
5
5
  SHA512:
6
- metadata.gz: 020bb9aa46fc7a1d5989dbf7f03538533b6f54006e23003f90209a6baacbb03c015cee81f00893047bc7c39260788d62a4380157ee95b610acd08acd64746569
7
- data.tar.gz: 68d20464b4f83e819ef8e8128420e84cadb857183238167aa4a9b4947890d571ec636836656bc728dc3b459b75668152e1c510f034a8ddc8d49e5403150ec3b3
6
+ metadata.gz: '069d6cf7d33e32a9d894aa6dd6cc8489fcac39496b5767e2df0321fae59dabbf29dd651cb417042f391ab1756eafdd36dff81119270db8443b08c0d3db3882b7'
7
+ data.tar.gz: 3210b7d57f659c51ec0683f10af141757df26a0aed1b885de8a53bf7ca5335b95860ffc9527cd28f06b4294bd406b448d33193ec6067c5419e0b91c874273514
@@ -7,6 +7,8 @@ jobs:
7
7
  runs-on: ubuntu-latest
8
8
  steps:
9
9
  - uses: actions/checkout@v3
10
+ with:
11
+ fetch-depth: 0
10
12
 
11
13
  - name: Set up ruby
12
14
  uses: ruby/setup-ruby@v1
@@ -25,4 +27,4 @@ jobs:
25
27
  run: bundle install --jobs 4 --retry 3
26
28
 
27
29
  - name: Run QuietQuality
28
- run: bundle exec bin/qq standardrb rubocop rspec --all-files --unfiltered --annotate github_stdout
30
+ run: bundle exec bin/qq standardrb rubocop rspec --all-files --unfiltered --annotate github_stdout --comparison-branch origin/main
data/README.md CHANGED
@@ -22,7 +22,7 @@ qq rubocop
22
22
  # of them) against the commit using github's inline output-based annotation approach. Which
23
23
  # will of course only produce actual annotations if this happens to have been run in a
24
24
  # github action.
25
- qq rspec --annotate=stdout
25
+ qq rspec --annotate=github_stdout
26
26
 
27
27
  # run standardrb against all of the files (not just the changed ones). Still only print out
28
28
  # problems to lines that have changed, so not particularly useful :-)
@@ -50,8 +50,18 @@ module QuietQuality
50
50
  @_options = builder.options
51
51
  end
52
52
 
53
+ def changed_files
54
+ return @_changed_files if defined?(@_changed_files)
55
+ @_changed_files = VersionControlSystems::Git.new.changed_files(
56
+ base: options.comparison_branch,
57
+ sha: "HEAD",
58
+ include_uncommitted: true,
59
+ include_untracked: true
60
+ )
61
+ end
62
+
53
63
  def executor
54
- @_executor ||= options.executor.new(tools: options.tools)
64
+ @_executor ||= options.executor.new(tools: options.tools, changed_files: changed_files)
55
65
  end
56
66
 
57
67
  def executed
@@ -1,3 +1,3 @@
1
1
  module QuietQuality
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quiet_quality
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Mueller
@@ -224,7 +224,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
224
224
  - !ruby/object:Gem::Version
225
225
  version: '0'
226
226
  requirements: []
227
- rubygems_version: 3.3.7
227
+ rubygems_version: 3.1.6
228
228
  signing_key:
229
229
  specification_version: 4
230
230
  summary: A system for comparing quality tool outputs against the forward diffs