Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

code-standards

Latest version: v9.94.0

Overview

Last scanned
23 Nov 2026
Published
23 Nov 2026
PyPI package Publisher: nasr-sarj
8 Stars
1 Forks
451 Versions
84.7K Downloads
Python Repo language

Scan summary

code-standards was last scanned on 23 Nov 2026 at version 9.94.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 451 versions; the latest 5 were published within 2 days (22 and 23 Nov 2026).
  • Findings: No rules fired in version 9.94.0.
  • Downloads: 84,673 downloads.

Versions

451 versions published
Versions and the rules that fired in each
VersionPublishedStatus
9.94.0 LATEST 23 Nov 2026 No rules fired
9.93.0 23 Nov 2026 No rules fired
9.92.0 23 Nov 2026 No rules fired
9.91.0 23 Nov 2026 Not shown
9.89.2 22 Nov 2026 Not shown

No rules fired in 9.94.0

Findings

Findings for v9.94.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 9.94.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

code-standards

One deterministic quality gate for Sarj Python, TypeScript, Swift, Kotlin, shell, SQL, IaC, and repository policy.

uv tool install --python 3.15 code-standards

Adopt the repository once with code-standards setup. It installs one canonical staged gate that includes semantic lint and repository policy, plus commit-message and pull-request history enforcement. Do not install Repo Standards separately.

Managed commit hooks advise on subjects over 72 descriptive characters. These warnings preserve message text and validation results. PR CI advises on title and body text without blocking commit policy.

The pre-commit gate runs once on every commit and discovers paths directly from the Git index, including mixed file types and deletion-only commits. The shared dispatcher selects applicable rules and retains type analysis, repository policy, exclusions and suppression accountability. Errors and incomplete analysis block the commit; warning-stage findings stay visible even when the hook passes. Generated hooks apply safe custom-rule, Ruff and Oxlint fixes automatically. When a fix changes a staged file, the gate stops so you can review and stage the edit, then retry. Use code-standards fix --staged to apply fixes separately, or check --fix to fix before checking. Staged fixes never fall back to the whole repository and refuse files with unstaged changes.

Setup installs the selected hook manager. In a fresh checkout, run code-standards doctor --repair before committing; doctor checks installation and the exact unconditional command. Conditional Lefthook jobs must be moved to an unconditional job without changing unrelated hooks. Git can bypass local hooks with --no-verify; the canonical CI gate independently enforces policy.

code-standards setup
code-standards check
code-standards check --rule python:no-excessive-cognitive-complexity src/
code-standards fix
code-standards doctor
code-standards update

TypeScript setup writes oxlint.config.mts, which extends createConfig() from the synced oxlint.strict.mts preset. code-standards update migrates ESLint-era configs, presets, bulk suppressions and disable comments to Oxlint.

To preserve generated source byte-for-byte during setup and update, list its exact file paths in .sarj-standards.toml under [doctor].exclude, for example exclude = ["src/components/ui/stepper.tsx"]. Keep the generated directories in the authored Oxlint ignorePatterns and formatter exclusions as well: native lint/format exclusions alone do not select migration inputs. File-level adoption exclusions preserve security scanning of those files and generated artifacts. Do not use directory-wide [doctor].exclude entries for this purpose, because those also exclude directories from project security discovery. Adjacent authored files still undergo directive migration and validation.

Doctor reads doctor.config.json by default. An authored doctor.config.ts, .mts, .js, .mjs, .cts or .cjs takes precedence, in that order, and must export a configuration object. Use Node-supported module syntax to extend the managed JSON and preserve its ignores and overrides. Executable configs require --trust-repository-code; without it the gate fails before importing the module. Staged checks load the indexed config and its indexed imports.

TypeScript setup also installs Syncpack 15.3.3 and synchronizes syncpack.strict.mts. Import that preset from .syncpackrc.ts, append repository-specific version groups, and run syncpack lint in the repository's existing dependency gate. The preset checks package-manager versions and dependency consistency while preserving hand-managed resolution floors. Setup and doctor detect preset and tool-pin drift. Syncpack remains a separate native gate; code-standards check does not run it.

Use repeatable check --rule ENGINE:ID selectors to select native rules, Oxlint rules, or managed security audits. Exclusions, baselines, and severities still apply; Ruff selectors are not supported. Native linters and Oxlint execute only selected rules. Oxlint retains configured plugins, options, severities, and suppression directives.

To refresh without accepting new debt, save the reviewed consumer baseline unchanged and run code-standards baseline update --budget /path/to/accepted.json. Use that same fixed budget for the full scan and subsequent --rule refreshes on one output artifact. Only existing fingerprints up to their accepted counts enter the refreshed baseline; new and increased findings remain active. Invalid budgets and analysis execution failures prevent writing. Existing review gates still establish whether the selected budget is authorized.

