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

.github: add workflow for rejecting PRs that introduce whitespace errors. #171

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

klihub
Copy link
Collaborator

@klihub klihub commented Oct 24, 2023

  • add workflow to check and reject PRs that introduce trailing WS errors (or conflict markers)
  • add in-repo .githooks with a hook to check trailing whitespace and conflict marker errors
  • add Makefile target to enable in-repo githooks

@klihub klihub changed the title .github: add workflow for rejecting PRs that introduce (trailing) whitespace errors. .github: add workflow for rejecting PRs that introduce whitespace errors. Oct 24, 2023
Add trailing whitespace error check to our project-checks workflow.

Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
@klihub klihub force-pushed the fixes/reject-whitespace-errors branch from 19a36ca to 8f717f9 Compare October 24, 2023 07:38
Add pre-commit git hook to check for trailing whitespace.
Add Makefile target 'install-git-hooks' for enabling in-
repo (pre-commit) git hooks.

Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
*~|*.swp)
continue
;;
[0-9]*-*)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe we should document somehow (more clearly, somewhere), that the hooks in the drop-in dir have strict naming requirements (otherwise they are silently ignored). WDYT?

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