Finds files and directories via an intuitive fluent interface
This report summarizes scanner evidence for symfony/finder, a PHP project with 8,432 GitHub stars. SynthScan examined 8,677 lines of code across 66 source files, recording 70 pattern matches distributed across 2 syntactic categories. The legacy adjusted pattern signal is 8.2 (Moderate pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 51 finding(s).
Are imports declared and package/API names verified? 19 finding(s).
Are wrappers, guards, and repeated structures necessary? 51 finding(s).
Which changes need focused human review? 70 finding(s).
Run additional scans to build a history of the legacy pattern signal. Score changes are not a measure of AI adoption or code quality.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 70 distinct pattern matches across 2 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | SplFileInfo.php | 54 | public function getFilenameWithoutExtension(): string | CODE |
| LOW | Finder.php | 481 | public function sortByCaseInsensitiveName(bool $useNaturalSort = false): static | CODE |
| LOW | Gitignore.php | 32 | public static function toRegexMatchingNegatedPatterns(string $gitignoreFileContent): string | CODE |
| LOW | Tests/GlobTest.php | 20 | public function testGlobToRegexDelimiters() | CODE |
| LOW | Tests/GlobTest.php | 28 | public function testGlobToRegexDoubleStarStrictDots() | CODE |
| LOW | Tests/GlobTest.php | 45 | public function testGlobToRegexDoubleStarNonStrictDots() | CODE |
| LOW | Tests/GlobTest.php | 62 | public function testGlobToRegexDoubleStarWithoutLeadingSlash() | CODE |
| LOW | Tests/GlobTest.php | 79 | public function testGlobToRegexDoubleStarWithoutLeadingSlashNotStrictLeadingDot() | CODE |
| LOW | Tests/GlobTest.php | 96 | public function testGlobToRegexDoubleStarMatchesRootFiles() | CODE |
| LOW | Tests/GlobTest.php | 116 | public function testGlobToRegexMergesConsecutiveStarsWhenWildcardsCrossSlashes() | CODE |
| LOW | Tests/GitignoreTest.php | 57 | public function testToRegexWithMorePatternsThanTheRegexNestingLimit() | CODE |
| LOW | Tests/GitignoreTest.php | 465 | public function testToRegexMatchingNegatedPatterns(array $gitignoreLines, array $matchingCases, array $nonMatchingCa | CODE |
| LOW | Tests/GitignoreTest.php | 497 | public static function provideNegatedPatternsCases(): iterable | CODE |
| LOW | Tests/FinderOpenBasedirTest.php | 20 | public function testIgnoreVCSIgnoredWithOpenBasedir() | CODE |
| LOW⚡ | Tests/FinderTest.php | 1697 | public function testAppendEmptyIterableAllowsIteration() | CODE |
| LOW⚡ | Tests/FinderTest.php | 1704 | public function testAppendDoesNotRequireIn() | CODE |
| LOW⚡ | Tests/FinderTest.php | 1714 | public function testMultipleAppendCallsWithSorting() | CODE |
| LOW | Tests/FinderTest.php | 128 | public function testBackPathNotNormalized() | CODE |
| LOW | Tests/FinderTest.php | 294 | public function testNotNameWithArrayParam() | CODE |
| LOW | Tests/FinderTest.php | 438 | public function testExcludeRootRelativePath() | CODE |
| LOW | Tests/FinderTest.php | 571 | public function testIgnoreVCSIgnoredUpToFirstGitRepositoryRoot() | CODE |
| LOW | Tests/FinderTest.php | 591 | public function testIgnoreVCSCanBeDisabledAfterFirstIteration() | CODE |
| LOW | Tests/FinderTest.php | 735 | public function testIgnoreDotFilesCanBeDisabledAfterFirstIteration() | CODE |
| LOW | Tests/FinderTest.php | 994 | public function testSortByNameCaseInsensitive() | CODE |
| LOW | Tests/FinderTest.php | 1078 | public function testSortAcrossDirectories() | CODE |
| LOW | Tests/FinderTest.php | 1183 | public function testFilterPruneNestedDirectory() | CODE |
| LOW | Tests/FinderTest.php | 1209 | public function testFilterPruneWithExcludedPath() | CODE |
| LOW | Tests/FinderTest.php | 1315 | public function testInWithNonExistentDirectory() | CODE |
| LOW | Tests/FinderTest.php | 1322 | public function testInWithNonExistentDirectoryLegacyException() | CODE |
| LOW | Tests/FinderTest.php | 1337 | public function testInWithNonDirectoryGlob() | CODE |
| LOW | Tests/FinderTest.php | 1443 | public function testGetFilenameWithoutExtension() | CODE |
| LOW | Tests/FinderTest.php | 1503 | public function testAppendStandardizesItemsToBeSymfonySplFileInfo() | CODE |
| LOW | Tests/FinderTest.php | 1520 | public function testRelativePathWithoutAppend() | CODE |
| LOW | Tests/FinderTest.php | 1552 | public function testRelativePathWithAppendedFinderForParentDirectory() | CODE |
| LOW | Tests/FinderTest.php | 1593 | public function testRelativePathWithAppendedFinderForChildDirectory() | CODE |
| LOW | Tests/FinderTest.php | 1628 | public function testRelativePathWithAppendedPaths() | CODE |
| LOW | Tests/FinderTest.php | 1663 | public function testRelativePathWithAppendedOnEmptyFinder() | CODE |
| LOW | Tests/FinderTest.php | 1792 | public function testNotContainsOnDirectory() | CODE |
| LOW | Tests/FinderTest.php | 1833 | public function testMultipleLocationsWithSubDirectories() | CODE |
| LOW | Tests/FinderTest.php | 1863 | public function testRegexSpecialCharsLocationWithPathRestrictionContainingStartFlag() | CODE |
| LOW | Tests/FinderTest.php | 1982 | public function testAccessDeniedException() | CODE |
| LOW | Tests/FinderTest.php | 2018 | public function testIgnoredAccessDeniedException() | CODE |
| LOW | Tests/FinderTest.php | 2074 | public function testNormalizeDirKeepsTrailingSlashForStreamWrappers() | CODE |
| LOW | Tests/Iterator/IteratorTestCase.php | 49 | protected function assertOrderedIteratorForGroups(array $expected, \Traversable $iterator) | CODE |
| LOW | Tests/Iterator/IteratorTestCase.php | 84 | protected function assertOrderedIteratorInForeach(array $expected, \Traversable $iterator) | CODE |
| LOW | Tests/Iterator/RecursiveDirectoryIteratorTest.php | 68 | public function testTrailingDirectorySeparatorIsStripped() | CODE |
| LOW | Tests/Iterator/LazyIteratorTest.php | 35 | public function testInnerDestructedAtTheEnd() | CODE |
| LOW | Tests/Iterator/VcsIgnoredFilterIteratorTest.php | 484 | public function testAcceptAtRootDirectory() | CODE |
| LOW | Tests/Iterator/VcsIgnoredFilterIteratorTest.php | 493 | public function testAcceptWithSymlinkedBaseDirectory() | CODE |
| LOW | Tests/Iterator/FileTypeFilterIteratorTest.php | 67 | public function testDanglingSymlinkIsNeitherAFileNorADirectory() | CODE |
| LOW | Iterator/VcsIgnoredFilterIterator.php | 136 | private function parentDirectoriesDownwards(string $fileRealPath): array | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | Finder.php | 209 | * $finder->contains('Lorem ipsum') | COMMENT |
| LOW | Finder.php | 211 | * $finder->contains('/Lorem ipsum/i') | COMMENT |
| LOW | Finder.php | 233 | * $finder->notContains('Lorem ipsum') | COMMENT |
| LOW | Finder.php | 235 | * $finder->notContains('/Lorem ipsum/i') | COMMENT |
| LOW⚡ | Tests/FinderTest.php | 1879 | ['lorem ipsum dolor sit amet', 'foobar', ['lorem.txt']], | CODE |
| LOW⚡ | Tests/FinderTest.php | 1879 | ['lorem ipsum dolor sit amet', 'foobar', ['lorem.txt']], | CODE |
| LOW⚡ | Tests/FinderTest.php | 1881 | ['dolor sit amet', '@^L@m', ['dolor.txt', 'ipsum.txt']], | CODE |
| LOW⚡ | Tests/FinderTest.php | 1882 | ['/^lorem ipsum dolor sit amet$/m', 'foobar', ['lorem.txt']], | CODE |
| LOW⚡ | Tests/FinderTest.php | 1882 | ['/^lorem ipsum dolor sit amet$/m', 'foobar', ['lorem.txt']], | CODE |
| LOW⚡ | Tests/FinderTest.php | 1885 | ['ipsum dolor sit amet', '/^IPSUM/m', ['lorem.txt']], | CODE |
| LOW | Tests/Iterator/FilecontentFilterIteratorTest.php | 53 | 'contents' => 'Lorem ipsum...', | CODE |
| LOW | Tests/Fixtures/dolor.txt | 1 | dolor sit amet | CODE |
| LOW | Tests/Fixtures/dolor.txt | 2 | DOLOR SIT AMET | CODE |
| LOW | Tests/Fixtures/ipsum.txt | 1 | ipsum dolor sit amet | CODE |
| LOW | Tests/Fixtures/ipsum.txt | 2 | IPSUM DOLOR SIT AMET | CODE |
| LOW⚡ | Tests/Fixtures/lorem.txt | 1 | lorem ipsum dolor sit amet | CODE |
| LOW⚡ | Tests/Fixtures/lorem.txt | 1 | lorem ipsum dolor sit amet | CODE |
| LOW⚡ | Tests/Fixtures/lorem.txt | 2 | LOREM IPSUM DOLOR SIT AMET | CODE |
| LOW⚡ | Tests/Fixtures/lorem.txt | 2 | LOREM IPSUM DOLOR SIT AMET | CODE |