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

ADF 41 | gdlint github action #19

Merged
merged 1 commit into from
Jul 13, 2024
Merged

Conversation

mielifica
Copy link
Collaborator

@mielifica mielifica commented Jul 12, 2024

Added a gdlint github action, with variable problems threshold

Mainly copied this file: https://github.com/GodotVR/godot-xr-tools/blob/master/.github/workflows/gdlint-on-push.yml
And then added a step to compare with the threshold

About the threshold
I think it could be useful, because there may be situations where you introduce a linter problem, but it's not something you want to fix now. So then you can increase the threshold and still merge (without "hiding" the problem by adding an ignore statement in the code)

To test
You can check the action that ran on this PR.
You can also test github actions locally by installing act: https://github.com/nektos/act/releases (you'll also need docker installed)
In the root directory run:

act -j gdlint

@mielifica mielifica self-assigned this Jul 12, 2024
@TinyTakinTeller TinyTakinTeller merged commit b3d7460 into master Jul 13, 2024
2 checks passed
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