Ignore errors and warnings on a per-line basis
In addition to disabling an entire class of errors in the ignoreErrorCodes
array in bsconfig.json
, you may also disable errors for a subset of the complier rules within a file with the following comment flags:
bs:disable-next-line
bs:disable-next-line: code1 code2 code3
bs:disable-line
bs:disable-line: code1 code2 code3
Here are some examples:
sub Main()
'disable errors about invalid syntax here
'bs:disable-next-line
DoSomething(
DoSomething( 'bs:disable-line
'disable errors about wrong parameter count
DoSomething(1,2,3) 'bs:disable-next-line
DoSomething(1,2,3) 'bs:disable-next-line:1002
end sub
sub DoSomething()
end sub