Free cookie consent management tool by TermsFeed Policy Generator

source: trunk/tools/FxCop/HeuristicLab.FxCop/RuleMetadata.xml @ 13253

Last change on this file since 13253 was 7350, checked in by abeham, 13 years ago

#1759

  • Changed storable hook name rule to correctly distinguish between BeforeSerialization and AfterDeserialization hooks
  • Added a new rule that checks if more than one storable hook is defined in a class
File size: 1.2 KB
RevLine 
[7340]1<?xml version="1.0" encoding="utf-8" ?>
2<Rules FriendlyName="HeuristicLab 3.3 FxCop Rules">
[7350]3  <Rule TypeName="EnforceStorableHookNames" Category="HeuristicLab.Persistence" CheckId="HL0001">
4    <Name>Enforce StorableHook Names</Name>
5    <Description>The method that is marked to be a storable hook should always be called similar to the respective hook type.</Description>
6    <Resolution>Method {0} is attributed as a StorableHook. It needs to be called {1}.</Resolution>
[7340]7    <MessageLevel Certainty="100">Error</MessageLevel>
[7350]8    <FixCategories>NonBreaking</FixCategories>
9    <Url></Url>
10    <Owner></Owner>
11    <Email></Email>
[7340]12  </Rule>
[7350]13  <Rule TypeName="EnforceOneStorableHookPerClass" Category="HeuristicLab.Persistence" CheckId="HL0002">
14    <Name>Enforce One StorableHook Per Class</Name>
15    <Description>Each class shall have only one storable hook of each type.</Description>
16    <Resolution>Class {0} declares {1} storable hooks of type {2}. Merge these into one hook.</Resolution>
17    <MessageLevel Certainty="100">Error</MessageLevel>
18    <FixCategories>NonBreaking</FixCategories>
19    <Url></Url>
20    <Owner></Owner>
21    <Email></Email>
22  </Rule>
[7340]23</Rules>
Note: See TracBrowser for help on using the repository browser.