* Makefile.am:
[monodevelop.git] / extras / MonoDevelop.CodeAnalysis / MonoDevelop.CodeAnalysis.Smokey / SmokeyViolation.cs
blob803fa4211e250fdd51a04bc216b7622616a99e99
1 using System;
3 using CA = MonoDevelop.CodeAnalysis;
5 namespace MonoDevelop.CodeAnalysis.Smokey {
7 public class SmokeyViolation : CA.IViolation {
8 private string ruleId, problem, solution;
9 private CA.Severity severity;
10 private CA.CodeLocation location;
12 public CA.IRule Rule {
13 get { return SmokeyRuleCache.Get (ruleId); }
16 public CA.Severity Severity {
17 get { return severity; }
20 public CA.Confidence Confidence {
21 get { return CA.Confidence.Normal; }
24 public CA.CodeLocation Location {
25 get {
26 return location;
30 public Uri Documentation {
31 get {
32 throw new NotImplementedException();
36 public string Problem {
37 get { return problem; }
40 public string Solution {
41 get { return solution; }
45 public SmokeyViolation (string ruleId, string problem, string solution, CA.Severity severity, string file, int line)
47 this.ruleId = ruleId;
48 this.problem = problem;
49 this.solution = solution;
50 this.severity = severity;
51 this.location = new CodeLocation(file, line, 0);