Skip to content

Conversation

@sawenzel
Copy link
Collaborator

@sawenzel sawenzel commented Jul 6, 2021

We disallow #pragma once and check it with this github action.

@sawenzel sawenzel requested a review from a team as a code owner July 6, 2021 08:25
@sawenzel
Copy link
Collaborator Author

sawenzel commented Jul 6, 2021

@TimoWilken : Could you please take a look if this looks reasonable? Eventually, we might make a combined action, encapsulating multiple of these simple checks.

Copy link
Contributor

@TimoWilken TimoWilken left a comment

Choose a reason for hiding this comment

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

Looks good, but I think you can remove a bunch of stuff to make this faster.

@TimoWilken TimoWilken merged commit 0e5fb9c into dev Jul 6, 2021
@TimoWilken
Copy link
Contributor

Thanks, merged.

@sawenzel sawenzel deleted the sawenzel-pragmaoncechecker branch July 6, 2021 08:43
@vkucera
Copy link
Collaborator

vkucera commented Jul 9, 2021

@sawenzel @TimoWilken It seem that this action is reporting unrelated files.
See:

Also, there is no information in the log about what to do to fix the errors.

@sawenzel
Copy link
Collaborator Author

sawenzel commented Jul 9, 2021

@vkucera : This happens when the PR is not rebased on dev (the developer has an old state). Feel free to improve the action.

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants