Skip to content

Commit

Permalink
[dart] Fix some dart files not being post processed (#8193)
Browse files Browse the repository at this point in the history
  • Loading branch information
kuhnroyal authored Dec 15, 2020
1 parent 81a5e44 commit 95b7198
Showing 1 changed file with 1 addition and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -671,18 +671,7 @@ public void postProcessFile(File file, String fileType) {
return; // skip if DART_POST_PROCESS_FILE env variable is not defined
}

// only process the following type (or we can simply rely on the file extension to check if it's a Dart file)
Set<String> supportedFileType = Sets.newHashSet(
"supporting-mustache",
"model-test",
"model",
"api-test",
"api");
if (!supportedFileType.contains(fileType)) {
return;
}

// only process files with dart extension
// process all files with dart extension
if ("dart".equals(FilenameUtils.getExtension(file.toString()))) {
// currently only support "dartfmt -w yourcode.dart"
String command = dartPostProcessFile + " " + file.toString();
Expand Down

0 comments on commit 95b7198

Please sign in to comment.