Skip to content

Conversation

@Stratus3D
Copy link
Contributor

I am re-opening this PR as I'm uncertain my comment on the previously closed PR were seen. Specifically, see #935 (comment)

This PR adds a check named Credo.Check.Readability.CondCatchallTrue that checks for conds that end in a catchall clause that use a literal value other than true. I created this check to catch violations of the rule about catchall cond clauses specified in the Christopher Adam's style guide (https://github.com/christopheradams/elixir_style_guide#true-as-last-condition). See the tests for examples.

Context:

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.

1 participant