新疆软件开发

本站首页 软件开发 成功案例 公司新闻 公司简介 客服中心 软件技术 网站建设
  您现在的位置: 新疆二域软件开发公司 >> 开发语言 >> 文章正文

StyleCop的命令行使用方法

  StyleCop提供了简单和有效的方式来对项目的代码编写风格进行检查。

        StyleCop可以多种方式运行,可以插件的方式在Visual Studio的IDE中运行;
   也可以MSBuild任务的方式运行,可整合到程序构建流程中;或者以命令行的方式运行,可针对一个或多个代码文件进行检查。
StyleCop的命令行使用方法:
Usage:
   StyleCopCmd [options] [path]
Options:
   -a         Process all source files found under the start path (default)
   -cs {file} Analyze the specified file.
   -f         Perform a full analyze (ignore cached results)
   -u         Do not write results cache files.
   -o {file}  Apply the given StyleCop options file to all projects and files
   -l {file}  Save violation report at the given location. If omitted, saves
              StyleCopViolations.xml in the current directory.
   -p {path}  Attempts to discover StyleCop AddIn modules under the given
              path. This flag may be specified multiple times to search under
              multiple paths
   -i         Ignore the default StyleCop AddIn path under the All Users\Applica
tion Data folder
Conditional Compilation Flags:
   -define:FLAG1;FLAG2;FLAG3

Path:
   Specifies the path to begin search for source files.
   If this is omitted, uses the current directory as the
   start path.

作者:未知 | 文章来源:网络 | 更新时间:2008-1-21 16:27:59

  • 上一篇文章:

  • 下一篇文章:

  • 相关文章:
    没有相关文章
    软件技术
    · 开发语言
    · Java技术
    · .Net技术
    · 数据库开发
    最新文章  
    ·搜集整理的asp.net的验证方
    ·各种FOR循环结构的整理
    ·软件项目开发中应该考虑那
    ·搜集整理的javascript sel
    ·软件开发中项目经理有那些
    ·学习如何在Lambda表达式进
    ·C++基础知识:结构体数据的
    ·C#实现短信发送程序的例子
    ·sun最近修补了一部分java的
    ·rss定制的另外一种实现方式
    ·delphi实现利用arp欺骗来实
    ·基础学习:基于WF的流程框
    ·网络编程中怎样得知一次数
    ·如何逆序输出单链表?
    ·软件开发过程中的性能设计
    关于我们 | 软件开发 | 下载试用 | 客服中心 | 联系我们 | 友情链接 | 网站地图 | 新疆电子地图 | RSS订阅
    版权所有 © 2016 新疆二域软件开发网 www.k8w.net All Rights Reserved 新ICP备14003571号
    新疆软件开发总机:0991-4842803、4811639.
    客服QQ:596589785 ;地址:新疆乌鲁木齐北京中路华联大厦A-5C 邮编:830000