Skip to content

Commit f845851

Browse files
committed
exclude v8_inspector from formatting
1 parent 4e6be0c commit f845851

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

tools/.astyle

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,13 @@
1515

1616
# Specify a file or sub directory #### to be excluded from processing.
1717
--exclude="runtime/src/main/jni/include"
18+
--exclude="runtime/src/main/jni/v8_inspector"
1819

1920
# Allow processing to continue if there are errors in the "exclude=###" options.
20-
-i
21+
-xi
2122

2223
# Do not retain a backup of the original file. The original file is purged after it is formatted.
2324
-n
2425

26+
# Java style uses attached brackets.
27+
--style=java

tools/astyle.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const validFiles = ['c', 'cpp', 'h', 'java'];
88
// let dateString = `${date.getDay() + 1}-${date.getMonth() + 1}-${date.getFullYear()}--${date.getHours()}:${date.getMinutes()}`
99
// let backupDir = `formatbackup-${dateString}`;
1010

11-
let astyleOptions = "-H -k1 -j -C -s4 -i -n" // "--options=tools\\.astyle"
11+
let astyleOptions = "--style=java -H -k1 -j -C -s4 -xi -n" // "--options=tools\\.astyle"
1212
let astyle = "astyle";
1313

1414
if (process.platform.indexOf("win") === 0) {

tools/manual-format-all.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
./tools/astyle --recursive -H -k1 -j -C -s4 -xi -n --exclude="runtime/src/main/jni/include" test-app/*.java runtime/*.java runtime/*.h runtime/*.cpp build-artifacts/*.java android-metadata-generator/*.java android-static-binding-generator/*.java
1+
./tools/astyle --style=java --recursive -H -k1 -j -C -s4 -xi -n --exclude="runtime/src/main/jni/include" --exclude="runtime/src/main/jni/v8_inspector" test-app/*.java runtime/*.java runtime/*.h runtime/*.cpp build-artifacts/*.java android-metadata-generator/*.java android-static-binding-generator/*.java

0 commit comments

Comments
 (0)