# There's no way to run "dartfmt --fix"

**URL:** https://travis-ci.community/t/theres-no-way-to-run-dartfmt-fix/4236
**Category:** Dart
**Created:** [July 17, 2019, 2:11am UTC](https://travis-ci.community/t/theres-no-way-to-run-dartfmt-fix/4236 "2019-07-17T02:11:18Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![nex3](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/nex3/32/704_2.png) [@nex3](https://travis-ci.community/u/nex3)
#### Post date: [July 17, 2019, 2:11am UTC](https://travis-ci.community/t/theres-no-way-to-run-dartfmt-fix/4236/1 "2019-07-17T02:11:18Z")

</div>

The `dartanalyzer` and `test` tasks a list of optional parameters to pass to the corresponding tools, but the `dartfmt` task doesn’t. This means there’s no way to run `dartfmt --fix` to ensure that non-whitespace formatting is appropriate.

Also, if you _do_ write `dartmft: --fix`, you get an error message ([example](https://travis-ci.org/google/dart_cli_pkg/jobs/559749358)), but it doesn’t cause the task to fail.
