From c79081b87ee0df6254f30116b86d17ae272e7313 Mon Sep 17 00:00:00 2001 From: realvizu Date: Fri, 15 Mar 2019 15:59:13 +0100 Subject: [PATCH] Setting version to 1.9.0. Updating docs. --- CHANGELOG.md | 4 ++-- README.md | 1 + appveyor.yml | 2 +- doc/Help.md | 8 ++++++++ 4 files changed, 12 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7a8851a..10a2b93 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,7 @@ # NsDepCop Change Log -## v1.9.0 (beta) -(02/2019 ?) +## v1.9.0 +(03/2019) - [x] New: Support incremental build - don't run the tool if there was no change in the source/config files. - [x] New: Global turn off switch - DisableNsDepCop environment variable. diff --git a/README.md b/README.md index 9a32d0c..34fbfde 100644 --- a/README.md +++ b/README.md @@ -45,6 +45,7 @@ See the [**Help**](doc/Help.md) for details. ## Thanks to * [Roslyn](https://github.com/dotnet/roslyn) for the best parser API. * [ReSharper](https://www.jetbrains.com/resharper/) for the free licence of this amazing tool. +* [DotNet.Glob](https://github.com/dazinator/DotNet.Glob) for the globbing library. ## License * [GPL-2.0](LICENSE) diff --git a/appveyor.yml b/appveyor.yml index 4377464..12a0310 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -2,7 +2,7 @@ image: Visual Studio 2017 environment: shortversion: '1.9.0' - informationalversion: '1.9.0-beta2' + informationalversion: '1.9.0' version: '$(shortversion).{build}' diff --git a/doc/Help.md b/doc/Help.md index 8ef0791..e62f862 100644 --- a/doc/Help.md +++ b/doc/Help.md @@ -5,6 +5,7 @@ * [Config inheritance](#config-inheritance) * [Dealing with a high number of dependency issues](#dealing-with-a-high-number-of-dependency-issues) * [Controlling verbosity](#controlling-verbosity) +* [Disabling the tool](#disabling-the-tool) * [Config XML schema](#config-xml-schema) * [Config XML schema support in Visual Studio](#config-xml-schema-support-in-visual-studio) * [NsDepCop ServiceHost](#nsdepcop-servicehost) @@ -14,6 +15,7 @@ * Projects with a **csproj** project file are supported. * Projects with an **xproj** project file are not supported. +* .Net Core is not supported ([yet](https://github.com/realvizu/NsDepCop/issues/34)) ## Dependency rules @@ -49,6 +51,7 @@ Attribute | Values | Description **MaxIssueCountSeverity** | Info, **Warning**, Error | This is the severity of the issue of reaching MaxIssueCount. **AutoLowerMaxIssueCount** | true, **false** | If set to true then each successful build yielding fewer issues than MaxIssueCount sets MaxIssueCount to the current number of issues. **InheritanceDepth** | int (>=0), default: **0** | Sets the number of parent folder levels to inherit config from. 0 means no inheritance. +**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` ### Whitelisting * The **``** config element defines that **N1** namespace can depend on **N2** namespace. @@ -208,6 +211,11 @@ Advanced settings: E.g.: if you want NsDepCop info messages to show up at minimal MSBuild verbosity then set `InfoImportance` to High. +## Disabling the tool +You can disable NsDepCop by setting the DisableNsDepCop environment variable to 'true' or '1'. + +E.g.: `set DisableNsDepCop=1` + ## Config XML schema See the XSD schema of config.nsdepcop [here](../source/NsDepCop.ConfigSchema/NsDepCopConfig.xsd).