mirror of
https://github.com/anomalyco/opencode.git
synced 2026-07-22 14:43:33 +00:00
11 lines
329 B
YAML
11 lines
329 B
YAML
id: no-nested-effect-service-yield
|
|
language: TypeScript
|
|
message: Bind Effect services before calling methods instead of nesting service yields.
|
|
severity: error
|
|
rule:
|
|
any:
|
|
- pattern: (yield* $SERVICE).$METHOD($$$ARGS)
|
|
- pattern: (yield* $SERVICE).$PROPERTY.$METHOD($$$ARGS)
|
|
constraints:
|
|
SERVICE:
|
|
regex: \.Service$
|