Author: nestor
Date: 2008-02-12 10:22:33 -0500 (Tue, 12 Feb 2008)
New Revision: 95515
Added:
trunk/mono-tools/gendarme/framework/Gendarme.Framework/DocumentationUriAttribute.cs
trunk/mono-tools/gendarme/framework/Gendarme.Framework/ProblemAttribute.cs
trunk/mono-tools/gendarme/framework/Gendarme.Framework/SolutionAttribute.cs
Log:
Added attributes for decorate rules with problem, solution and an uri for the
documentation.
Added:
trunk/mono-tools/gendarme/framework/Gendarme.Framework/DocumentationUriAttribute.cs
===================================================================
---
trunk/mono-tools/gendarme/framework/Gendarme.Framework/DocumentationUriAttribute.cs
2008-02-12 15:15:09 UTC (rev 95514)
+++
trunk/mono-tools/gendarme/framework/Gendarme.Framework/DocumentationUriAttribute.cs
2008-02-12 15:22:33 UTC (rev 95515)
@@ -0,0 +1,47 @@
+//
+// Gendarme.Framework.DocumentationUriAttribute class
+//
+// Authors:
+// Néstor Salceda <[EMAIL PROTECTED]>
+//
+// (C) 2008 Néstor Salceda
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+using System;
+
+namespace Gendarme.Framework {
+ [AttributeUsage (AttributeTargets.Class, AllowMultiple = false,
Inherited = false)]
+ public sealed class DocumentationUriAttribute : Attribute {
+ private string documentationUri;
+
+ public DocumentationUriAttribute (string documentationUri)
+ {
+ this.documentationUri = documentationUri;
+ }
+
+ public string DocumentationUri {
+ get {
+ return documentationUri;
+ }
+ }
+ }
+}
Added:
trunk/mono-tools/gendarme/framework/Gendarme.Framework/ProblemAttribute.cs
===================================================================
--- trunk/mono-tools/gendarme/framework/Gendarme.Framework/ProblemAttribute.cs
2008-02-12 15:15:09 UTC (rev 95514)
+++ trunk/mono-tools/gendarme/framework/Gendarme.Framework/ProblemAttribute.cs
2008-02-12 15:22:33 UTC (rev 95515)
@@ -0,0 +1,47 @@
+//
+// Gendarme.Framework.ProblemAttribute class
+//
+// Authors:
+// Néstor Salceda <[EMAIL PROTECTED]>
+//
+// (C) 2008 Néstor Salceda
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+using System;
+
+namespace Gendarme.Framework {
+ [AttributeUsage (AttributeTargets.Class, AllowMultiple = false,
Inherited = false)]
+ public sealed class ProblemAttribute : Attribute {
+ private string problem;
+
+ public ProblemAttribute (string problem)
+ {
+ this.problem = problem;
+ }
+
+ public string Problem {
+ get {
+ return problem;
+ }
+ }
+ }
+}
Added:
trunk/mono-tools/gendarme/framework/Gendarme.Framework/SolutionAttribute.cs
===================================================================
--- trunk/mono-tools/gendarme/framework/Gendarme.Framework/SolutionAttribute.cs
2008-02-12 15:15:09 UTC (rev 95514)
+++ trunk/mono-tools/gendarme/framework/Gendarme.Framework/SolutionAttribute.cs
2008-02-12 15:22:33 UTC (rev 95515)
@@ -0,0 +1,47 @@
+//
+// Gendarme.Framework.SolutionAttribute class
+//
+// Authors:
+// Néstor Salceda <[EMAIL PROTECTED]>
+//
+// (C) 2008 Néstor Salceda
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+using System;
+
+namespace Gendarme.Framework {
+ [AttributeUsage (AttributeTargets.Class, AllowMultiple = false,
Inherited = false)]
+ public sealed class SolutionAttribute : Attribute {
+ private string solution;
+
+ public SolutionAttribute (string solution)
+ {
+ this.solution = solution;
+ }
+
+ public string Solution {
+ get {
+ return solution;
+ }
+ }
+ }
+}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches