# `ZebbraCredo.Check.ScopeNotActor`
[🔗](https://github.com/zebbra/zebbra_credo/blob/v1.0.0/lib/zebbra_credo/check/scope_not_actor.ex#L1)

## Basics

> #### This check is disabled by default. {: .neutral}
>
> [Learn how to enable it](`e:credo:config_file.html#checks`) 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](`e:credo:check_params.html`) can be applied.

Parameters can be configured via the [`.credo.exs` config file](`e:credo:config_file.html`).

---

*Consult [api-reference.md](api-reference.md) for complete listing*
