Skip to content

refactor: DRY out Socket CLI with shared utilities #118

refactor: DRY out Socket CLI with shared utilities

refactor: DRY out Socket CLI with shared utilities #118

Triggered via push October 8, 2025 01:11
Status Failure
Total duration 3m 10s
Artifacts

ci.yml

on: push
Matrix: Run CI Pipeline / 🧪 Test Matrix / test-matrix
Run CI Pipeline  /  ...  /  Run Lint Check
41s
Run CI Pipeline / 🧹 Lint Check / Run Lint Check
Run CI Pipeline  /  ...  /  Run Type Check
47s
Run CI Pipeline / 🔍 Type Check / Run Type Check
Run CI Pipeline  /  📊 Coverage Report
56s
Run CI Pipeline / 📊 Coverage Report
Run CI Pipeline  /  ✅ CI Summary
3s
Run CI Pipeline / ✅ CI Summary
Fit to window
Zoom out
Zoom in

Annotations

64 errors and 10 warnings
Run CI Pipeline / 🧹 Lint Check / Run Lint Check: src/commands/fix/cmd-fix-interactive.mts#L115
Expected object keys to be in sorted order. Expected groupBy to be before severity
Run CI Pipeline / 🧹 Lint Check / Run Lint Check: src/commands/fix/cmd-fix-interactive.mts#L8
Member 'minVersion' of the import declaration should be sorted alphabetically
Run CI Pipeline / 🔍 Type Check / Run Type Check: src/commands/fix/cmd-fix-interactive.mts#L60
Object literal may only specify known properties, and 'args' does not exist in type 'CliCommandConfig'.
Run CI Pipeline / 🔍 Type Check / Run Type Check: src/commands/fix/cmd-fix-interactive.mts#L54
Type '(argv: readonly string[], importMeta: ImportMeta, parentName: string) => Promise<void>' is not assignable to type 'CliSubcommandRun'.
Run CI Pipeline / 🔍 Type Check / Run Type Check: src/commands/fix/cmd-fix-interactive.mts#L23
'CliCommandContext' is declared but never used.
Run CI Pipeline / 🔍 Type Check / Run Type Check: src/commands/fix/cmd-fix-interactive.mts#L18
Module '"../../utils/sdk.mts"' has no exported member 'getSdk'.
Run CI Pipeline / 🔍 Type Check / Run Type Check: src/commands/fix/cmd-fix-interactive.mts#L8
All imports in import declaration are unused.
Run CI Pipeline / 🔍 Type Check / Run Type Check: src/commands/fix/cmd-fix-interactive.mts#L3
'createRequire' is declared but its value is never read.
Run CI Pipeline / 🔍 Type Check / Run Type Check: src/commands/ask/cmd-ask.mts#L287
'config' is declared but its value is never read.
Run CI Pipeline / 🔍 Type Check / Run Type Check: src/commands/ask/cmd-ask.mts#L272
Object literal may only specify known properties, and 'args' does not exist in type 'CliCommandConfig'.
Run CI Pipeline / 🔍 Type Check / Run Type Check: src/commands/ask/cmd-ask.mts#L266
Type '(argv: readonly string[], importMeta: ImportMeta, parentName: string) => Promise<void>' is not assignable to type 'CliSubcommandRun'.
Run CI Pipeline / 🔍 Type Check / Run Type Check: src/commands/ask/cmd-ask.mts#L12
'CliCommandContext' is declared but never used.
Run CI Pipeline / 🧪 Test Matrix / Test Node 22 on ubuntu-latest: src/commands/fix/cmd-fix-interactive.mts#L60
Object literal may only specify known properties, and 'args' does not exist in type 'CliCommandConfig'.
Run CI Pipeline / 🧪 Test Matrix / Test Node 22 on ubuntu-latest: src/commands/fix/cmd-fix-interactive.mts#L54
Type '(argv: readonly string[], importMeta: ImportMeta, parentName: string) => Promise<void>' is not assignable to type 'CliSubcommandRun'.
Run CI Pipeline / 🧪 Test Matrix / Test Node 22 on ubuntu-latest: src/commands/fix/cmd-fix-interactive.mts#L18
Module '"../../utils/sdk.mts"' has no exported member 'getSdk'.
Run CI Pipeline / 🧪 Test Matrix / Test Node 22 on ubuntu-latest: src/commands/fix/cmd-fix-interactive.mts#L3
'createRequire' is declared but its value is never read.
Run CI Pipeline / 🧪 Test Matrix / Test Node 22 on ubuntu-latest: src/commands/ask/cmd-ask.mts#L287
'config' is declared but its value is never read.
Run CI Pipeline / 🧪 Test Matrix / Test Node 22 on ubuntu-latest: src/commands/ask/cmd-ask.mts#L272
Object literal may only specify known properties, and 'args' does not exist in type 'CliCommandConfig'.
Run CI Pipeline / 🧪 Test Matrix / Test Node 22 on ubuntu-latest: src/commands/ask/cmd-ask.mts#L266
Type '(argv: readonly string[], importMeta: ImportMeta, parentName: string) => Promise<void>' is not assignable to type 'CliSubcommandRun'.
Run CI Pipeline / 🧪 Test Matrix / Test Node 22 on ubuntu-latest: src/commands/ask/cmd-ask.mts#L12
'CliCommandContext' is declared but never used.
Run CI Pipeline / 📊 Coverage Report: src/commands/fix/cmd-fix-interactive.mts#L60
Object literal may only specify known properties, and 'args' does not exist in type 'CliCommandConfig'.
Run CI Pipeline / 📊 Coverage Report: src/commands/fix/cmd-fix-interactive.mts#L54
Type '(argv: readonly string[], importMeta: ImportMeta, parentName: string) => Promise<void>' is not assignable to type 'CliSubcommandRun'.
Run CI Pipeline / 📊 Coverage Report: src/commands/fix/cmd-fix-interactive.mts#L23
'CliCommandContext' is declared but never used.
Run CI Pipeline / 📊 Coverage Report: src/commands/fix/cmd-fix-interactive.mts#L18
Module '"../../utils/sdk.mts"' has no exported member 'getSdk'.
Run CI Pipeline / 📊 Coverage Report: src/commands/fix/cmd-fix-interactive.mts#L8
All imports in import declaration are unused.
Run CI Pipeline / 📊 Coverage Report: src/commands/fix/cmd-fix-interactive.mts#L3
'createRequire' is declared but its value is never read.
Run CI Pipeline / 📊 Coverage Report: src/commands/ask/cmd-ask.mts#L287
'config' is declared but its value is never read.
Run CI Pipeline / 📊 Coverage Report: src/commands/ask/cmd-ask.mts#L272
Object literal may only specify known properties, and 'args' does not exist in type 'CliCommandConfig'.
Run CI Pipeline / 📊 Coverage Report: src/commands/ask/cmd-ask.mts#L266
Type '(argv: readonly string[], importMeta: ImportMeta, parentName: string) => Promise<void>' is not assignable to type 'CliSubcommandRun'.
Run CI Pipeline / 📊 Coverage Report: src/commands/ask/cmd-ask.mts#L12
'CliCommandContext' is declared but never used.
Run CI Pipeline / 🧪 Test Matrix / Test Node 20 on ubuntu-latest: src/commands/fix/cmd-fix-interactive.mts#L60
Object literal may only specify known properties, and 'args' does not exist in type 'CliCommandConfig'.
Run CI Pipeline / 🧪 Test Matrix / Test Node 20 on ubuntu-latest: src/commands/fix/cmd-fix-interactive.mts#L54
Type '(argv: readonly string[], importMeta: ImportMeta, parentName: string) => Promise<void>' is not assignable to type 'CliSubcommandRun'.
Run CI Pipeline / 🧪 Test Matrix / Test Node 20 on ubuntu-latest: src/commands/fix/cmd-fix-interactive.mts#L18
Module '"../../utils/sdk.mts"' has no exported member 'getSdk'.
Run CI Pipeline / 🧪 Test Matrix / Test Node 20 on ubuntu-latest: src/commands/fix/cmd-fix-interactive.mts#L3
'createRequire' is declared but its value is never read.
Run CI Pipeline / 🧪 Test Matrix / Test Node 20 on ubuntu-latest: src/commands/ask/cmd-ask.mts#L287
'config' is declared but its value is never read.
Run CI Pipeline / 🧪 Test Matrix / Test Node 20 on ubuntu-latest: src/commands/ask/cmd-ask.mts#L272
Object literal may only specify known properties, and 'args' does not exist in type 'CliCommandConfig'.
Run CI Pipeline / 🧪 Test Matrix / Test Node 20 on ubuntu-latest: src/commands/ask/cmd-ask.mts#L266
Type '(argv: readonly string[], importMeta: ImportMeta, parentName: string) => Promise<void>' is not assignable to type 'CliSubcommandRun'.
Run CI Pipeline / 🧪 Test Matrix / Test Node 20 on ubuntu-latest: src/commands/ask/cmd-ask.mts#L12
'CliCommandContext' is declared but never used.
Run CI Pipeline / 🧪 Test Matrix / Test Node 22 on windows-latest
Process completed with exit code 1.
Run CI Pipeline / 🧪 Test Matrix / Test Node 20 on windows-latest
Process completed with exit code 1.
Run CI Pipeline / 🧪 Test Matrix / Test Node 24 on ubuntu-latest: src/commands/fix/cmd-fix-interactive.mts#L60
Object literal may only specify known properties, and 'args' does not exist in type 'CliCommandConfig'.
Run CI Pipeline / 🧪 Test Matrix / Test Node 24 on ubuntu-latest: src/commands/fix/cmd-fix-interactive.mts#L54
Type '(argv: readonly string[], importMeta: ImportMeta, parentName: string) => Promise<void>' is not assignable to type 'CliSubcommandRun'.
Run CI Pipeline / 🧪 Test Matrix / Test Node 24 on ubuntu-latest: src/commands/fix/cmd-fix-interactive.mts#L18
Module '"../../utils/sdk.mts"' has no exported member 'getSdk'.
Run CI Pipeline / 🧪 Test Matrix / Test Node 24 on ubuntu-latest: src/commands/fix/cmd-fix-interactive.mts#L3
'createRequire' is declared but its value is never read.
Run CI Pipeline / 🧪 Test Matrix / Test Node 24 on ubuntu-latest: src/commands/ask/cmd-ask.mts#L287
'config' is declared but its value is never read.
Run CI Pipeline / 🧪 Test Matrix / Test Node 24 on ubuntu-latest: src/commands/ask/cmd-ask.mts#L272
Object literal may only specify known properties, and 'args' does not exist in type 'CliCommandConfig'.
Run CI Pipeline / 🧪 Test Matrix / Test Node 24 on ubuntu-latest: src/commands/ask/cmd-ask.mts#L266
Type '(argv: readonly string[], importMeta: ImportMeta, parentName: string) => Promise<void>' is not assignable to type 'CliSubcommandRun'.
Run CI Pipeline / 🧪 Test Matrix / Test Node 24 on ubuntu-latest: src/commands/ask/cmd-ask.mts#L12
'CliCommandContext' is declared but never used.
Run CI Pipeline / 🧪 Test Matrix / Test Node 24 on windows-latest
Process completed with exit code 1.
Run CI Pipeline / ✅ CI Summary
Process completed with exit code 1.
Run CI Pipeline / 🧹 Lint Check / Run Lint Check: src/commands/fix/cmd-fix-interactive.mts#L17
'/home/runner/work/socket-cli/socket-cli/src/utils/sdk.mts' imported multiple times
Run CI Pipeline / 🧹 Lint Check / Run Lint Check: src/commands/fix/cmd-fix-interactive.mts#L16
`../../utils/meow-with-subcommands.mts` import should occur before import of `../../utils/project-context.mts`
Run CI Pipeline / 🧹 Lint Check / Run Lint Check: src/commands/fix/cmd-fix-interactive.mts#L8
`semver` import should occur before import of `yoctocolors-cjs`
Run CI Pipeline / 🧹 Lint Check / Run Lint Check: src/commands/fix/cmd-fix-interactive.mts#L5
`node:process` import should occur before import of `node:readline/promises`
Run CI Pipeline / 🧹 Lint Check / Run Lint Check: src/commands/ask/cmd-ask.mts#L8
`@socketsecurity/registry/lib/spawn` import should occur before import of `../../flags.mts`
Run CI Pipeline / 🧹 Lint Check / Run Lint Check: src/commands/ask/cmd-ask.mts#L7
There should be at least one empty line between import groups
Run CI Pipeline / 🧹 Lint Check / Run Lint Check: src/commands/ask/cmd-ask.mts#L4
`yoctocolors-cjs` import should occur before import of `@socketsecurity/registry/lib/logger`
Run CI Pipeline / 🧹 Lint Check / Run Lint Check: src/commands/ask/cmd-ask.mts#L3
There should be at least one empty line between import groups
Run CI Pipeline / 🧹 Lint Check / Run Lint Check: src/commands.mts#L40
`./commands/ask/cmd-ask.mts` import should occur before import of `./commands/audit-log/cmd-audit-log.mts`
Run CI Pipeline / 🧹 Lint Check / Run Lint Check: src/cli.mts#L41
`./utils/error-filter.mts` import should occur before import of `./utils/errors.mts`