mirror of
https://github.com/koalaman/shellcheck
synced 2025-08-19 21:03:51 -07:00
Add a reason directive to aid in documenting annotations
This commit is contained in:
parent
98b8dc0720
commit
6fb1ce5627
1 changed files with 4 additions and 0 deletions
|
@ -1083,6 +1083,10 @@ readAnnotationWithoutPrefix sandboxed = do
|
|||
parseNoteAt pos ErrorC 1145 "Unknown external-sources value. Expected true/false."
|
||||
return []
|
||||
|
||||
-- noop to allow a reason to be given for the annotation
|
||||
"reason" -> do
|
||||
return []
|
||||
|
||||
_ -> do
|
||||
parseNoteAt keyPos WarningC 1107 "This directive is unknown. It will be ignored."
|
||||
anyChar `reluctantlyTill` whitespace
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue