Skip to content

chore(lint): restore SAFETY comments and bump @uinaf/oxlint-config - #145

Merged
altaywtf merged 2 commits into
mainfrom
chore/oxlint-config-1.0.4
Nov 28, 2026
Merged

altaywtf merged 2 commits into
mainfrom
chore/oxlint-config-1.0.4

Conversation

@altaywtf

Copy link
Copy Markdown
Member

Problem

#142 deleted comments on invariants nothing enforces. no-comments 1.1.2 would drop them as SAFETY: lines.

Solution

@uinaf/oxlint-config 1.0.4 ships no-comments 1.2.0, which keeps them, so they return at the guarded code:

// SAFETY: never `npx promptfoo`; with the peer absent, npx would fetch an unpinned promptfoo from the registry.
function promptfooEntry(): string {
File Invariant
src/cli.ts npx ban, errored and stale results never pass as verdicts, scratch outside the repo, private scratch root
src/scenario.ts symlink guards, cpSync link bypass, fixture injection, container sandbox, hidden grading config
scripts/release-commit.ts prepare order, atomic signed commit, tag the returned commit
  • @uinaf/oxlint-config is pinned exactly, like the other consumers.
  • The local vite-plus jsPlugin and prefer-vite-plus-imports rule go; the shared /vite-plus entry carries both.

Proof

vp lint on 1.0.3 reports 14 uinaf(no-comments) errors on these lines; on 1.0.4, vp lint --fix leaves all 14.

Related: uinaf/oxlint-plugin-no-comments#21

Pin it exactly like the other consumers. 1.0.4 ships no-comments
1.2.0, which keeps standalone SAFETY comments. Its /vite-plus entry
already loads the vite-plus plugin and prefer-vite-plus-imports, so the
local copies go.
#142 deleted comments that recorded the release race, the npx ban,
errored and stale results that must not pass as verdicts, scratch dirs
outside the repo, symlink and fixture-injection guards, the container
sandbox, and the hidden grading config. No code or test enforces them,
so they return as SAFETY comments.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-28T19:26:16.434573Z 448cee8 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@altaywtf
altaywtf merged commit f72a89a into main Nov 28, 2026
1 check passed
@altaywtf
altaywtf deleted the chore/oxlint-config-1.0.4 branch November 28, 2026 19:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant