1
Fork 0

Add an internal lint that warns when accessing untracked data

This commit is contained in:
Nadrieril 2024-08-09 09:52:12 +02:00
parent 6199b69c53
commit 040239465a
11 changed files with 82 additions and 35 deletions

View file

@ -699,6 +699,9 @@ lint_ptr_null_checks_ref = references are not nullable, so checking them for nul
lint_query_instability = using `{$query}` can result in unstable query results
.note = if you believe this case to be fine, allow this lint and add a comment explaining your rationale
lint_query_untracked = `{$method}` accesses information that is not tracked by the query system
.note = if you believe this case to be fine, allow this lint and add a comment explaining your rationale
lint_range_endpoint_out_of_range = range endpoint is out of range for `{$ty}`
lint_range_use_inclusive_range = use an inclusive range instead