class

Analyzer::Scala::ScalaEngine

Inherits FileScanEngine < Analyzer < FileHelper < Reference < Object

Constants

SBT_TEST_PATH_RE = Regex.union("/src/test/", "/src/sbt-test/")

One precompiled Regex.union scan (PCRE2 JIT) replaces two separate String#includes? scans of the same path -- Crystal's includes? is not Boyer-Moore accelerated, so a single regex pass is cheaper than two. Equivalent to the OR-of-substrings it replaces (union escapes each literal).