Skip to content

Let StyleCop make a static code analysis on your C#-files within your Grunt build pipeline without the need to change your csproj-files or install StyleCop anywhere.

License

Notifications You must be signed in to change notification settings

Nylle/grunt-stylecop-runner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Built with Grunt NPM version
Dependency Status devDependency Status
forthebadge

grunt-stylecop-runner

Getting started

$ npm install grunt-stylecop-runner --save-dev

Next add this line to your project's Gruntfile:

grunt.loadNpmTasks('grunt-stylecop-runner');

Configuration

You'll find the StyleCop.Console application here: https://github.com/Nylle/StyleCop.Console

Add this to your Grunt configuration:

stylecop: {
  options: {
    path: '/path/to/stylecop/StyleCop.Console.exe'
  },
  server: {
    options: {
      include: 'path/to/your/cs-files',
      settings: 'path/to/your/Settings.StyleCop'
    }
  }
}

About

Let StyleCop make a static code analysis on your C#-files within your Grunt build pipeline without the need to change your csproj-files or install StyleCop anywhere.

Resources

License

Stars

Watchers

Forks

Packages