Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion website/src/pages/en/subgraphs/tooling/skills.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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/)
Expand Down
2 changes: 1 addition & 1 deletion website/src/pages/en/subgraphs/tooling/subgraph-linter.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Loading