SmartContentFilter class

Quick content-based filtering to skip rules early.

Combines multiple heuristics for maximum filtering before AST parsing:

  • Required patterns (string contains)
  • Minimum/maximum line counts
  • Required keywords (class, async, etc.)
  • File type indicators

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 Methods

mightApply({required String content, required String filePath, Set<String>? requiredPatterns, int minimumLines = 0, int maximumLines = 0, Set<String>? requiredKeywords, bool isAsyncRequired = false, bool isWidgetsRequired = false}) bool
Check if a rule should potentially run based on content heuristics.