Repository navigation
v0.19.0 is a minor release. Java projects now get real engine coverage, Knip can be set to run always or never, and a round of false positives and missed findings is fixed across hardcoded-url, unsafe-type-assertion, no-undef, unused-css, secret detection and dependency advice.
Added
quality.knipsetting.auto(the default) runs Knip for projects that declare or configure it.alwaysruns aislop's bundled Knip on every JavaScript or TypeScript project, andoffnever runs it and reports noknip/skipped. Knip loads the project's config files, soalwaysruns code from the scanned repository (#474).- Java support. Java projects get real engine coverage instead of detection only:
- Strings, text blocks, chars, and comments are masked, so braces inside them no longer distort function lengths.
- Package directories under
src/<set>/java/(andkotlin/) are no longer read as excluded or non-production folders, socom/example/demoororg/springframework/samplescode is scanned and gets the full ai-slop checks. - Formatting runs google-java-format, including the AOSP style, when the build configures it (Spotless
googleJavaFormatorfmt-maven-plugin). - Linting runs PMD with a focused set of bug-finding rules, or the project's own PMD ruleset, plus Checkstyle when the project has a
checkstyle.xml. - Security flags SQL and process commands built by string concatenation or
String.format, andObjectInputStream/XMLDecoderdeserialization. - AI-slop rules cover unused and duplicate imports,
System.outleftovers, catch blocks that only print, and the newai-slop/java-broad-throws. aislop doctorshows the Java tools and how to install them.
knip/skippednotice. When Knip is not set up, times out or fails, an info finding says so (advisory, likesecurity/dependency-audit-skipped) instead of the check disappearing while the scan still scores 100 (#474).
Changed
- Knip runs when a project declares or configures it. A knip config file or a
"knip"key inpackage.jsonnow counts, sonpx knipusers are covered. aislop always runs its own bundled Knip, never a copy from the scanned project (#474). - Links to scanaislop.com carry utm parameters. The visible link text is unchanged.
Fixed
ai-slop/hardcoded-urlfalse positives. A URL's own host no longer counts as config context and the TLD is never an environment signal, so vendorapi.hosts and.dev/.appdomains stay quiet. Social profiles, app store listings and legal pages (/privacy,/terms) are treated as public content links. Config-like names (API_ENDPOINT,apiBase) and internal hosts (orders-internal,myapp-staging) are still flagged (#479, #482, #493).ai-slop/unsafe-type-assertionignores comments. Comments are masked before matching, so a cast written inside a comment is no longer reported (#475).eslint/no-undefrespects/* global */directives, matching ESLint (#478).- Knip unused files are reported again. Knip 6 moved them under
issues[].files, soknip/fileswas never reported (#474). - Agent hooks write state at the project root. Lock, baseline and session files resolve to the project root instead of the agent's working directory, so stray nested
.aislop/folders are no longer created and the home directory's.aislopis never used (#472). - Dependency advice no longer suggests downgrades as upgrades. When
npm auditonly offers a semver-major fix below the declared version,security/vulnerable-dependencysays no safe direct fix exists and, when the advisory has an upper bound, suggests an override to the first patched version (#485). complexity/too-many-paramscounts a destructured parameter once. Regression test for a report against 0.12.0; the fix shipped in 0.14.1 (#476).ai-slop/unused-cssruns on real scans.scan,ci,fixand agent hooks passed engines a file list already narrowed to source extensions, so stylesheets never reached the rule and it could not report anything outside direct API calls. Stylesheets in the scan's scope are now checked, and class references are read from the whole project, so a stylesheet changed on its own is not compared against only the other changed files. Classes a build step adds to generated markup (astro-code, Astro'sastro-<hash>scoped classes, Shiki'sshiki) are not reported. Upgrading can surface dead CSS that was always there.- Secret detection reads config files on real scans. The same narrowing kept
.yaml,.yml,.jsonand.tomlfiles out ofsecurity/hardcoded-secret. They are scanned again, with the scan's include and exclude settings. .aislop/config.yamlandrules.yamlare read. aislop only looked for the.ymlspelling, so aconfig.yamlwas ignored without a warning and the scan used the defaults. Both spellings now load, and.ymlwins when both exist. Agent hooks find the project root from either spelling, the Claude CodeFileChangedhook watches both (runaislop hook installagain to pick it up), andaislop initupdates an existing.yamlfile instead of writing a.ymlbeside it (#471).- No crash when the output reader closes early. Piping into
head, ajqthat exits, or an agent hook that stops reading made the next write fail withEPIPE, which aislop printed as an uncaught exception and exited 1. aislop now drops the remaining output and exits with the command's own result. - Dependency advisories.
vite,zod,vitest,body-parser,fast-uri,ip-addressandqsare raised to patched releases, andinkmoves to 8.
Upgrading
npx aislop@0.19.0 scanUpgrading can surface findings that were always there: stylesheets are now checked by ai-slop/unused-css, config files by secret detection, and projects without Knip set up get a knip/skipped notice. To pin the GitHub Action and the CLI together, use uses: scanaislop/aislop@v0.19.0 with no version input. @v1 still runs the latest release.
Validation
- 2,410 tests passing across 233 files
- Typecheck and build clean
- aislop self-scan (
aislop ci .) passes pnpm audit: no known vulnerabilitiesnpm pack --dry-runproducesaislop-0.19.0.tgz, 32 files, 622 kB