aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/sonar-squid-java-plugin/test-resources/rules/CommentedCode.java
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/sonar-squid-java-plugin/test-resources/rules/CommentedCode.java')
-rw-r--r--plugins/sonar-squid-java-plugin/test-resources/rules/CommentedCode.java22
1 files changed, 22 insertions, 0 deletions
diff --git a/plugins/sonar-squid-java-plugin/test-resources/rules/CommentedCode.java b/plugins/sonar-squid-java-plugin/test-resources/rules/CommentedCode.java
new file mode 100644
index 00000000000..0a44bc77d2a
--- /dev/null
+++ b/plugins/sonar-squid-java-plugin/test-resources/rules/CommentedCode.java
@@ -0,0 +1,22 @@
+public class CommentedCode {
+ public CommentedCode() {
+ //This is a comment
+ //if (true) {
+ int i = 2;
+ }
+
+ /**
+ * No detection of commented code line in Javadoc bloc
+ *
+ * public void main(){
+ *
+ * }
+ */
+ public void analyse() {
+ /*
+ for(Visitor visitor : visitors){
+ visitor.scan(line);
+ }
+ */
+ }
+}