Skip to content

Lint for lowercase_with_underscores library names and source files (Style Guide) #57164

Closed
@pq

Description

@pq

DO name libraries and source files using lowercase_with_underscores.

Some file systems are not case-sensitive, so many projects require filenames to be all lowercase. Using a separate character allows names to still be readable in that form. Using underscores as the separator ensures that the name is still a valid Dart identifier, which may be helpful if the language later supports symbolic imports.

GOOD:

  • slider_menu.dart
  • file_system.dart
  • library peg_parser;

BAD:

  • SliderMenu.dart
  • filesystem.dart
  • library peg-parser;

Metadata

Metadata

Assignees

No one assigned

    Labels

    devexp-linterIssues with the analyzer's support for the linter packagelegacy-area-analyzerUse area-devexp instead.type-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