quiet_quality 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. checksums.yaml +7 -0
  2. data/.github/workflows/dogfood.yml +28 -0
  3. data/.github/workflows/linters.yml +31 -0
  4. data/.github/workflows/rspec.yml +33 -0
  5. data/.gitignore +6 -0
  6. data/.rspec +1 -0
  7. data/.rubocop.yml +21 -0
  8. data/Gemfile +3 -0
  9. data/LICENSE +20 -0
  10. data/README.md +34 -0
  11. data/bin/qq +35 -0
  12. data/lib/quiet_quality/annotation_locator.rb +33 -0
  13. data/lib/quiet_quality/annotators/github_stdout.rb +36 -0
  14. data/lib/quiet_quality/annotators.rb +19 -0
  15. data/lib/quiet_quality/changed_file.rb +40 -0
  16. data/lib/quiet_quality/changed_files.rb +35 -0
  17. data/lib/quiet_quality/cli/option_parser.rb +103 -0
  18. data/lib/quiet_quality/cli/options.rb +27 -0
  19. data/lib/quiet_quality/cli/options_builder.rb +49 -0
  20. data/lib/quiet_quality/cli.rb +12 -0
  21. data/lib/quiet_quality/executors/base_executor.rb +46 -0
  22. data/lib/quiet_quality/executors/concurrent_executor.rb +20 -0
  23. data/lib/quiet_quality/executors/pipeline.rb +59 -0
  24. data/lib/quiet_quality/executors/serial_executor.rb +15 -0
  25. data/lib/quiet_quality/executors.rb +17 -0
  26. data/lib/quiet_quality/message.rb +25 -0
  27. data/lib/quiet_quality/message_filter.rb +33 -0
  28. data/lib/quiet_quality/messages.rb +54 -0
  29. data/lib/quiet_quality/tool_options.rb +32 -0
  30. data/lib/quiet_quality/tools/outcome.rb +26 -0
  31. data/lib/quiet_quality/tools/rspec/parser.rb +45 -0
  32. data/lib/quiet_quality/tools/rspec/runner.rb +57 -0
  33. data/lib/quiet_quality/tools/rspec.rb +11 -0
  34. data/lib/quiet_quality/tools/rubocop/parser.rb +46 -0
  35. data/lib/quiet_quality/tools/rubocop/runner.rb +67 -0
  36. data/lib/quiet_quality/tools/rubocop.rb +11 -0
  37. data/lib/quiet_quality/tools/standardrb/parser.rb +8 -0
  38. data/lib/quiet_quality/tools/standardrb/runner.rb +11 -0
  39. data/lib/quiet_quality/tools/standardrb.rb +13 -0
  40. data/lib/quiet_quality/tools.rb +21 -0
  41. data/lib/quiet_quality/version.rb +3 -0
  42. data/lib/quiet_quality/version_control_systems/git.rb +117 -0
  43. data/lib/quiet_quality/version_control_systems.rb +8 -0
  44. data/lib/quiet_quality.rb +15 -0
  45. data/quiet_quality.gemspec +44 -0
  46. data/tmp/.gitkeep +0 -0
  47. metadata +219 -0
