Tech
Your AI makes CI green by cheating. I built three GitHub Actions to stop it.
All your checks are green. Before you merge, one question worth asking: is it green because the code was fixed, or because the checker was silenced?
There are two ways to turn a red CI run green. You can fix the problem, or you can make the tool stop reporting it:
Type error? as any or # type: ignore makes it vanish.
Failing test? it.skip or @pytest.mark.skip takes it out of the run. Or it.only quietly skips everything else .
Linter warning? eslint-disable or # noqa ...
Read the full discussion on Dev.to
This article was aggregated from Dev.to. Click to join the conversation.
View on Dev.to