package-names

Same as package_names in Dart lints

Group
Style
Path
cross-file/style/package-names
Default
On (recommended)
Origin
Dart lints
Rule
307 of 512
recommendedcross-file

Cross-file rule. It runs in falcon's whole-project pass, analyzing relationships across every file rather than one file at a time. Configure it under the top-level cross-file key.

Require package names to be valid lower_case_with_underscores identifiers.

Invalid

bad-adjacent/lib/main.dartdart
void main() {}

No diagnostics in this file.

Configure package-names

Set its severity in falcon.json under the cross-file section. See the configuration guide.

falcon.jsonjson
{
  "cross-file": {
    "rules": {
      "style": {
        "package-names": "error"
      }
    }
  }
}

Or silence one occurrence with a suppression comment; the reason is required.

example.dartdart
// falcon-ignore cross-file/style/package-names: <reason>