|
53 | 53 | javafmt = pkgs.runCommand "check-javafmt" { } '' |
54 | 54 | cd ${./.} |
55 | 55 | # Exclude minimized fixtures and generated SCIP snapshot goldens |
56 | | - # (coupled to exact line/column annotations) plus the standalone |
57 | | - # example projects: their layout must not be reformatted here. |
| 56 | + # (coupled to exact line/column annotations), the standalone example |
| 57 | + # projects, and the buildTools test fixtures: these all mirror |
| 58 | + # real-world project layouts that must not be reformatted here. |
58 | 59 | find . -name '*.java' \ |
59 | 60 | -not -path './examples/*' \ |
60 | 61 | -not -path './tests/minimized/*' \ |
61 | 62 | -not -path './tests/snapshots/*' \ |
| 63 | + -not -path './tests/buildTools/src/test/resources/fixtures/*' \ |
62 | 64 | -not -path './scip-kotlinc/minimized/*' \ |
63 | 65 | -exec ${pkgs.google-java-format}/bin/google-java-format --dry-run --set-exit-if-changed {} + |
64 | 66 | touch $out |
65 | 67 | ''; |
66 | 68 | ktfmt = pkgs.runCommand "check-ktfmt" { } '' |
67 | 69 | cd ${./.} |
68 | | - # Exclude minimized Kotlin snapshots: the input fixtures are coupled |
69 | | - # to generated SCIP goldens with exact line/column annotations, so |
70 | | - # their layout must not be reformatted here. |
| 70 | + # Exclude minimized Kotlin snapshots (coupled to generated SCIP |
| 71 | + # goldens with exact line/column annotations) and the buildTools test |
| 72 | + # fixtures (real-world project layouts): neither may be reformatted. |
71 | 73 | find . -name '*.kt' \ |
72 | 74 | -not -path './scip-kotlinc/minimized/*' \ |
| 75 | + -not -path './tests/buildTools/src/test/resources/fixtures/*' \ |
73 | 76 | -exec ${pkgs.ktfmt}/bin/ktfmt --kotlinlang-style --dry-run --set-exit-if-changed {} + |
74 | 77 | touch $out |
75 | 78 | ''; |
|
0 commit comments