Trusted staged and PR checks preserve existing diagnostic fingerprint/count budgets for Python files whose only changes are descriptions after pre-existing coded inline # type: ignore[...] or # noqa: CODE suppressions. The suppression prefix, target codes, scope, and every other source byte must stay identical. Reasons use — or -- and cannot contain checker pragmas. This is a bounded lexical proof using real comment tokens, not general AST equivalence. Immutable Git inputs and the exact worktree postimage are validated again after comparison. New findings, count growth, and required source policies still fail. Trusted check --staged --fix preserves these proven Python sources without applying unrelated native or Ruff fixes.

For a history-free initial import, set SARJ_STANDARDS_INITIAL_IMPORT_SOURCE only on the initial commit process to the full lowercase object ID of an available source commit with exactly one available parent. HEAD must be an unborn branch; the entire staged tree must equal that commit, tracked worktree files must match the index without hidden index flags, and nonignored files must be staged. Native staged checks compare the source commit with its parent, preserving the usual changed-line failures for findings introduced in that commit while allowing inherited diagnostic budgets. Validation runs before and after analysis; all analyzers and baseline limits still apply. The caller must qualify the source commit separately. Git replacement objects and lazy fetching are disabled; explicitly supplied temporary object alternates may provide the source history without copying it into the new repository. Remove the input and alternates before subsequent commits, pushes, and CI. Invalid or changed import context fails analysis, including clean reports; ordinary checks without this input retain their existing behavior.

Selected Oxlint checks apply live inline and bulk suppressions. The complete lint gate owns unused inline-directive and stale bulk-suppression checks: a partial run cannot establish whether an unselected rule's directive is needed.

The complete Python and JavaScript/TypeScript source gate requires named, line-local exceptions with concrete reasons. SARJ523 rejects blanket Python waivers, scoped Ruff file/range disables and weakened Pyright source settings; SARJ419 also rejects missing explanations. Bare sarj-noqa markers cannot waive Python, SQL or IaC findings. Required Ruff blanket-ignore checks and an independent Oxlint suppression-policy pass remain active despite source disables, consumer rule configuration, rule exclusions and diagnostic baselines. The Oxlint pass bans file/range disables, ts-ignore and ts-nocheck while retaining described local ts-expect-error exceptions. Generated-source headers cannot authorize their own waiver; explicit whole-path exclusions retain that boundary. A reason is not proof that an exception is justified. Native parse/read/size failures make checks incomplete. Explicit tool delegation, partial and own-CI options retain their declared scope and coverage notices.

The complete Standards gate enforces Ruff's ban on typing.cast and typing_extensions.cast even when source comments, consumer Ruff configuration or manifest rule exceptions suppress banned-api; these cast findings cannot enter or consume the diagnostic baseline. Wildcard imports, bounded literal getattr names and proven read-only typing module namespace lookups through __dict__, vars and __getattribute__ retain the same ban. Other banned APIs retain their existing exception policy. Prefer discriminated unions, explicit narrowing and typed contracts. The warning python:no-dual-shape-model-field-reader (SARJ522) identifies private helpers that read the same declared Pydantic fields through model getattr and mapping lookup branches, returning object or Any. Normalize raw input once and read typed attributes. Opaque inputs, raw validators and genuinely dynamic reflection remain supported. Review changes to missing-field handling, coercion, generated defaults and validation errors; there is no autofix.

Python boolean traps are owned by Ruff FBT001, FBT002 and FBT003: positional boolean annotations, defaults and literal arguments are checked; keyword-only inputs, named arguments and the existing test exemptions remain allowed. The typed Oxlint policy uses @sarj/no-boolean-selector-parameter at warning severity. Its owned detector checks single-statement operation selectors and concise-arrow conditional dispatch. Prefer separate intention-revealing operations or an explicit string-literal mode. Boolean data, syntactic value mappings, stable same-operation data choices, setters and independently declared callback or inherited contracts remain allowed. Independent JSX helpers are checked; types and references establish callback contracts. It requires type information and a direct broad-boolean parameter condition. Multi-statement bodies, short-circuit guards, nullable or literal-only inputs and indirect predicates remain outside its scope. The preserved block-body onX property exemption remains a documented blind spot. Use code-standards check --rule oxlint:no-boolean-selector-parameter to inspect it. Noncomputed property reads count as data without proving getter effects; computed reads, including literal keys, remain outside that exemption. API changes require manual review; the rule provides no automatic rewrite.

The shared oxfmt policy preserves authored property quotes (quoteProps: preserve) so quoted wire keys remain exempt from require-camelcase-properties. New unquoted snake_case properties still fail the native naming rule; formatting preserves runtime object keys and values.

The shared Oxlint policy also warns on unparenthesized assignments in returned expressions through native no-return-assign. Review whether the assignment should be a comparison or a separate state change; there is no automatic intent-changing fix. The native except-parens option accepts individually grouped assignments and common lazy memoization. Parentheses mark syntactic visibility, not proven intent: formatters can add or remove them without changing behavior. A chained assignment can still warn after formatting even when its outer expression is grouped. For an intentional local-variable chain, use separate assignment statements followed by return. Upstream may report several writes at the same return location. This rule does not prohibit all returned mutations or prove command/query separation. Existing typed void-return and Promise checks retain their own boundaries; an executor's returned expression alone does not prove a broken Promise.

Native Oxlint warnings also cover ignored Promise executor return values, unchanged loop conditions, interpolation placeholders in ordinary quoted strings and self-comparisons. A returned executor expression may deliberately discard a value, identical-looking calls can have different effects, and literal interpolation text can be an external template contract. Regex assertion contradictions and redundant assertions are warnings requiring review of matching and capture behavior; backtracking and disjunction checks remain deferred. These controls do not apply automatic intent-changing rewrites.

The shared source policy bans JavaScript for-in loops through the native ForInStatement selector, which replaces the narrower typed array-loop diagnostic. Prefer for-of over Object.keys or Object.entries for own properties; inherited enumeration contracts require an exact explained exception. Native no-restricted-properties, no-proto and no-iterator reject legacy arguments.callee/caller, proto member access and iterator member access. The arguments restriction covers dot access, static bracket access and destructuring without duplicate no-caller diagnostics. Object-literal prototype declarations and data strings remain distinct. Existing no-eval rejects direct and indirect JavaScript eval. Python eval and breakpoint calls retain Ruff S307 and T100 as their native owners, including the configured preview eval-reference checks.

The managed Oxlint policy does not run the @shadcn/lint rules: they were warning-only advisories that discover components.json and the Tailwind theme for every file. @sarj/prefer-shadcn-primitives keeps the design-system boundary, and @sarj/prefer-semantic-colors owns raw colors.

Terraform, Kubernetes, and GitHub Actions adoption adds isolated Checkov 3.3.30 and zizmor 1.31.1 runtimes. Setup and generated CI prewarm these tools; checks run offline with packaged policy. Use --rule checkov:CKV_GCP_95 or --rule zizmor:template-injection to select upstream audits. Their findings start as warnings, use the canonical diagnostic baseline, and retain upstream IDs. Checkov honors its inline suppression directives; zizmor ignore comments are disabled. Explicit zizmor selectors include auditor-persona checks; online-only audits cannot run offline. Parsing or execution failures leave the analysis incomplete. Image digest evidence for source templates is deferred to their rendered deployment artifacts.

The opt-in jscpd capability runs the jscpd 5.4.0 copy-paste detector, which setup installs through mise. Setup and upgrades list it in [capabilities].disable; remove it there to enable it. Each check scans Python, TypeScript, Swift and Kotlin source outside test directories, because a copy can only be found by comparing it with the whole tree. Every repeated block of at least 50 tokens is a jscpd:duplicate-code warning on its own lines that names the other copies, so the changed-line baseline reports it when either side is edited. The repository's own jscpd configuration is ignored.

The shfmt capability checks shell files, including extensionless shebang entrypoints, with shfmt 3.14.1 using two-space indentation and indented case clauses. Explicit, staged and PR-selected files must be formatted in full; full scans report existing drift as warnings. Formatting errors on selected files cannot be hidden by a diagnostic baseline. code-standards fix formats selected files safely, preserving executable permissions; generated Gradle launchers are excluded. Shebangs determine the shell before filename suffixes, including supported shells at custom absolute paths. Bats files use the upstream Bats formatter dialect. Zsh formatting does not provide ShellCheck coverage: its unsupported dialect remains an explicit coverage failure. Ambient editor settings cannot change the canonical style, and simplification is disabled.

Shell libraries with a shell suffix or no suffix can declare their dialect with a top-level # shellcheck shell=bash header before executable source. Quoted dialect values and preceding directive fields are supported. An executable shebang remains authoritative. Generated Gradle exclusions require the exact generator comment in the source header; mentions in strings, heredocs and ordinary prose do not exempt authored scripts. Automatic fixes refuse native formatter output that removes carriage-return bytes, so literal data and line endings need manual review in those cases.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases code-standards

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

Copy of Template Design OX Blog (3)
Research

Ruby2Shell: Ruby Memory Corruption Flaws Expose Applications to Remote Code Execution, But is it an Actual Risk?

PolinRider Returns
Research

PolinRider Returns: Hijacked npm Packages Use Ethereum Blockchain to Conceal Malware Infrastructure

Frame 2085668439 (1)
Group 1261154229