@@ -0,0 +1,8 @@
1
+ module QuietQuality
2
+ module VersionControlSystems
3
+ Error = Class.new(QuietQuality::Error)
4
+ end
5
+ end
6
+
7
+ glob = File.expand_path("../version_control_systems/*.rb", __FILE__)
8
+ Dir[glob].sort.each { |file| require file }
@@ -0,0 +1,15 @@
1
+ require "git"
2
+ require "git_diff_parser"
3
+ require "json"
4
+ require "yaml"
5
+
6
+ # 'set' doesn't need requiring after ruby 3.2, but it won't hurt anything.
7
+ # And we're compatible back to 2.6
8
+ require "set" # rubocop:disable Lint/RedundantRequireStatement
9
+
10
+ module QuietQuality
11
+ Error = Class.new(StandardError)
12
+ end
13
+
14
+ glob = File.expand_path("../quiet_quality/*.rb", __FILE__)
15
+ Dir.glob(glob).sort.each { |f| require f }
@@ -0,0 +1,44 @@
1
+ require_relative "lib/quiet_quality/version"
2
+
3
+ Gem::Specification.new do |spec|
4
+ spec.name = "quiet_quality"
5
+ spec.version = QuietQuality::VERSION
6
+ spec.authors = ["Eric Mueller"]
7
+ spec.email = ["nevinera@gmail.com"]
8
+
9
+ spec.summary = "A system for comparing quality tool outputs against the forward diffs"
10
+ spec.description = <<~DESC
11
+ Allow your CI to notice and/or annotate new quality issues, despite the presences of
12
+ many pre-existing issues in your codebase.
13
+ DESC
14
+ spec.homepage = "https://github.com/nevinera/quiet_quality"
15
+ spec.license = "MIT"
16
+ spec.required_ruby_version = Gem::Requirement.new(">= 2.7.0")
17
+
18
+ spec.metadata["homepage_uri"] = spec.homepage
19
+ spec.metadata["source_code_uri"] = spec.homepage
20
+
21
+ spec.require_paths = ["lib"]
22
+ spec.bindir = "bin"
23
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
24
+ `git ls-files -z`
25
+ .split("\x0")
26
+ .reject { |f| f.start_with?("spec") }
27
+ end
28
+ spec.executables = Dir.chdir(File.expand_path(__dir__)) do
29
+ `git ls-files -z bin/`
30
+ .split("\x0")
31
+ .map { |path| path.sub(/^bin\//, "") }
32
+ end
33
+
34
+ spec.add_dependency "git", "~> 1.18"
35
+ spec.add_dependency "git_diff_parser", "~> 4"
36
+
37
+ spec.add_development_dependency "rspec", "~> 3.10"
38
+ spec.add_development_dependency "rspec-its", "~> 1.3"
39
+ spec.add_development_dependency "simplecov", "~> 0.22.0"
40
+ spec.add_development_dependency "pry", "~> 0.14"
41
+ spec.add_development_dependency "standard", "~> 1.28"
42
+ spec.add_development_dependency "rubocop", "~> 1.50"
43
+ spec.add_development_dependency "debug"
44
+ end
data/tmp/.gitkeep ADDED
File without changes
metadata ADDED
@@ -0,0 +1,219 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: quiet_quality
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Eric Mueller
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2023-05-10 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: git
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.18'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.18'
27
+ - !ruby/object:Gem::Dependency
28
+ name: git_diff_parser
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '4'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '4'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.10'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.10'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rspec-its
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '1.3'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '1.3'
69
+ - !ruby/object:Gem::Dependency
70
+ name: simplecov
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 0.22.0
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 0.22.0
83
+ - !ruby/object:Gem::Dependency
84
+ name: pry
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '0.14'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '0.14'
97
+ - !ruby/object:Gem::Dependency
98
+ name: standard
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '1.28'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '1.28'
111
+ - !ruby/object:Gem::Dependency
112
+ name: rubocop
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: '1.50'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: '1.50'
125
+ - !ruby/object:Gem::Dependency
126
+ name: debug
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ description: |
140
+ Allow your CI to notice and/or annotate new quality issues, despite the presences of
141
+ many pre-existing issues in your codebase.
142
+ email:
143
+ - nevinera@gmail.com
144
+ executables:
145
+ - qq
146
+ extensions: []
147
+ extra_rdoc_files: []
148
+ files:
149
+ - ".github/workflows/dogfood.yml"
150
+ - ".github/workflows/linters.yml"
151
+ - ".github/workflows/rspec.yml"
152
+ - ".gitignore"
153
+ - ".rspec"
154
+ - ".rubocop.yml"
155
+ - Gemfile
156
+ - LICENSE
157
+ - README.md
158
+ - bin/qq
159
+ - lib/quiet_quality.rb
160
+ - lib/quiet_quality/annotation_locator.rb
161
+ - lib/quiet_quality/annotators.rb
162
+ - lib/quiet_quality/annotators/github_stdout.rb
163
+ - lib/quiet_quality/changed_file.rb
164
+ - lib/quiet_quality/changed_files.rb
165
+ - lib/quiet_quality/cli.rb
166
+ - lib/quiet_quality/cli/option_parser.rb
167
+ - lib/quiet_quality/cli/options.rb
168
+ - lib/quiet_quality/cli/options_builder.rb
169
+ - lib/quiet_quality/executors.rb
170
+ - lib/quiet_quality/executors/base_executor.rb
171
+ - lib/quiet_quality/executors/concurrent_executor.rb
172
+ - lib/quiet_quality/executors/pipeline.rb
173
+ - lib/quiet_quality/executors/serial_executor.rb
174
+ - lib/quiet_quality/message.rb
175
+ - lib/quiet_quality/message_filter.rb
176
+ - lib/quiet_quality/messages.rb
177
+ - lib/quiet_quality/tool_options.rb
178
+ - lib/quiet_quality/tools.rb
179
+ - lib/quiet_quality/tools/outcome.rb
180
+ - lib/quiet_quality/tools/rspec.rb
181
+ - lib/quiet_quality/tools/rspec/parser.rb
182
+ - lib/quiet_quality/tools/rspec/runner.rb
183
+ - lib/quiet_quality/tools/rubocop.rb
184
+ - lib/quiet_quality/tools/rubocop/parser.rb
185
+ - lib/quiet_quality/tools/rubocop/runner.rb
186
+ - lib/quiet_quality/tools/standardrb.rb
187
+ - lib/quiet_quality/tools/standardrb/parser.rb
188
+ - lib/quiet_quality/tools/standardrb/runner.rb
189
+ - lib/quiet_quality/version.rb
190
+ - lib/quiet_quality/version_control_systems.rb
191
+ - lib/quiet_quality/version_control_systems/git.rb
192
+ - quiet_quality.gemspec
193
+ - tmp/.gitkeep
194
+ homepage: https://github.com/nevinera/quiet_quality
195
+ licenses:
196
+ - MIT
197
+ metadata:
198
+ homepage_uri: https://github.com/nevinera/quiet_quality
199
+ source_code_uri: https://github.com/nevinera/quiet_quality
200
+ post_install_message:
201
+ rdoc_options: []
202
+ require_paths:
203
+ - lib
204
+ required_ruby_version: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - ">="
207
+ - !ruby/object:Gem::Version
208
+ version: 2.7.0
209
+ required_rubygems_version: !ruby/object:Gem::Requirement
210
+ requirements:
211
+ - - ">="
212
+ - !ruby/object:Gem::Version
213
+ version: '0'
214
+ requirements: []
215
+ rubygems_version: 3.3.7
216
+ signing_key:
217
+ specification_version: 4
218
+ summary: A system for comparing quality tool outputs against the forward diffs
219
+ test_files: []