Skip to content

Feature request: formatting for dartdoc_test #253

@sigurdm

Description

@sigurdm

It would be awesome to have:

A command for running dart format across the text of the code samples. (That would modify the code inside the comments)

> dart run dartdoc_test format
Formatted 2 files (1 changed) in 0.10 seconds.

Changes:

/// This class is excellent
/// ```dart
/// void main() {
/// foo();
/// }
/// ```
class Foo {}

to

/// This class is excellent
/// ```dart
/// void main() {
///   foo();
/// }
/// ```
class Foo {}

And also having a test that validates that formatting is done.

And a separate

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions