|
29 | 29 | buildInputs = with pkgs; [ |
30 | 30 | bazelisk |
31 | 31 | git |
32 | | - google-java-format |
33 | 32 | (gradle_9.override ({ java = jdk; })) |
34 | 33 | jdk |
35 | 34 | jq |
36 | | - ktfmt |
37 | 35 | (maven.override ({ jdk_headless = jdk; })) |
38 | 36 | nixfmt |
39 | 37 | nodejs |
|
48 | 46 | ${pkgs.actionlint}/bin/actionlint ${./.github/workflows}/*.yaml |
49 | 47 | touch $out |
50 | 48 | ''; |
51 | | - javafmt = pkgs.runCommand "check-javafmt" { } '' |
52 | | - cd ${./.} |
53 | | - # Exclude minimized fixtures and generated SCIP snapshot goldens |
54 | | - # (coupled to exact line/column annotations), the standalone example |
55 | | - # projects, and the scip-java build-tool test fixtures: these all mirror |
56 | | - # real-world project layouts that must not be reformatted here. |
57 | | - find . -name '*.java' \ |
58 | | - -not -path './examples/*' \ |
59 | | - -not -path './scip-snapshots/cases/*' \ |
60 | | - -not -path './scip-snapshots/expected/*' \ |
61 | | - -not -path './scip-java/src/test/resources/fixtures/*' \ |
62 | | - -exec ${pkgs.google-java-format}/bin/google-java-format --dry-run --set-exit-if-changed {} + |
63 | | - touch $out |
64 | | - ''; |
65 | | - ktfmt = pkgs.runCommand "check-ktfmt" { } '' |
66 | | - cd ${./.} |
67 | | - # Exclude minimized Kotlin snapshots (coupled to generated SCIP |
68 | | - # goldens with exact line/column annotations) and the scip-java |
69 | | - # build-tool test fixtures (real-world project layouts): neither may |
70 | | - # be reformatted. |
71 | | - find . -name '*.kt' \ |
72 | | - -not -path './scip-snapshots/cases/*' \ |
73 | | - -not -path './scip-snapshots/expected/*' \ |
74 | | - -not -path './scip-java/src/test/resources/fixtures/*' \ |
75 | | - -exec ${pkgs.ktfmt}/bin/ktfmt --kotlinlang-style --dry-run --set-exit-if-changed {} + |
76 | | - touch $out |
77 | | - ''; |
78 | 49 | nixfmt = pkgs.runCommand "check-nixfmt" { } '' |
79 | 50 | ${pkgs.nixfmt}/bin/nixfmt --check ${./flake.nix} |
80 | 51 | touch $out |
|
0 commit comments