米田 Blog ( SQL Server MEMO )

  PASSJブログ :: ホーム :: 連絡をする :: RSS  :: ATOM :: Login
  893 投稿数 :: 6 ストーリー :: 273 コメント :: 255 トラックバック

ニュース

過去の記事

カテゴリ

イメージギャラリ

Categories

FAQKB-SQL Server

gallery

Hands-On Labs Online

KBLIST

Links

Newsgroup microsoft.public

Search

WSS

x64

XBOX360

 米田です。
 
 Source Analysis for C#が公開されています。
FXCopがバイナリ解析なのに対し、ソースコードをマイクロソフト標準に強制していけるようです。
>Source Analysis can be run from within the Visual Studio IDE, and can also be integrated into MSBuild-based command line builds.
http://blogs.msdn.com/sourceanalysis/archive/2008/05/23/announcing-the-release-of-microsoft-source-analysis.aspx
Microsoft Source Analysis for C# : Announcing the release of Microsoft Source Analysis for C#
http://code.msdn.microsoft.com/sourceanalysis/Release/ProjectReleases.aspx?ReleaseId=1047
Microsoft Source Analysis for C# - Release: Source Analysis 4.2
Description
Microsoft Source Analysis version 4.2.
>Files
>Microsoft.SourceAnalysis.msi runtime binary, 1112K, uploaded May 23 - 41664 downloads
 
 上記BLOGによると、次のような約200のルールを持つとのこと
>Layout of elements, statements, expressions, and query clauses
>Placement of curly brackets, parenthesis, square brackets, etc
>Spacing around keywords and operator symbols
>Line spacing
>Placement of method parameters within method declarations or method calls
>Standard ordering of elements within a class
>Formatting of documentation within element headers and file headers
>Naming of elements, fields and variables
>Use of the built-in types
>Use of access modifiers
>Allowed contents of files
>Debugging text
 
 サードパーティの類似ツールとしては、 Code Style Enforcerがあるようです。
http://joel.fjorden.se/static.php?page=CodeStyleEnforcer
Blog by Joel Fjorden a.k.a. Will o Wisp - Code Style Enforcer
>Code Style Enforcer is a DXCore plug-in for Visual Studio 2005 / 2008 that checks the code against a configurable code standard and best practices.
 
投稿日時 : 2008年6月11日 5:53

コメントを追加

No comments posted yet.

コメント

タイトル:
名前:
Url:
コメント: