diff --git a/.coderabbit.yaml b/.coderabbit.yaml
new file mode 100644
index 0000000..5176010
--- /dev/null
+++ b/.coderabbit.yaml
@@ -0,0 +1,2 @@
+reviews:
+ path_filters: ["**/ruleset.xml","ruleset.xml", "**/bad.java", "bad.java"]
\ No newline at end of file
diff --git a/bad.java b/bad.java
new file mode 100644
index 0000000..fdf2852
--- /dev/null
+++ b/bad.java
@@ -0,0 +1,24 @@
+public class BadExample {
+
+ private int unusedField;
+
+ public BadExample() {
+ // unnecessary constructor
+ }
+
+ public void DOStuff() {
+ try {
+ int FooBar = 1;
+ System.out.println("Start");
+
+ for (int i = 0; i < 30; i++) { + System.out.println("Line " + i); + } + } catch (Exception e) { + // silently ignored + } finally { + return; // forbidden in finally block + } + } +} + diff --git a/ruleset.xml b/ruleset.xml new file mode 100644 index 0000000..fdc0651 --- /dev/null +++ b/ruleset.xml @@ -0,0 +1,35 @@ +
+