Introduce support // scopelint: <directive> to disable the scopelint checks for certain lines of code. For now, to avoid introducing a config file, we only support comment-style directives:
// scopelint: disable-line to disable the current line
// scopelint: disable-next-line to disable the below line
// scopelint: disable-start and // scopelint: disable-end to disable regions
Use // scopelint: disable-start with no end to disable everything below it
// scopelint: disable-next-item disables the next code item regardless of new lines
Note that these are for scopelint specific checks only, disabling forge fmt checks still requires the // forgefmt: disable-* commands
Introduce support
// scopelint: <directive>
to disable the scopelint checks for certain lines of code. For now, to avoid introducing a config file, we only support comment-style directives:// scopelint: disable-line
to disable the current line// scopelint: disable-next-line
to disable the below line// scopelint: disable-start
and// scopelint: disable-end
to disable regions// scopelint: disable-start
with no end to disable everything below it// scopelint: disable-next-item
disables the next code item regardless of new linesNote that these are for scopelint specific checks only, disabling
forge fmt
checks still requires the// forgefmt: disable-*
commands