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 package com.qulice.pmd;
32
33 import java.io.Writer;
34 import java.util.List;
35 import net.sourceforge.pmd.Report;
36 import net.sourceforge.pmd.properties.AbstractPropertySource;
37 import net.sourceforge.pmd.renderers.Renderer;
38 import net.sourceforge.pmd.util.datasource.DataSource;
39
40
41
42
43
44
45 @SuppressWarnings("deprecation")
46 final class PmdRenderer extends AbstractPropertySource implements Renderer {
47
48
49
50 private final Report accumulator = new Report();
51
52 @Override
53 public String getName() {
54 return "qulice";
55 }
56
57 @Override
58 public void setName(final String name) {
59 throw new UnsupportedOperationException("Unimplemented method 'setName'");
60 }
61
62 @Override
63 public String getDescription() {
64 return "not implemented yet";
65 }
66
67 @Override
68 public String defaultFileExtension() {
69 throw new UnsupportedOperationException("Unimplemented defaultFileExtension");
70 }
71
72 @Override
73 public void setDescription(final String description) {
74 throw new UnsupportedOperationException("Unimplemented setDescription");
75 }
76
77 @Override
78 public boolean isShowSuppressedViolations() {
79 throw new UnsupportedOperationException("Unimplemented isShowSuppressedViolations");
80 }
81
82 @Override
83 public void setShowSuppressedViolations(final boolean show) {
84 throw new UnsupportedOperationException("Unimplemented setShowSuppressedViolations");
85 }
86
87 @Override
88 public void setUseShortNames(final List<String> list) {
89
90 }
91
92 @Override
93 public Writer getWriter() {
94 throw new UnsupportedOperationException("Unimplemented getWriter");
95 }
96
97 @Override
98 public void setWriter(final Writer writer) {
99 throw new UnsupportedOperationException("Unimplemented setWriter");
100 }
101
102 @Override
103 public void start() {
104
105 }
106
107 @Override
108 public void startFileAnalysis(final DataSource source) {
109
110 }
111
112 @Override
113 public void renderFileReport(final Report report) {
114 this.accumulator.merge(report);
115 }
116
117 @Override
118 public void end() {
119
120 }
121
122 @Override
123 public void flush() {
124
125 }
126
127 @Override
128 public void setReportFile(final String report) {
129
130 }
131
132 @Override
133 public String getPropertySourceType() {
134 throw new UnsupportedOperationException("Unimplemented method 'getPropertySourceType'");
135 }
136
137
138
139
140
141 void exportTo(final Report target) {
142 target.merge(this.accumulator);
143 }
144 }