PathFilter class
Configurable path filter evaluating whether file paths should be excluded from analysis.
Constructors
-
PathFilter({Iterable<
String> excludePatterns = const [], bool ignoreGenerated = true}) -
Creates a PathFilter with optional custom
excludePatternsandignoreGeneratedtoggle (defaults totrue).
Properties
-
excludePatterns
→ List<
String> -
The custom exclusion glob patterns configured on this filter.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- ignoreGenerated → bool
-
Whether generated Dart files matching defaultGeneratedPatterns are
excluded.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
isExcluded(
String relativePath) → bool -
Returns
trueifrelativePathmatches any active exclusion pattern or contains a standard ignored directory segment. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- defaults → PathFilter
-
Default constant filter instance with standard ignored directories and
generated file exclusion enabled.
final
Constants
-
defaultGeneratedPatterns
→ const List<
String> - Standard file patterns identifying generated Dart source code.
-
defaultIgnoredDirectories
→ const List<
String> - Default directory names and glob patterns excluded from scanning.