Skip to content

Commit

Permalink
Fix incorrect brs:disable-line docs
Browse files Browse the repository at this point in the history
Fixes incorrect docs related to the `bs:disable-line` comment.
  • Loading branch information
TwitchBronBron committed May 21, 2024
1 parent dec093a commit 8e927e5
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions docs/Editing/error-handling.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,25 @@ title: Ignoring Errors and Warnings
---
# 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:
- `brs:disable-next-line`
- `brs:disable-next-line: code1 code2 code3`
- `brs:disable-line`
- `brs:disable-line: code1 code2 code3`
- `bs:disable-next-line`
- `bs:disable-next-line: code1 code2 code3`
- `bs:disable-line`
- `bs:disable-line: code1 code2 code3`

Here are some examples:

```vb
sub Main()
'disable errors about invalid syntax here
'brs:disable-next-line
'bs:disable-next-line
DoSomething(

DoSomething( 'brs:disable-line
DoSomething( 'bs:disable-line

'disable errors about wrong parameter count
DoSomething(1,2,3) 'brs:disable-next-line
DoSomething(1,2,3) 'bs:disable-next-line

DoSomething(1,2,3) 'brs:disable-next-line:1002
DoSomething(1,2,3) 'bs:disable-next-line:1002
end sub

sub DoSomething()
Expand Down

0 comments on commit 8e927e5

Please sign in to comment.