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

Codebase cleanup #917

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

Conversation

oliv3r
Copy link

@oliv3r oliv3r commented Apr 9, 2023

This is a small series that cleans up some obvious sloppyness. Nothing special was used to find these, just vim being told to fix trailing whitespaces on save.

While doing so, a few somewhat obvious issues where discovered and fixed, which should not trigger code changes, just (now removed) warnings on duplication.

In the future, this could be caught with a CI pipline that runs git --no-pager log --check --oneline master..HEAD, something that can be caught in the future in the CI, where 'master' would be replaced with the source branch, usually a variable in the CI.

There still exists a lot of glaring whitespace violations in the code base, but I let this series be focused on the obvious and easy to fix ones. Though a script could be used to fix any 'tab and space' mixed indents in the future.

Headers don't need executable bits set, especially if it is only done on
a handful. Lets drop them.

Signed-off-by: Olliver Schinagl <[email protected]>
Having the signature defined outside of the ifguard is probably not a
good idea anyway.

Signed-off-by: Olliver Schinagl <[email protected]>
We should avoid "already included" errors where we can.

Signed-off-by: Olliver Schinagl <[email protected]>
Just whitespace changes, no code changes where performed.

Most where caught with `git --no-pager log --check --oneline master..HEAD`,
something that can be caught in the future in the CI, where 'master'
would be replaced with the source branch.

Signed-off-by: Olliver Schinagl <[email protected]>
@sprintersb
Copy link
Collaborator

sprintersb commented Mar 16, 2024

Seems some of the issues are alredy fixed:

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