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

Failing Builds Automatically #741

Closed
falOn-Dev opened this issue Jan 9, 2024 · 1 comment
Closed

Failing Builds Automatically #741

falOn-Dev opened this issue Jan 9, 2024 · 1 comment

Comments

@falOn-Dev
Copy link

My builds are failing if the code isn't properly formatted, even though I never added a check to the build. I only want it to happen during commits using a precommit hook.

My code is here: https://github.com/Team2537/2024Crescendo

This is a duplicate of another issue, as it was closed without a proper solution, to clarify, I still want to be able to manually check if my code is formatted, through bash scripts like git hooks, I just don't want it to fail my builds.

@wakingrufus
Copy link
Collaborator

The other issue was #739
and the feature I described there, ignoreFailures, will do what you describe: run the checks but not fail the build.
Unless you can describe to me how this does not fit your use case, I still consider the question answered.

the way the plugin operates by default is the standard convention for all Gradle check plugins, and Gradle provides many ways to control which tasks run as part of your build, if this default is not what you want (for example -x taskName to skip a task entirely

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

No branches or pull requests

2 participants