mirror of
https://github.com/koalaman/shellcheck
synced 2025-07-07 13:31:36 -07:00
Allow specifying ranges in disable directives
This commit is contained in:
parent
43191fa71d
commit
58783ab3cc
5 changed files with 13 additions and 6 deletions
|
@ -567,5 +567,5 @@ isAnnotationIgnoringCode code t =
|
|||
T_Annotation _ anns _ -> any hasNum anns
|
||||
_ -> False
|
||||
where
|
||||
hasNum (DisableComment ts) = code == ts
|
||||
hasNum (DisableComment from to) = code >= from && code < to
|
||||
hasNum _ = False
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue