Skip to content

[Linting Rule] Stop Call

github-actions[bot] edited this page Nov 8, 2026 · 1 revision

Generated from 'wiki-linter.ts' on 2026-10-27, 10:46:55 UTC (v2.16.6), do not edit directly.

Stop Without Call [overview]

smell quickfix

This rule is a best-effort rule.

Finds stop() calls that do not set call. to FALSE.
This linting rule is implemented in src/linter/rules/stop-with-call-arg.ts.

Examples

f <- function(x) stop(x)

The linting query can be used to run this rule on the above example:

[ { "type": "linter",   "rules": [ { "name": "stop-call",     "config": {} } ] } ]

Results (prettified and summarized):

Query: linter (0 ms)
   ╰ Stop Without Call (stop-call):
       ╰ uncertain:
           ╰ stop() without call. = FALSE at 1.18-24 (1 quick fix(es) available)

More examples are the test cases in test/functionality/linter/lint-stop-call.test.ts.

Clone this wiki locally

⌂ 换网址