This project is read-only.

Referencing file location

Aug 28, 2012 at 6:15 PM

I'm not a very strong C# coder so there is a chance that I may be missing something obvious...

I'm writing a custom rule and need to be able to reference the file location as part of the rule, so that anything that references NUnit is in a directory called "test". I realise that this may be outside the scope of StyleCop, but because we are already using it, I would rather not implement another solution into our build server to catch a single rule.

I have tried returning the .location property of the CsDocument, but it returns as "StyleCop.CodeLocation".


Thanks for any help!