Skip to content

Commit 35b4afe

Browse files
committed
fix(no-status-emoji): cascade rule self-disable + bypass scripts/tests
Bulk file-level `oxlint-disable socket/no-status-emoji` on scripts/* and test/* files where emoji output is intentional (dev script status prefixes, test assertions, TUI components). Drops no-status-emoji findings to 0 in this repo.
1 parent e5d8530 commit 35b4afe

46 files changed

Lines changed: 202 additions & 1 deletion

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.config/oxlint-plugin/rules/no-status-emoji.mts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/* oxlint-disable socket/no-status-emoji -- this file IS the rule definition; emoji literals are lookup-table data, not real usage. */
2+
13
/**
24
* @fileoverview Ban status-symbol emoji literals (✓ ✔ ❌ ✗ ⚠ ⚠️ ❗ ✅
35
* ❎ ☑) inside string literals. The `@socketsecurity/lib/logger`

packages/build-infra/lib/build-pipeline.mts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,7 @@ async function runStage(stage, ctx, stageParams) {
290290
)
291291

292292
if (!shouldProceed) {
293+
// oxlint-disable-next-line socket/no-status-emoji -- substep takes its own indent prefix; ✓ marks the cache-hit state.
293294
logger.substep(`✓ ${stage.name} up-to-date (cached)`)
294295
return
295296
}

packages/build-infra/lib/checkpoint-manager.mts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ export async function createCheckpoint(
179179
await fs.writeFile(file, `${JSON.stringify(data, null, 2)}\n`, 'utf8')
180180

181181
const relRoot = packageRoot ? path.relative(packageRoot, file) : file
182+
// oxlint-disable-next-line socket/no-status-emoji -- substep takes its own indent prefix; ✓ marks completion.
182183
logger.substep(`✓ Checkpoint ${name} written (${relRoot})`)
183184
}
184185

packages/build-infra/lib/extraction-cache.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ export async function shouldExtract({
113113

114114
// Cache hit.
115115
const logger = getDefaultLogger()
116-
logger.log(`✓ Using cached ${outputPath}`)
116+
logger.success(`Using cached ${outputPath}`)
117117
return false
118118
} catch {
119119
// Any error, regenerate.

packages/cli/scripts/build-sea.mts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/* oxlint-disable socket/no-status-emoji -- dev script output; emoji prefixes provide at-a-glance build/test status. */
2+
13
/**
24
* Build Socket SEA (Single Executable Application) binaries.
35
* Uses pre-compiled Node.js smol binaries from socket-btm releases.

packages/cli/scripts/cover.mts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/* oxlint-disable socket/no-status-emoji -- dev script output; emoji prefixes provide at-a-glance build/test status. */
2+
13
/**
24
* @fileoverview Unified coverage script - runs tests with coverage reporting.
35
* Standardized across all socket-* repositories.

packages/cli/scripts/e2e.mts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/* oxlint-disable socket/no-status-emoji -- dev script output; emoji prefixes provide at-a-glance build/test status. */
2+
13
/**
24
* E2E test runner.
35
* Options: --js, --sea, --all

packages/cli/scripts/integration.mts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/* oxlint-disable socket/no-status-emoji -- dev script output; emoji prefixes provide at-a-glance build/test status. */
2+
13
/**
24
* Integration test runner.
35
* Options: --js, --sea, --all

packages/cli/scripts/sea-build-utils/downloads.mts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/* oxlint-disable socket/no-status-emoji -- dev script output; emoji prefixes provide at-a-glance build/test status. */
2+
13
/**
24
* @fileoverview Download utilities for SEA build assets.
35
* Manages downloads of node-smol binaries, binject tool, and security tools from GitHub releases.

packages/cli/scripts/setup-iocraft-dev.mts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/* oxlint-disable socket/no-status-emoji -- dev script output; emoji prefixes provide at-a-glance build/test status. */
2+
13
#!/usr/bin/env node
24
/**
35
* @fileoverview Setup script to install iocraft dev build into node_modules for local testing.

0 commit comments

Comments
 (0)