diff --git a/website/src/pages/en/subgraphs/tooling/skills.mdx b/website/src/pages/en/subgraphs/tooling/skills.mdx index f06165a15599..50d5efbf9518 100644 --- a/website/src/pages/en/subgraphs/tooling/skills.mdx +++ b/website/src/pages/en/subgraphs/tooling/skills.mdx @@ -96,7 +96,7 @@ Once installed, the AI assistant will have access to subgraph development expert - [Subgraph Guides & Best Practices](/subgraphs/best-practices/overview/) - [Subgraph Composition](/subgraphs/best-practices/subgraph-composition/) - Combine multiple subgraphs -- [Subgraph Linter](/subgraphs/developing/subgraph-linter/) - Static analysis tool +- [Subgraph Linter](/subgraphs/tooling/subgraph-linter/) - Static analysis tool - [Subgraph Uncrashable](/subgraphs/developing/subgraph-uncrashable/) - Safe code generation - [Matchstick Testing Framework](/subgraphs/tooling/unit-testing-framework/) - [AssemblyScript API](/subgraphs/developing/creating/assemblyscript-api/) diff --git a/website/src/pages/en/subgraphs/tooling/subgraph-linter.mdx b/website/src/pages/en/subgraphs/tooling/subgraph-linter.mdx index 46c976d00f0e..53d2b85f91a1 100644 --- a/website/src/pages/en/subgraphs/tooling/subgraph-linter.mdx +++ b/website/src/pages/en/subgraphs/tooling/subgraph-linter.mdx @@ -39,7 +39,7 @@ Subgraph Linter currently detects the following categories of issues: - `entity-overwrite`: Detects cases where a handler works with an entity instance that becomes stale after calling a helper (or other code path) that loads and saves the same entity, and then the handler saves its stale instance and overwrites those updates. - `unexpected-null`: Detects when entities may be saved in an invalid state—either because required fields weren’t initialized before `save()`, or because code attempts to assign to `@derivedFrom` fields. - `unchecked-load`: Detects risky patterns where `Entity.load(...)` is treated as always present (for example via `!`) instead of explicitly handling the case where the entity doesn’t exist yet. -- `uncheckednonnull-`: Detects risky non-null assertions on values that can be missing at runtime, and encourages explicit guards instead of assuming the value is always set. +- `unchecked-nonnull`: Detects risky non-null assertions on values that can be missing at runtime, and encourages explicit guards instead of assuming the value is always set. - `division-guard`: Detects divisions where the denominator may be zero on some execution paths, and suggests guarding the value before dividing. - `derived-field-guard`: Detects cases where code updates “base” fields that require derived recomputation, but then saves without the helper(s) that keep derived values consistent. - `helper-return-contract`: Detects helper functions that can return entities without fully initializing required fields, and flags call sites where the returned entity is used/saved without completing initialization.