lint: Enable and fix SA9004 constant type lint errors. (#26678)

When creating constants with a custom type, each definition should
include the type definition. If only the first constant defines
this, it will have a different type to the other constants.

This change fixes occurances of this and enables SA9004 within CI
linting to catch future problems while the change is in review.
This commit is contained in:
James Rasell
2025-09-03 07:45:29 +01:00
committed by GitHub
parent b856e065f2
commit 270ab1011e
7 changed files with 32 additions and 27 deletions

View File

@@ -54,6 +54,7 @@ linters:
checks:
- SA4029
- SA5008
- SA9004
- ST1016
- ST1020
exclusions: