code-auditor-mcp 4.1.1 → 5.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/marketplace.json +1 -1
- package/CHANGELOG.md +338 -0
- package/README.md +4 -4
- package/configs/hhra-compat.json +0 -8
- package/dist/__tests__/fixtures/spec-52/item-03-exec-in-loop.d.ts +1 -1
- package/dist/__tests__/fixtures/spec-52/item-03-exec-in-loop.d.ts.map +1 -1
- package/dist/__tests__/fixtures/spec-52/item-03-exec-in-loop.js +7 -1
- package/dist/__tests__/fixtures/spec-52/item-03-exec-in-loop.js.map +1 -1
- package/dist/__tests__/fixtures/spec-52/item-04-storage-sql-exec-in-loop.d.ts +2 -8
- package/dist/__tests__/fixtures/spec-52/item-04-storage-sql-exec-in-loop.d.ts.map +1 -1
- package/dist/__tests__/fixtures/spec-52/item-04-storage-sql-exec-in-loop.js +4 -4
- package/dist/__tests__/fixtures/spec-52/item-04-storage-sql-exec-in-loop.js.map +1 -1
- package/dist/__tests__/fixtures/spec-52/item-06-chained-prepare-run-in-loop.d.ts +1 -1
- package/dist/__tests__/fixtures/spec-52/item-06-chained-prepare-run-in-loop.d.ts.map +1 -1
- package/dist/__tests__/fixtures/spec-52/item-06-chained-prepare-run-in-loop.js.map +1 -1
- package/dist/__tests__/fixtures/spec-52/item-07-chained-prepare-bind-first-in-loop.d.ts +2 -2
- package/dist/__tests__/fixtures/spec-52/item-07-chained-prepare-bind-first-in-loop.d.ts.map +1 -1
- package/dist/__tests__/fixtures/spec-52/item-07-chained-prepare-bind-first-in-loop.js.map +1 -1
- package/dist/__tests__/fixtures/spec-52/item-10-promise-all-map-of-eager-all-in-loop.d.ts +1 -1
- package/dist/__tests__/fixtures/spec-52/item-10-promise-all-map-of-eager-all-in-loop.d.ts.map +1 -1
- package/dist/__tests__/fixtures/spec-52/item-10-promise-all-map-of-eager-all-in-loop.js.map +1 -1
- package/dist/analyzers/applicability.d.ts +42 -0
- package/dist/analyzers/applicability.d.ts.map +1 -1
- package/dist/analyzers/applicability.js +74 -0
- package/dist/analyzers/applicability.js.map +1 -1
- package/dist/analyzers/cross-language/APIContractAnalyzer.js +18 -24
- package/dist/analyzers/cross-language/APIContractAnalyzer.js.map +1 -1
- package/dist/analyzers/cross-language/DependencyGraphBuilder.d.ts +30 -23
- package/dist/analyzers/cross-language/DependencyGraphBuilder.d.ts.map +1 -1
- package/dist/analyzers/cross-language/DependencyGraphBuilder.js +113 -76
- package/dist/analyzers/cross-language/DependencyGraphBuilder.js.map +1 -1
- package/dist/analyzers/cross-language/SchemaValidator.d.ts +2 -0
- package/dist/analyzers/cross-language/SchemaValidator.d.ts.map +1 -1
- package/dist/analyzers/cross-language/SchemaValidator.js +8 -3
- package/dist/analyzers/cross-language/SchemaValidator.js.map +1 -1
- package/dist/analyzers/crossDomain/CrossDomainAnalyzer.d.ts.map +1 -1
- package/dist/analyzers/crossDomain/CrossDomainAnalyzer.js +210 -148
- package/dist/analyzers/crossDomain/CrossDomainAnalyzer.js.map +1 -1
- package/dist/analyzers/documentationAnalyzer.d.ts.map +1 -1
- package/dist/analyzers/documentationAnalyzer.js +23 -28
- package/dist/analyzers/documentationAnalyzer.js.map +1 -1
- package/dist/analyzers/handleIdentification.d.ts +356 -0
- package/dist/analyzers/handleIdentification.d.ts.map +1 -0
- package/dist/analyzers/handleIdentification.js +424 -0
- package/dist/analyzers/handleIdentification.js.map +1 -0
- package/dist/analyzers/manifestStaleness.d.ts +64 -0
- package/dist/analyzers/manifestStaleness.d.ts.map +1 -0
- package/dist/analyzers/manifestStaleness.js +115 -0
- package/dist/analyzers/manifestStaleness.js.map +1 -0
- package/dist/analyzers/orgFilterTiers.d.ts +73 -1
- package/dist/analyzers/orgFilterTiers.d.ts.map +1 -1
- package/dist/analyzers/orgFilterTiers.js +166 -1
- package/dist/analyzers/orgFilterTiers.js.map +1 -1
- package/dist/analyzers/provenance.d.ts +251 -57
- package/dist/analyzers/provenance.d.ts.map +1 -1
- package/dist/analyzers/provenance.js +1109 -429
- package/dist/analyzers/provenance.js.map +1 -1
- package/dist/analyzers/reactAnalyzer.d.ts +2 -0
- package/dist/analyzers/reactAnalyzer.d.ts.map +1 -1
- package/dist/analyzers/reactAnalyzer.js +2 -0
- package/dist/analyzers/reactAnalyzer.js.map +1 -1
- package/dist/analyzers/receiverResolution.d.ts +183 -0
- package/dist/analyzers/receiverResolution.d.ts.map +1 -0
- package/dist/analyzers/receiverResolution.js +540 -0
- package/dist/analyzers/receiverResolution.js.map +1 -0
- package/dist/analyzers/receiverRoot.d.ts +328 -0
- package/dist/analyzers/receiverRoot.d.ts.map +1 -0
- package/dist/analyzers/receiverRoot.js +990 -0
- package/dist/analyzers/receiverRoot.js.map +1 -0
- package/dist/analyzers/ruleRegistry.d.ts +12 -68
- package/dist/analyzers/ruleRegistry.d.ts.map +1 -1
- package/dist/analyzers/ruleRegistry.js +32 -342
- package/dist/analyzers/ruleRegistry.js.map +1 -1
- package/dist/analyzers/ruleTiming.d.ts +10 -0
- package/dist/analyzers/ruleTiming.d.ts.map +1 -1
- package/dist/analyzers/ruleTiming.js +20 -0
- package/dist/analyzers/ruleTiming.js.map +1 -1
- package/dist/analyzers/sqlLiteral.d.ts +76 -0
- package/dist/analyzers/sqlLiteral.d.ts.map +1 -0
- package/dist/analyzers/sqlLiteral.js +419 -0
- package/dist/analyzers/sqlLiteral.js.map +1 -0
- package/dist/analyzers/tsEcosystem.d.ts +115 -0
- package/dist/analyzers/tsEcosystem.d.ts.map +1 -0
- package/dist/analyzers/tsEcosystem.js +231 -0
- package/dist/analyzers/tsEcosystem.js.map +1 -0
- package/dist/analyzers/tsExpressionDescriptor.d.ts +156 -0
- package/dist/analyzers/tsExpressionDescriptor.d.ts.map +1 -0
- package/dist/analyzers/tsExpressionDescriptor.js +374 -0
- package/dist/analyzers/tsExpressionDescriptor.js.map +1 -0
- package/dist/analyzers/universal/UniversalConventionsAnalyzer.d.ts +6 -0
- package/dist/analyzers/universal/UniversalConventionsAnalyzer.d.ts.map +1 -1
- package/dist/analyzers/universal/UniversalConventionsAnalyzer.js +107 -44
- package/dist/analyzers/universal/UniversalConventionsAnalyzer.js.map +1 -1
- package/dist/analyzers/universal/UniversalDRYAnalyzer.d.ts.map +1 -1
- package/dist/analyzers/universal/UniversalDRYAnalyzer.js +23 -35
- package/dist/analyzers/universal/UniversalDRYAnalyzer.js.map +1 -1
- package/dist/analyzers/universal/UniversalDataAccessAnalyzer.d.ts +287 -49
- package/dist/analyzers/universal/UniversalDataAccessAnalyzer.d.ts.map +1 -1
- package/dist/analyzers/universal/UniversalDataAccessAnalyzer.js +2130 -512
- package/dist/analyzers/universal/UniversalDataAccessAnalyzer.js.map +1 -1
- package/dist/analyzers/universal/UniversalDocumentationAnalyzer.d.ts.map +1 -1
- package/dist/analyzers/universal/UniversalDocumentationAnalyzer.js +2 -18
- package/dist/analyzers/universal/UniversalDocumentationAnalyzer.js.map +1 -1
- package/dist/analyzers/universal/UniversalSOLIDAnalyzer.d.ts +0 -33
- package/dist/analyzers/universal/UniversalSOLIDAnalyzer.d.ts.map +1 -1
- package/dist/analyzers/universal/UniversalSOLIDAnalyzer.js +20 -143
- package/dist/analyzers/universal/UniversalSOLIDAnalyzer.js.map +1 -1
- package/dist/analyzers/universal/UniversalSchemaAnalyzer.d.ts +4 -3
- package/dist/analyzers/universal/UniversalSchemaAnalyzer.d.ts.map +1 -1
- package/dist/analyzers/universal/UniversalSchemaAnalyzer.js +36 -13
- package/dist/analyzers/universal/UniversalSchemaAnalyzer.js.map +1 -1
- package/dist/analyzers/universal/UniversalSecretsAnalyzer.d.ts.map +1 -1
- package/dist/analyzers/universal/UniversalSecretsAnalyzer.js +6 -0
- package/dist/analyzers/universal/UniversalSecretsAnalyzer.js.map +1 -1
- package/dist/analyzers/universal/UniversalSecurityAnalyzer.d.ts +15 -0
- package/dist/analyzers/universal/UniversalSecurityAnalyzer.d.ts.map +1 -1
- package/dist/analyzers/universal/UniversalSecurityAnalyzer.js +25 -0
- package/dist/analyzers/universal/UniversalSecurityAnalyzer.js.map +1 -1
- package/dist/analyzers/universal/UniversalStylesAnalyzer.d.ts +21 -32
- package/dist/analyzers/universal/UniversalStylesAnalyzer.d.ts.map +1 -1
- package/dist/analyzers/universal/UniversalStylesAnalyzer.js +166 -196
- package/dist/analyzers/universal/UniversalStylesAnalyzer.js.map +1 -1
- package/dist/analyzers/universal/functionConcerns.d.ts +3 -0
- package/dist/analyzers/universal/functionConcerns.d.ts.map +1 -1
- package/dist/analyzers/universal/functionConcerns.js +4 -1
- package/dist/analyzers/universal/functionConcerns.js.map +1 -1
- package/dist/analyzers/universal/schema/codeAnalysis.d.ts +310 -69
- package/dist/analyzers/universal/schema/codeAnalysis.d.ts.map +1 -1
- package/dist/analyzers/universal/schema/codeAnalysis.js +709 -383
- package/dist/analyzers/universal/schema/codeAnalysis.js.map +1 -1
- package/dist/analyzers/universal/schema/config.d.ts +3 -14
- package/dist/analyzers/universal/schema/config.d.ts.map +1 -1
- package/dist/analyzers/universal/schema/config.js +3 -16
- package/dist/analyzers/universal/schema/config.js.map +1 -1
- package/dist/analyzers/universal/schema/discovery.d.ts +22 -1
- package/dist/analyzers/universal/schema/discovery.d.ts.map +1 -1
- package/dist/analyzers/universal/schema/discovery.js +36 -20
- package/dist/analyzers/universal/schema/discovery.js.map +1 -1
- package/dist/analyzers/universal/schema/jsonSchema.d.ts.map +1 -1
- package/dist/analyzers/universal/schema/jsonSchema.js +13 -3
- package/dist/analyzers/universal/schema/jsonSchema.js.map +1 -1
- package/dist/analyzers/universal/schema/migrations.d.ts +187 -27
- package/dist/analyzers/universal/schema/migrations.d.ts.map +1 -1
- package/dist/analyzers/universal/schema/migrations.js +443 -186
- package/dist/analyzers/universal/schema/migrations.js.map +1 -1
- package/dist/analyzers/universal/schema/types.d.ts +17 -3
- package/dist/analyzers/universal/schema/types.d.ts.map +1 -1
- package/dist/analyzers/universal/schema/violations.js +1 -1
- package/dist/analyzers/universal/schema/violations.js.map +1 -1
- package/dist/analyzers/universal/styleScale.d.ts +52 -0
- package/dist/analyzers/universal/styleScale.d.ts.map +1 -0
- package/dist/analyzers/universal/styleScale.js +95 -0
- package/dist/analyzers/universal/styleScale.js.map +1 -0
- package/dist/applyDataDirEnv.js +1 -1
- package/dist/applyDataDirEnv.js.map +1 -1
- package/dist/auditRouter.d.ts +26 -30
- package/dist/auditRouter.d.ts.map +1 -1
- package/dist/auditRouter.js +373 -143
- package/dist/auditRouter.js.map +1 -1
- package/dist/auditRunner.d.ts +64 -1
- package/dist/auditRunner.d.ts.map +1 -1
- package/dist/auditRunner.js +1538 -1033
- package/dist/auditRunner.js.map +1 -1
- package/dist/baseline.d.ts +30 -3
- package/dist/baseline.d.ts.map +1 -1
- package/dist/baseline.js +70 -9
- package/dist/baseline.js.map +1 -1
- package/dist/cli.js +969 -821
- package/dist/cli.js.map +1 -1
- package/dist/codeIndex/analyzerConfig.d.ts +60 -0
- package/dist/codeIndex/analyzerConfig.d.ts.map +1 -0
- package/dist/codeIndex/analyzerConfig.js +98 -0
- package/dist/codeIndex/analyzerConfig.js.map +1 -0
- package/dist/codeIndex/auditResults.d.ts +39 -0
- package/dist/codeIndex/auditResults.d.ts.map +1 -0
- package/dist/codeIndex/auditResults.js +99 -0
- package/dist/codeIndex/auditResults.js.map +1 -0
- package/dist/codeIndex/codeMap.d.ts +59 -0
- package/dist/codeIndex/codeMap.d.ts.map +1 -0
- package/dist/codeIndex/codeMap.js +72 -0
- package/dist/codeIndex/codeMap.js.map +1 -0
- package/dist/codeIndex/conventions.d.ts +33 -0
- package/dist/codeIndex/conventions.d.ts.map +1 -0
- package/dist/codeIndex/conventions.js +84 -0
- package/dist/codeIndex/conventions.js.map +1 -0
- package/dist/codeIndex/coverage.d.ts +78 -0
- package/dist/codeIndex/coverage.d.ts.map +1 -0
- package/dist/codeIndex/coverage.js +164 -0
- package/dist/codeIndex/coverage.js.map +1 -0
- package/dist/codeIndex/dependencyGraph.d.ts +97 -0
- package/dist/codeIndex/dependencyGraph.d.ts.map +1 -0
- package/dist/codeIndex/dependencyGraph.js +241 -0
- package/dist/codeIndex/dependencyGraph.js.map +1 -0
- package/dist/codeIndex/functionIndex.d.ts +111 -0
- package/dist/codeIndex/functionIndex.d.ts.map +1 -0
- package/dist/codeIndex/functionIndex.js +306 -0
- package/dist/codeIndex/functionIndex.js.map +1 -0
- package/dist/codeIndex/inferredReceivers.d.ts +32 -0
- package/dist/codeIndex/inferredReceivers.d.ts.map +1 -0
- package/dist/codeIndex/inferredReceivers.js +41 -0
- package/dist/codeIndex/inferredReceivers.js.map +1 -0
- package/dist/codeIndex/meta.d.ts +30 -0
- package/dist/codeIndex/meta.d.ts.map +1 -0
- package/dist/codeIndex/meta.js +37 -0
- package/dist/codeIndex/meta.js.map +1 -0
- package/dist/codeIndex/migrations.d.ts +96 -0
- package/dist/codeIndex/migrations.d.ts.map +1 -0
- package/dist/codeIndex/migrations.js +1302 -0
- package/dist/codeIndex/migrations.js.map +1 -0
- package/dist/codeIndex/projectTasks.d.ts +54 -0
- package/dist/codeIndex/projectTasks.d.ts.map +1 -0
- package/dist/codeIndex/projectTasks.js +81 -0
- package/dist/codeIndex/projectTasks.js.map +1 -0
- package/dist/codeIndex/provenance.d.ts +47 -0
- package/dist/codeIndex/provenance.d.ts.map +1 -0
- package/dist/codeIndex/provenance.js +48 -0
- package/dist/codeIndex/provenance.js.map +1 -0
- package/dist/codeIndex/rawSql.d.ts +54 -0
- package/dist/codeIndex/rawSql.d.ts.map +1 -0
- package/dist/codeIndex/rawSql.js +71 -0
- package/dist/codeIndex/rawSql.js.map +1 -0
- package/dist/codeIndex/schema.d.ts +99 -0
- package/dist/codeIndex/schema.d.ts.map +1 -0
- package/dist/codeIndex/schema.js +174 -0
- package/dist/codeIndex/schema.js.map +1 -0
- package/dist/codeIndex/search.d.ts +40 -0
- package/dist/codeIndex/search.d.ts.map +1 -0
- package/dist/codeIndex/search.js +316 -0
- package/dist/codeIndex/search.js.map +1 -0
- package/dist/codeIndex/shared.d.ts +27 -0
- package/dist/codeIndex/shared.d.ts.map +1 -0
- package/dist/codeIndex/shared.js +46 -0
- package/dist/codeIndex/shared.js.map +1 -0
- package/dist/codeIndex/sqliteCollection.d.ts +81 -0
- package/dist/codeIndex/sqliteCollection.d.ts.map +1 -0
- package/dist/codeIndex/sqliteCollection.js +250 -0
- package/dist/codeIndex/sqliteCollection.js.map +1 -0
- package/dist/codeIndex/whitelist.d.ts +59 -0
- package/dist/codeIndex/whitelist.d.ts.map +1 -0
- package/dist/codeIndex/whitelist.js +188 -0
- package/dist/codeIndex/whitelist.js.map +1 -0
- package/dist/codeIndexDB.d.ts +132 -271
- package/dist/codeIndexDB.d.ts.map +1 -1
- package/dist/codeIndexDB.js +365 -2729
- package/dist/codeIndexDB.js.map +1 -1
- package/dist/codeIndexService.d.ts +87 -12
- package/dist/codeIndexService.d.ts.map +1 -1
- package/dist/codeIndexService.js +110 -34
- package/dist/codeIndexService.js.map +1 -1
- package/dist/componentScanner.d.ts +35 -0
- package/dist/componentScanner.d.ts.map +1 -1
- package/dist/componentScanner.js +114 -80
- package/dist/componentScanner.js.map +1 -1
- package/dist/config/configGeneratePath.d.ts +4 -0
- package/dist/config/configGeneratePath.d.ts.map +1 -1
- package/dist/config/configGeneratePath.js +4 -0
- package/dist/config/configGeneratePath.js.map +1 -1
- package/dist/config/configLoader.d.ts +15 -0
- package/dist/config/configLoader.d.ts.map +1 -1
- package/dist/config/configLoader.js +15 -16
- package/dist/config/configLoader.js.map +1 -1
- package/dist/config/defaults.d.ts +11 -7
- package/dist/config/defaults.d.ts.map +1 -1
- package/dist/config/defaults.js +16 -14
- package/dist/config/defaults.js.map +1 -1
- package/dist/config/effectiveConfig.d.ts +17 -2
- package/dist/config/effectiveConfig.d.ts.map +1 -1
- package/dist/config/effectiveConfig.js +32 -25
- package/dist/config/effectiveConfig.js.map +1 -1
- package/dist/config/lintConfigReader.d.ts +6 -0
- package/dist/config/lintConfigReader.d.ts.map +1 -1
- package/dist/config/lintConfigReader.js +6 -0
- package/dist/config/lintConfigReader.js.map +1 -1
- package/dist/config/staticObjectExtract.d.ts +4 -0
- package/dist/config/staticObjectExtract.d.ts.map +1 -1
- package/dist/config/staticObjectExtract.js +7 -3
- package/dist/config/staticObjectExtract.js.map +1 -1
- package/dist/config/thresholdRationales.d.ts +2 -0
- package/dist/config/thresholdRationales.d.ts.map +1 -1
- package/dist/config/thresholdRationales.js +5 -2
- package/dist/config/thresholdRationales.js.map +1 -1
- package/dist/constants.d.ts +1 -1
- package/dist/conventions/conventionMiner.d.ts +105 -2
- package/dist/conventions/conventionMiner.d.ts.map +1 -1
- package/dist/conventions/conventionMiner.js +334 -259
- package/dist/conventions/conventionMiner.js.map +1 -1
- package/dist/coverage/coverageService.js +4 -4
- package/dist/coverage/coverageService.js.map +1 -1
- package/dist/daemon/args.d.ts +3 -0
- package/dist/daemon/args.d.ts.map +1 -1
- package/dist/daemon/args.js +3 -0
- package/dist/daemon/args.js.map +1 -1
- package/dist/daemon/core.d.ts +33 -27
- package/dist/daemon/core.d.ts.map +1 -1
- package/dist/daemon/core.js +198 -162
- package/dist/daemon/core.js.map +1 -1
- package/dist/daemon/lspServer.d.ts +8 -0
- package/dist/daemon/lspServer.d.ts.map +1 -1
- package/dist/daemon/lspServer.js +8 -0
- package/dist/daemon/lspServer.js.map +1 -1
- package/dist/daemon/main.d.ts +2 -0
- package/dist/daemon/main.d.ts.map +1 -1
- package/dist/daemon/main.js +2 -0
- package/dist/daemon/main.js.map +1 -1
- package/dist/daemon/resolve.d.ts +18 -3
- package/dist/daemon/resolve.d.ts.map +1 -1
- package/dist/daemon/resolve.js +25 -4
- package/dist/daemon/resolve.js.map +1 -1
- package/dist/daemon/socketClient.d.ts +10 -1
- package/dist/daemon/socketClient.d.ts.map +1 -1
- package/dist/daemon/socketClient.js +10 -1
- package/dist/daemon/socketClient.js.map +1 -1
- package/dist/daemon/socketServer.d.ts +13 -0
- package/dist/daemon/socketServer.d.ts.map +1 -1
- package/dist/daemon/socketServer.js +13 -0
- package/dist/daemon/socketServer.js.map +1 -1
- package/dist/dataPaths.d.ts +17 -8
- package/dist/dataPaths.d.ts.map +1 -1
- package/dist/dataPaths.js +16 -44
- package/dist/dataPaths.js.map +1 -1
- package/dist/dismissals.d.ts +22 -1
- package/dist/dismissals.d.ts.map +1 -1
- package/dist/dismissals.js +22 -1
- package/dist/dismissals.js.map +1 -1
- package/dist/enforcement/gate.d.ts +1 -0
- package/dist/enforcement/gate.d.ts.map +1 -1
- package/dist/enforcement/gate.js +1 -0
- package/dist/enforcement/gate.js.map +1 -1
- package/dist/fingerprint.d.ts +6 -0
- package/dist/fingerprint.d.ts.map +1 -1
- package/dist/fingerprint.js +46 -1
- package/dist/fingerprint.js.map +1 -1
- package/dist/functionScanner.d.ts +30 -1
- package/dist/functionScanner.d.ts.map +1 -1
- package/dist/functionScanner.js +258 -256
- package/dist/functionScanner.js.map +1 -1
- package/dist/generators/AWSQConfigGenerator.d.ts +23 -0
- package/dist/generators/AWSQConfigGenerator.d.ts.map +1 -1
- package/dist/generators/AWSQConfigGenerator.js +23 -0
- package/dist/generators/AWSQConfigGenerator.js.map +1 -1
- package/dist/generators/BaseConfigGenerator.d.ts +7 -0
- package/dist/generators/BaseConfigGenerator.d.ts.map +1 -1
- package/dist/generators/BaseConfigGenerator.js +7 -0
- package/dist/generators/BaseConfigGenerator.js.map +1 -1
- package/dist/generators/ClaudeConfigGenerator.d.ts +23 -0
- package/dist/generators/ClaudeConfigGenerator.d.ts.map +1 -1
- package/dist/generators/ClaudeConfigGenerator.js +23 -0
- package/dist/generators/ClaudeConfigGenerator.js.map +1 -1
- package/dist/generators/ClineConfigGenerator.d.ts +23 -0
- package/dist/generators/ClineConfigGenerator.d.ts.map +1 -1
- package/dist/generators/ClineConfigGenerator.js +23 -0
- package/dist/generators/ClineConfigGenerator.js.map +1 -1
- package/dist/generators/CodeiumConfigGenerator.d.ts +23 -0
- package/dist/generators/CodeiumConfigGenerator.d.ts.map +1 -1
- package/dist/generators/CodeiumConfigGenerator.js +23 -0
- package/dist/generators/CodeiumConfigGenerator.js.map +1 -1
- package/dist/generators/CodexConfigGenerator.d.ts +23 -0
- package/dist/generators/CodexConfigGenerator.d.ts.map +1 -1
- package/dist/generators/CodexConfigGenerator.js +23 -0
- package/dist/generators/CodexConfigGenerator.js.map +1 -1
- package/dist/generators/ConfigGeneratorFactory.d.ts +9 -0
- package/dist/generators/ConfigGeneratorFactory.d.ts.map +1 -1
- package/dist/generators/ConfigGeneratorFactory.js +9 -0
- package/dist/generators/ConfigGeneratorFactory.js.map +1 -1
- package/dist/generators/ContinueConfigGenerator.d.ts +23 -0
- package/dist/generators/ContinueConfigGenerator.d.ts.map +1 -1
- package/dist/generators/ContinueConfigGenerator.js +23 -0
- package/dist/generators/ContinueConfigGenerator.js.map +1 -1
- package/dist/generators/CopilotConfigGenerator.d.ts +23 -0
- package/dist/generators/CopilotConfigGenerator.d.ts.map +1 -1
- package/dist/generators/CopilotConfigGenerator.js +23 -0
- package/dist/generators/CopilotConfigGenerator.js.map +1 -1
- package/dist/generators/CursorConfigGenerator.d.ts +23 -0
- package/dist/generators/CursorConfigGenerator.d.ts.map +1 -1
- package/dist/generators/CursorConfigGenerator.js +23 -0
- package/dist/generators/CursorConfigGenerator.js.map +1 -1
- package/dist/generators/GeminiConfigGenerator.d.ts +23 -0
- package/dist/generators/GeminiConfigGenerator.d.ts.map +1 -1
- package/dist/generators/GeminiConfigGenerator.js +23 -0
- package/dist/generators/GeminiConfigGenerator.js.map +1 -1
- package/dist/generators/VSCodeConfigGenerator.d.ts +23 -0
- package/dist/generators/VSCodeConfigGenerator.d.ts.map +1 -1
- package/dist/generators/VSCodeConfigGenerator.js +23 -0
- package/dist/generators/VSCodeConfigGenerator.js.map +1 -1
- package/dist/generators/ZCodeConfigGenerator.d.ts +23 -0
- package/dist/generators/ZCodeConfigGenerator.d.ts.map +1 -1
- package/dist/generators/ZCodeConfigGenerator.js +23 -0
- package/dist/generators/ZCodeConfigGenerator.js.map +1 -1
- package/dist/graph/blastRadius.d.ts.map +1 -1
- package/dist/graph/blastRadius.js +12 -7
- package/dist/graph/blastRadius.js.map +1 -1
- package/dist/graph/callGraph.d.ts +31 -0
- package/dist/graph/callGraph.d.ts.map +1 -1
- package/dist/graph/callGraph.js +62 -32
- package/dist/graph/callGraph.js.map +1 -1
- package/dist/graph/importClassification.d.ts +28 -0
- package/dist/graph/importClassification.d.ts.map +1 -1
- package/dist/graph/importClassification.js +57 -0
- package/dist/graph/importClassification.js.map +1 -1
- package/dist/graph/importGraph.d.ts +38 -0
- package/dist/graph/importGraph.d.ts.map +1 -1
- package/dist/graph/importGraph.js +38 -0
- package/dist/graph/importGraph.js.map +1 -1
- package/dist/graph/outputFormatter.d.ts +12 -4
- package/dist/graph/outputFormatter.d.ts.map +1 -1
- package/dist/graph/outputFormatter.js +12 -62
- package/dist/graph/outputFormatter.js.map +1 -1
- package/dist/hooks/codex.d.ts +8 -1
- package/dist/hooks/codex.d.ts.map +1 -1
- package/dist/hooks/codex.js +7 -0
- package/dist/hooks/codex.js.map +1 -1
- package/dist/hooks/core.d.ts +6 -0
- package/dist/hooks/core.d.ts.map +1 -1
- package/dist/hooks/core.js +6 -1
- package/dist/hooks/core.js.map +1 -1
- package/dist/hooks/cursor.d.ts +11 -1
- package/dist/hooks/cursor.d.ts.map +1 -1
- package/dist/hooks/cursor.js +10 -0
- package/dist/hooks/cursor.js.map +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/installConfig.d.ts +23 -5
- package/dist/installConfig.d.ts.map +1 -1
- package/dist/installConfig.js +23 -5
- package/dist/installConfig.js.map +1 -1
- package/dist/installer.d.ts +6 -0
- package/dist/installer.d.ts.map +1 -1
- package/dist/installer.js +6 -0
- package/dist/installer.js.map +1 -1
- package/dist/invariants/ruleEngine.d.ts +3 -0
- package/dist/invariants/ruleEngine.d.ts.map +1 -1
- package/dist/invariants/ruleEngine.js +156 -119
- package/dist/invariants/ruleEngine.js.map +1 -1
- package/dist/invariants/ruleValidator.d.ts +3 -0
- package/dist/invariants/ruleValidator.d.ts.map +1 -1
- package/dist/invariants/ruleValidator.js +185 -178
- package/dist/invariants/ruleValidator.js.map +1 -1
- package/dist/languages/LanguageOrchestrator.d.ts +4 -1
- package/dist/languages/LanguageOrchestrator.d.ts.map +1 -1
- package/dist/languages/LanguageOrchestrator.js +8 -19
- package/dist/languages/LanguageOrchestrator.js.map +1 -1
- package/dist/languages/RuntimeManager.d.ts +8 -0
- package/dist/languages/RuntimeManager.d.ts.map +1 -1
- package/dist/languages/RuntimeManager.js +55 -5
- package/dist/languages/RuntimeManager.js.map +1 -1
- package/dist/languages/UniversalAnalyzer.js +1 -1
- package/dist/languages/UniversalAnalyzer.js.map +1 -1
- package/dist/languages/adapterBridge.d.ts +4 -0
- package/dist/languages/adapterBridge.d.ts.map +1 -1
- package/dist/languages/adapterBridge.js +37 -3
- package/dist/languages/adapterBridge.js.map +1 -1
- package/dist/languages/go/GoAdapter.d.ts.map +1 -1
- package/dist/languages/go/GoAdapter.js +11 -14
- package/dist/languages/go/GoAdapter.js.map +1 -1
- package/dist/languages/go/analyzer-darwin-amd64 +0 -0
- package/dist/languages/go/analyzer-darwin-arm64 +0 -0
- package/dist/languages/go/analyzer-linux-amd64 +0 -0
- package/dist/languages/go/analyzer-linux-arm64 +0 -0
- package/dist/languages/go/analyzer-src/analyzer.go +2 -0
- package/dist/languages/go/analyzer-src/dataaccess.go +388 -0
- package/dist/languages/go/analyzer-src/types.go +8 -0
- package/dist/languages/go/analyzer-windows-amd64.exe +0 -0
- package/dist/languages/go/database-packages.json +8 -0
- package/dist/languages/go/goResolution.d.ts +229 -0
- package/dist/languages/go/goResolution.d.ts.map +1 -0
- package/dist/languages/go/goResolution.js +799 -0
- package/dist/languages/go/goResolution.js.map +1 -0
- package/dist/languages/go/stdlib-packages.json +353 -0
- package/dist/languages/go/tenantInputs.d.ts +37 -0
- package/dist/languages/go/tenantInputs.d.ts.map +1 -0
- package/dist/languages/go/tenantInputs.js +121 -0
- package/dist/languages/go/tenantInputs.js.map +1 -0
- package/dist/languages/index.d.ts +1 -0
- package/dist/languages/index.d.ts.map +1 -1
- package/dist/languages/index.js +5 -0
- package/dist/languages/index.js.map +1 -1
- package/dist/languages/json/JsonAdapter.d.ts +177 -0
- package/dist/languages/json/JsonAdapter.d.ts.map +1 -0
- package/dist/languages/json/JsonAdapter.js +531 -0
- package/dist/languages/json/JsonAdapter.js.map +1 -0
- package/dist/languages/locationIndex.d.ts +41 -0
- package/dist/languages/locationIndex.d.ts.map +1 -0
- package/dist/languages/locationIndex.js +42 -0
- package/dist/languages/locationIndex.js.map +1 -0
- package/dist/languages/sql/dialectDetection.d.ts +57 -0
- package/dist/languages/sql/dialectDetection.d.ts.map +1 -0
- package/dist/languages/sql/dialectDetection.js +135 -0
- package/dist/languages/sql/dialectDetection.js.map +1 -0
- package/dist/languages/sql/sqlAst.d.ts +494 -0
- package/dist/languages/sql/sqlAst.d.ts.map +1 -0
- package/dist/languages/sql/sqlAst.js +1817 -0
- package/dist/languages/sql/sqlAst.js.map +1 -0
- package/dist/languages/testConventions.d.ts +12 -1
- package/dist/languages/testConventions.d.ts.map +1 -1
- package/dist/languages/testConventions.js +13 -1
- package/dist/languages/testConventions.js.map +1 -1
- package/dist/languages/tree-sitter/TreeSitterCssAdapter.js +1 -1
- package/dist/languages/tree-sitter/TreeSitterCssAdapter.js.map +1 -1
- package/dist/languages/tree-sitter/converter.js +2 -2
- package/dist/languages/tree-sitter/converter.js.map +1 -1
- package/dist/languages/tree-sitter/parser.d.ts +3 -4
- package/dist/languages/tree-sitter/parser.d.ts.map +1 -1
- package/dist/languages/tree-sitter/parser.js +10 -4
- package/dist/languages/tree-sitter/parser.js.map +1 -1
- package/dist/languages/tree-sitter/rawNode.d.ts +3 -0
- package/dist/languages/tree-sitter/rawNode.d.ts.map +1 -1
- package/dist/languages/tree-sitter/rawNode.js +3 -0
- package/dist/languages/tree-sitter/rawNode.js.map +1 -1
- package/dist/languages/types.d.ts +7 -0
- package/dist/languages/types.d.ts.map +1 -1
- package/dist/languages/typescript/TreeSitterTypeScriptAdapter.d.ts +36 -0
- package/dist/languages/typescript/TreeSitterTypeScriptAdapter.d.ts.map +1 -1
- package/dist/languages/typescript/TreeSitterTypeScriptAdapter.js +168 -45
- package/dist/languages/typescript/TreeSitterTypeScriptAdapter.js.map +1 -1
- package/dist/languages/typescript/database-packages.json +19 -0
- package/dist/ledger.d.ts +118 -2
- package/dist/ledger.d.ts.map +1 -1
- package/dist/ledger.js +167 -45
- package/dist/ledger.js.map +1 -1
- package/dist/legacyIndexNotice.d.ts +32 -0
- package/dist/legacyIndexNotice.d.ts.map +1 -0
- package/dist/legacyIndexNotice.js +89 -0
- package/dist/legacyIndexNotice.js.map +1 -0
- package/dist/mcp-tools/discoveryQueries.d.ts +55 -0
- package/dist/mcp-tools/discoveryQueries.d.ts.map +1 -0
- package/dist/mcp-tools/discoveryQueries.js +157 -0
- package/dist/mcp-tools/discoveryQueries.js.map +1 -0
- package/dist/mcp-tools/projectTasks.d.ts +9 -123
- package/dist/mcp-tools/projectTasks.d.ts.map +1 -1
- package/dist/mcp-tools/projectTasks.js +180 -170
- package/dist/mcp-tools/projectTasks.js.map +1 -1
- package/dist/mcp-tools/whitelistTools.d.ts +20 -0
- package/dist/mcp-tools/whitelistTools.d.ts.map +1 -1
- package/dist/mcp-tools/whitelistTools.js +20 -0
- package/dist/mcp-tools/whitelistTools.js.map +1 -1
- package/dist/mcp-tools/workflowGuide.d.ts +9 -0
- package/dist/mcp-tools/workflowGuide.d.ts.map +1 -1
- package/dist/mcp-tools/workflowGuide.js +13 -5
- package/dist/mcp-tools/workflowGuide.js.map +1 -1
- package/dist/mcp-tools-shared.d.ts +78 -0
- package/dist/mcp-tools-shared.d.ts.map +1 -1
- package/dist/mcp-tools-shared.js +203 -340
- package/dist/mcp-tools-shared.js.map +1 -1
- package/dist/mcp-ui-simple.d.ts +2 -0
- package/dist/mcp-ui-simple.d.ts.map +1 -1
- package/dist/mcp-ui-simple.js +12 -5
- package/dist/mcp-ui-simple.js.map +1 -1
- package/dist/mcp.d.ts +6 -0
- package/dist/mcp.d.ts.map +1 -1
- package/dist/mcp.js +827 -850
- package/dist/mcp.js.map +1 -1
- package/dist/mcpAuditJobs.d.ts +29 -33
- package/dist/mcpAuditJobs.d.ts.map +1 -1
- package/dist/mcpAuditJobs.js +102 -791
- package/dist/mcpAuditJobs.js.map +1 -1
- package/dist/mcpAutoIndex.d.ts +5 -0
- package/dist/mcpAutoIndex.d.ts.map +1 -1
- package/dist/mcpAutoIndex.js +7 -2
- package/dist/mcpAutoIndex.js.map +1 -1
- package/dist/mcpDiagnostics.d.ts +7 -0
- package/dist/mcpDiagnostics.d.ts.map +1 -1
- package/dist/mcpDiagnostics.js +34 -9
- package/dist/mcpDiagnostics.js.map +1 -1
- package/dist/mcpToolErrors.d.ts +16 -0
- package/dist/mcpToolErrors.d.ts.map +1 -1
- package/dist/mcpToolErrors.js +16 -0
- package/dist/mcpToolErrors.js.map +1 -1
- package/dist/nextFile.d.ts +6 -0
- package/dist/nextFile.d.ts.map +1 -1
- package/dist/nextFile.js +6 -0
- package/dist/nextFile.js.map +1 -1
- package/dist/nextFileIncremental.d.ts +44 -4
- package/dist/nextFileIncremental.d.ts.map +1 -1
- package/dist/nextFileIncremental.js +47 -7
- package/dist/nextFileIncremental.js.map +1 -1
- package/dist/phase/batchFunctions.d.ts +38 -0
- package/dist/phase/batchFunctions.d.ts.map +1 -0
- package/dist/phase/batchFunctions.js +64 -0
- package/dist/phase/batchFunctions.js.map +1 -0
- package/dist/phase/checks.d.ts +39 -0
- package/dist/phase/checks.d.ts.map +1 -0
- package/dist/phase/checks.js +48 -0
- package/dist/phase/checks.js.map +1 -0
- package/dist/phase/codeBlocks.d.ts +25 -0
- package/dist/phase/codeBlocks.d.ts.map +1 -0
- package/dist/phase/codeBlocks.js +268 -0
- package/dist/phase/codeBlocks.js.map +1 -0
- package/dist/phase/colorMath.d.ts +41 -0
- package/dist/phase/colorMath.d.ts.map +1 -0
- package/dist/phase/colorMath.js +109 -0
- package/dist/phase/colorMath.js.map +1 -0
- package/dist/phase/config.d.ts +29 -0
- package/dist/phase/config.d.ts.map +1 -0
- package/dist/phase/config.js +54 -0
- package/dist/phase/config.js.map +1 -0
- package/dist/phase/consumed.d.ts +47 -0
- package/dist/phase/consumed.d.ts.map +1 -0
- package/dist/phase/consumed.js +22 -0
- package/dist/phase/consumed.js.map +1 -0
- package/dist/phase/conventionMining.d.ts +59 -0
- package/dist/phase/conventionMining.d.ts.map +1 -0
- package/dist/phase/conventionMining.js +152 -0
- package/dist/phase/conventionMining.js.map +1 -0
- package/dist/phase/coverage.d.ts +65 -0
- package/dist/phase/coverage.d.ts.map +1 -0
- package/dist/phase/coverage.js +121 -0
- package/dist/phase/coverage.js.map +1 -0
- package/dist/phase/dag.d.ts +49 -0
- package/dist/phase/dag.d.ts.map +1 -0
- package/dist/phase/dag.js +120 -0
- package/dist/phase/dag.js.map +1 -0
- package/dist/phase/dataAccessCalls.d.ts +33 -0
- package/dist/phase/dataAccessCalls.d.ts.map +1 -0
- package/dist/phase/dataAccessCalls.js +42 -0
- package/dist/phase/dataAccessCalls.js.map +1 -0
- package/dist/phase/dataAccessCallsCandidates.d.ts +25 -0
- package/dist/phase/dataAccessCallsCandidates.d.ts.map +1 -0
- package/dist/phase/dataAccessCallsCandidates.js +27 -0
- package/dist/phase/dataAccessCallsCandidates.js.map +1 -0
- package/dist/phase/dynamicSql.d.ts +18 -0
- package/dist/phase/dynamicSql.d.ts.map +1 -0
- package/dist/phase/dynamicSql.js +20 -0
- package/dist/phase/dynamicSql.js.map +1 -0
- package/dist/phase/exportForm.d.ts +23 -0
- package/dist/phase/exportForm.d.ts.map +1 -0
- package/dist/phase/exportForm.js +29 -0
- package/dist/phase/exportForm.js.map +1 -0
- package/dist/phase/exportSymbols.d.ts +21 -0
- package/dist/phase/exportSymbols.d.ts.map +1 -0
- package/dist/phase/exportSymbols.js +28 -0
- package/dist/phase/exportSymbols.js.map +1 -0
- package/dist/phase/fileHeader.d.ts +15 -0
- package/dist/phase/fileHeader.d.ts.map +1 -0
- package/dist/phase/fileHeader.js +33 -0
- package/dist/phase/fileHeader.js.map +1 -0
- package/dist/phase/fileImports.d.ts +39 -0
- package/dist/phase/fileImports.d.ts.map +1 -0
- package/dist/phase/fileImports.js +138 -0
- package/dist/phase/fileImports.js.map +1 -0
- package/dist/phase/fileSymbols.d.ts +25 -0
- package/dist/phase/fileSymbols.d.ts.map +1 -0
- package/dist/phase/fileSymbols.js +302 -0
- package/dist/phase/fileSymbols.js.map +1 -0
- package/dist/phase/functionBodies.d.ts +28 -0
- package/dist/phase/functionBodies.d.ts.map +1 -0
- package/dist/phase/functionBodies.js +67 -0
- package/dist/phase/functionBodies.js.map +1 -0
- package/dist/phase/functionIndex.d.ts +28 -0
- package/dist/phase/functionIndex.d.ts.map +1 -0
- package/dist/phase/functionIndex.js +152 -0
- package/dist/phase/functionIndex.js.map +1 -0
- package/dist/phase/goFunctionAnalysis.d.ts +47 -0
- package/dist/phase/goFunctionAnalysis.d.ts.map +1 -0
- package/dist/phase/goFunctionAnalysis.js +291 -0
- package/dist/phase/goFunctionAnalysis.js.map +1 -0
- package/dist/phase/goFunctions.d.ts +38 -0
- package/dist/phase/goFunctions.d.ts.map +1 -0
- package/dist/phase/goFunctions.js +154 -0
- package/dist/phase/goFunctions.js.map +1 -0
- package/dist/phase/goImports.d.ts +29 -0
- package/dist/phase/goImports.d.ts.map +1 -0
- package/dist/phase/goImports.js +68 -0
- package/dist/phase/goImports.js.map +1 -0
- package/dist/phase/goPackageBindings.d.ts +22 -0
- package/dist/phase/goPackageBindings.d.ts.map +1 -0
- package/dist/phase/goPackageBindings.js +30 -0
- package/dist/phase/goPackageBindings.js.map +1 -0
- package/dist/phase/goSwitches.d.ts +28 -0
- package/dist/phase/goSwitches.d.ts.map +1 -0
- package/dist/phase/goSwitches.js +52 -0
- package/dist/phase/goSwitches.js.map +1 -0
- package/dist/phase/importForm.d.ts +20 -0
- package/dist/phase/importForm.d.ts.map +1 -0
- package/dist/phase/importForm.js +27 -0
- package/dist/phase/importForm.js.map +1 -0
- package/dist/phase/importSpecifiers.d.ts +20 -0
- package/dist/phase/importSpecifiers.d.ts.map +1 -0
- package/dist/phase/importSpecifiers.js +30 -0
- package/dist/phase/importSpecifiers.js.map +1 -0
- package/dist/phase/imports.d.ts +18 -0
- package/dist/phase/imports.d.ts.map +1 -0
- package/dist/phase/imports.js +25 -0
- package/dist/phase/imports.js.map +1 -0
- package/dist/phase/jsonDocument.d.ts +26 -0
- package/dist/phase/jsonDocument.d.ts.map +1 -0
- package/dist/phase/jsonDocument.js +36 -0
- package/dist/phase/jsonDocument.js.map +1 -0
- package/dist/phase/localBinding.d.ts +33 -0
- package/dist/phase/localBinding.d.ts.map +1 -0
- package/dist/phase/localBinding.js +208 -0
- package/dist/phase/localBinding.js.map +1 -0
- package/dist/phase/loopQueries.d.ts +31 -0
- package/dist/phase/loopQueries.d.ts.map +1 -0
- package/dist/phase/loopQueries.js +44 -0
- package/dist/phase/loopQueries.js.map +1 -0
- package/dist/phase/loopQueryCandidates.d.ts +26 -0
- package/dist/phase/loopQueryCandidates.d.ts.map +1 -0
- package/dist/phase/loopQueryCandidates.js +28 -0
- package/dist/phase/loopQueryCandidates.js.map +1 -0
- package/dist/phase/oracles.d.ts +216 -0
- package/dist/phase/oracles.d.ts.map +1 -0
- package/dist/phase/oracles.js +484 -0
- package/dist/phase/oracles.js.map +1 -0
- package/dist/phase/phaseModel.d.ts +190 -0
- package/dist/phase/phaseModel.d.ts.map +1 -0
- package/dist/phase/phaseModel.js +468 -0
- package/dist/phase/phaseModel.js.map +1 -0
- package/dist/phase/producers.d.ts +450 -0
- package/dist/phase/producers.d.ts.map +1 -0
- package/dist/phase/producers.js +1027 -0
- package/dist/phase/producers.js.map +1 -0
- package/dist/phase/querySiteCandidates.d.ts +27 -0
- package/dist/phase/querySiteCandidates.d.ts.map +1 -0
- package/dist/phase/querySiteCandidates.js +66 -0
- package/dist/phase/querySiteCandidates.js.map +1 -0
- package/dist/phase/querySites.d.ts +30 -0
- package/dist/phase/querySites.d.ts.map +1 -0
- package/dist/phase/querySites.js +93 -0
- package/dist/phase/querySites.js.map +1 -0
- package/dist/phase/reachability.d.ts +61 -0
- package/dist/phase/reachability.d.ts.map +1 -0
- package/dist/phase/reachability.js +104 -0
- package/dist/phase/reachability.js.map +1 -0
- package/dist/phase/reactComponents.d.ts +33 -0
- package/dist/phase/reactComponents.d.ts.map +1 -0
- package/dist/phase/reactComponents.js +47 -0
- package/dist/phase/reactComponents.js.map +1 -0
- package/dist/phase/receiverActivity.d.ts +35 -0
- package/dist/phase/receiverActivity.d.ts.map +1 -0
- package/dist/phase/receiverActivity.js +66 -0
- package/dist/phase/receiverActivity.js.map +1 -0
- package/dist/phase/receiverConsumers.d.ts +200 -0
- package/dist/phase/receiverConsumers.d.ts.map +1 -0
- package/dist/phase/receiverConsumers.js +1025 -0
- package/dist/phase/receiverConsumers.js.map +1 -0
- package/dist/phase/receiverProvenance.d.ts +97 -0
- package/dist/phase/receiverProvenance.d.ts.map +1 -0
- package/dist/phase/receiverProvenance.js +337 -0
- package/dist/phase/receiverProvenance.js.map +1 -0
- package/dist/phase/routing.d.ts +47 -0
- package/dist/phase/routing.d.ts.map +1 -0
- package/dist/phase/routing.js +62 -0
- package/dist/phase/routing.js.map +1 -0
- package/dist/phase/rules/conventions.d.ts +61 -0
- package/dist/phase/rules/conventions.d.ts.map +1 -0
- package/dist/phase/rules/conventions.js +403 -0
- package/dist/phase/rules/conventions.js.map +1 -0
- package/dist/phase/rules/crossDomain.d.ts +102 -0
- package/dist/phase/rules/crossDomain.d.ts.map +1 -0
- package/dist/phase/rules/crossDomain.js +918 -0
- package/dist/phase/rules/crossDomain.js.map +1 -0
- package/dist/phase/rules/dataAccess.d.ts +62 -0
- package/dist/phase/rules/dataAccess.d.ts.map +1 -0
- package/dist/phase/rules/dataAccess.js +480 -0
- package/dist/phase/rules/dataAccess.js.map +1 -0
- package/dist/phase/rules/dependencyGraph.d.ts +44 -0
- package/dist/phase/rules/dependencyGraph.d.ts.map +1 -0
- package/dist/phase/rules/dependencyGraph.js +260 -0
- package/dist/phase/rules/dependencyGraph.js.map +1 -0
- package/dist/phase/rules/documentation.d.ts +45 -0
- package/dist/phase/rules/documentation.d.ts.map +1 -0
- package/dist/phase/rules/documentation.js +340 -0
- package/dist/phase/rules/documentation.js.map +1 -0
- package/dist/phase/rules/dry.d.ts +109 -0
- package/dist/phase/rules/dry.d.ts.map +1 -0
- package/dist/phase/rules/dry.js +803 -0
- package/dist/phase/rules/dry.js.map +1 -0
- package/dist/phase/rules/fileDocumentation.d.ts +36 -0
- package/dist/phase/rules/fileDocumentation.d.ts.map +1 -0
- package/dist/phase/rules/fileDocumentation.js +134 -0
- package/dist/phase/rules/fileDocumentation.js.map +1 -0
- package/dist/phase/rules/functionBodies.d.ts +33 -0
- package/dist/phase/rules/functionBodies.d.ts.map +1 -0
- package/dist/phase/rules/functionBodies.js +71 -0
- package/dist/phase/rules/functionBodies.js.map +1 -0
- package/dist/phase/rules/goRules.d.ts +49 -0
- package/dist/phase/rules/goRules.d.ts.map +1 -0
- package/dist/phase/rules/goRules.js +209 -0
- package/dist/phase/rules/goRules.js.map +1 -0
- package/dist/phase/rules/querySites.d.ts +29 -0
- package/dist/phase/rules/querySites.d.ts.map +1 -0
- package/dist/phase/rules/querySites.js +94 -0
- package/dist/phase/rules/querySites.js.map +1 -0
- package/dist/phase/rules/react.d.ts +38 -0
- package/dist/phase/rules/react.d.ts.map +1 -0
- package/dist/phase/rules/react.js +202 -0
- package/dist/phase/rules/react.js.map +1 -0
- package/dist/phase/rules/registry.d.ts +170 -0
- package/dist/phase/rules/registry.d.ts.map +1 -0
- package/dist/phase/rules/registry.js +103 -0
- package/dist/phase/rules/registry.js.map +1 -0
- package/dist/phase/rules/schema.d.ts +79 -0
- package/dist/phase/rules/schema.d.ts.map +1 -0
- package/dist/phase/rules/schema.js +273 -0
- package/dist/phase/rules/schema.js.map +1 -0
- package/dist/phase/rules/schemaJson.d.ts +32 -0
- package/dist/phase/rules/schemaJson.d.ts.map +1 -0
- package/dist/phase/rules/schemaJson.js +81 -0
- package/dist/phase/rules/schemaJson.js.map +1 -0
- package/dist/phase/rules/schemaValidator.d.ts +38 -0
- package/dist/phase/rules/schemaValidator.d.ts.map +1 -0
- package/dist/phase/rules/schemaValidator.js +107 -0
- package/dist/phase/rules/schemaValidator.js.map +1 -0
- package/dist/phase/rules/secrets.d.ts +34 -0
- package/dist/phase/rules/secrets.d.ts.map +1 -0
- package/dist/phase/rules/secrets.js +208 -0
- package/dist/phase/rules/secrets.js.map +1 -0
- package/dist/phase/rules/security.d.ts +30 -0
- package/dist/phase/rules/security.d.ts.map +1 -0
- package/dist/phase/rules/security.js +85 -0
- package/dist/phase/rules/security.js.map +1 -0
- package/dist/phase/rules/securityDefects.d.ts +37 -0
- package/dist/phase/rules/securityDefects.d.ts.map +1 -0
- package/dist/phase/rules/securityDefects.js +167 -0
- package/dist/phase/rules/securityDefects.js.map +1 -0
- package/dist/phase/rules/solid.d.ts +61 -0
- package/dist/phase/rules/solid.d.ts.map +1 -0
- package/dist/phase/rules/solid.js +562 -0
- package/dist/phase/rules/solid.js.map +1 -0
- package/dist/phase/rules/styles.d.ts +77 -0
- package/dist/phase/rules/styles.d.ts.map +1 -0
- package/dist/phase/rules/styles.js +868 -0
- package/dist/phase/rules/styles.js.map +1 -0
- package/dist/phase/rules/unreferencedModule.d.ts +26 -0
- package/dist/phase/rules/unreferencedModule.d.ts.map +1 -0
- package/dist/phase/rules/unreferencedModule.js +61 -0
- package/dist/phase/rules/unreferencedModule.js.map +1 -0
- package/dist/phase/runner.d.ts +549 -0
- package/dist/phase/runner.d.ts.map +1 -0
- package/dist/phase/runner.js +1098 -0
- package/dist/phase/runner.js.map +1 -0
- package/dist/phase/schemaCode.d.ts +34 -0
- package/dist/phase/schemaCode.d.ts.map +1 -0
- package/dist/phase/schemaCode.js +53 -0
- package/dist/phase/schemaCode.js.map +1 -0
- package/dist/phase/schemaObjects.d.ts +37 -0
- package/dist/phase/schemaObjects.d.ts.map +1 -0
- package/dist/phase/schemaObjects.js +139 -0
- package/dist/phase/schemaObjects.js.map +1 -0
- package/dist/phase/schemaUsage.d.ts +30 -0
- package/dist/phase/schemaUsage.d.ts.map +1 -0
- package/dist/phase/schemaUsage.js +99 -0
- package/dist/phase/schemaUsage.js.map +1 -0
- package/dist/phase/schemaUsageCandidates.d.ts +32 -0
- package/dist/phase/schemaUsageCandidates.d.ts.map +1 -0
- package/dist/phase/schemaUsageCandidates.js +165 -0
- package/dist/phase/schemaUsageCandidates.js.map +1 -0
- package/dist/phase/schemaValidations.d.ts +34 -0
- package/dist/phase/schemaValidations.d.ts.map +1 -0
- package/dist/phase/schemaValidations.js +53 -0
- package/dist/phase/schemaValidations.js.map +1 -0
- package/dist/phase/secretCandidates.d.ts +28 -0
- package/dist/phase/secretCandidates.d.ts.map +1 -0
- package/dist/phase/secretCandidates.js +132 -0
- package/dist/phase/secretCandidates.js.map +1 -0
- package/dist/phase/securityCandidates.d.ts +29 -0
- package/dist/phase/securityCandidates.d.ts.map +1 -0
- package/dist/phase/securityCandidates.js +469 -0
- package/dist/phase/securityCandidates.js.map +1 -0
- package/dist/phase/seeded-defects.d.ts +18 -0
- package/dist/phase/seeded-defects.d.ts.map +1 -0
- package/dist/phase/seeded-defects.js +61 -0
- package/dist/phase/seeded-defects.js.map +1 -0
- package/dist/phase/stringLiterals.d.ts +24 -0
- package/dist/phase/stringLiterals.d.ts.map +1 -0
- package/dist/phase/stringLiterals.js +35 -0
- package/dist/phase/stringLiterals.js.map +1 -0
- package/dist/phase/stylesCss.d.ts +25 -0
- package/dist/phase/stylesCss.d.ts.map +1 -0
- package/dist/phase/stylesCss.js +34 -0
- package/dist/phase/stylesCss.js.map +1 -0
- package/dist/phase/stylesMarkup.d.ts +31 -0
- package/dist/phase/stylesMarkup.d.ts.map +1 -0
- package/dist/phase/stylesMarkup.js +48 -0
- package/dist/phase/stylesMarkup.js.map +1 -0
- package/dist/phase/stylesSource.d.ts +36 -0
- package/dist/phase/stylesSource.d.ts.map +1 -0
- package/dist/phase/stylesSource.js +50 -0
- package/dist/phase/stylesSource.js.map +1 -0
- package/dist/phase/typeDeclarations.d.ts +33 -0
- package/dist/phase/typeDeclarations.d.ts.map +1 -0
- package/dist/phase/typeDeclarations.js +76 -0
- package/dist/phase/typeDeclarations.js.map +1 -0
- package/dist/phase/types.d.ts +2191 -0
- package/dist/phase/types.d.ts.map +1 -0
- package/dist/phase/types.js +27 -0
- package/dist/phase/types.js.map +1 -0
- package/dist/phase/withinFileProvenance.d.ts +50 -0
- package/dist/phase/withinFileProvenance.d.ts.map +1 -0
- package/dist/phase/withinFileProvenance.js +112 -0
- package/dist/phase/withinFileProvenance.js.map +1 -0
- package/dist/pipeline.d.ts +37 -30
- package/dist/pipeline.d.ts.map +1 -1
- package/dist/pipeline.js +131 -326
- package/dist/pipeline.js.map +1 -1
- package/dist/pipelineAdapters.d.ts +104 -21
- package/dist/pipelineAdapters.d.ts.map +1 -1
- package/dist/pipelineAdapters.js +1144 -984
- package/dist/pipelineAdapters.js.map +1 -1
- package/dist/pipelineTypes.d.ts +21 -0
- package/dist/pipelineTypes.d.ts.map +1 -1
- package/dist/pipelineTypes.js +21 -10
- package/dist/pipelineTypes.js.map +1 -1
- package/dist/presets/presets.d.ts +9 -2
- package/dist/presets/presets.d.ts.map +1 -1
- package/dist/presets/presets.js +15 -26
- package/dist/presets/presets.js.map +1 -1
- package/dist/reporting/csvReportGenerator.d.ts +14 -3
- package/dist/reporting/csvReportGenerator.d.ts.map +1 -1
- package/dist/reporting/csvReportGenerator.js +14 -3
- package/dist/reporting/csvReportGenerator.js.map +1 -1
- package/dist/reporting/htmlReportGenerator.d.ts +5 -1
- package/dist/reporting/htmlReportGenerator.d.ts.map +1 -1
- package/dist/reporting/htmlReportGenerator.js +5 -1
- package/dist/reporting/htmlReportGenerator.js.map +1 -1
- package/dist/reporting/jsonReportGenerator.d.ts +9 -2
- package/dist/reporting/jsonReportGenerator.d.ts.map +1 -1
- package/dist/reporting/jsonReportGenerator.js +19 -5
- package/dist/reporting/jsonReportGenerator.js.map +1 -1
- package/dist/reporting/reportGenerator.d.ts +9 -2
- package/dist/reporting/reportGenerator.d.ts.map +1 -1
- package/dist/reporting/reportGenerator.js +9 -2
- package/dist/reporting/reportGenerator.js.map +1 -1
- package/dist/reporting/sarifReportGenerator.d.ts +14 -0
- package/dist/reporting/sarifReportGenerator.d.ts.map +1 -1
- package/dist/reporting/sarifReportGenerator.js +14 -0
- package/dist/reporting/sarifReportGenerator.js.map +1 -1
- package/dist/reporting/sizeDistribution.d.ts +19 -2
- package/dist/reporting/sizeDistribution.d.ts.map +1 -1
- package/dist/reporting/sizeDistribution.js +23 -5
- package/dist/reporting/sizeDistribution.js.map +1 -1
- package/dist/ruleAliases.d.ts +6 -8
- package/dist/ruleAliases.d.ts.map +1 -1
- package/dist/ruleAliases.js +29 -4
- package/dist/ruleAliases.js.map +1 -1
- package/dist/search/QueryParser.d.ts +1 -0
- package/dist/search/QueryParser.d.ts.map +1 -1
- package/dist/search/QueryParser.js +32 -91
- package/dist/search/QueryParser.js.map +1 -1
- package/dist/services/CodeMapGenerator.d.ts +19 -20
- package/dist/services/CodeMapGenerator.d.ts.map +1 -1
- package/dist/services/CodeMapGenerator.js +214 -194
- package/dist/services/CodeMapGenerator.js.map +1 -1
- package/dist/services/ProjectTaskRepository.d.ts +65 -3
- package/dist/services/ProjectTaskRepository.d.ts.map +1 -1
- package/dist/services/ProjectTaskRepository.js +94 -25
- package/dist/services/ProjectTaskRepository.js.map +1 -1
- package/dist/services/auditJobService.d.ts +17 -1
- package/dist/services/auditJobService.d.ts.map +1 -1
- package/dist/services/auditJobService.js +16 -0
- package/dist/services/auditJobService.js.map +1 -1
- package/dist/services/fileAccounting.d.ts +43 -5
- package/dist/services/fileAccounting.d.ts.map +1 -1
- package/dist/services/fileAccounting.js +48 -9
- package/dist/services/fileAccounting.js.map +1 -1
- package/dist/services/projectTaskHelpers.d.ts +45 -0
- package/dist/services/projectTaskHelpers.d.ts.map +1 -1
- package/dist/services/projectTaskHelpers.js +45 -0
- package/dist/services/projectTaskHelpers.js.map +1 -1
- package/dist/services/whitelistService.d.ts +40 -5
- package/dist/services/whitelistService.d.ts.map +1 -1
- package/dist/services/whitelistService.js +87 -46
- package/dist/services/whitelistService.js.map +1 -1
- package/dist/sqlite/betterSqlite3.d.ts +35 -1
- package/dist/sqlite/betterSqlite3.d.ts.map +1 -1
- package/dist/sqlite/betterSqlite3.js +35 -1
- package/dist/sqlite/betterSqlite3.js.map +1 -1
- package/dist/sqlite/driver.d.ts +23 -0
- package/dist/sqlite/driver.d.ts.map +1 -1
- package/dist/sqlite/driver.js +23 -0
- package/dist/sqlite/driver.js.map +1 -1
- package/dist/sqlite/nodeSqlite.d.ts +35 -1
- package/dist/sqlite/nodeSqlite.d.ts.map +1 -1
- package/dist/sqlite/nodeSqlite.js +35 -1
- package/dist/sqlite/nodeSqlite.js.map +1 -1
- package/dist/structuralSignature.d.ts +9 -0
- package/dist/structuralSignature.d.ts.map +1 -1
- package/dist/structuralSignature.js +9 -0
- package/dist/structuralSignature.js.map +1 -1
- package/dist/styles/cssAstExtractor.d.ts +15 -0
- package/dist/styles/cssAstExtractor.d.ts.map +1 -1
- package/dist/styles/cssAstExtractor.js +15 -0
- package/dist/styles/cssAstExtractor.js.map +1 -1
- package/dist/styles/normalizer.d.ts +6 -0
- package/dist/styles/normalizer.d.ts.map +1 -1
- package/dist/styles/normalizer.js +6 -0
- package/dist/styles/normalizer.js.map +1 -1
- package/dist/styles/styleExtractor.d.ts +29 -2
- package/dist/styles/styleExtractor.d.ts.map +1 -1
- package/dist/styles/styleExtractor.js +67 -48
- package/dist/styles/styleExtractor.js.map +1 -1
- package/dist/styles/styleIndexer.d.ts +8 -0
- package/dist/styles/styleIndexer.d.ts.map +1 -1
- package/dist/styles/styleIndexer.js +135 -138
- package/dist/styles/styleIndexer.js.map +1 -1
- package/dist/styles/tailwindConfigLoader.d.ts +12 -0
- package/dist/styles/tailwindConfigLoader.d.ts.map +1 -1
- package/dist/styles/tailwindConfigLoader.js +12 -0
- package/dist/styles/tailwindConfigLoader.js.map +1 -1
- package/dist/styles/tailwindExpander.d.ts +3 -0
- package/dist/styles/tailwindExpander.d.ts.map +1 -1
- package/dist/styles/tailwindExpander.js +8 -4
- package/dist/styles/tailwindExpander.js.map +1 -1
- package/dist/styles/tailwindProbe.d.ts +9 -0
- package/dist/styles/tailwindProbe.d.ts.map +1 -1
- package/dist/styles/tailwindProbe.js +181 -166
- package/dist/styles/tailwindProbe.js.map +1 -1
- package/dist/styles/tailwindUtilityExpander.d.ts +13 -0
- package/dist/styles/tailwindUtilityExpander.d.ts.map +1 -1
- package/dist/styles/tailwindUtilityExpander.js +13 -0
- package/dist/styles/tailwindUtilityExpander.js.map +1 -1
- package/dist/symbols.d.ts +13 -11
- package/dist/symbols.d.ts.map +1 -1
- package/dist/symbols.js +14 -21
- package/dist/symbols.js.map +1 -1
- package/dist/telemetry.d.ts +31 -3
- package/dist/telemetry.d.ts.map +1 -1
- package/dist/telemetry.js +31 -3
- package/dist/telemetry.js.map +1 -1
- package/dist/tool-registry.d.ts +37 -1
- package/dist/tool-registry.d.ts.map +1 -1
- package/dist/tool-registry.js +37 -1
- package/dist/tool-registry.js.map +1 -1
- package/dist/types.d.ts +101 -71
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +7 -16
- package/dist/types.js.map +1 -1
- package/dist/ui/InteractivePrompts.d.ts +12 -0
- package/dist/ui/InteractivePrompts.d.ts.map +1 -1
- package/dist/ui/InteractivePrompts.js +12 -0
- package/dist/ui/InteractivePrompts.js.map +1 -1
- package/dist/utils/astParser.d.ts +15 -0
- package/dist/utils/astParser.d.ts.map +1 -1
- package/dist/utils/astParser.js +15 -0
- package/dist/utils/astParser.js.map +1 -1
- package/dist/utils/astUtils.d.ts +60 -0
- package/dist/utils/astUtils.d.ts.map +1 -1
- package/dist/utils/astUtils.js +350 -362
- package/dist/utils/astUtils.js.map +1 -1
- package/dist/utils/contentHash.d.ts +22 -0
- package/dist/utils/contentHash.d.ts.map +1 -0
- package/dist/utils/contentHash.js +26 -0
- package/dist/utils/contentHash.js.map +1 -0
- package/dist/utils/dependencyExtractor.d.ts +28 -0
- package/dist/utils/dependencyExtractor.d.ts.map +1 -1
- package/dist/utils/dependencyExtractor.js +28 -1
- package/dist/utils/dependencyExtractor.js.map +1 -1
- package/dist/utils/errorMessage.d.ts +10 -0
- package/dist/utils/errorMessage.d.ts.map +1 -0
- package/dist/utils/errorMessage.js +12 -0
- package/dist/utils/errorMessage.js.map +1 -0
- package/dist/utils/fileDiscovery.d.ts +61 -2
- package/dist/utils/fileDiscovery.d.ts.map +1 -1
- package/dist/utils/fileDiscovery.js +131 -23
- package/dist/utils/fileDiscovery.js.map +1 -1
- package/dist/utils/reactDetection.d.ts +34 -5
- package/dist/utils/reactDetection.d.ts.map +1 -1
- package/dist/utils/reactDetection.js +73 -52
- package/dist/utils/reactDetection.js.map +1 -1
- package/dist/version.generated.d.ts +1 -1
- package/dist/version.generated.js +1 -1
- package/dist/workers/auditWorker.js +7 -3
- package/dist/workers/auditWorker.js.map +1 -1
- package/examples/.auditrc.example.json +0 -8
- package/examples/.auditrc.json +0 -11
- package/examples/.code-auditor.json +0 -2
- package/examples/nextjs.auditrc.json +0 -8
- package/examples/node-api.auditrc.json +0 -7
- package/examples/react.auditrc.json +0 -6
- package/examples/tolerant-solid.auditrc.json +0 -5
- package/package.json +11 -5
- package/plugin/.claude-plugin/manifest.json +16 -0
- package/plugin/.claude-plugin/plugin.json +1 -1
- package/plugin/hooks/hooks.json +6 -2
- package/plugin/scripts/hook-audit.sh +41 -14
- package/plugin/scripts/hook-common.sh +50 -5
- package/plugin/scripts/hook-drift-check.sh +72 -0
- package/plugin/scripts/hook-self-audit.sh +17 -12
- package/plugin/skills/code-auditor/SKILL.md +1 -1
- package/server.json +2 -2
|
@@ -0,0 +1,868 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Spec 68 §3.2 — the styles rules, migrated to `analyze(ctx)`.
|
|
3
|
+
*
|
|
4
|
+
* These eight rules were the DB-backed detectors inside
|
|
5
|
+
* `UniversalStylesAnalyzer`: value-drift, off-scale, token-bypass,
|
|
6
|
+
* mechanism-fragmentation, mechanism-mixing, declaration-set-similarity,
|
|
7
|
+
* z-index-sprawl, z-index-singleton. Now they read the `style-declarations`
|
|
8
|
+
* fact and do pure comparison over plain data. The tree died with the file; the
|
|
9
|
+
* per-file processors (`stylesCss.ts` / `stylesSource.ts`) pre-computed the
|
|
10
|
+
* normalized declarations and design tokens, so `analyze` never touches a tree,
|
|
11
|
+
* an adapter, or a source string.
|
|
12
|
+
*
|
|
13
|
+
* `undefined-class` (severity 'severe') is the ninth rule, exported separately
|
|
14
|
+
* (`undefinedClassRule`): its `needs` adds the corpus-shaped `defined-classes`
|
|
15
|
+
* fact (the `style_defined_classes` catalog) alongside `style-declarations`, so
|
|
16
|
+
* it cannot share the eight rules' `StylesNeeds` tuple. It reads the fact's
|
|
17
|
+
* `classUsage` against that catalog in memory (membership + Levenshtein ≤2
|
|
18
|
+
* near-miss) and resolves candidates through the shared `getTailwindExpander()`
|
|
19
|
+
* singleton. The compile-probe never initializes on the phase path — the rule's
|
|
20
|
+
* `AnalysisContext` carries no `projectRoot`, exactly as the legacy reducer
|
|
21
|
+
* passed none — so `resolve()` degrades to the user's `tailwindClasses`
|
|
22
|
+
* custom-set + bare utilities + structural patterns, byte-identical to the
|
|
23
|
+
* legacy `detectUndefinedClasses` run under the same (projectRoot-absent)
|
|
24
|
+
* production config. The two off-ladder diagnostics (`undefined-class-not-found`
|
|
25
|
+
* / `undefined-class-disabled`) have no `Finding` shape and stay on the legacy
|
|
26
|
+
* path until §15 re-homes them.
|
|
27
|
+
*
|
|
28
|
+
* The detector logic is re-homed verbatim from `UniversalStylesAnalyzer.ts` —
|
|
29
|
+
* copied, not imported, because that analyzer is deleted in §15 and the rules
|
|
30
|
+
* must not couple the new pipeline to a class that is about to disappear. The
|
|
31
|
+
* re-home operates on the legacy *snake_case* `StyleDeclRow` (`raw_value`,
|
|
32
|
+
* `normalized_value`, `file_path`, `token_ref`) so the detector bodies are
|
|
33
|
+
* byte-identical to the pre-migration code; a `toDeclRow` adapter maps the
|
|
34
|
+
* camelCase fact back onto that shape (`normalized_value` is the DB's
|
|
35
|
+
* `JSON.stringify(NormalizedValue)` encoding). The two pure modules it reads —
|
|
36
|
+
* `normalizer.ts` (value normalization) and `styleScale.ts` (the declared design
|
|
37
|
+
* scale) — survive §15.
|
|
38
|
+
*
|
|
39
|
+
* Config resolution mirrors the legacy analyzer's `{...DEFAULT_STYLES_CONFIG,
|
|
40
|
+
* ...config}` merge; the defaults are re-declared here (the legacy class is
|
|
41
|
+
* deleted in §15). The §10 bridge (`resolvePhaseThresholds`) already merges the
|
|
42
|
+
* same default into `ctx.thresholds`, so the merge is idempotent in production
|
|
43
|
+
* and load-bearing only for the parity test, which passes raw config to both
|
|
44
|
+
* sides.
|
|
45
|
+
*/
|
|
46
|
+
import { labDistance } from '../colorMath.js';
|
|
47
|
+
import { RULE_REGISTRY } from '../../analyzers/ruleRegistry.js';
|
|
48
|
+
import { getTailwindExpander } from '../../styles/tailwindUtilityExpander.js';
|
|
49
|
+
import { normalizeValue } from '../../styles/normalizer.js';
|
|
50
|
+
import { buildDeclaredScale, parseLengthToPx, } from '../../analyzers/universal/styleScale.js';
|
|
51
|
+
const META = RULE_REGISTRY;
|
|
52
|
+
const STYLES_DEFAULTS = {
|
|
53
|
+
colorDeltaE: 2.5,
|
|
54
|
+
scaleProperties: [
|
|
55
|
+
'margin', 'margin-top', 'margin-right', 'margin-bottom', 'margin-left',
|
|
56
|
+
'padding', 'padding-top', 'padding-right', 'padding-bottom', 'padding-left',
|
|
57
|
+
'gap', 'row-gap', 'column-gap', 'font-size',
|
|
58
|
+
],
|
|
59
|
+
zIndexMaxDistinct: 6,
|
|
60
|
+
mechanismFragmentationMinMechanisms: 3,
|
|
61
|
+
declarationSetMinDeclarations: 5,
|
|
62
|
+
declarationSetSimilarityThreshold: 0.9,
|
|
63
|
+
offScaleMinDeclarations: 20,
|
|
64
|
+
};
|
|
65
|
+
/** Merge the (default-merged) thresholds onto the styles defaults. */
|
|
66
|
+
function resolveStylesConfig(t) {
|
|
67
|
+
return { ...STYLES_DEFAULTS, ...t };
|
|
68
|
+
}
|
|
69
|
+
/** The camelCase fact → the legacy analyzer's snake_case row. `normalized_value`
|
|
70
|
+
* is the DB's `JSON.stringify(NormalizedValue)` encoding (styleIndexer.ts). */
|
|
71
|
+
function toDeclRow(d) {
|
|
72
|
+
return {
|
|
73
|
+
property: d.property,
|
|
74
|
+
raw_value: d.rawValue,
|
|
75
|
+
normalized_value: d.normalizedValue ? JSON.stringify(d.normalizedValue) : null,
|
|
76
|
+
mechanism: d.mechanism,
|
|
77
|
+
file_path: d.filePath,
|
|
78
|
+
line: d.line,
|
|
79
|
+
context: d.context,
|
|
80
|
+
token_ref: d.tokenRef,
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
function flattenDeclarations(files) {
|
|
84
|
+
const out = [];
|
|
85
|
+
for (const f of files)
|
|
86
|
+
for (const d of f.declarations)
|
|
87
|
+
out.push(toDeclRow(d));
|
|
88
|
+
return out;
|
|
89
|
+
}
|
|
90
|
+
function flattenTokens(files) {
|
|
91
|
+
const out = [];
|
|
92
|
+
for (const f of files)
|
|
93
|
+
for (const t of f.tokens)
|
|
94
|
+
out.push({
|
|
95
|
+
name: t.name,
|
|
96
|
+
value: t.value,
|
|
97
|
+
file_path: t.filePath,
|
|
98
|
+
mechanism: t.mechanism,
|
|
99
|
+
});
|
|
100
|
+
return out;
|
|
101
|
+
}
|
|
102
|
+
function flattenClassUsage(files) {
|
|
103
|
+
const out = [];
|
|
104
|
+
for (const f of files)
|
|
105
|
+
for (const u of f.classUsage)
|
|
106
|
+
out.push(u);
|
|
107
|
+
return out;
|
|
108
|
+
}
|
|
109
|
+
/** The legacy `makeViolation` always pinned `column: 1`. */
|
|
110
|
+
const makeFinding = (filePath, line, message, classification) => {
|
|
111
|
+
const f = {
|
|
112
|
+
ruleId: classification.rule,
|
|
113
|
+
severity: classification.severity,
|
|
114
|
+
message,
|
|
115
|
+
file: filePath,
|
|
116
|
+
line,
|
|
117
|
+
column: 1,
|
|
118
|
+
};
|
|
119
|
+
if (classification.symbol)
|
|
120
|
+
f.symbol = classification.symbol;
|
|
121
|
+
if (classification.resolution)
|
|
122
|
+
f.resolution = classification.resolution;
|
|
123
|
+
return f;
|
|
124
|
+
};
|
|
125
|
+
// ── Leaf helpers (re-homed verbatim from UniversalStylesAnalyzer) ───────────
|
|
126
|
+
function declValueKey(d) {
|
|
127
|
+
const prop = d.property ?? '';
|
|
128
|
+
const val = d.normalized_value ?? d.raw_value ?? '';
|
|
129
|
+
return val ? `${prop}: ${val}` : prop;
|
|
130
|
+
}
|
|
131
|
+
const TRIVIAL_VALUES = new Set([
|
|
132
|
+
'0', '0px', '0rem', '0em', '0%', 'none', 'transparent',
|
|
133
|
+
'inherit', 'initial', 'unset', 'currentcolor', 'auto',
|
|
134
|
+
'100%', '50%',
|
|
135
|
+
]);
|
|
136
|
+
function isCategoricalByValues(decls) {
|
|
137
|
+
for (const d of decls) {
|
|
138
|
+
const v = d.raw_value.trim();
|
|
139
|
+
if (!v)
|
|
140
|
+
continue;
|
|
141
|
+
if (/^-?\d/.test(v))
|
|
142
|
+
return false;
|
|
143
|
+
if (/^#[0-9a-fA-F]{3,8}$/.test(v))
|
|
144
|
+
return false;
|
|
145
|
+
if (/^(rgb|rgba|hsl|hsla)\(/.test(v))
|
|
146
|
+
return false;
|
|
147
|
+
if (/^-?\d+(\.\d+)?(px|em|rem|vw|vh|vmin|vmax|%|ch|ex|cm|mm|in|pt|pc|deg|rad|turn|s|ms|dpi|dpcm|dppx|fr)$/.test(v))
|
|
148
|
+
return false;
|
|
149
|
+
if (/^(calc|clamp|min|max)\(/.test(v))
|
|
150
|
+
return false;
|
|
151
|
+
}
|
|
152
|
+
return true;
|
|
153
|
+
}
|
|
154
|
+
function isColorProperty(property) {
|
|
155
|
+
const colorProps = new Set([
|
|
156
|
+
'color', 'background-color', 'background', 'border-color',
|
|
157
|
+
'border-top-color', 'border-right-color', 'border-bottom-color',
|
|
158
|
+
'border-left-color', 'outline-color', 'fill', 'stroke',
|
|
159
|
+
'text-decoration-color', 'caret-color', 'column-rule-color',
|
|
160
|
+
'accent-color', 'scrollbar-color',
|
|
161
|
+
]);
|
|
162
|
+
return colorProps.has(property);
|
|
163
|
+
}
|
|
164
|
+
function nearestScaleValues(px, values) {
|
|
165
|
+
let lower = 0;
|
|
166
|
+
let upper = values[values.length - 1] ?? 0;
|
|
167
|
+
for (const s of values) {
|
|
168
|
+
if (s <= px)
|
|
169
|
+
lower = s;
|
|
170
|
+
if (s >= px) {
|
|
171
|
+
upper = s;
|
|
172
|
+
break;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
return [lower, upper];
|
|
176
|
+
}
|
|
177
|
+
function clusterDistinctColors(values, threshold, distance) {
|
|
178
|
+
const n = values.length;
|
|
179
|
+
const parent = new Array(n);
|
|
180
|
+
for (let i = 0; i < n; i++)
|
|
181
|
+
parent[i] = i;
|
|
182
|
+
const find = (i) => {
|
|
183
|
+
while (parent[i] !== i) {
|
|
184
|
+
parent[i] = parent[parent[i]];
|
|
185
|
+
i = parent[i];
|
|
186
|
+
}
|
|
187
|
+
return i;
|
|
188
|
+
};
|
|
189
|
+
for (let i = 0; i < n; i++) {
|
|
190
|
+
for (let j = i + 1; j < n; j++) {
|
|
191
|
+
if (distance(values[i].lab, values[j].lab) < threshold) {
|
|
192
|
+
const ri = find(i);
|
|
193
|
+
const rj = find(j);
|
|
194
|
+
if (ri !== rj)
|
|
195
|
+
parent[ri] = rj;
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
const clusters = new Map();
|
|
200
|
+
for (let i = 0; i < n; i++) {
|
|
201
|
+
const root = find(i);
|
|
202
|
+
const list = clusters.get(root) ?? [];
|
|
203
|
+
list.push(values[i]);
|
|
204
|
+
clusters.set(root, list);
|
|
205
|
+
}
|
|
206
|
+
return [...clusters.values()];
|
|
207
|
+
}
|
|
208
|
+
function flagColorDriftMembers(driftClusters, property, report, distance) {
|
|
209
|
+
const out = [];
|
|
210
|
+
for (const cluster of driftClusters) {
|
|
211
|
+
const canonical = [...cluster].sort((a, b) => (b.count - a.count) || (a.value < b.value ? -1 : a.value > b.value ? 1 : 0))[0];
|
|
212
|
+
for (const member of cluster) {
|
|
213
|
+
if (member.value === canonical.value)
|
|
214
|
+
continue;
|
|
215
|
+
const d = distance(member.lab, canonical.lab);
|
|
216
|
+
const symbolValue = member.normalizedValue ?? member.value;
|
|
217
|
+
out.push(report(member.filePath, member.line, `Color drift in "${property}": "${member.value}" is near-identical to "${canonical.value}" ` +
|
|
218
|
+
`(used ${canonical.count} time${canonical.count === 1 ? '' : 's'}, ΔE = ${d.toFixed(2)}). ` +
|
|
219
|
+
`Consider using "${canonical.value}".`, { severity: 'high', rule: 'styles/value-drift', symbol: symbolValue ? `${member.property}: ${symbolValue}` : member.property }));
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
return out;
|
|
223
|
+
}
|
|
224
|
+
function detectColorDrift(property, colorDecls, cfg, report) {
|
|
225
|
+
const byRgb = new Map();
|
|
226
|
+
for (const cv of colorDecls) {
|
|
227
|
+
const key = cv.rgb.join(',');
|
|
228
|
+
const existing = byRgb.get(key);
|
|
229
|
+
if (existing) {
|
|
230
|
+
existing.count += 1;
|
|
231
|
+
}
|
|
232
|
+
else {
|
|
233
|
+
byRgb.set(key, {
|
|
234
|
+
value: cv.rawValue,
|
|
235
|
+
rgb: cv.rgb,
|
|
236
|
+
lab: cv.lab,
|
|
237
|
+
filePath: cv.filePath,
|
|
238
|
+
line: cv.line,
|
|
239
|
+
property: cv.property,
|
|
240
|
+
normalizedValue: cv.normalizedValue,
|
|
241
|
+
count: 1,
|
|
242
|
+
});
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
const values = [...byRgb.values()];
|
|
246
|
+
const clusters = clusterDistinctColors(values, cfg.colorDeltaE, labDistance);
|
|
247
|
+
const drift = clusters.filter((c) => c.length >= 2);
|
|
248
|
+
if (drift.length === 0)
|
|
249
|
+
return [];
|
|
250
|
+
return flagColorDriftMembers(drift, property, report, labDistance);
|
|
251
|
+
}
|
|
252
|
+
function detectValueDrift(byProperty, colorValues, cfg, report) {
|
|
253
|
+
const out = [];
|
|
254
|
+
const exclusions = new Set(cfg.categoricalPropertyExclusions ?? []);
|
|
255
|
+
const byPropertyColors = new Map();
|
|
256
|
+
for (const cv of colorValues) {
|
|
257
|
+
const list = byPropertyColors.get(cv.property) ?? [];
|
|
258
|
+
list.push(cv);
|
|
259
|
+
byPropertyColors.set(cv.property, list);
|
|
260
|
+
}
|
|
261
|
+
for (const [property, decls] of byProperty) {
|
|
262
|
+
if (exclusions.has(property))
|
|
263
|
+
continue;
|
|
264
|
+
if (isCategoricalByValues(decls))
|
|
265
|
+
continue;
|
|
266
|
+
if (isColorProperty(property)) {
|
|
267
|
+
out.push(...detectColorDrift(property, byPropertyColors.get(property) ?? [], cfg, report));
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
return out;
|
|
271
|
+
}
|
|
272
|
+
// ── Detector 2: Off-Scale Values ────────────────────────────────────────────
|
|
273
|
+
function detectOffScaleValues(byProperty, cfg, declaredScale, report) {
|
|
274
|
+
const out = [];
|
|
275
|
+
for (const property of cfg.scaleProperties) {
|
|
276
|
+
const decls = byProperty.get(property);
|
|
277
|
+
if (!decls || decls.length < cfg.offScaleMinDeclarations)
|
|
278
|
+
continue;
|
|
279
|
+
const isFontSize = property === 'font-size';
|
|
280
|
+
const scaleSet = isFontSize ? declaredScale.fontSize : declaredScale.spacing;
|
|
281
|
+
if (scaleSet.size === 0)
|
|
282
|
+
continue;
|
|
283
|
+
const scaleValues = [...scaleSet].sort((a, b) => a - b);
|
|
284
|
+
const label = isFontSize ? 'font-size scale' : 'spacing scale';
|
|
285
|
+
const parsed = [];
|
|
286
|
+
for (const d of decls) {
|
|
287
|
+
const px = parseLengthToPx(d.raw_value);
|
|
288
|
+
if (px !== null) {
|
|
289
|
+
parsed.push({ decl: d, px });
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
if (parsed.length < cfg.offScaleMinDeclarations)
|
|
293
|
+
continue;
|
|
294
|
+
for (const { decl, px } of parsed) {
|
|
295
|
+
if (px === 0)
|
|
296
|
+
continue;
|
|
297
|
+
if (!scaleSet.has(px)) {
|
|
298
|
+
const [lower, upper] = nearestScaleValues(px, scaleValues);
|
|
299
|
+
out.push(report(decl.file_path, decl.line, `Off-scale "${property}" value: "${decl.raw_value}" (${px}px) ` +
|
|
300
|
+
`is not on the project's declared ${label}. ` +
|
|
301
|
+
`Nearest scale values: ${lower}px or ${upper}px.`, { severity: 'high', rule: 'styles/off-scale', symbol: declValueKey(decl) }));
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
return out;
|
|
306
|
+
}
|
|
307
|
+
// ── Detector 4: Token Bypass ────────────────────────────────────────────────
|
|
308
|
+
function normalizeForTokenMatch(raw) {
|
|
309
|
+
let v = raw.toLowerCase().trim();
|
|
310
|
+
v = v.replace(/,\s+/g, ',');
|
|
311
|
+
if (/^#[0-9a-f]{3}$/.test(v)) {
|
|
312
|
+
v = '#' + v[1] + v[1] + v[2] + v[2] + v[3] + v[3];
|
|
313
|
+
}
|
|
314
|
+
return v;
|
|
315
|
+
}
|
|
316
|
+
function parseNormalizedValueType(normalizedValue) {
|
|
317
|
+
if (!normalizedValue)
|
|
318
|
+
return null;
|
|
319
|
+
try {
|
|
320
|
+
const nv = JSON.parse(normalizedValue);
|
|
321
|
+
return nv.type;
|
|
322
|
+
}
|
|
323
|
+
catch {
|
|
324
|
+
return null;
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
function matchBypassToken(d, tokenValueMap, categoricalExclusions, scaleProps) {
|
|
328
|
+
if (d.token_ref)
|
|
329
|
+
return null;
|
|
330
|
+
if (d.property.startsWith('--') || d.property.startsWith('$'))
|
|
331
|
+
return null;
|
|
332
|
+
if (categoricalExclusions.has(d.property))
|
|
333
|
+
return null;
|
|
334
|
+
if (scaleProps.has(d.property))
|
|
335
|
+
return null;
|
|
336
|
+
const normalized = normalizeForTokenMatch(d.raw_value);
|
|
337
|
+
if (TRIVIAL_VALUES.has(normalized))
|
|
338
|
+
return null;
|
|
339
|
+
const tokenInfo = tokenValueMap.get(normalized);
|
|
340
|
+
if (!tokenInfo)
|
|
341
|
+
return null;
|
|
342
|
+
if (tokenInfo.valueType !== null) {
|
|
343
|
+
const declType = parseNormalizedValueType(d.normalized_value);
|
|
344
|
+
if (declType !== null && declType !== tokenInfo.valueType)
|
|
345
|
+
return null;
|
|
346
|
+
}
|
|
347
|
+
return tokenInfo;
|
|
348
|
+
}
|
|
349
|
+
function buildTokenValueMap(tokens) {
|
|
350
|
+
const tokenValueMap = new Map();
|
|
351
|
+
for (const t of tokens) {
|
|
352
|
+
if (t.file_path === 'built-in defaults')
|
|
353
|
+
continue;
|
|
354
|
+
const normalizedTokenVal = normalizeValue(t.value, '__token__');
|
|
355
|
+
tokenValueMap.set(normalizeForTokenMatch(t.value), { name: t.name, valueType: normalizedTokenVal?.type ?? null });
|
|
356
|
+
}
|
|
357
|
+
return tokenValueMap;
|
|
358
|
+
}
|
|
359
|
+
function detectTokenBypass(declarations, tokenValueMap, cfg, report) {
|
|
360
|
+
const out = [];
|
|
361
|
+
if (tokenValueMap.size === 0)
|
|
362
|
+
return out;
|
|
363
|
+
const categoricalExclusions = new Set(cfg.categoricalPropertyExclusions ?? []);
|
|
364
|
+
const scaleProps = new Set(cfg.scaleProperties ?? []);
|
|
365
|
+
for (const d of declarations) {
|
|
366
|
+
const tokenInfo = matchBypassToken(d, tokenValueMap, categoricalExclusions, scaleProps);
|
|
367
|
+
if (!tokenInfo)
|
|
368
|
+
continue;
|
|
369
|
+
out.push(report(d.file_path, d.line, `Token bypass: "${d.raw_value}" for "${d.property}" matches design ` +
|
|
370
|
+
`token "${tokenInfo.name}" but was used as a raw value. ` +
|
|
371
|
+
`Use the token reference instead to keep styles consistent.`, { severity: 'high', rule: 'styles/token-bypass', symbol: declValueKey(d) }));
|
|
372
|
+
}
|
|
373
|
+
return out;
|
|
374
|
+
}
|
|
375
|
+
// ── Detector 5: Mechanism Fragmentation / Mixing ────────────────────────────
|
|
376
|
+
function flagPropertyValueFragmentation(declarations, minMechanisms, report) {
|
|
377
|
+
const out = [];
|
|
378
|
+
const pvMap = new Map();
|
|
379
|
+
const pvSample = new Map();
|
|
380
|
+
for (const d of declarations) {
|
|
381
|
+
const key = `${d.property}::${d.normalized_value ?? d.raw_value}`;
|
|
382
|
+
const mechs = pvMap.get(key) || new Set();
|
|
383
|
+
mechs.add(d.mechanism);
|
|
384
|
+
pvMap.set(key, mechs);
|
|
385
|
+
if (!pvSample.has(key)) {
|
|
386
|
+
pvSample.set(key, d);
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
for (const [key, mechs] of pvMap) {
|
|
390
|
+
if (mechs.size < minMechanisms)
|
|
391
|
+
continue;
|
|
392
|
+
const sample = pvSample.get(key);
|
|
393
|
+
const prop = sample.property;
|
|
394
|
+
out.push(report(sample.file_path, sample.line, `Mechanism fragmentation: "${prop}: ${sample.raw_value}" is applied via ` +
|
|
395
|
+
`${mechs.size} different mechanisms (${[...mechs].sort().join(', ')}). ` +
|
|
396
|
+
`Consolidate to a single mechanism or design token.`, { severity: 'high', rule: 'styles/mechanism-fragmentation', symbol: declValueKey(sample) }));
|
|
397
|
+
}
|
|
398
|
+
return out;
|
|
399
|
+
}
|
|
400
|
+
function flagFileMechanismMixing(declarations, minMechanisms, report) {
|
|
401
|
+
const out = [];
|
|
402
|
+
const fileMechs = new Map();
|
|
403
|
+
for (const d of declarations) {
|
|
404
|
+
const mechs = fileMechs.get(d.file_path) || new Set();
|
|
405
|
+
mechs.add(d.mechanism);
|
|
406
|
+
fileMechs.set(d.file_path, mechs);
|
|
407
|
+
}
|
|
408
|
+
for (const [file, mechs] of fileMechs) {
|
|
409
|
+
if (mechs.size < minMechanisms)
|
|
410
|
+
continue;
|
|
411
|
+
out.push(report(file, 1, `Mechanism mixing: ${file} uses ${mechs.size} different style ` +
|
|
412
|
+
`mechanisms (${[...mechs].sort().join(', ')}). ` +
|
|
413
|
+
`Consolidate to fewer mechanisms for maintainability.`, { severity: 'high', rule: 'styles/mechanism-mixing' }));
|
|
414
|
+
}
|
|
415
|
+
return out;
|
|
416
|
+
}
|
|
417
|
+
function buildDeclarationBlocks(declarations, minDeclarations) {
|
|
418
|
+
const blocks = new Map();
|
|
419
|
+
for (const d of declarations) {
|
|
420
|
+
if (!d.context)
|
|
421
|
+
continue;
|
|
422
|
+
const key = `${d.file_path}::${d.context}`;
|
|
423
|
+
const list = blocks.get(key) || [];
|
|
424
|
+
list.push(d);
|
|
425
|
+
blocks.set(key, list);
|
|
426
|
+
}
|
|
427
|
+
return [...blocks.entries()]
|
|
428
|
+
.map(([key, decls]) => {
|
|
429
|
+
const valueSet = new Set(decls.map(d => `${d.property}:${d.normalized_value ?? d.raw_value}`));
|
|
430
|
+
return {
|
|
431
|
+
key,
|
|
432
|
+
filePath: decls[0].file_path,
|
|
433
|
+
context: decls[0].context,
|
|
434
|
+
line: decls[0].line,
|
|
435
|
+
declCount: decls.length,
|
|
436
|
+
valueSet,
|
|
437
|
+
};
|
|
438
|
+
})
|
|
439
|
+
.filter(b => b.declCount >= minDeclarations);
|
|
440
|
+
}
|
|
441
|
+
const prefixLen = (threshold, s) => s - Math.ceil(threshold * s) + 1;
|
|
442
|
+
function flagSimilarBlockPairs(blockEntries, threshold, report) {
|
|
443
|
+
const n = blockEntries.length;
|
|
444
|
+
if (n < 2)
|
|
445
|
+
return [];
|
|
446
|
+
const freq = new Map();
|
|
447
|
+
for (const b of blockEntries) {
|
|
448
|
+
for (const v of b.valueSet)
|
|
449
|
+
freq.set(v, (freq.get(v) ?? 0) + 1);
|
|
450
|
+
}
|
|
451
|
+
const ordered = blockEntries.map((b) => ({
|
|
452
|
+
...b,
|
|
453
|
+
values: [...b.valueSet].sort((x, y) => (freq.get(x) - freq.get(y)) || (x < y ? -1 : 1)),
|
|
454
|
+
size: b.valueSet.size,
|
|
455
|
+
}));
|
|
456
|
+
const inverted = buildInvertedIndex(ordered, threshold);
|
|
457
|
+
const candidates = generateCandidates(ordered, inverted, threshold, n);
|
|
458
|
+
return verifyCandidates(ordered, candidates, threshold, report);
|
|
459
|
+
}
|
|
460
|
+
function buildInvertedIndex(ordered, threshold) {
|
|
461
|
+
const inverted = new Map();
|
|
462
|
+
ordered.forEach((b, i) => {
|
|
463
|
+
const p = Math.max(1, Math.min(prefixLen(threshold, b.size), b.size));
|
|
464
|
+
for (let k = 0; k < p; k++) {
|
|
465
|
+
const v = b.values[k];
|
|
466
|
+
const list = inverted.get(v);
|
|
467
|
+
if (list)
|
|
468
|
+
list.push(i);
|
|
469
|
+
else
|
|
470
|
+
inverted.set(v, [i]);
|
|
471
|
+
}
|
|
472
|
+
});
|
|
473
|
+
return inverted;
|
|
474
|
+
}
|
|
475
|
+
function generateCandidates(ordered, inverted, threshold, n) {
|
|
476
|
+
const E = 1e-6;
|
|
477
|
+
const candidates = new Set();
|
|
478
|
+
for (const [, idxs] of inverted) {
|
|
479
|
+
for (let a = 0; a < idxs.length; a++) {
|
|
480
|
+
for (let b = a + 1; b < idxs.length; b++) {
|
|
481
|
+
const i = idxs[a];
|
|
482
|
+
const j = idxs[b];
|
|
483
|
+
const si = ordered[i].size;
|
|
484
|
+
const sj = ordered[j].size;
|
|
485
|
+
if (Math.min(si, sj) < threshold * Math.max(si, sj) - E)
|
|
486
|
+
continue;
|
|
487
|
+
candidates.add(i < j ? i * n + j : j * n + i);
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
return candidates;
|
|
492
|
+
}
|
|
493
|
+
function verifyCandidates(ordered, candidates, threshold, report) {
|
|
494
|
+
const n = ordered.length;
|
|
495
|
+
const out = [];
|
|
496
|
+
const reported = new Set();
|
|
497
|
+
const sortedCandidates = [...candidates].sort((x, y) => x - y);
|
|
498
|
+
for (const enc of sortedCandidates) {
|
|
499
|
+
const i = Math.floor(enc / n);
|
|
500
|
+
const j = enc % n;
|
|
501
|
+
const a = ordered[i];
|
|
502
|
+
const b = ordered[j];
|
|
503
|
+
if (a.key === b.key)
|
|
504
|
+
continue;
|
|
505
|
+
const pairKey = [a.key, b.key].sort().join('::');
|
|
506
|
+
if (reported.has(pairKey))
|
|
507
|
+
continue;
|
|
508
|
+
reported.add(pairKey);
|
|
509
|
+
const intersection = new Set([...a.valueSet].filter(x => b.valueSet.has(x)));
|
|
510
|
+
const union = new Set([...a.valueSet, ...b.valueSet]);
|
|
511
|
+
const similarity = intersection.size / union.size;
|
|
512
|
+
if (similarity >= threshold) {
|
|
513
|
+
out.push(report(a.filePath, a.line, `Declaration-set similarity: "${a.context}" and "${b.context}" ` +
|
|
514
|
+
`in ${b.filePath} share ${intersection.size} of ${union.size} ` +
|
|
515
|
+
`declarations (${(similarity * 100).toFixed(0)}%). ` +
|
|
516
|
+
`Consider consolidating these rules or extracting a shared mixin.`, { severity: 'high', rule: 'styles/declaration-set-similarity', symbol: `${a.context} & ${b.context}` }));
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
return out;
|
|
520
|
+
}
|
|
521
|
+
function detectDeclarationSetSimilarity(declarations, cfg, report) {
|
|
522
|
+
const blockEntries = buildDeclarationBlocks(declarations, cfg.declarationSetMinDeclarations);
|
|
523
|
+
return flagSimilarBlockPairs(blockEntries, cfg.declarationSetSimilarityThreshold, report);
|
|
524
|
+
}
|
|
525
|
+
// ── Detector 7: Z-Index Inventory ───────────────────────────────────────────
|
|
526
|
+
function collectZIndexValues(decls) {
|
|
527
|
+
const values = new Map();
|
|
528
|
+
for (const d of decls) {
|
|
529
|
+
const num = parseInt(d.raw_value, 10);
|
|
530
|
+
if (isNaN(num))
|
|
531
|
+
continue;
|
|
532
|
+
const list = values.get(num) || [];
|
|
533
|
+
list.push(d);
|
|
534
|
+
values.set(num, list);
|
|
535
|
+
}
|
|
536
|
+
return values;
|
|
537
|
+
}
|
|
538
|
+
function detectZIndexSprawl(byProperty, cfg, report) {
|
|
539
|
+
const decls = byProperty.get('z-index');
|
|
540
|
+
if (!decls || decls.length === 0)
|
|
541
|
+
return [];
|
|
542
|
+
const values = collectZIndexValues(decls);
|
|
543
|
+
if (values.size === 0)
|
|
544
|
+
return [];
|
|
545
|
+
if (values.size > cfg.zIndexMaxDistinct) {
|
|
546
|
+
const sortedVals = [...values.keys()].sort((a, b) => a - b);
|
|
547
|
+
const sample = values.get(sortedVals[0])[0];
|
|
548
|
+
return [report(sample.file_path, sample.line, `Z-index sprawl: ${values.size} distinct z-index values ` +
|
|
549
|
+
`(${sortedVals.join(', ')}). Consider defining a z-index scale ` +
|
|
550
|
+
`(e.g., $z-layers: (dropdown: 100, modal: 200, toast: 300)).`, { severity: 'high', rule: 'styles/z-index-sprawl', symbol: declValueKey(sample) })];
|
|
551
|
+
}
|
|
552
|
+
return [];
|
|
553
|
+
}
|
|
554
|
+
function detectZIndexSingletons(byProperty, report) {
|
|
555
|
+
const decls = byProperty.get('z-index');
|
|
556
|
+
if (!decls || decls.length === 0)
|
|
557
|
+
return [];
|
|
558
|
+
const values = collectZIndexValues(decls);
|
|
559
|
+
if (values.size === 0)
|
|
560
|
+
return [];
|
|
561
|
+
const out = [];
|
|
562
|
+
for (const [val, list] of values) {
|
|
563
|
+
if (list.length === 1 && values.size > 2) {
|
|
564
|
+
const d = list[0];
|
|
565
|
+
out.push(report(d.file_path, d.line, `Singleton z-index: z-index: ${val} is used only once. ` +
|
|
566
|
+
`Consider whether this value belongs in a shared z-index scale.`, { severity: 'high', rule: 'styles/z-index-singleton', symbol: declValueKey(d) }));
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
return out;
|
|
570
|
+
}
|
|
571
|
+
// ── Shared iteration ─────────────────────────────────────────────────────────
|
|
572
|
+
function groupDeclarationsByProperty(declarations) {
|
|
573
|
+
const byProperty = new Map();
|
|
574
|
+
for (const d of declarations) {
|
|
575
|
+
const list = byProperty.get(d.property) || [];
|
|
576
|
+
list.push(d);
|
|
577
|
+
byProperty.set(d.property, list);
|
|
578
|
+
}
|
|
579
|
+
return byProperty;
|
|
580
|
+
}
|
|
581
|
+
// ── The eight rules ─────────────────────────────────────────────────────────
|
|
582
|
+
const valueDrift = {
|
|
583
|
+
id: 'styles/value-drift',
|
|
584
|
+
analyzer: 'styles',
|
|
585
|
+
needs: { formats: ['css', 'scss', 'typescript', 'tsx', 'javascript'], facts: ['style-declarations', 'color-values'] },
|
|
586
|
+
severity: 'high',
|
|
587
|
+
message: META['styles/value-drift'].message,
|
|
588
|
+
docs: META['styles/value-drift'].docs,
|
|
589
|
+
thresholds: META['styles/value-drift'].thresholds,
|
|
590
|
+
samples: META['styles/value-drift'].samples,
|
|
591
|
+
analyze(ctx) {
|
|
592
|
+
const cfg = resolveStylesConfig(ctx.thresholds);
|
|
593
|
+
const declarations = flattenDeclarations(ctx.facts['style-declarations']);
|
|
594
|
+
return detectValueDrift(groupDeclarationsByProperty(declarations), ctx.facts['color-values'], cfg, makeFinding);
|
|
595
|
+
},
|
|
596
|
+
};
|
|
597
|
+
const offScale = {
|
|
598
|
+
id: 'styles/off-scale',
|
|
599
|
+
analyzer: 'styles',
|
|
600
|
+
needs: { formats: ['css', 'scss', 'typescript', 'tsx', 'javascript'], facts: ['style-declarations'] },
|
|
601
|
+
severity: 'high',
|
|
602
|
+
message: META['styles/off-scale'].message,
|
|
603
|
+
docs: META['styles/off-scale'].docs,
|
|
604
|
+
thresholds: META['styles/off-scale'].thresholds,
|
|
605
|
+
samples: META['styles/off-scale'].samples,
|
|
606
|
+
analyze(ctx) {
|
|
607
|
+
const cfg = resolveStylesConfig(ctx.thresholds);
|
|
608
|
+
const files = ctx.facts['style-declarations'];
|
|
609
|
+
const declarations = flattenDeclarations(files);
|
|
610
|
+
const tokens = flattenTokens(files);
|
|
611
|
+
return detectOffScaleValues(groupDeclarationsByProperty(declarations), cfg, buildDeclaredScale(tokens.map((t) => ({ name: t.name, value: t.value, file_path: t.file_path }))), makeFinding);
|
|
612
|
+
},
|
|
613
|
+
};
|
|
614
|
+
const tokenBypass = {
|
|
615
|
+
id: 'styles/token-bypass',
|
|
616
|
+
analyzer: 'styles',
|
|
617
|
+
needs: { formats: ['css', 'scss', 'typescript', 'tsx', 'javascript'], facts: ['style-declarations'] },
|
|
618
|
+
severity: 'high',
|
|
619
|
+
message: META['styles/token-bypass'].message,
|
|
620
|
+
docs: META['styles/token-bypass'].docs,
|
|
621
|
+
thresholds: META['styles/token-bypass'].thresholds,
|
|
622
|
+
samples: META['styles/token-bypass'].samples,
|
|
623
|
+
analyze(ctx) {
|
|
624
|
+
const cfg = resolveStylesConfig(ctx.thresholds);
|
|
625
|
+
const files = ctx.facts['style-declarations'];
|
|
626
|
+
const declarations = flattenDeclarations(files);
|
|
627
|
+
const tokens = flattenTokens(files);
|
|
628
|
+
return detectTokenBypass(declarations, buildTokenValueMap(tokens), cfg, makeFinding);
|
|
629
|
+
},
|
|
630
|
+
};
|
|
631
|
+
const mechanismFragmentation = {
|
|
632
|
+
id: 'styles/mechanism-fragmentation',
|
|
633
|
+
analyzer: 'styles',
|
|
634
|
+
needs: { formats: ['css', 'scss', 'typescript', 'tsx', 'javascript'], facts: ['style-declarations'] },
|
|
635
|
+
severity: 'high',
|
|
636
|
+
message: META['styles/mechanism-fragmentation'].message,
|
|
637
|
+
docs: META['styles/mechanism-fragmentation'].docs,
|
|
638
|
+
thresholds: META['styles/mechanism-fragmentation'].thresholds,
|
|
639
|
+
samples: META['styles/mechanism-fragmentation'].samples,
|
|
640
|
+
analyze(ctx) {
|
|
641
|
+
const cfg = resolveStylesConfig(ctx.thresholds);
|
|
642
|
+
const declarations = flattenDeclarations(ctx.facts['style-declarations']);
|
|
643
|
+
return flagPropertyValueFragmentation(declarations, cfg.mechanismFragmentationMinMechanisms, makeFinding);
|
|
644
|
+
},
|
|
645
|
+
};
|
|
646
|
+
const mechanismMixing = {
|
|
647
|
+
id: 'styles/mechanism-mixing',
|
|
648
|
+
analyzer: 'styles',
|
|
649
|
+
needs: { formats: ['css', 'scss', 'typescript', 'tsx', 'javascript'], facts: ['style-declarations'] },
|
|
650
|
+
severity: 'high',
|
|
651
|
+
message: META['styles/mechanism-mixing'].message,
|
|
652
|
+
docs: META['styles/mechanism-mixing'].docs,
|
|
653
|
+
thresholds: META['styles/mechanism-mixing'].thresholds,
|
|
654
|
+
samples: META['styles/mechanism-mixing'].samples,
|
|
655
|
+
analyze(ctx) {
|
|
656
|
+
const cfg = resolveStylesConfig(ctx.thresholds);
|
|
657
|
+
const declarations = flattenDeclarations(ctx.facts['style-declarations']);
|
|
658
|
+
return flagFileMechanismMixing(declarations, cfg.mechanismFragmentationMinMechanisms, makeFinding);
|
|
659
|
+
},
|
|
660
|
+
};
|
|
661
|
+
const declarationSetSimilarity = {
|
|
662
|
+
id: 'styles/declaration-set-similarity',
|
|
663
|
+
analyzer: 'styles',
|
|
664
|
+
needs: { formats: ['css', 'scss', 'typescript', 'tsx', 'javascript'], facts: ['style-declarations'] },
|
|
665
|
+
severity: 'high',
|
|
666
|
+
message: META['styles/declaration-set-similarity'].message,
|
|
667
|
+
docs: META['styles/declaration-set-similarity'].docs,
|
|
668
|
+
thresholds: META['styles/declaration-set-similarity'].thresholds,
|
|
669
|
+
samples: META['styles/declaration-set-similarity'].samples,
|
|
670
|
+
analyze(ctx) {
|
|
671
|
+
const cfg = resolveStylesConfig(ctx.thresholds);
|
|
672
|
+
const declarations = flattenDeclarations(ctx.facts['style-declarations']);
|
|
673
|
+
return detectDeclarationSetSimilarity(declarations, cfg, makeFinding);
|
|
674
|
+
},
|
|
675
|
+
};
|
|
676
|
+
const zIndexSprawl = {
|
|
677
|
+
id: 'styles/z-index-sprawl',
|
|
678
|
+
analyzer: 'styles',
|
|
679
|
+
needs: { formats: ['css', 'scss', 'typescript', 'tsx', 'javascript'], facts: ['style-declarations'] },
|
|
680
|
+
severity: 'high',
|
|
681
|
+
message: META['styles/z-index-sprawl'].message,
|
|
682
|
+
docs: META['styles/z-index-sprawl'].docs,
|
|
683
|
+
thresholds: META['styles/z-index-sprawl'].thresholds,
|
|
684
|
+
samples: META['styles/z-index-sprawl'].samples,
|
|
685
|
+
analyze(ctx) {
|
|
686
|
+
const cfg = resolveStylesConfig(ctx.thresholds);
|
|
687
|
+
const declarations = flattenDeclarations(ctx.facts['style-declarations']);
|
|
688
|
+
return detectZIndexSprawl(groupDeclarationsByProperty(declarations), cfg, makeFinding);
|
|
689
|
+
},
|
|
690
|
+
};
|
|
691
|
+
const zIndexSingleton = {
|
|
692
|
+
id: 'styles/z-index-singleton',
|
|
693
|
+
analyzer: 'styles',
|
|
694
|
+
needs: { formats: ['css', 'scss', 'typescript', 'tsx', 'javascript'], facts: ['style-declarations'] },
|
|
695
|
+
severity: 'high',
|
|
696
|
+
message: META['styles/z-index-singleton'].message,
|
|
697
|
+
docs: META['styles/z-index-singleton'].docs,
|
|
698
|
+
thresholds: META['styles/z-index-singleton'].thresholds,
|
|
699
|
+
samples: META['styles/z-index-singleton'].samples,
|
|
700
|
+
analyze(ctx) {
|
|
701
|
+
const declarations = flattenDeclarations(ctx.facts['style-declarations']);
|
|
702
|
+
return detectZIndexSingletons(groupDeclarationsByProperty(declarations), makeFinding);
|
|
703
|
+
},
|
|
704
|
+
};
|
|
705
|
+
/** Levenshtein edit distance, capped by the length gap (mirrors
|
|
706
|
+
* `UniversalStylesAnalyzer.levenshteinDistance` / schema `codeAnalysis.ts`). */
|
|
707
|
+
function levenshteinDistance(a, b, maxDist) {
|
|
708
|
+
if (Math.abs(a.length - b.length) > maxDist)
|
|
709
|
+
return Infinity;
|
|
710
|
+
const m = a.length;
|
|
711
|
+
const n = b.length;
|
|
712
|
+
const dp = Array.from({ length: m + 1 }, () => Array(n + 1).fill(0));
|
|
713
|
+
for (let i = 0; i <= m; i++)
|
|
714
|
+
dp[i][0] = i;
|
|
715
|
+
for (let j = 0; j <= n; j++)
|
|
716
|
+
dp[0][j] = j;
|
|
717
|
+
for (let i = 1; i <= m; i++) {
|
|
718
|
+
for (let j = 1; j <= n; j++) {
|
|
719
|
+
dp[i][j] = a[i - 1] === b[j - 1]
|
|
720
|
+
? dp[i - 1][j - 1]
|
|
721
|
+
: 1 + Math.min(dp[i - 1][j - 1], dp[i - 1][j], dp[i][j - 1]);
|
|
722
|
+
}
|
|
723
|
+
}
|
|
724
|
+
return dp[m][n];
|
|
725
|
+
}
|
|
726
|
+
/** Full-catalog near-miss lookup over the `defined-classes` fact, ceiling 2 edits. */
|
|
727
|
+
function suggestDefinedClass(definedClasses) {
|
|
728
|
+
return (name) => {
|
|
729
|
+
const lower = name.toLowerCase();
|
|
730
|
+
let best = null;
|
|
731
|
+
let bestDist = Infinity;
|
|
732
|
+
for (const c of definedClasses) {
|
|
733
|
+
const dist = levenshteinDistance(lower, c.className.toLowerCase(), 2);
|
|
734
|
+
if (dist < bestDist) {
|
|
735
|
+
bestDist = dist;
|
|
736
|
+
best = { name: c.className, filePath: c.filePath };
|
|
737
|
+
}
|
|
738
|
+
}
|
|
739
|
+
return bestDist <= 2 ? best : null;
|
|
740
|
+
};
|
|
741
|
+
}
|
|
742
|
+
/** Filter class-usage rows down to candidates worth resolving — the static skip
|
|
743
|
+
* filters distinguishing definitions, known classes, and extraction artifacts
|
|
744
|
+
* from genuine consumptions of an unknown class. The `definedClasses` argument is
|
|
745
|
+
* always empty at the call site (the defined check is the deferred `definedSet`
|
|
746
|
+
* membership in `undefinedClassRule.analyze`), matching the legacy path. */
|
|
747
|
+
function collectUndefinedClassCandidates(classUsage, definedClasses) {
|
|
748
|
+
const seen = new Set();
|
|
749
|
+
const candidates = [];
|
|
750
|
+
const usageEntries = [];
|
|
751
|
+
for (const u of classUsage) {
|
|
752
|
+
const key = `${u.className}::${u.filePath}`;
|
|
753
|
+
if (seen.has(key))
|
|
754
|
+
continue;
|
|
755
|
+
seen.add(key);
|
|
756
|
+
if (u.unresolvable)
|
|
757
|
+
continue;
|
|
758
|
+
if (u.mechanism === 'class' && /\.(css|scss)$/i.test(u.filePath))
|
|
759
|
+
continue;
|
|
760
|
+
if (definedClasses.has(u.className))
|
|
761
|
+
continue;
|
|
762
|
+
if (/^[A-Z]/.test(u.className))
|
|
763
|
+
continue;
|
|
764
|
+
if (u.className.includes('('))
|
|
765
|
+
continue;
|
|
766
|
+
if (/^\d/.test(u.className))
|
|
767
|
+
continue;
|
|
768
|
+
if (u.className.startsWith('[') || u.className.startsWith(']'))
|
|
769
|
+
continue;
|
|
770
|
+
if (u.className.endsWith('[') || u.className.endsWith(']'))
|
|
771
|
+
continue;
|
|
772
|
+
if (/['`"${}?;!@#%^&*+=<>|\\,~]/.test(u.className))
|
|
773
|
+
continue;
|
|
774
|
+
usageEntries.push(u);
|
|
775
|
+
candidates.push(u.className);
|
|
776
|
+
}
|
|
777
|
+
return { candidates, usageEntries };
|
|
778
|
+
}
|
|
779
|
+
/** Flag unresolved class names: a near-miss of a defined class upgrades to a
|
|
780
|
+
* `severe` rename finding; a non-near-miss is a coverage gap that the legacy
|
|
781
|
+
* path reports off-ladder (`undefined-class-not-found`) — no `Finding` shape
|
|
782
|
+
* exists for it here, so the migrated rule drops it (the diagnostic stays on the
|
|
783
|
+
* legacy path until §15). */
|
|
784
|
+
function flagUnresolvedClasses(usageEntries, expander, report, suggest) {
|
|
785
|
+
const findings = [];
|
|
786
|
+
for (const u of usageEntries) {
|
|
787
|
+
const resolved = expander.resolve(u.className);
|
|
788
|
+
if (resolved.valid)
|
|
789
|
+
continue;
|
|
790
|
+
const nearest = suggest(expander.stripVariantPrefix(u.className));
|
|
791
|
+
if (nearest) {
|
|
792
|
+
findings.push(report(u.filePath, u.line, `Class "${u.className}" was not found in any read stylesheet or ` +
|
|
793
|
+
`utility set — did you mean "${nearest.name}"` +
|
|
794
|
+
`${nearest.filePath ? ` (defined in ${nearest.filePath})` : ''}?`, {
|
|
795
|
+
severity: 'severe',
|
|
796
|
+
rule: 'styles/undefined-class',
|
|
797
|
+
symbol: u.className,
|
|
798
|
+
resolution: {
|
|
799
|
+
action: 'use-defined-class',
|
|
800
|
+
summary: `Rename "${u.className}" to the defined class "${nearest.name}"${nearest.filePath ? ` (defined in ${nearest.filePath})` : ''}.`,
|
|
801
|
+
symbols: [nearest.name],
|
|
802
|
+
files: [u.filePath, nearest.filePath],
|
|
803
|
+
lines: [u.line],
|
|
804
|
+
},
|
|
805
|
+
}));
|
|
806
|
+
}
|
|
807
|
+
}
|
|
808
|
+
return findings;
|
|
809
|
+
}
|
|
810
|
+
function resolveUndefinedClassConfig(t) {
|
|
811
|
+
const tailwindClasses = t.tailwindClasses;
|
|
812
|
+
return { tailwindClasses: Array.isArray(tailwindClasses) ? tailwindClasses : undefined };
|
|
813
|
+
}
|
|
814
|
+
export const undefinedClassRule = {
|
|
815
|
+
id: 'styles/undefined-class',
|
|
816
|
+
analyzer: 'styles',
|
|
817
|
+
needs: { formats: ['css', 'scss', 'typescript', 'tsx', 'javascript'], facts: ['style-declarations', 'defined-classes', 'unread-style-sources'] },
|
|
818
|
+
severity: 'severe',
|
|
819
|
+
message: META['styles/undefined-class'].message,
|
|
820
|
+
docs: META['styles/undefined-class'].docs,
|
|
821
|
+
thresholds: META['styles/undefined-class'].thresholds,
|
|
822
|
+
samples: META['styles/undefined-class'].samples,
|
|
823
|
+
async analyze(ctx) {
|
|
824
|
+
const classUsage = flattenClassUsage(ctx.facts['style-declarations']);
|
|
825
|
+
const definedClasses = ctx.facts['defined-classes'];
|
|
826
|
+
// The parity test drives the rule with a raw ctx that omits the corpus fact;
|
|
827
|
+
// default it so the rule degrades to a plain undefined-class result there.
|
|
828
|
+
const unread = ctx.facts['unread-style-sources'] ?? [];
|
|
829
|
+
const { usageEntries } = collectUndefinedClassCandidates(classUsage, new Set());
|
|
830
|
+
const definedSet = new Set(definedClasses.map((d) => d.className));
|
|
831
|
+
const unresolved = usageEntries.filter((u) => !definedSet.has(u.className));
|
|
832
|
+
const expander = getTailwindExpander();
|
|
833
|
+
const cfg = resolveUndefinedClassConfig(ctx.thresholds);
|
|
834
|
+
await expander.init({
|
|
835
|
+
projectRoot: undefined,
|
|
836
|
+
useProjectConfig: true,
|
|
837
|
+
customClasses: cfg.tailwindClasses ? new Set(cfg.tailwindClasses) : undefined,
|
|
838
|
+
});
|
|
839
|
+
const findings = flagUnresolvedClasses(unresolved, expander, makeFinding, suggestDefinedClass(definedClasses));
|
|
840
|
+
// Spec 45 R5 — "undefined" reads as "not defined in any *read* stylesheet":
|
|
841
|
+
// attach the unread-source list so a near-miss typo names the dialect(s) the
|
|
842
|
+
// indexer could not parse, rather than asserting the class truly absent.
|
|
843
|
+
if (unread.length > 0) {
|
|
844
|
+
const incompleteDefinitions = unread.map((s) => s.reason ? `${s.filePath} (${s.reason})` : s.filePath);
|
|
845
|
+
for (const f of findings) {
|
|
846
|
+
f.details = { incompleteDefinitions };
|
|
847
|
+
}
|
|
848
|
+
}
|
|
849
|
+
return findings;
|
|
850
|
+
},
|
|
851
|
+
};
|
|
852
|
+
/** The eight pure-data styles rules this slice migrates, in registry order.
|
|
853
|
+
* `undefined-class` is exported separately (`undefinedClassRule`) — its
|
|
854
|
+
* `needs` adds the corpus `defined-classes` fact, so it cannot share this
|
|
855
|
+
* `StylesNeeds` array's tuple type. `value-drift` (Spec 69 R4) likewise reads
|
|
856
|
+
* the derived `color-values` fact, so the array's element type is the union of
|
|
857
|
+
* the two `Needs` aliases rather than a single one. */
|
|
858
|
+
export const stylesRules = [
|
|
859
|
+
valueDrift,
|
|
860
|
+
offScale,
|
|
861
|
+
tokenBypass,
|
|
862
|
+
mechanismFragmentation,
|
|
863
|
+
mechanismMixing,
|
|
864
|
+
declarationSetSimilarity,
|
|
865
|
+
zIndexSprawl,
|
|
866
|
+
zIndexSingleton,
|
|
867
|
+
];
|
|
868
|
+
//# sourceMappingURL=styles.js.map
|