Skip to content

Commit 51b50de

Browse files
eugeniatelidalithb
andauthored
Update website/src/pages/en/subgraphs/guides/subgraph-linter.mdx
Co-authored-by: Idalith <126833353+idalithb@users.noreply.github.com>
1 parent b2280b2 commit 51b50de

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

website/src/pages/en/subgraphs/guides/subgraph-linter.mdx

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,12 @@ It complements existing tools by helping you catch problems locally while writin
1111

1212
Run Subgraph Linter when you want to detect handler and mapping issues that don't often appear until indexing starts, such as:
1313

14-
- Entities are saved with missing required fields
15-
- Multiple instances of the same entity handled at the same time causing overwrite issues
16-
- Optional values are force-unwrapped without checks
17-
- Divisions happen without proving the divisor is non-zero
18-
- Derived fields are mutated directly or left stale
19-
- Contract calls are made without being declared in the manifest
20-
14+
- Entities saved with missing required fields
15+
- Entity overwrite issues from concurrent/stale instances
16+
- Optional values force-unwrapped without checks
17+
- Divisions without guaranteeing a non-zero denominator
18+
- `@derivedFrom` fields mutated directly or left stale
19+
- Contract calls are used without being declared in the manifest
2120
These bugs usually compile fine, but crash at runtime or silently produce incorrect data. Subgraph Linter performs static analysis on your mapping code to detect these issues before deploying the subgraph.
2221

2322
## How it works

0 commit comments

Comments
 (0)