v0.0.20
What's Changed
With #35 we 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
- Use
// 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
Note: The disable-next-item
does not always seem to work properly—need to debug further and fix in a future release, but the other directives should work as expected
Full Changelog: v0.0.19...v0.0.20