Add script to check format of changed dart files (#160007)
The script is modeled after a similar script in the engine (see engine's [format.dart](https://github.com/flutter/engine/blob/main/ci/bin/format.dart)). It identifies the files that have been changed and checks if their formatting is correct. It also offers an option to correct formatting (`--fix`) and an option to check the formatting of all files in the repro (not just changed ones, `--all-files`). When we are enforcing dart format this script will be called as part of presubmit.
This commit is contained in:
committed by
GitHub
parent
2f9e2d9bc9
commit
c4dc2c9890
@@ -2246,6 +2246,7 @@ const Set<String> kExecutableAllowlist = <String>{
|
||||
'dev/tools/gen_keycodes/bin/gen_keycodes',
|
||||
'dev/tools/repackage_gradle_wrapper.sh',
|
||||
'dev/tools/bin/engine_hash.sh',
|
||||
'dev/tools/format.sh',
|
||||
|
||||
'packages/flutter_tools/bin/macos_assemble.sh',
|
||||
'packages/flutter_tools/bin/tool_backend.sh',
|
||||
|
||||
Reference in New Issue
Block a user