We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ed4fe44 commit 218860eCopy full SHA for 218860e
1 file changed
lib/danger-packwerk/packwerk_wrapper.rb
@@ -30,14 +30,6 @@ def self.get_offenses_for_files(files)
30
cli.execute_command(['check', *files])
31
reference_offenses = formatter.aggregated_offenses.compact.select { |offense| offense.is_a?(Packwerk::ReferenceOffense) }
32
T.cast(reference_offenses, T::Array[Packwerk::ReferenceOffense])
33
- rescue SystemExit => e
34
- # Packwerk should probably exit positively here rather than raising an error -- there should be no
35
- # errors if the user has excluded all files being checked.
36
- if e.message == 'No files found or given. Specify files or check the include and exclude glob in the config file.'
37
- []
38
- else
39
- raise
40
- end
41
end
42
43
#
0 commit comments