Skip to content

Commit

Permalink
Merge pull request #807 from nunit/doc/improve-documentation-of-nunit…
Browse files Browse the repository at this point in the history
…1032

doc: Improve documentation of NUnit1032
  • Loading branch information
mikkelbu authored Dec 14, 2024
2 parents 8914a18 + 1f8f774 commit 86f8c23
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions documentation/NUnit1032.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,18 @@ dotnet_diagnostic.CA1001.severity = warning
dotnet_diagnostic.CA2213.severity = warning
```

## Extending the list of names of disposing methods

The analyzer considers the following list of method names to be disposing: `Dispose`, `DisposeAsync`, `Close`, and
`CloseAsync`. It is possible to add method names to this list by using the configuration
`dotnet_diagnostic.NUnit1032.additional_dispose_methods` in the `.editorconfig`. The configuration accepts a
list of method names - separated by either comma, semicolon, or space. I.e. to add `Quit` and `Exit` to the list add
the following line.

```ini
dotnet_diagnostic.NUnit1032.additional_dispose_methods = Quit, Exit
```

<!-- start generated config severity -->
## Configure severity

Expand Down

0 comments on commit 86f8c23

Please sign in to comment.