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
{
30 public Uri Documentation
{
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
)
48 this.problem
= problem
;
49 this.solution
= solution
;
50 this.severity
= severity
;
51 this.location
= new CodeLocation(file
, line
, 0);