Basics
This check is disabled by default.
Learn how to enable it via .credo.exs.
This check has a base priority of high and works with any version of Elixir.
Explanation
A call with authorize?: false skips every policy. Say why on the line
above, starting with # system::
# system: the nightly purge runs without a user.
QueryLog.purge_expired_rows(cutoff, authorize?: false)A policy bypass skips the policies below it the same way, so it needs
the same comment when policy_bypasses is on.
Check-Specific Parameters
Use the following parameters to configure this check:
:include_tests
Also check files under test/.
This parameter defaults to false.
:policy_bypasses
Also require the comment above a bypass inside policies do ... end.
This parameter defaults to false.
General Parameters
Like with all checks, general params can be applied.
Parameters can be configured via the .credo.exs config file.