Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: respect projectIgnorePaths from socket.yml in scan reach
  • Loading branch information
mtorp committed Mar 31, 2026
commit 5f082054238cb24c9aae1d7afc19871c2444502c
9 changes: 9 additions & 0 deletions src/commands/scan/handle-scan-reach.mts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { outputScanReach } from './output-scan-reach.mts'
import { performReachabilityAnalysis } from './perform-reachability-analysis.mts'
import constants from '../../constants.mts'
import { checkCommandInput } from '../../utils/check-input.mts'
import { findSocketYmlSync } from '../../utils/config.mts'
import { getPackageFilesForScan } from '../../utils/path-resolve.mts'

import type { ReachabilityOptions } from './perform-reachability-analysis.mts'
Expand Down Expand Up @@ -47,7 +48,15 @@ export async function handleScanReach({
)

const supportedFiles = supportedFilesCResult.data

// Load socket.yml to respect projectIgnorePaths when collecting files.
const socketYmlResult = findSocketYmlSync(cwd)
const socketConfig = socketYmlResult.ok
? socketYmlResult.data?.parsed
: undefined

const packagePaths = await getPackageFilesForScan(targets, supportedFiles, {
config: socketConfig,
cwd,
})

Expand Down
Loading