[CALCITE-3559] Drop HydromaticFileSetCheck, upgrade Checkstyle#1625
[CALCITE-3559] Drop HydromaticFileSetCheck, upgrade Checkstyle#1625vlsi merged 5 commits intoapache:masterfrom
Conversation
2de13e2 to
a5bffc1
Compare
|
Please don't commit this without more discussion. HydromaticFileSetCheck checks things that checkstyle doesn't, and can't. If we remove it, we have less code style coverage. |
3775c1c to
a506635
Compare
You are right. Almost all the checks can be implemented without HydromaticFileSetCheck, so it is natural to drop it. We can even live with a reduced set of rules for a while. |
|
@julianhyde , as you can see in the issue description, this PR covers 7 of 10 checks of HydromaticFileSetCheck. I guess we can live without So the only missing bit here is |
a506635 to
c624dc2
Compare
|
Showcase. Input file with formatting violations: public class Babel {
// This class is currently a place-holder. Javadoc gets upset
// if there are no classes in babel/java/main.
public void test() {
String a = test("str\"ing()", string2());
Object expr4 =
gt(
qw(42, 43), eq(gt(x,
y), 2));
Object expr = gt(eq(x, 2 + (3 - 1)
), 5);
Object expr2 = "(" + gt(eq(x, (3 - 2) + 2
), 6);
Object expr3 =
gt(
qw(), eq(gt(x,
y), 2));
}
private int x = 41;
private int y = 42;
private int qw() {
return 0;
}
private int qw(int a, int b) {
return 0;
}
private int gt(int a, int b) {
return 0;
}
private int eq(int a, int b) {
return 0;
}
private String string2() {
return null;
}
private String test(String a, String b) {
return null;
}
}BeforeHydromaticFileSetCheck output: In case you wonder, line 29 is The exception messages are quite obscure. It is kind of hard to understand what the rule wants me to do. AfterAfter the drop of HydromaticFileSetCheck, the build suggests the modifications. |
da38506 to
7d9a4a4
Compare
7d9a4a4 to
e277138
Compare
|
LGTM |
e277138 to
f966d17
Compare
…from their own lines
f966d17 to
52a5707
Compare
Checklist
// End file.java)checker.xml / Regexpchecker.xml / RegexpLineLength=100