# dmmulroy/anti-slop — AlpLab Radar Static Code Audit

- Ring: `trial`
- Category: `dev`
- Overall score: `3.7/5`
- Implementation check: `verified`
- Maturity: `early`
- Audited commit: `63dbb09f7343` (read-only; nothing from the repository was executed)
- Reviewed at: 2026-12-02T05:51:29Z
- Repository: https://github.com/dmmulroy/anti-slop
- Radar entry: https://radar.alplab.co/#repo/dmmulroy/anti-slop
- License: `MIT`
- CI workflows: `.github/workflows`
- Tags: `oxlint`, `linter`, `typescript`, `static-analysis`, `code-quality`, `agent-skill`

## Summary

An opinionated, vendored-by-design Oxlint plugin implementing 19 generic plus 5 opt-in Effect-specific TypeScript/JavaScript lint rules (via @oxlint/plugins defineRule/eslintCompatPlugin) that reject evidence-discarding patterns, shipped with an agent skill for install/update rather than an npm package.

## Implementation Check

Every rule README advertises is genuinely registered (src/index.ts antiSlopPlugin with 19 rules, src/effect/index.ts antiSlopEffectPlugin with 5), each has a RuleTester suite, and the README's vendored, no-npm distribution model is confirmed by package.json private:true and skills/install-anti-slop/scripts/install.mjs.

## When to Use

Use when you want a strict, evidence-preserving TS/JS lint policy and are willing to vendor and own the rules; the README itself recommends cloudflare/oxlint-config instead when it covers your needs. Not for teams wanting a maintained npm dependency, and the stricter rules (no-runtime-typeof, no-module-mocking) need team buy-in.

## Sub-scores

| Dimension | Score |
|---|---|
| quality | 4.5/5 |
| usability | 3.5/5 |
| reliability | 3.0/5 |
| security | 4.0/5 |
| integration | 3.5/5 |

## Code Evidence

src/index.ts antiSlopPlugin registers all 19 advertised generic rules through eslintCompatPlugin and src/effect/index.ts antiSlopEffectPlugin the 5 Effect rules; src/rules/no-known-value-widening.ts implements the claimed same-file evidence tracking (hasKnownEvidence, createTypeEnvironment from src/shared/dictionary-types.ts, resolveVariable from src/shared/scope.ts) with alias resolution in src/shared/type-alias-resolution.ts (resolvedTypeMatches, visibleTypeAlias), matching the README's 'analysis boundaries' (syntactic, no type checker, no cross-file inference); src/rules/require-readable-spacing.ts wraps the vendored ESLint Stylistic rule (src/vendor/eslint-stylistic/padding-line-between-statements.ts via createPaddingLineRule) with LICENSE and UPSTREAM.md provenance; every rule has a RuleTester suite (e.g. src/rules/no-known-value-widening.test.ts with 27 valid and 30+ invalid cases, src/rules/no-widen-then-assert.test.ts) and src/rules/require-readable-spacing-cli.test.ts runSpacingLint exercises the exported plugin through the real Oxlint CLI including --fix and repeat-fix stability; package.json scripts.check chains lint, all test files, tsc --noEmit, and scripts/sync-skill-assets.mjs --check, which .github/workflows/ci.yml runs on pushes and PRs; skills/install-anti-slop/scripts/install.mjs copies assets with cpSync and refuses existing destinations without --force; src/rules/require-safety-comment-for-type-assertion.ts and src/rules/no-runtime-typeof.ts implement their documented options (markers, allowInTypeGuards) including regex-escaped configurable markers in markerPattern.

## Issues Found

.github/workflows/ci.yml uses tag-pinned rather than SHA-pinned actions (actions/checkout@v4, pnpm/action-setup@v4, actions/setup-node@v4), a minor supply-chain hygiene gap; no other defects found — no eval/exec, no network calls, no secrets, and the installer refuses silent overwrites.

## Key Risks

Distributed by vendoring (no npm package, no releases, private:true), so adopters own ongoing maintenance and updates; analysis is lexical/syntactic only — same-file alias resolution, no cross-file type inference, unknown receivers and named callbacks not analyzed, which the README documents honestly; strongly opinionated rules (banning module mocking, runtime typeof, the substring 'shape' in symbol names) demand team agreement; Effect rules are syntactic and do not resolve import aliases; nothing was executed, so test/CI claims are from reading the suites and workflow, not from runs; requires pinning @oxlint/plugins to the exact installed oxlint version (currently 1.78.0).

## Reviewed Files

- `README.md`
- `package.json`
- `tsconfig.json`
- `AGENTS.md`
- `.github/workflows/ci.yml`
- `src/index.ts`
- `src/effect/index.ts`
- `src/rules/no-array-filter-map.ts`
- `src/rules/no-known-value-widening.ts`
- `src/rules/no-known-value-widening.test.ts`
- `src/rules/no-module-mocking.ts`
- `src/rules/no-runtime-typeof.ts`
- `src/rules/no-unsafe-dictionary-type.ts`
- `src/rules/no-widen-then-assert.ts`
- `src/rules/no-widen-then-assert.test.ts`
- `src/rules/require-readable-spacing.ts`
- `src/rules/require-readable-spacing-cli.test.ts`
- `src/rules/require-safety-comment-for-type-assertion.ts`
- `src/effect/rules/no-service-constructor-imports.ts`
- `src/effect/rules/prefer-effect-match.ts`
- `src/shared/type-alias-resolution.ts`
- `src/vendor/eslint-stylistic/UPSTREAM.md`
- `scripts/sync-skill-assets.mjs`
- `skills/install-anti-slop/SKILL.md`
- `skills/install-anti-slop/references/update.md`
- `skills/install-anti-slop/scripts/install.mjs`
