|
60 | 60 | warnInconsistentSpacing = "Spacing", warnCaseTransition = "CaseTransition", |
61 | 61 | warnCycleCreated = "CycleCreated", warnObservableStores = "ObservableStores", |
62 | 62 | warnStrictNotNil = "StrictNotNil", |
| 63 | + warnResultUsed = "ResultUsed", |
63 | 64 | warnCannotOpen = "CannotOpen", |
64 | 65 | warnFileChanged = "FileChanged", |
65 | 66 | warnUser = "User", |
@@ -138,6 +139,7 @@ const |
138 | 139 | warnCycleCreated: "$1", |
139 | 140 | warnObservableStores: "observable stores to '$1'", |
140 | 141 | warnStrictNotNil: "$1", |
| 142 | + warnResultUsed: "used 'result' variable", |
141 | 143 | warnCannotOpen: "cannot open: $1", |
142 | 144 | warnFileChanged: "file changed: $1", |
143 | 145 | warnUser: "$1", |
|
193 | 195 | TNoteKinds* = set[TNoteKind] |
194 | 196 |
|
195 | 197 | proc computeNotesVerbosity(): array[0..3, TNoteKinds] = |
196 | | - result[3] = {low(TNoteKind)..high(TNoteKind)} - {warnObservableStores} |
| 198 | + result[3] = {low(TNoteKind)..high(TNoteKind)} - {warnObservableStores, warnResultUsed} |
197 | 199 | result[2] = result[3] - {hintStackTrace, warnUninit, hintExtendedContext, hintDeclaredLoc} |
198 | 200 | result[1] = result[2] - {warnProveField, warnProveIndex, |
199 | 201 | warnGcUnsafe, hintPath, hintDependency, hintCodeBegin, hintCodeEnd, |
|
0 commit comments