StyleCop + StyleCopCmd made to run on mono (linux)
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
MonoStyleCopCmd
conf
dll
inc
src
test/Net.SF.StyleCopCmd.Core.Test
LICENSE.txt
README.txt
StyleCopCmd.sln
StyleCopCmd.userprefs
build.bat
nant.bat
nant.build
nant.functions
nant.targets
nant.tasks

README.txt

This is stylecopcmd, the trunk as of 2010-08-20.

This version has been modified very slightly to build and run under mono on linux, 

Running:
--------

$ mono Net.SF.StyleCopCmd.Console.exe -sf <solution> -of /home/me/stylecop-reports/report.xml
$ mono Net.SF.StyleCopCmd.Console.exe -f <file.cs>   -of /home/me/stylecop-reports/report.xml

Known Issues:
-------------
You may also see 'permission denied' errors writing your report file, be sure that you specify 
a path where you can write to it's parent directory ( eg, -of /home/inb/stylecop-reports/report.xml )

So far, all the unit tests pass except for NAnt project creation.

The very first time you run the console tool you might see:-
 "An error occurred during the analysis: No access to the given key"

If so, you will have to invoke the command (only once) as root (sudo), 
stylecop wants to create a registry key, thats all.

If you omit the "-of" argument stylecop may crash trying to create 
a file with a null filename


Ian Norton

--
Please see the following URL for information regarding this project:

http://stylecopcmd.sourceforge.net/