File tree 3 files changed +7
-11
lines changed
src/scheduler/src/main/java/org/cloudfoundry/autoscaler/scheduler/service
3 files changed +7
-11
lines changed Original file line number Diff line number Diff line change 25
25
run : |
26
26
sh ./style-guide/google-format-ci-v0.1.sh
27
27
env :
28
- GOOGLE_JAR_VERSION : 1.11 .0
29
- GOOGLE_JAR_NAME : google-java-format-1.11 .0-all-deps.jar
28
+ GOOGLE_JAR_VERSION : 1.22 .0
29
+ GOOGLE_JAR_NAME : google-java-format-1.22 .0-all-deps.jar
30
30
31
31
- name : Checkstyle
32
32
run : |
Original file line number Diff line number Diff line change @@ -288,6 +288,7 @@ private SpecificDateScheduleEntity createCompensatorySchedule(
288
288
289
289
return compenstatorySchedule ;
290
290
}
291
+
291
292
/**
292
293
* Calls private helper methods to delete the schedules from the database and calls
293
294
* ScalingJobManager to delete scaling action jobs.
Original file line number Diff line number Diff line change @@ -4,22 +4,17 @@ export PATH=${HOME}/go/bin:${PATH}
4
4
# ##################################################################################################
5
5
# This script downloads google formatter and displays formatting issues on Github actions
6
6
# ##################################################################################################
7
- GOOGLE_JAR_VERSION=${GOOGLE_JAR_VERSION:- " 1.11 .0" }
7
+ GOOGLE_JAR_VERSION=${GOOGLE_JAR_VERSION:- " 1.22 .0" }
8
8
GOOGLE_JAR_NAME=${GOOGLE_JAR_NAME:- " google-java-format-${GOOGLE_JAR_VERSION} -all-deps.jar" }
9
9
! [ -e " $GOOGLE_JAR_NAME " ] && \
10
10
curl -fLJO " https://github.com/google/google-java-format/releases/download/v$GOOGLE_JAR_VERSION /$GOOGLE_JAR_NAME "
11
+ # shellcheck disable=SC2046
11
12
files_to_be_formatted=$( java \
12
- --add-exports jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED \
13
- --add-exports jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED \
14
- --add-exports jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED \
15
- --add-exports jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED \
16
- --add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED \
17
- -jar " ${GOOGLE_JAR_NAME} " -n --skip-javadoc-formatting $( find . -name ' *.java' ) )
18
-
13
+ -jar " ${GOOGLE_JAR_NAME} " --dry-run --skip-javadoc-formatting $( find src/scheduler -name ' *.java' ) )
19
14
20
15
if [ -n " $files_to_be_formatted " ]; then
21
16
echo " Formatter Results..."
22
17
echo " Files require reformatting:"
23
18
echo " ${files_to_be_formatted} "
24
19
exit 1
25
- fi
20
+ fi
You can’t perform that action at this time.
0 commit comments