Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not writing strict violations to todos #170

Merged
merged 2 commits into from
Mar 25, 2024

Conversation

perryqh
Copy link
Contributor

@perryqh perryqh commented Mar 21, 2024

Background

Strict violations always cause pks check failures. There's no need to write out strict violations to "todo" files.

Changes

  • not writing strict violations to todos
  • report strict violations when running pks update. pks update will still exit with 0

perryqh added 2 commits March 21, 2024 11:06
* setting violation-identifier strict in all checkers

* recorded violation are not strict
@perryqh perryqh marked this pull request as ready for review March 25, 2024 12:21
@@ -147,7 +143,6 @@ struct CheckAllBuilder<'a> {
}

struct FoundViolations {
checkers: Vec<Box<dyn CheckerInterface + Send + Sync>>,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move, pushing this responsibility to make strict a property of the identifier simplifies things quite a bit!

@alexevanczuk alexevanczuk merged commit 6314028 into alexevanczuk:main Mar 25, 2024
6 checks passed
@perryqh perryqh deleted the ph/no-strict-todos branch April 5, 2024 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants