Giter Site home page Giter Site logo

stylecopplus.msbuild's Introduction

StyleCop+ Build Integration

StyleCopPlus.MSBuild integrates StyleCopPlus into the build process.

This is just a simple Nuget that sets StyleCopAdditionalAddinPaths to the StyleCopPlus.dll folder. All regards to the corresponding authors.

It can be installed via Nuget: https://www.nuget.org/packages/StyleCopPlus.MSBuild/

stylecopplus.msbuild's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

stylecopplus.msbuild's Issues

xbuild compatibility issue

Hi.

Trying to use stylecopplus on linux with mono and xbuild (mono 3.12.0). Get crash during build process.
Target StyleCop:
Excluding Properties/AssemblyInfo.cs
Exception thrown by analyzer 'StyleCop+' while processing '/opt/warface/alexb/TestStyleCop/TestStyleCop/Class1.cs'.
Exception message : An exception was thrown by the type initializer for StyleCopPlus.Plugin.AdvancedNaming.NamingSettings
/opt/warface/alexb/TestStyleCop/TestStyleCop/Class1.cs(1,1): error : SA0001 : CoreParser : An exception occurred while parsing the file: System.TypeInitializationException, An exception was thrown by the type initializer for StyleCopPlus.Plugin.AdvancedNaming.NamingSettings
at StyleCopPlus.Plugin.AdvancedNaming.CurrentNamingSettings.InitializeCommon (StyleCop.SourceAnalyzer analyzer, StyleCop.CodeDocument document) [0x00000] in :0
at StyleCopPlus.Plugin.AdvancedNaming.CurrentNamingSettings.Initialize (StyleCop.SourceAnalyzer analyzer, StyleCop.CodeDocument document) [0x00000] in :0
at StyleCopPlus.Plugin.AdvancedNaming.AdvancedNamingRules.AnalyzeDocument (StyleCop.CodeDocument document) [0x00000] in :0
at StyleCopPlus.StyleCopPlusRules.AnalyzeDocument (StyleCop.CodeDocument document) [0x00000] in :0
at StyleCop.StyleCopThread.RunAnalyzers (StyleCop.CodeDocument document, StyleCop.SourceParser parser, IEnumerable`1 analyzers) [0x00000] in :0 .
1 violations encountered.
Task "StyleCopTask" execution -- FAILED
Done building target "StyleCop" in project "/opt/warface/alexb/TestStyleCop/TestStyleCop/TestStyleCop.csproj".-- FAILED
Done building project "/opt/warface/alexb/TestStyleCop/TestStyleCop/TestStyleCop.csproj".-- FAILED

Build FAILED.
Errors:
/opt/warface/alexb/TestStyleCop/TestStyleCop/TestStyleCop.csproj (default targets) ->
/opt/warface/alexb/TestStyleCop/packages/StyleCop.MSBuild.4.7.54.0/build/StyleCop.MSBuild.Targets (StyleCop target) ->
/opt/warface/alexb/TestStyleCop/TestStyleCop/Class1.cs(1,1): error : SA0001 : CoreParser : An exception occurred while parsing the file: System.TypeInitializationException, An exception was thrown by the type initializer for StyleCopPlus.Plugin.AdvancedNaming.NamingSettings
at StyleCopPlus.Plugin.AdvancedNaming.CurrentNamingSettings.InitializeCommon (StyleCop.SourceAnalyzer analyzer, StyleCop.CodeDocument document) [0x00000] in :0
at StyleCopPlus.Plugin.AdvancedNaming.CurrentNamingSettings.Initialize (StyleCop.SourceAnalyzer analyzer, StyleCop.CodeDocument document) [0x00000] in :0
at StyleCopPlus.Plugin.AdvancedNaming.AdvancedNamingRules.AnalyzeDocument (StyleCop.CodeDocument document) [0x00000] in :0
at StyleCopPlus.StyleCopPlusRules.AnalyzeDocument (StyleCop.CodeDocument document) [0x00000] in :0
at StyleCop.StyleCopThread.RunAnalyzers (StyleCop.CodeDocument document, StyleCop.SourceParser parser, IEnumerable`1 analyzers) [0x00000] in :0 .
0 Warning(s)
1 Error(s)
Time Elapsed 00:00:02.2770760
Unhandled Exception:
System.TypeInitializationException: An exception was thrown by the type initializer for System.Drawing.GDIPlus ---> System.DllNotFoundException: libgdiplus.so
at (wrapper managed-to-native) System.Drawing.GDIPlus:GdiplusStartup (ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&)
at System.Drawing.GDIPlus..cctor () [0x00000] in :0
--- End of inner exception stack trace ---
at System.Drawing.Image.InitFromStream (System.IO.Stream stream) [0x00000] in :0
at System.Drawing.Image..ctor (System.Runtime.Serialization.SerializationInfo info, StreamingContext context) [0x00000] in :0
at System.Drawing.Bitmap..ctor (System.Runtime.Serialization.SerializationInfo info, StreamingContext context) [0x00000] in :0
at (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke (System.Reflection.MonoCMethod,object,object[],System.Exception&)
at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) [0x00000] in :0
warface@kielxtest023:~/alexb/TestStyleCop/TestStyleCop$ /opt/warface/mono/bin/xbuild
sh: 0: getcwd() failed: No such file or directory

Unhandled Exception:
System.IO.FileNotFoundException: Could not find file ""
at System.IO.Directory.InsecureGetCurrentDirectory () [0x00000] in :0
at System.IO.Directory.GetCurrentDirectory () [0x00000] in :0
at Mono.XBuild.CommandLine.Parameters.ParseArguments (System.String[] args) [0x00000] in :0
at Mono.XBuild.CommandLine.MainClass.Execute () [0x00000] in :0
at Mono.XBuild.CommandLine.MainClass.Main (System.String[] args) [0x00000] in :0

It crashes even if there is no rule violations.
StyleCop without StyleCopPlus works ok.
Any thoughts? Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.