Skip to content

Commit

Permalink
make git param required
Browse files Browse the repository at this point in the history
  • Loading branch information
schoblaska committed May 8, 2024
1 parent edd9ecf commit 288a038
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/danger-packwerk/danger_package_todo_yml_changes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,11 @@ def check(
sig do
params(
violation_types: T::Array[String],
git: T.nilable(Danger::DangerfileGitPlugin),
git: Danger::DangerfileGitPlugin,
root_path: T.nilable(String)
).returns(ViolationDiff)
end
def self.get_violation_diff(violation_types, git: nil, root_path: nil)
def self.get_violation_diff(violation_types, git:, root_path: nil)
git_filesystem = Private::GitFilesystem.new(git: git, root: root_path || '')

added_violations, removed_violations = Private::TodoYmlChanges.get_reference_offenses(
Expand Down

0 comments on commit 288a038

Please sign in to comment.