Skip to content

[linter] enforce documenting libraries #59851

@lishaduck

Description

@lishaduck

Description

Add library-level documentation comments to all libraries.

Details

When writing libraries, also add documentation to the library directive (including creating the library directive).
This encourages people to write documentation, which show up as handy hovers for imports in IDEs.

Kind

(This template doesn't seem to around post-sdk migration, so I don't know the options.)

Bad Examples

import 'package:something/something.dart';

Good Examples

/// Do awesomeness.
library;

import 'package:something/something.dart';

Considerations

  1. Gets verbose quickly.
  2. Can encourage quantity over quality.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3A lower priority bug or feature requestarea-devexpFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.devexp-linterIssues with the analyzer's support for the linter packagelinter-lint-proposaltype-enhancementA request for a change that isn't a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions