From 14d088f9075bd28ee0031903bd2bda9239a8b39c Mon Sep 17 00:00:00 2001 From: YoshiRulz Date: Fri, 24 Jan 2020 11:46:55 +1000 Subject: [PATCH] Migrate remaining StyleCop config and enable StyleCop analyzer --- .stylecop.json | 10 +++ BizHawk.sln.DotSettings | 5 ++ Common.props | 2 +- CommonStyleCopAnalyzer.props | 2 +- Settings.StyleCop | 122 ----------------------------------- 5 files changed, 17 insertions(+), 124 deletions(-) delete mode 100644 Settings.StyleCop diff --git a/.stylecop.json b/.stylecop.json index f0f8c54f48..9ca62ad341 100644 --- a/.stylecop.json +++ b/.stylecop.json @@ -9,6 +9,16 @@ "indentation": { "useTabs": true }, + "layoutRules": { + "allowConsecutiveUsings": false, + "newlineAtEndOfFile": "require" + }, + "maintainabilityRules": { + "topLevelTypes": [] + }, + "namingRules": { + "allowedHungarianPrefixes": [ "dx", "dy", "k", "sa" ] + }, "orderingRules": { "usingDirectivesPlacement": "outsideNamespace" } diff --git a/BizHawk.sln.DotSettings b/BizHawk.sln.DotSettings index 0cb18ba73d..710755d497 100644 --- a/BizHawk.sln.DotSettings +++ b/BizHawk.sln.DotSettings @@ -204,6 +204,7 @@ True True True + True True True True @@ -212,6 +213,7 @@ True True True + True True True True @@ -283,6 +285,7 @@ True True True + True True True True @@ -334,6 +337,7 @@ True True True + True True True True @@ -375,6 +379,7 @@ True True True + True True True True diff --git a/Common.props b/Common.props index be7df9cee9..32fc3af1e8 100644 --- a/Common.props +++ b/Common.props @@ -21,6 +21,6 @@ - + diff --git a/CommonStyleCopAnalyzer.props b/CommonStyleCopAnalyzer.props index fe16bbe0dc..c5b8a86f5e 100644 --- a/CommonStyleCopAnalyzer.props +++ b/CommonStyleCopAnalyzer.props @@ -4,6 +4,6 @@ - + diff --git a/Settings.StyleCop b/Settings.StyleCop deleted file mode 100644 index bcf19d5058..0000000000 --- a/Settings.StyleCop +++ /dev/null @@ -1,122 +0,0 @@ - - - - blargg - blargg's - buf - inrate - int - libretro - outrate - queueing - resampler - saveram - savestate - savestates - Speex - vsync - - - - - - - - False - - - - - - - - - - False - - - - - False - - - - - - - - - - False - - - - - False - - - - - False - - - - - False - - - - - False - - - - - False - - - - - - - - - - False - - - - - - - - - - False - - - - - - in - is - sa - to - dx - dy - k - - - - - - - - False - - - - - - - \ No newline at end of file