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

Respect credo exit code #8

Open
spapas opened this issue Mar 17, 2022 · 0 comments
Open

Respect credo exit code #8

spapas opened this issue Mar 17, 2022 · 0 comments

Comments

@spapas
Copy link

spapas commented Mar 17, 2022

Hello, credo has an :exit_option parameter that can be set to 0 so as a check to not error out (i.e return 0).

For example, I've set this to my project:

{Credo.Check.Design.TagTODO, [priority: :low, exit_status: 0]},

I'd like to see the list of TODOs when i Run the github action but I don't want my github action to error out if I only have TODOs. Unfortunately, the github action shows a red error even when I only have TODOs in my code.

Is there a way to resolve that ? i.e Display the TODOs but do not show an error unless there are other problems ?

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

1 participant