ContentFingerprint class

Fast content fingerprint for quick similarity detection.

Two files with the same fingerprint are likely to have similar structure, even if their content differs in details. This enables:

  • Caching analysis results across similar files
  • Quick "skip if similar file was clean" optimization

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

areSimilar(String path1, String content1, String path2, String content2) bool
Check if two files have the same fingerprint.
clearCache() → void
Clear all cached fingerprints.
compute(String filePath, String content) int
Compute fingerprint for content.
invalidate(String filePath) → void
Invalidate cached fingerprint.