Skip to content

Commit

Permalink
Version 3.3.0-22.0.dev
Browse files Browse the repository at this point in the history
Merge 06ab207 into dev
  • Loading branch information
Dart CI committed Oct 13, 2023
2 parents e46396e + 06ab207 commit 54ef024
Show file tree
Hide file tree
Showing 6 changed files with 413 additions and 113 deletions.
15 changes: 4 additions & 11 deletions pkg/linter/lib/src/rules/unreachable_from_main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,13 @@ import '../analyzer.dart';
const _desc = 'Unreachable top-level members in executable libraries.';

const _details = r'''
Top-level members and static members in an executable library should be used
'''
// TODO(srawlins): Lasse
// [suggests](https://github.com/dart-lang/linter/issues/3625#issuecomment-1735355630)
// changing this to use "statically resolved" members, which I love. But it
// will mean reporting additionally on extension instance members and extension
// type instance members, so land carefully.
'''
directly inside this library. An executable library is a library that contains
a `main` top-level function or that contains a top-level function annotated with
Any member declared in an executable library should be used directly inside that
library. An executable library is a library that contains a `main` top-level
function or that contains a top-level function annotated with
`@pragma('vm:entry-point')`). Executable libraries are not usually imported
and it's better to avoid defining unused members.
This rule assumes that an executable library isn't imported by other files
This rule assumes that an executable library isn't imported by other libraries
except to execute its `main` function.
**BAD:**
Expand Down
Loading

0 comments on commit 54ef024

Please sign in to comment.