Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
5ff8da4
fix: make configured lint findings fail and declare runtime globals
christian-byrne Sep 18, 2026
db88a38
fix: preserve upstream disabled Sonar rules and verify lint policy
christian-byrne Sep 18, 2026
3757ba0
test: resolve trusted tools and document intentional lint fixtures
christian-byrne Sep 18, 2026
6e6e1a1
test: retain boxed Lamport counter as an explicit invalid fixture
christian-byrne Sep 18, 2026
36ae7a0
refactor: separate payload traversal from budget admission
christian-byrne Sep 18, 2026
46ba669
refactor: clarify cycle traversal and identity comparisons
christian-byrne Sep 18, 2026
4b21c5d
refactor: isolate inserted node link remapping
christian-byrne Sep 18, 2026
faea724
refactor: separate definition minting responsibilities
christian-byrne Sep 18, 2026
883786c
ci: enforce strict package lint without masking failures
christian-byrne Sep 18, 2026
346be8c
refactor: separate trace validation responsibilities
christian-byrne Sep 18, 2026
f464a1e
refactor: share inert link descriptor record checks
christian-byrne Sep 18, 2026
622d9bf
refactor: separate batch rejection and payload classification
christian-byrne Sep 18, 2026
911bd0c
refactor: separate workflow insertion preflight and writes
christian-byrne Sep 18, 2026
8dbcdba
refactor: separate widget payload and interior resolution checks
christian-byrne Sep 18, 2026
297e2a5
refactor: separate connection scope, claims, and installation
christian-byrne Sep 18, 2026
40e0738
refactor: isolate node presence and durable link restoration
christian-byrne Sep 18, 2026
bf52304
test: separate fixture checks and simplify independent comparators
christian-byrne Sep 18, 2026
42bd586
test: clarify clock matrix ordering and divergence classification
christian-byrne Sep 18, 2026
57720b6
test: separate exhaustive graph and identity case enumeration
christian-byrne Sep 18, 2026
554b4c4
test: separate full-pool generation and batch checks
christian-byrne Sep 18, 2026
3bc6483
merge: integrate public schema-v4 and permutation corrections
christian-byrne Sep 18, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ jobs:
- name: Type-check gate
run: npm run typecheck

- name: Lint gate
run: npm run lint

- name: Purity gate
run: npm run check:purity

Expand Down
35 changes: 29 additions & 6 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,15 @@ import tsParser from "@typescript-eslint/parser";
import sonarjs from "eslint-plugin-sonarjs";

const sonarRecommended = sonarjs.configs.recommended;
const sonarWarnings = Object.fromEntries(
Object.entries(sonarRecommended.rules).map(([ruleName, setting]) => [
ruleName,
Array.isArray(setting) ? ["warn", ...setting.slice(1)] : "warn",
]),
// The former unconditional mapping accidentally enabled all 65 rules disabled
// by SonarJS 3.0.7's recommendation. Keep upstream rule selection and options;
// only promote enabled severities so findings cannot produce a successful lint.
const sonarErrors = Object.fromEntries(
Object.entries(sonarRecommended.rules).map(([ruleName, setting]) => {
const severity = Array.isArray(setting) ? setting[0] : setting;
if (severity === "off" || severity === 0) return [ruleName, setting];
return [ruleName, Array.isArray(setting) ? ["error", ...setting.slice(1)] : "error"];
}),
);

export default [
Expand All @@ -20,7 +24,26 @@ export default [
ecmaVersion: 2024,
parser: tsParser,
sourceType: "module",
// Web-platform primitives used by the shared browser/Node implementation.
// Do not grant src/** Node-only or DOM globals (KA-3, FC-3).
globals: {
TextEncoder: "readonly",
structuredClone: "readonly",
},
},
rules: sonarErrors,
},
{
files: ["test/**/*.ts"],
// Vitest runs in bare Node, not a DOM environment. Tests import Vitest APIs.
languageOptions: {
globals: {
Buffer: "readonly",
console: "readonly",
process: "readonly",
TextDecoder: "readonly",
URL: "readonly",
},
},
rules: sonarWarnings,
},
];
Loading
Loading