@³¨·ÓÊÞ²Ù > PC”Å‚Í‚±‚¿‚ç
@wikiŒŸõ

–Ÿ–V’à@ƒEƒBƒL

įÌß | ÒÆ­° | Íß°¼Þˆê—— | ƒ^ƒOˆê—— | ³¨·“àŒŸõ
¥‰º‚Ö[8]

ƒgƒbƒvƒy[ƒW/CSHARP/StyleCop


StyleCop



Ý’è

SA1027‚ðOFF‚É‚µ‚½‚¢‚ªA‚»‚ê‚Í‚Å‚«‚È‚¢‚悤‚¾B‚‚܂èƒ^ƒu‚ÍŽg‚¦‚¸A‚·‚ׂăXƒy[ƒX‚É‚µ‚ë‚Á‚Ä‚±‚Ƃ炵‚¢B


ƒwƒbƒ_[‚Ì—á

<copyright file="AssemblyInfo.cs" company="J-FACTORY">(C)2012</copyright>

ƒtƒ@ƒCƒ‹‚ðœŠO

ƒvƒƒWƒFƒNƒgƒtƒ@ƒCƒ‹(.csproj)‚ɍ׍H‚ð‚·‚é
<ItemGroup>
  <Compile Include="Properties\AssemblyInfo.cs">
    <ExcludeFromStyleCop>true</ExcludeFromStyleCop>
  </Compile>
</ItemGroup>
ƒtƒ@ƒCƒ‹æ“ª‚ɉº‹L‚ð’ljÁ‚·‚é(‚±‚Á‚¿‚Ì‚ªŠÈ’P)
// <auto-generated />

s‚âƒuƒƒbƒN‚ðœŠO

[SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1600:ElementsMustBeDocumented",
		Justification = "—}§‚·‚闝—R‚ð‘‚­")]

ŽQl

http://stylecop.soyuz5.com/StyleCop%20Rules.html


1000 Spacing Rules

Microsoft.StyleCop.CSharp.SpacingRules
SA1000 SA1000:KeywordsMustBeSpacedCorrectly
A violation of this rule occurs when the spacing around a keyword is incorrect.
SA1001:CommasMustBeSpaceCorrectly The spacing around a comma is incorrect, within a C# code file.
SA1002:SemicolonsMustBeSpaceCorrectly Invalid spacing around the semicolon.
ƒZƒ~ƒRƒƒ“‚Ì‘OŒã‚ÌŠÔŠu‚ª–³Œø‚Å‚·B
SA1003:SymbolsMustBeSpaceCorrectly The spacing around the symbol '+' is invalid.
'+'‚Æ‚¢‚¤ƒVƒ“ƒ{ƒ‹‚ÌŽü‚è‚̃Xƒy[ƒX‚Í–³Œø‚Å‚·B
SA1004:DocumentationLinesMustBeginWithSingleSpace The documentation header line must start with a single space.
ƒhƒLƒ…ƒƒ“ƒe[ƒVƒ‡ƒ“ƒwƒbƒ_[‚̍s‚́AƒVƒ“ƒOƒ‹ƒXƒy[ƒX‚©‚çŽn‚Ü‚ç‚È‚¯‚ê‚΂Ȃè‚Ü‚¹‚ñB
SA1005:SingleLineCommentsMustBeginWithSingleSpace The comment must start with a single space. To ignore this error when commenting out a line of code, begin the comment with '////' rather than '//'.
ƒRƒƒ“ƒg‚̓Vƒ“ƒOƒ‹ƒXƒy[ƒX‚©‚çŽn‚Ü‚ç‚È‚¯‚ê‚΂Ȃè‚Ü‚¹‚ñBƒR[ƒh‚̍s‚ðƒRƒƒ“ƒgƒAƒEƒg‚·‚é‚Æ‚«‚±‚̃Gƒ‰[‚𖳎‹‚·‚é‚ɂ́A'//'‚æ‚è‚Þ‚µ‚ë'////'‚ŃRƒƒ“ƒg‚ðŽn‚ß‚Ä‚­‚¾‚³‚¢B
SA1006:PreprocessorKeywordsMustNotBePrecededBySpace A violation of this rule occurs when the preprocessor-type keyword in a preprocessor directive is preceded by space.
SA1007:OperatorKeywordMustBeFollowedBySpace A violation of this rule occurs when the operator keyword within an operator overload method is not followed by any whitespace. The operator keyword should always be followed by a single space.
SA1008:OpeningParenthesisMustBeSpacedCorrectly A violation of this rule occurs when the opening parenthesis within a statement is not spaced correctly.
SA1009:ClosingParenthesisMustBeSpacedCorrectly Invalid spacing around the closing parenthesis.
•Â‚¶Š‡ŒÊ‚ÌŽü‚è‚Ì–³Œø‚̃Xƒy[ƒX
SA1010:OpeningSquareBracketsMustBeSpacedCorrectly A violation of this rule occurs when an opening square bracket within a statement is preceded or followed by whitespace.
SA1011:ClosingSquareBracketsMustBeSpacedCorrectly A violation of this rule occurs when the spacing around a closing square bracket is not correct.
SA1012:OpeningCurlyBracketsMustBeSpacedCorrectly Invalid spacing around the opening curly bracket.
‰‚ß‚Ì’†Š‡ŒÊ‚ÌŽü‚è‚Ì–³Œø‚̃Xƒy[ƒXB
SA1025:CodeMustNotContainMultipleWhitespaceInARow The code contains multiple spaces in a row. Only one space is needed.
‚±‚̃R[ƒhs‚Å•¡”‚̃Xƒy[ƒX‚ªŠÜ‚Ü‚ê‚Ä‚¢‚Ü‚·B—Bˆê‚Ì1‚‚̃Xƒy[ƒX‚ª•K—v‚Å‚·B
SA1027:TabsMustNotBeUsed Tabs are not allowed. Use spaces instead.
ƒ^ƒu‚Í‹–—e‚³‚ê‚Ä‚¢‚Ü‚¹‚ñB ‘ã‚í‚è‚ɃXƒy[ƒX‚ðŽg—p‚µ‚Ä‚­‚¾‚³‚¢B

1100 Readability Rules

[SuppressMessage("StyleCop.CSharp.ReadabilityRules", "*", Justification = "")]
SA1100 SA1100:DoNotPrefixCallsWithBaseUnlessLocalImplementationExists
Œp³‚³‚ꂽƒNƒ‰ƒX‚̃ƒ“ƒo[‚ւ̌Ăяo‚µ‚Íbase‚ÅŽn‚Ü‚ç‚È‚­‚Ä‚Í‚È‚ç‚È‚¢B
SA1101 The call to components must begin with the 'this.' prefix@to indicate that the item is a member of the class.
ƒAƒCƒeƒ€‚ªƒNƒ‰ƒX‚̈êˆõ‚Å‚ ‚邱‚Æ‚ðŽ¦‚·‚½‚߂ɁAƒRƒ“ƒ|[ƒlƒ“ƒg‚ւ̌Ăяo‚µ‚Í'this'Ú“ªŒê‚ÅŽn‚ß‚È‚¯‚ê‚΂Ȃè‚Ü‚¹‚ñB
SA1108 SA1108:BlockStatementsMustNotContainEmbeddedComments
ƒRƒƒ“ƒg‚ÍŠ‡ŒÊ‚Ì’†‚É’u‚©‚È‚¯‚ê‚΂Ȃè‚Ü‚¹‚ñB
SA1115 The parameter must begin on the line after the previous parameter.
ƒpƒ‰ƒƒ^‚Í‘O‚̃pƒ‰ƒƒ^‚ÌŒã‚̍s‚̏ã‚ÅŽn‚Ü‚ç‚È‚¯‚ê‚΂Ȃè‚Ü‚¹‚ñB
SA1116 If the method parameters are on separate lines, the first parameter must begin on the line beneath the name of the method.
ƒƒ\ƒbƒhƒpƒ‰ƒƒ^‚ª•ÊX‚̍s‚É‚ ‚é‚È‚çAÅ‰‚̃pƒ‰ƒƒ^‚̓ƒ\ƒbƒh–¼‚̉º‚̈ʒu‚ÅŽn‚Ü‚ç‚È‚¯‚ê‚΂Ȃè‚Ü‚¹‚ñB
SA1117 All method parameters must be placed on the same line, or each parameter must be placed on a separate line.
‚·‚ׂẴƒ\ƒbƒh‚̃pƒ‰ƒ[ƒ^‚Í“¯‚¶s‚É”z’u‚·‚é‚©AŠeƒpƒ‰ƒ[ƒ^‚²‚Ƃɕʂ̍s‚É”z’u‚·‚é•K—v‚ª‚ ‚è‚Ü‚·B
SA1119 The line contains unnecessary parenthesis.
•s•K—v‚ÈŠ‡ŒÊ‚̍s‚ðŠÜ‚ñ‚Å‚¢‚Ü‚·B
SA1120 The comment is empty. Add text to the comment or remove it.
ƒRƒƒ“ƒg‚Í‹ó‚Å‚·BƒRƒƒ“ƒg‚ɃeƒLƒXƒg‚ð’ljÁ‚Ü‚½‚͍폜‚µ‚Ä‚­‚¾‚³‚¢B
SA1121 Use the built-in type alias 'byte' rather than Byte or System.Byte.
Byte‚âSystem.Byte‚æ‚è‚Þ‚µ‚ë“à‘ Œ^•Ê–¼'byte'‚ðŽg—p‚µ‚Ä‚­‚¾‚³‚¢B
int,uint,short,ushort...
SA1122 Use string.Empty rather than "".
""‚æ‚èstring.Empty‚ðŽg—p‚µ‚Ä‚­‚¾‚³‚¢B
SA1123 The use of regions is not allowed within code elements. Remove the #region and #endregion tags.
region‚ÌŽg—p‚̓R[ƒh—v‘f‚Ì’†‚Å‹–‚³‚ê‚Ä‚¢‚Ü‚¹‚ñB #region‚Æ#endregionƒ^ƒO‚ðŽæ‚菜‚¢‚Ä‚­‚¾‚³‚¢B

1200 Ordering Rules

Microsoft.StyleCop.CSharp.OrderingRules
SA1200 All "using directives" must be placed inside of the namespace.
‚·‚ׂĂÌusingƒfƒBƒŒƒNƒeƒBƒu‚Í–¼‘O‹óŠÔ‚Ì“à•”‚É’u‚©‚È‚¯‚ê‚΂Ȃè‚Ü‚¹‚ñB
SA1201 All constructors must be placed after all fields.
‚·‚ׂẴtƒB[ƒ‹ƒh‚ÌŒã‚É‚·‚ׂẴRƒ“ƒXƒgƒ‰ƒNƒ^‚ð’u‚©‚È‚¯‚ê‚΂Ȃè‚Ü‚¹‚ñB
œƒtƒ@ƒCƒ‹“à‚̏‡”Ô
Extern Alias
Directives
Using Directives
–¼‘O‹óŠÔ(Namespaces)
ƒfƒŠƒQ[ƒg(Delegates)
—ñ‹“Œ^(Enums)
ƒCƒ“ƒ^[ƒtƒFƒCƒX(Interfaces)
\‘¢‘Ì(Structs)
ƒNƒ‰ƒX(Classes)
œƒNƒ‰ƒX‚©\‘¢‘Ì‚©ƒCƒ“ƒ^[ƒtƒFƒCƒX“à‚̏‡”Ô
ƒƒ“ƒo(Fields)
ƒRƒ“ƒXƒgƒ‰ƒNƒ^(Constructors)
ƒfƒXƒgƒ‰ƒNƒ^(Finalizers (Destructors))
ƒfƒŠƒQ[ƒg(Delegates)
ƒCƒxƒ“ƒg(Events)
—ñ‹“Œ^(Enums)
ƒCƒ“ƒ^[ƒtƒFƒCƒX(Interfaces)
ƒvƒƒpƒeƒB(Properties)
ƒCƒ“ƒfƒNƒT(Indexers)
ƒƒ\ƒbƒh(Methods)
\‘¢‘Ì(Structs)
ƒNƒ‰ƒX(Classes)
SA1202 All protected methods must be placed after all public methods.
‚·‚ׂĂÌprotectedƒƒ\ƒbƒh‚Ípublicƒƒ\ƒbƒh‚ÌŒã‚ë‚É’u‚©‚È‚¯‚ê‚΂Ȃè‚Ü‚¹‚ñB
SA1203 All constant and readonly private fields must be placed before all non-constant, non-readonly private fields.
‚·‚ׂĂ̒萔‚Æ“Ç‚ÝŽæ‚èê—pƒvƒ‰ƒCƒx[ƒgƒtƒB[ƒ‹ƒh‚́A”ñ’萔‚Æ”ñ“Ç‚ÝŽæ‚èê—pƒvƒ‰ƒCƒx[ƒgƒtƒB[ƒ‹ƒh‚æ‚è‚à‘O‚É”z’u‚·‚é•K—v‚ª‚ ‚è‚Ü‚·B
SA1204 All static private fields must be placed before all non-static private fields.
‚·‚ׂĂ̐ÓI‚ȃvƒ‰ƒCƒx[ƒgƒtƒB[ƒ‹ƒh‚Ì‘O‚É‘S‚Ä‚Ì”ñÃ“Iƒvƒ‰ƒCƒx[ƒgƒtƒB[ƒ‹ƒh‚ð”z’u‚·‚é•K—v‚ª‚ ‚è‚Ü‚·B
SA1205 SA1205:PartialElementsMustDeclareAccess
The partial element does not have an access modifier defined.
•”•ª“I‚È—v‘f‚́AƒAƒNƒZƒXCüŽq‚ð’è‚ß‚Ä‚¨‚«‚Ü‚¹‚ñB
SA1206 SA1206:DeclarationKeywordsMustFollowOrder
The access modifier keyword must come before the 'static' keyword in the element declaration.
ƒAƒNƒZƒXCüŽqƒL[ƒ[ƒh‚́A—v‘féŒ¾‚É‚¨‚¢‚āwÃ“IxƒL[ƒ[ƒh‚Ì‘O‚É—ˆ‚È‚¯‚ê‚΂Ȃè‚Ü‚¹‚ñB
SA1210 Using directives must be sorted alphabetically by the namespaces.
using ‚Í–¼‘O‹óŠÔ‚̃Aƒ‹ƒtƒ@ƒxƒbƒg‡‚Ƀ\[ƒg‚³‚ê‚Ä‚¢‚È‚¯‚ê‚΂Ȃè‚Ü‚¹‚ñB


1300 Naming Rules

Microsoft.StyleCop.CSharp.NamingRules
SA1300 method names begin with an upper-case letter: XXX
ƒƒ\ƒbƒh–¼‚͑啶ŽšƒAƒ‹ƒtƒ@ƒxƒbƒg‚ÅŽn‚Ü‚è‚Ü‚·
SA1305 The variable name 'hByte2' begins with a prefix that looks like Hungarian notation. Remove the prefix or add it to the list of allowed prefixes.
•Ï”–¼'hByte2'‚̓nƒ“ƒKƒŠ[‚Ì‹L–@‚ÉŽ—‚Ä‚¢‚éÚ“ªŒê‚ÅŽn‚Ü‚è‚Ü‚·B Ú“ªŒê‚ðˆÚ‚·‚©A‚Ü‚½‚Í‹–—eÚ“ªŒê‚̃ŠƒXƒg‚É‚»‚ê‚ð’ljÁ‚µ‚Ä‚­‚¾‚³‚¢B
SA1306 Variable names must start with a lower-case letter: •Ï”–¼.
•Ï”–¼‚͏¬•¶ŽšƒAƒ‹ƒtƒ@ƒxƒbƒg‚©‚çŽn‚Ü‚ç‚È‚¯‚ê‚΂Ȃè‚Ü‚¹‚ñ
SA1307 Public and internal fields must start with an upper-case letter.
publicA‚»‚µ‚āAinternal‚̃tƒB[ƒ‹ƒh‚͑啶ŽšƒAƒ‹ƒtƒ@ƒxƒbƒg‚©‚çŽn‚Ü‚ç‚È‚¯‚ê‚΂Ȃè‚Ü‚¹‚ñ


1400 Maintainability Rules

Microsoft.StyleCop.CSharp.MaintainabilityRules
SA1400 The class must have an access modifier.
ƒNƒ‰ƒX‚ɂ́AƒAƒNƒZƒXCüŒê‚ª‚È‚¯‚ê‚΂Ȃè‚Ü‚¹‚ñB
SA1401 SA1401:SA1401:FieldsMustBePrivate
Fields must be declared with private access. Use properties to expose fields.
ƒvƒ‰ƒCƒx[ƒg‚ŃtƒB[ƒ‹ƒh‚ð\‚µ‚È‚¯‚ê‚΂Ȃè‚Ü‚¹‚ñB ƒvƒƒpƒeƒB‚ðŽg—p‚ŃtƒB[ƒ‹ƒh‚ðŒöŠJ‚µ‚Ä‚­‚¾‚³‚¢B
SA1402 SA1402:FileMayOnlyContainASingleClass
A violation of this rule occurs when a C# file contains more than one class.
ƒtƒ@ƒCƒ‹‚̓Nƒ‰ƒX‚ð‚ЂƂ‚¾‚¯ŠÜ‚ނׂ«‚Å‚ ‚é
SA1404 A Code Analysis suppression must contain a non-empty justification describing the reason for the suppression.
ƒR[ƒh‰ðÍ‚Ì—}§A”ñ‹ó‚̐³“–«‚ð—}§‚·‚邽‚ß‚Ì——R‚ð‹Lq‚·‚é•K—v‚ª‚ ‚è‚Ü‚·B
SA1405 A call to Debug.Assert must provide a message in the second parameter describing the reason for the assert.
Debug.Assert‚̌Ăяo‚µ‚́A‚Q”Ԗڂ̃pƒ‰ƒ[ƒ^‚Éassert‚Ì——R‚ð•\‚·ƒƒbƒZ[ƒW‚ð‹Lq‚·‚é•K—v‚ª‚ ‚è‚Ü‚·B
SA1407 Insert parenthesis within the arithmetic expression to declare the operator precedence.
ŽZpŽ®‚Ì’†‚ÉŠÛŠ‡ŒÊ‚ð‘}“ü‚µ‚āA‰‰ŽZŽq‚Ì—Dæ‡ˆÊ‚𖾊m‚É‚µ‚Ä‚­‚¾‚³‚¢B



1500 Layout Rules

Microsoft.StyleCop.CSharp.LayoutRules
SA1500 If a statement spans multiple lines, the opening curly bracket must be placed on its own line.
ƒXƒe[ƒgƒƒ“ƒg‚ª•¡”‚̍s‚É‚©‚©‚Á‚Ä‚¢‚é‚È‚çA‰‚ß‚Ì’†Š‡ŒÊ‚ð‚»‚êŽ©g‚̍s‚É’u‚©‚È‚¯‚ê‚΂Ȃè‚Ü‚¹‚ñB
SA1501 A statement containing curly brackets must not be placed on a single line. The opening and closing curly brackets must each be placed on their own line.
SA1501: ’†Š‡ŒÊ‚ðŠÜ‚ÞƒXƒe[ƒgƒƒ“ƒg‚ðˆês‚É’u‚¢‚Ä‚Í‚¢‚¯‚Ü‚¹‚ñB ‚»‚ꂼ‚ê‚»‚ê‚玩g‚̐ü‚É’†Š‡ŒÊ‚ð’u‚©‚È‚¯‚ê‚΂Ȃè‚Ü‚¹‚ñB
SA1502 SA1502:ElementMustNotBeOnASingleLine
The constructor must not be placed on a single line. The opening and closing curly brackets must each be placed on their own line.
ƒRƒ“ƒXƒgƒ‰ƒNƒ^‚ðˆês‚É’u‚¢‚Ä‚Í‚¢‚¯‚Ü‚¹‚ñB ‚»‚ꂼ‚ꏉ‚߂́A‚»‚µ‚āAI‚í‚è‚Ì’†Š‡ŒÊ‚ð‚»‚ê‚玩g‚̐ü‚É’u‚©‚È‚¯‚ê‚΂Ȃè‚Ü‚¹‚ñB
SA1503 The body of the if statement must be wrapped in opening and closing curly brackets.
–{‘̂́A’†Š‡ŒÊ‚ŃXƒe[ƒgƒƒ“ƒg‚ð•ï‘•‚µ‚È‚¯‚ê‚΂Ȃç‚È‚¢B
SA1505 An opening curly bracket must not be followed by a blank line.
‹ó”’s‚͏‰‚ß‚Ì’†Š‡ŒÊ‚Ì‚ ‚Æ‚É‘±‚¢‚Ä‚Í‚¢‚¯‚Ü‚¹‚ñB
SA1506 A documentation header line must not be followed by a blank line.
‹ó”’s‚̓hƒLƒ…ƒƒ“ƒe[ƒVƒ‡ƒ“ƒwƒbƒ_[s‚Ì‚ ‚Æ‚É‘±‚¢‚Ä‚Í‚¢‚¯‚Ü‚¹‚ñB
SA1507 The code must not contain multiple blank lines in a row.
‚±‚̃R[ƒhs‚ŁA•¡”‚̋󔒍s‚ðŠÜ‚߂邱‚Æ‚Í‚Å‚«‚Ü‚¹‚ñB
SA1508 The code must not contain blank lines at the end of the file.
ƒtƒ@ƒCƒ‹ÅŒã‚É‹ós‚ðŠÜ‚ñ‚Å‚Í‚È‚è‚Ü‚¹‚ñB
SA1510 An else, catch, or finally statement must not be preceded by a blank line.
elseAcatchAfinallyƒXƒe[ƒgƒƒ“ƒg‚́A‹ó”’s‚ªæs‚·‚邱‚Æ‚Í‚Å‚«‚Ü‚¹‚ñB
SA1512 A single-line comment must not be followed by a blank line. To ignore this error when commenting out a line of code, begin the comment with '////' rather than '//'.
‹ó”’s‚͈êsƒRƒƒ“ƒg‚Ì‚ ‚Æ‚É‘±‚¢‚Ä‚Í‚¢‚¯‚Ü‚¹‚ñBƒRƒƒ“ƒg‚̓Vƒ“ƒOƒ‹ƒXƒy[ƒX‚©‚çŽn‚Ü‚ç‚È‚¯‚ê‚΂Ȃè‚Ü‚¹‚ñBƒR[ƒh‚̍s‚ðƒRƒƒ“ƒgƒAƒEƒg‚·‚é‚Æ‚«‚±‚̃Gƒ‰[‚𖳎‹‚·‚é‚ɂ́A'//'‚æ‚è‚Þ‚µ‚ë'////'‚ŃRƒƒ“ƒg‚ðŽn‚ß‚Ä‚­‚¾‚³‚¢B
SA1513 Statements or elements wrapped in curly brackets must be followed by a blank line.
’†Š‡ŒÊ‚ň͂܂ꂽƒXƒe[ƒgƒƒ“ƒg‚©ƒGƒŒƒƒ“ƒg‚́A‹ó”’s‚ª‘±‚©‚È‚¯‚ê‚΂Ȃè‚Ü‚¹‚ñB
SA1514 A documentation header must be preceded by a blank line or must be the first item in its scope.
ƒhƒLƒ…ƒƒ“ƒe[ƒVƒ‡ƒ“ƒwƒbƒ_[‚́A‹ó”’s‚ªæs‚µ‚È‚¯‚ê‚΂Ȃç‚È‚¢A‚³‚à‚È‚¯‚ê‚΁A”͈͂ōŏ‰‚̍€–Ú‚Å‚ ‚é‚ɈႢ‚ ‚è‚Ü‚¹‚ñB
SA1515 A single-line comment must be preceded by a blank line or another single-line comment, or must be the first item in its scope. To ignore this error when commenting out a line of code, begin the comment with '////' rather than '//'.
SA1515: ‚Ps‚̃Rƒƒ“ƒg‚́A‹ó”’s‚©•Ê‚Ì’PüƒRƒƒ“ƒg‚Őæs‚µ‚È‚¯‚ê‚΂Ȃç‚È‚¢‚©A‚Ü‚½‚͔͈͂ōŏ‰‚̍€–Ú‚Å‚ ‚é‚ɈႢ‚ ‚è‚Ü‚¹‚ñBƒRƒƒ“ƒg‚̓Vƒ“ƒOƒ‹ƒXƒy[ƒX‚©‚çŽn‚Ü‚ç‚È‚¯‚ê‚΂Ȃè‚Ü‚¹‚ñBƒR[ƒh‚̍s‚ðƒRƒƒ“ƒgƒAƒEƒg‚·‚é‚Æ‚«‚±‚̃Gƒ‰[‚𖳎‹‚·‚é‚ɂ́A'//'‚æ‚è‚Þ‚µ‚ë'////'‚ŃRƒƒ“ƒg‚ðŽn‚ß‚Ä‚­‚¾‚³‚¢B
SA1516 Adjacent elements must be separated by a blank line.
—אڂ·‚éƒGƒŒƒƒ“ƒg‚́A‹ó”’s‚Ő؂藣‚³‚È‚¯‚ê‚΂Ȃè‚Ü‚¹‚ñB


1600 Documentation Rules

Microsoft.StyleCop.CSharp.DocumentationRules
SA1600 The class must have a documentation header.
The method must have a documentation header.
ƒNƒ‰ƒX(ƒƒ\ƒbƒh)‚ɂ́AƒhƒLƒ…ƒƒ“ƒe[ƒVƒ‡ƒ“ƒwƒbƒ_[‚ª‚È‚¯‚ê‚΂Ȃè‚Ü‚¹‚ñB
SA1601 The partial class element must have a documentation header containing either a summary tag or a content tag.
partial class—v‘f‚ɂ́Asummaryƒ^ƒO‚©contentƒ^ƒO‚Ì‚Ç‚¿‚ç‚©‚ðŠÜ‚ÞƒhƒLƒ…ƒƒ“ƒe[ƒVƒ‡ƒ“ƒwƒbƒ_[‚ª‚È‚¯‚ê‚΂Ȃè‚Ü‚¹‚ñB
SA1606 The summary section in the documentation header must not be empty.
ƒhƒLƒ…ƒƒ“ƒgƒwƒbƒ_[‚ÌŠT—v‚̃ZƒNƒVƒ‡ƒ“‚ð‹ó‚É‚·‚邱‚Æ‚Í‚Å‚«‚Ü‚¹‚ñB
SA1611 The documentation header must contain param tags matching the element's parameter list.
ƒhƒLƒ…ƒƒ“ƒe[ƒVƒ‡ƒ“ƒwƒbƒ_[‚Í—v‘f‚̃pƒ‰ƒ[ƒ^EƒŠƒXƒg‚ɍ‡‚Á‚Ä‚¢‚éparamƒ^ƒO‚ðŠÜ‚Ü‚È‚¯‚ê‚΂Ȃè‚Ü‚¹‚ñB
SA1612 The param tags in the documentation header must match the element's parameter list.
ƒhƒLƒ…ƒƒ“ƒe[ƒVƒ‡ƒ“ƒwƒbƒ_[‚Ìparamƒ^ƒO‚Í—v‘f‚̃pƒ‰ƒ[ƒ^EƒŠƒXƒg‚ɍ‡‚í‚È‚¯‚ê‚΂Ȃè‚Ü‚¹‚ñ
SA1614 The documentation text within the param tag for the '<param name="hdr"></param>' parameter must not be empty.
ƒhƒLƒ…ƒƒ“ƒg‚̃eƒLƒXƒg‚Ìparamƒ^ƒO‚Ì'<param name="xxx"></param>'‚ª‹ó‚Å‚ ‚Á‚Ä‚Í‚È‚ç‚È‚¢B
SA1615 The documentation header must contain a returns tag since the element has a return value.
–ß‚è’l‚ðŽ‚Á‚Ä‚¢‚éƒGƒŒƒƒ“ƒg‚̃hƒLƒ…ƒƒ“ƒe[ƒVƒ‡ƒ“ƒwƒbƒ_‚́AƒŠƒ^[ƒ“ƒ^ƒO‚ðŠÜ‚ß‚é•K—v‚ª‚ ‚è‚Ü‚·B
SA1623 The property's documentation summary text must begin with: Gets
ƒvƒƒpƒeƒB‚Ì<summary>‚͈ȉº‚ÅŽn‚Ü‚ç‚È‚¯‚ê‚΂Ȃè‚Ü‚¹‚ñB Gets ...
SA1625 The documentation header contains two or more identical documentation strings. The only documentation text which may be duplicated is 'The parameter is not used.'.
ƒhƒLƒ…ƒƒ“ƒe[ƒVƒ‡ƒ“ƒwƒbƒ_[‚Í2ŒÂˆÈã‚Ì“¯‚¶ƒhƒLƒ…ƒƒ“ƒe[ƒVƒ‡ƒ“ƒXƒgƒŠƒ“ƒO‚ðŠÜ‚ñ‚Å‚¢‚Ü‚·B ƒRƒs[‚³‚ê‚é‚©‚à‚µ‚ê‚È‚¢—Bˆê‚̃hƒLƒ…ƒƒ“ƒe[ƒVƒ‡ƒ“ƒeƒLƒXƒg‚Í'parameter is not used.'B
SA1630 The documentation text within the summary tag does not contain any whitespace between words, indicating that it most likely does not follow a proper grammatical structure required for documentation text.
summaryƒ^ƒO‚Ì’†‚̃hƒLƒ…ƒƒ“ƒe[ƒVƒ‡ƒ“ƒeƒLƒXƒg‚Í’PŒê‚ÌŠÔ‚Ì‚Ç‚ñ‚È‹ó”’‚àŠÜ‚ñ‚Å‚¢‚Ü‚¹‚ñA‚½‚Ô‚ñ“KØ‚È•¶–@\‘¢‚ªƒhƒLƒ…ƒƒ“ƒe[ƒVƒ‡ƒ“ƒeƒLƒXƒg‚É•K—v‚Å‚ ‚é‚Æ‚¢‚¤‚±‚Æ‚É‚È‚ç‚È‚¢‚Ì‚ðŽ¦‚µ‚Ä‚¢‚Ü‚·B
SA1631 The documentation text within the summary tag does not appear to follow a proper grammatical structure required for documentation text.
summaryƒ^ƒO‚Ì’†‚̃hƒLƒ…ƒƒ“ƒe[ƒVƒ‡ƒ“ƒeƒLƒXƒg‚̓hƒLƒ…ƒƒ“ƒe[ƒVƒ‡ƒ“ƒeƒLƒXƒg‚É•K—v‚Å‚ ‚é“KØ‚È•¶–@\‘¢‚ɏ]‚¤‚悤‚ÉŒ©‚¦‚Ü‚¹‚ñB
SA1632 The documentation text within the summary tag must be at least 10 characters in length. Documentation failing to meet this guideline most likely does not follow a proper grammatical structure required for documentation text.
summaryƒ^ƒO‚Ì’†‚̃hƒLƒ…ƒƒ“ƒe[ƒVƒ‡ƒ“ƒeƒLƒXƒg‚͏­‚È‚­‚Æ‚à10•¶Žš‚Ì’·‚³‚Å‚È‚¯‚ê‚΂Ȃè‚Ü‚¹‚ñB ‚±‚̃KƒCƒhƒ‰ƒCƒ“‚ð–ž‚½‚³‚È‚¢ƒhƒLƒ…ƒƒ“ƒe[ƒVƒ‡ƒ“‚ª‚½‚Ô‚ñƒhƒLƒ…ƒƒ“ƒe[ƒVƒ‡ƒ“ƒeƒLƒXƒg‚É•K—v‚Å‚ ‚é“KØ‚È•¶–@\‘¢‚ɏ]‚¢‚Ü‚¹‚ñB
SA1633 The file has no header, the header Xml is invalid, or the header is not located at the top of the file.
ƒtƒ@ƒCƒ‹‚ɂ́Aƒwƒbƒ_[‚ª‘S‚­‚È‚¢‚©Aƒwƒbƒ_[Xml‚ª–³Œø‚Å‚ ‚é‚©A‚Ü‚½‚̓wƒbƒ_[‚̓tƒ@ƒCƒ‹‚̐擪‚Ɉʒu‚µ‚Ä‚¢‚Ü‚¹‚ñB
SA1634 The file header must contain a copyright tag.
ƒtƒ@ƒCƒ‹æ“ª‚ɂ́A<copyright>ƒ^ƒO‚ª‚È‚­‚Ä‚Í‚È‚ç‚È‚¢
SA1638 The file attribute in the file header's copyright tag must contain the name of the file.
ƒtƒ@ƒCƒ‹ƒwƒbƒ_[‚̃tƒ@ƒCƒ‹‘®«‚Ìcopyrightƒ^ƒO‚́Aƒtƒ@ƒCƒ‹–¼‚ðŠÜ‚Ü‚È‚¯‚ê‚΂Ȃè‚Ü‚¹‚ñB
SA1642 The documentation text within the constructor's summary tag must begin with the text:Initializes a new instance of the Form1 class.
ƒRƒ“ƒXƒgƒ‰ƒNƒ^‚Ìsummaryƒ^ƒO‚Ì’†‚̃hƒLƒ…ƒƒ“ƒe[ƒVƒ‡ƒ“ƒeƒLƒXƒg‚Í"Initializes a new instance of the **** class"ƒeƒLƒXƒg‚ÅŽn‚Ü‚ç‚È‚¯‚ê‚΂Ȃè‚Ü‚¹‚ñB
SA1643 The documentation text within the destructor's summary tag must begin with the text: Finalizes an instance of the **** class.
ƒfƒXƒgƒ‰ƒNƒ^‚Ìsummaryƒ^ƒO‚Ì’†‚̃hƒLƒ…ƒƒ“ƒe[ƒVƒ‡ƒ“ƒeƒLƒXƒg‚Í"Finalizes an instance of the **** class"ƒeƒLƒXƒg‚ÅŽn‚Ü‚ç‚È‚¯‚ê‚΂Ȃè‚Ü‚¹‚ñB
SA1644 The documentation header must not contain blank lines. Use the 'para' tag to insert line breaks within documentation text.
‹ó”’s‚́AƒhƒLƒ…ƒƒ“ƒgƒwƒbƒ_[‚Ɋ܂߂邱‚Æ‚Í‚Å‚«‚Ü‚¹‚ñBƒhƒLƒ…ƒƒ“ƒg‚̃eƒLƒXƒg‚ɉüs‚ð‘}“ü‚·‚é‚É‚Í'para'ƒ^ƒO‚ðŽg—p‚µ‚Ä‚­‚¾‚³‚¢B
SA1649 SA1649:FileHeaderFileNameDocumentationMustMatchTypeName
A violation of this rule occurs when the file tag within the file header at the top of a C# file does not contain the name of the first type in the file.
ƒtƒ@ƒCƒ‹ƒwƒbƒ_‚̃tƒ@ƒCƒ‹ƒ^ƒO‚ɁAƒtƒ@ƒCƒ‹“à‚̍ŏ‰‚Ì–¼‘O‚ªŠÜ‚Ü‚ê‚Ä‚¢‚È‚¢


VisualStudio‚̃GƒfƒBƒ^Ý’è

ƒIƒvƒVƒ‡ƒ“ƒ_ƒCƒAƒƒO => ƒeƒLƒXƒgƒGƒfƒBƒ^ => C#

ã‚Ö[2]


įÌßÍß°¼Þ
Íß°¼Þˆê——
³¨·“àŒŸõ
ίÄÜ°ÄÞ
ƒ^ƒOˆê——
Íß°¼Þ‚̐擪‚Ö[2]
Íß°¼Þ‚̉º‚Ö[8]
—F’B‚É‹³‚¦‚é
PC”Å‚Í‚±‚¿‚ç








ŠÖ˜AŒê‹å: ‰p•¶ ƒGƒfƒBƒ^ “ú–{Œê

PC‚Å@³¨·‚ɐV‹K“o˜^


’¼‘O‚ÌÍß°¼Þ‚Í‚Ì–ß‚éÎÞÀ݂Å


@³¨·ÓÊÞ²Ù [0]