Workiva / dart_dev

Centralized tooling for Dart projects. Consistent interface across projects. Easily configurable.
https://pub.dartlang.org/packages/dart_dev
Apache License 2.0
74 stars 40 forks source link

FEDX-1727: Support `organizeDirectives` config via `hackFastFormat` #438

Closed evanweible-wf closed 3 weeks ago

evanweible-wf commented 1 month ago

FEDX-1727

Issue Status

The hackFastFormat command is used by some of our dev tooling like IDE auto-formatting and precommit hooks. It does not currently support organizing directives, whereas the full format command does.

This PR updates hackFastFormat to check the project's ddev config to see if it has enabled organizeDirectives, and if so, it ensures that the format tool it sets up matches that configuration. In other words, hackFastFormat should now respect the organizeDirectives configuration of the project it is running in, which should allow IDE auto-formatting and precommit hooks that use hackFastFormat to match behavior of running ddev format.

aviary-wf commented 1 month ago

Security Insights

No security relevant content was detected by automated scans.

Action Items

evanweible-wf commented 3 weeks ago

QA +1

evanweible-wf commented 3 weeks ago

@Workiva/release-management-p