Class CredentialScanUnitSource

java.lang.Object
org.egothor.methodatlas.command.CredentialScanUnitSource

public final class CredentialScanUnitSource extends Object
Selects files to scan for credentials by mask and reads each into a CredentialScanUnit. The default mask is the test-file suffix list; an optional glob override widens the scan to arbitrary source.
Since:
4.1.0
  • Constructor Details

    • CredentialScanUnitSource

      public CredentialScanUnitSource(List<String> suffixes, String glob)
      Creates a source.
      Parameters:
      suffixes - test-file suffixes used when no glob override is given; never null
      glob - optional glob (e.g. "**/*.java"); null uses suffixes
  • Method Details

    • collect

      public List<org.egothor.methodatlas.api.CredentialScanUnit> collect(List<Path> roots)
      Walks roots and returns one unit per matching, readable file, in deterministic sorted order.
      Parameters:
      roots - scan roots; never null
      Returns:
      scan units; never null