From 93c4be6f7afbd25f775168a898a739403496e261 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Sun, 25 Jan 2015 18:17:40 +0100 Subject: [PATCH] add support for StyleCop+ --- Settings.StyleCop | 35 ++++++++++++++++++++++++++++ thirdparty/fetch-thirdparty-deps.ps1 | 8 +++++++ thirdparty/fetch-thirdparty-deps.sh | 7 ++++++ 3 files changed, 50 insertions(+) diff --git a/Settings.StyleCop b/Settings.StyleCop index 94d2d29259..02b1e4185b 100644 --- a/Settings.StyleCop +++ b/Settings.StyleCop @@ -360,5 +360,40 @@ + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + \ No newline at end of file diff --git a/thirdparty/fetch-thirdparty-deps.ps1 b/thirdparty/fetch-thirdparty-deps.ps1 index 8b36766ff7..e7ea44a09e 100644 --- a/thirdparty/fetch-thirdparty-deps.ps1 +++ b/thirdparty/fetch-thirdparty-deps.ps1 @@ -9,6 +9,14 @@ if (!(Test-Path "nuget.exe")) (New-Object System.Net.WebClient).DownloadFile("http://nuget.org/nuget.exe", $target) } +if (!(Test-Path "StyleCopPlus.dll")) +{ + echo "Fetching StyleCopPlus from NuGet." + ./nuget.exe install StyleCopPlus.MSBuild -Version 4.7.49.5 + cp StyleCopPlus.MSBuild.4.7.49.5/tools/StyleCopPlus.dll . + rmdir StyleCopPlus.MSBuild.4.7.49.5 -Recurse +} + if (!(Test-Path "StyleCop.dll")) { echo "Fetching StyleCop files from NuGet." diff --git a/thirdparty/fetch-thirdparty-deps.sh b/thirdparty/fetch-thirdparty-deps.sh index d55d238c2f..aad31cda77 100755 --- a/thirdparty/fetch-thirdparty-deps.sh +++ b/thirdparty/fetch-thirdparty-deps.sh @@ -3,6 +3,13 @@ # Die on any error for Travis CI to automatically retry: set -e +if [ ! -f StyleCopPlus.dll ]; then + echo "Fetching StyleCopPlus from nuget" + nuget install StyleCopPlus.MSBuild -Version 4.7.49.5 + cp ./StyleCopPlus.MSBuild.4.7.49.5/tools/StyleCopPlus.dll . + rm -rf StyleCopPlus.MSBuild.4.7.49.5 +fi + if [ ! -f StyleCop.dll ]; then echo "Fetching StyleCop files from nuget" nuget install StyleCop.MSBuild -Version 4.7.49.0