|
5 | 5 | * [Config inheritance](#config-inheritance)
|
6 | 6 | * [Dealing with a high number of dependency issues](#dealing-with-a-high-number-of-dependency-issues)
|
7 | 7 | * [Controlling verbosity](#controlling-verbosity)
|
| 8 | +* [Disabling the tool](#disabling-the-tool) |
8 | 9 | * [Config XML schema](#config-xml-schema)
|
9 | 10 | * [Config XML schema support in Visual Studio](#config-xml-schema-support-in-visual-studio)
|
10 | 11 | * [NsDepCop ServiceHost](#nsdepcop-servicehost)
|
|
14 | 15 |
|
15 | 16 | * Projects with a **csproj** project file are supported.
|
16 | 17 | * Projects with an **xproj** project file are not supported.
|
| 18 | +* .Net Core is not supported ([yet](https://github.com/realvizu/NsDepCop/issues/34)) |
17 | 19 |
|
18 | 20 | ## Dependency rules
|
19 | 21 |
|
@@ -49,6 +51,7 @@ Attribute | Values | Description
|
49 | 51 | **MaxIssueCountSeverity** | Info, **Warning**, Error | This is the severity of the issue of reaching MaxIssueCount.
|
50 | 52 | **AutoLowerMaxIssueCount** | true, **false** | If set to true then each successful build yielding fewer issues than MaxIssueCount sets MaxIssueCount to the current number of issues.
|
51 | 53 | **InheritanceDepth** | int (>=0), default: **0** | Sets the number of parent folder levels to inherit config from. 0 means no inheritance.
|
| 54 | +**ExcludedFiles** | Comma separated list of [file patterns](https://github.com/dazinator/DotNet.Glob) | Defines which source files should be excluded from the analysis. Paths are relative to the config file's folder. E.g.: `**/*.g.cs,TestFiles/*.cs` |
52 | 55 |
|
53 | 56 | ### Whitelisting
|
54 | 57 | * The **`<Allowed From="N1" To="N2"/>`** config element defines that **N1** namespace can depend on **N2** namespace.
|
@@ -208,6 +211,11 @@ Advanced settings:
|
208 | 211 |
|
209 | 212 | E.g.: if you want NsDepCop info messages to show up at minimal MSBuild verbosity then set `InfoImportance` to High.
|
210 | 213 |
|
| 214 | +## Disabling the tool |
| 215 | +You can disable NsDepCop by setting the DisableNsDepCop environment variable to 'true' or '1'. |
| 216 | + |
| 217 | +E.g.: `set DisableNsDepCop=1` |
| 218 | + |
211 | 219 | ## Config XML schema
|
212 | 220 | See the XSD schema of config.nsdepcop [here](../source/NsDepCop.ConfigSchema/NsDepCopConfig.xsd).
|
213 | 221 |
|
|
0 commit comments