Skip to content

Commit 869c848

Browse files
committed
chore(scan): reduce reachability flag diff noise
1 parent cb4aea9 commit 869c848

1 file changed

Lines changed: 23 additions & 23 deletions

File tree

src/commands/scan/reachability-flags.mts

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,11 @@ import constants from '../../constants.mts'
22

33
import type { MeowFlags } from '../../flags.mts'
44

5-
export const excludePathsFlag: MeowFlags = {
6-
excludePaths: {
5+
export const reachabilityFlags: MeowFlags = {
6+
reachVersion: {
77
type: 'string',
8-
isMultiple: true,
9-
description:
10-
'List of glob patterns to exclude from the scan, including SCA/SBOM manifest discovery and (when --reach is enabled) Tier 1 reachability analysis. Patterns are anchored micromatch globs matched relative to the Socket scan root, which is the command working directory (`--cwd` if set), not the reachability target: `tests` matches only `<cwd>/tests`; use `**/tests` to match at any depth. Negation patterns (`!path`) are not supported. Accepts a comma-separated value or multiple flags.',
8+
description: `Override the version of @coana-tech/cli used for reachability analysis. Default: ${constants.ENV.INLINED_SOCKET_CLI_COANA_TECH_CLI_VERSION}.`,
119
},
12-
}
13-
14-
export const reachabilityFlags: MeowFlags = {
1510
reachAnalysisMemoryLimit: {
1611
type: 'number',
1712
default: 8192,
@@ -54,6 +49,11 @@ export const reachabilityFlags: MeowFlags = {
5449
description:
5550
'Continue reachability analysis when a workspace contains no source files for its ecosystem. By default, the CLI halts.',
5651
},
52+
reachDisableExternalToolChecks: {
53+
type: 'boolean',
54+
default: false,
55+
description: 'Disable external tool checks during reachability analysis.',
56+
},
5757
reachDebug: {
5858
type: 'boolean',
5959
default: false,
@@ -66,36 +66,31 @@ export const reachabilityFlags: MeowFlags = {
6666
description:
6767
'A log file with detailed analysis logs is written to root of each analyzed workspace.',
6868
},
69-
reachDisableAnalysisSplitting: {
69+
reachDisableAnalytics: {
7070
type: 'boolean',
7171
default: false,
72-
hidden: true,
7372
description:
74-
'Deprecated: Analysis splitting is now disabled by default. This flag is a no-op.',
73+
'Disable reachability analytics sharing with Socket. Also disables caching-based optimizations.',
7574
},
76-
reachDisableAnalytics: {
75+
reachDisableAnalysisSplitting: {
7776
type: 'boolean',
7877
default: false,
78+
hidden: true,
7979
description:
80-
'Disable reachability analytics sharing with Socket. Also disables caching-based optimizations.',
80+
'Deprecated: Analysis splitting is now disabled by default. This flag is a no-op.',
8181
},
82-
reachDisableExternalToolChecks: {
82+
reachEnableAnalysisSplitting: {
8383
type: 'boolean',
8484
default: false,
85-
description: 'Disable external tool checks during reachability analysis.',
85+
description:
86+
'Allow the reachability analysis to partition CVEs into buckets that are processed in separate analysis runs. May improve accuracy, but not recommended by default.',
8687
},
8788
reachEcosystems: {
8889
type: 'string',
8990
isMultiple: true,
9091
description:
9192
'List of ecosystems to conduct reachability analysis on, as either a comma separated value or as multiple flags. Defaults to all ecosystems.',
9293
},
93-
reachEnableAnalysisSplitting: {
94-
type: 'boolean',
95-
default: false,
96-
description:
97-
'Allow the reachability analysis to partition CVEs into buckets that are processed in separate analysis runs. May improve accuracy, but not recommended by default.',
98-
},
9994
reachExcludePaths: {
10095
type: 'string',
10196
isMultiple: true,
@@ -120,8 +115,13 @@ export const reachabilityFlags: MeowFlags = {
120115
description:
121116
'When using this option, the scan is created based only on pre-generated CDX and SPDX files in your project.',
122117
},
123-
reachVersion: {
118+
}
119+
120+
export const excludePathsFlag: MeowFlags = {
121+
excludePaths: {
124122
type: 'string',
125-
description: `Override the version of @coana-tech/cli used for reachability analysis. Default: ${constants.ENV.INLINED_SOCKET_CLI_COANA_TECH_CLI_VERSION}.`,
123+
isMultiple: true,
124+
description:
125+
'List of glob patterns to exclude from the scan, including SCA/SBOM manifest discovery and (when --reach is enabled) Tier 1 reachability analysis. Patterns are anchored micromatch globs matched relative to the Socket scan root, which is the command working directory (`--cwd` if set), not the reachability target: `tests` matches only `<cwd>/tests`; use `**/tests` to match at any depth. Negation patterns (`!path`) are not supported. Accepts a comma-separated value or multiple flags.',
126126
},
127127
}

0 commit comments

Comments
 (0)