IgnorePatterns class
Utility class for handling ignore patterns
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
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
-
cStyleGeneratedMarkers
→ List<
RegExp> -
Common generated file markers for C-style comments
final
-
hashGeneratedMarkers
→ List<
RegExp> -
Generated markers for hash-style comments
final
-
htmlGeneratedMarkers
→ List<
RegExp> -
Generated markers for HTML comments
final
-
pythonGeneratedMarkers
→ List<
RegExp> -
Generated markers for Python-style comments
final
Static Methods
-
getIgnoreReason(
String filePath, String? content, List< String> patterns, List<String> exactFiles, {CommentStyle style = CommentStyle.cStyle}) → String? - Get the reason a file should be ignored
-
hasGeneratedMarker(
String content, CommentStyle style) → bool - Check if file content contains generated file markers
-
matchesPattern(
String filePath, List< String> patterns) → bool - Check if a path matches any of the given glob-like patterns
-
shouldIgnore(
File file, String relativePath, List< String> patterns, List<String> exactFiles, {CommentStyle style = CommentStyle.cStyle}) → Future<IgnoreResult> - Check if a file should be ignored based on all criteria