Lephone FxCop Rules

Lephone FxCop Rules is the custom rules for FxCop.

For now it includes 2 rules:
  • function should less than limited lines
  • file should less than limited lines.

Installation

  • Install Microsoft FxCop 1.36 to your pc.
  • Download Lephone.FxCop.Rules.bin.zip and unpack it to a folder.
  • Run install.bat in this folder (In vista you need run it by administrator mode.)

Install source code

  • Download the source code package and unpack it to a folder.
  • Create the folder "Bin" in the install path.
  • Copy the folder "Microsoft FxCop 1.36" in the install path.
  • Copy "Lephone.Util.dll" to folder "Microsoft FxCop 1.36".
  • In FxCopCmd.exe.config, add following code to appSettings section:
<add key="FunctionLinesLimitation" value="70" />
<add key="FileLinesLimitation" value="700" />

Links

FxCop download:
My other project(s):
My Homepage, Blog(Chinese version 点睛工作室) and email:
Last edited May 19 2008 at 3:50 PM by lifeng, version 9

 

Want to leave feedback?
Please use Discussions or Reviews instead.

Updating...
© 2006-2009 Microsoft | About CodePlex | Privacy Statement | Terms of Use | Code of Conduct | Version 2009.6.1.15196