We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 723df3d commit 44ffad5Copy full SHA for 44ffad5
PRESUBMIT.py
@@ -133,17 +133,13 @@ def HasFormatErrors(filename=None, contents=None):
133
dart,
134
'format',
135
'--set-exit-if-changed',
136
+ '--output=none',
137
+ '--summary=none',
138
+ filename,
139
]
- if not contents:
- args += [
- '--output=none',
140
- '--summary=none',
141
- filename,
142
- ]
143
144
process = subprocess.Popen(
145
args, stdout=subprocess.PIPE, stdin=subprocess.PIPE)
146
- process.communicate(input=contents)
147
148
# Check for exit code 1 explicitly to distinguish it from a syntax error
149
# in the file (exit code 65). The repo contains many Dart files that are
0 commit comments