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
Explicit options beat the scope, so scope: scope, actor: user silently
replaces the scope's actor. Pass scope: scope and nothing else.
Trusted system code with no user may pass actor: with a comment above:
# system: the nightly purge runs without a user.
Orders.purge(actor: system_actor)actor: nil is allowed. Only files under the app's web directory are
checked, never test/.
Check-Specific Parameters
Use the following parameters to configure this check:
:app
The app's root module; its web directory is the only place checked.
This parameter defaults to nil.
:web
The app's web namespace when it is not <app>Web.
This parameter defaults to nil.
General Parameters
Like with all checks, general params can be applied.
Parameters can be configured via the .credo.exs config file.