forked from GoDaddy-Hosting/ruby-sonar-plugin
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathCaneCommentViolation.java
More file actions
40 lines (31 loc) · 851 Bytes
/
CaneCommentViolation.java
File metadata and controls
40 lines (31 loc) · 851 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package com.godaddy.sonar.ruby.metricfu;
public class CaneCommentViolation extends CaneViolation {
private int line;
private String className;
public CaneCommentViolation(String file, int line, String className) {
super(file);
this.line = line;
this.className = className;
}
public CaneCommentViolation() {
}
public String getKey() {
return "CommentViolation";
}
public int getLine() {
return line;
}
public void setLine(int line) {
this.line = line;
}
public String getClassName() {
return className;
}
public void setClassName(String className) {
this.className = className;
}
@Override
public String toString() {
return "file: " + getFile() + " line: " + line + " class: " + className;
}
}