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

add linter to remove trailing whitespace #4362

Open
jmayclin opened this issue Jan 17, 2024 · 0 comments
Open

add linter to remove trailing whitespace #4362

jmayclin opened this issue Jan 17, 2024 · 0 comments

Comments

@jmayclin
Copy link
Contributor

Problem:

Removing whitespace is the default setting of clang-format. However, clang-format will only remove whitespace if something in the file changes.

Additionally, some IDE's will remove trailing whitespace by default. This results in a messier diff when those PR's are opened.

Solution:

We should add a linter run in our CI to ensure that no.c or .h files have any trailing whitespace

Requirements / Acceptance Criteria:

It must run in CI
It must be runnable locally

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants