Skip to content

Commit 7699abd

Browse files
rafaelscostaclaude
andcommitted
chore(quality): zero-warning lint sweep + synapse memory stability [Story 123.7]
- Lint sweep across helpers, doctor checks, graph-dashboard, ids, synapse layers, data scripts, installer, scripts, and tests: trailing commas, dead-var/import removal, formatting alignment. - tests/synapse/synapse-memory-provider.test.js: refactor mock to use injectable _getLoader on provider instance (fixes intermittent failure caused by jest.doMock + isolateModules ordering). - tests/synapse/e2e/pipeline-audit.e2e.js: trailing-comma cleanup. - .claude/hooks/precompact-session-digest.cjs: single-quote fix in inlineScript (resolves last 2 lint warnings). - New: .synapse/.gitignore — ignore runtime sessions/cache. - .gitignore: ignore .agents/ (duplicate of .claude/skills/). Verified: - npm run lint → 0 errors, 0 warnings - npx jest tests/synapse/synapse-memory-provider.test.js → 22/22 pass - npm run typecheck → clean Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent dbb9e52 commit 7699abd

61 files changed

Lines changed: 293 additions & 270 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.aiox-core/core/code-intel/helpers/dev-helper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const { getEnricher, getClient, isCodeIntelAvailable } = require('../index');
66
const RISK_THRESHOLDS = {
77
LOW_MAX: 4, // 0-4 refs = LOW
88
MEDIUM_MAX: 15, // 5-15 refs = MEDIUM
9-
// >15 refs = HIGH
9+
// >15 refs = HIGH
1010
};
1111

1212
// Minimum references to suggest REUSE (>threshold = REUSE, <=threshold = ADAPT)

.aiox-core/core/code-intel/helpers/devops-helper.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ async function generateImpactSummary(files) {
7878
} catch { /* skip — partial result ok */ }
7979

8080
const riskLevel = classifyRiskLevel(impact.blastRadius);
81-
const fileCount = impact.references ? impact.references.length : 0;
8281
const topFiles = (impact.references || [])
8382
.map((r) => r.file || r.path || 'unknown')
8483
.slice(0, 10);

.aiox-core/core/code-intel/helpers/planning-helper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const { getEnricher, getClient, isCodeIntelAvailable } = require('../index');
77
const RISK_THRESHOLDS = {
88
LOW_MAX: 4, // 0-4 refs = LOW
99
MEDIUM_MAX: 15, // 5-15 refs = MEDIUM
10-
// >15 refs = HIGH
10+
// >15 refs = HIGH
1111
};
1212

1313
/**

.aiox-core/core/code-intel/helpers/qa-helper.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ const { getEnricher, getClient, isCodeIntelAvailable } = require('../index');
77
const RISK_THRESHOLDS = {
88
LOW_MAX: 4, // 0-4 refs = LOW
99
MEDIUM_MAX: 15, // 5-15 refs = MEDIUM
10-
// >15 refs = HIGH
10+
// >15 refs = HIGH
1111
};
1212

1313
// Coverage status thresholds based on test reference count
1414
const COVERAGE_THRESHOLDS = {
1515
INDIRECT_MAX: 2, // 1-2 test refs = INDIRECT
1616
MINIMAL_MAX: 5, // 3-5 test refs = MINIMAL
17-
// >5 test refs = GOOD
17+
// >5 test refs = GOOD
1818
};
1919

2020
/**

.aiox-core/core/config/template-overrides.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ function getTemplateOverrides(resolvedConfig) {
5353
if (unknown.length > 0) {
5454
throw new Error(
5555
`Unknown story section ID(s) in template_overrides: ${unknown.join(', ')}. ` +
56-
`Valid IDs: ${KNOWN_STORY_SECTIONS.join(', ')}`
56+
`Valid IDs: ${KNOWN_STORY_SECTIONS.join(', ')}`,
5757
);
5858
}
5959

.aiox-core/core/doctor/checks/rules-files.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ async function run(context) {
4747
};
4848
}
4949

50-
const present = EXPECTED_RULES.length - missing.length;
5150
const severity = missing.length > 3 ? 'FAIL' : 'WARN';
5251

5352
return {

.aiox-core/core/graph-dashboard/cli.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,9 +278,8 @@ Examples:
278278

279279
/**
280280
* Handle default summary view: dependency tree (compact) + stats + provider status.
281-
* @param {Object} args - Parsed CLI args
282281
*/
283-
async function handleSummary(args) {
282+
async function handleSummary() {
284283
const codeIntelSource = new CodeIntelSource();
285284
const registrySource = new RegistrySource();
286285
const metricsSource = new MetricsSource();

.aiox-core/core/graph-dashboard/data-sources/code-intel-source.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ class CodeIntelSource {
161161
Object.entries(deps.dependencies).map(([key, val]) => ({
162162
id: key,
163163
...((typeof val === 'object' && val) || {}),
164-
}))
164+
})),
165165
);
166166
}
167167

.aiox-core/core/ids/layer-classifier.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const LAYER_RULES = [
4444
* @returns {'L1' | 'L2' | 'L3' | 'L4'} The boundary layer
4545
*/
4646
function classifyLayer(entityPath) {
47-
if (typeof entityPath !== "string") return "L4";
47+
if (typeof entityPath !== 'string') return 'L4';
4848

4949
// Normalize: forward slashes, no leading ./ or /
5050
const normalized = entityPath

.aiox-core/core/synapse/layers/layer-processor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class LayerProcessor {
5050
* @param {object[]} context.previousLayers - Results from previous layers
5151
* @returns {{ rules: string[], metadata: object } | null} Rules and metadata, or null to skip
5252
*/
53-
process(context) {
53+
process(_context) {
5454
throw new Error(`${this.name}: process() must be implemented by subclass`);
5555
}
5656

0 commit comments

Comments
 (0)