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