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
@@ -12,6 +12,7 @@ dependencies:
|
||||
meta: 1.15.0
|
||||
path: 1.9.1
|
||||
process: 5.0.3
|
||||
process_runner: 4.2.0
|
||||
pub_semver: 2.1.4
|
||||
yaml: 3.1.2
|
||||
|
||||
@@ -63,4 +64,4 @@ dev_dependencies:
|
||||
web_socket_channel: 3.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
|
||||
webkit_inspection_protocol: 1.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
|
||||
|
||||
# PUBSPEC CHECKSUM: f620
|
||||
# PUBSPEC CHECKSUM: 2d6b
|
||||
|
||||
Reference in New Issue
Block a user