test: extract shared fixtures, drop knip carve-outs (#627)
* refactor(domain): consolidate canonical ordering and digest helpers (#624) * refactor(domain): consolidate canonical ordering and digest helpers Single owner for code-point ordering (domain/canonicalOrdering.ts) and canonical JSON digests (domain/comparisonSemantics.ts). Delete all local compareCodePoints/compareText/digestCanonical duplicates and migrate every importer. No re-export shims. * fix(ci): allow slower real browser startup * chore(config): remove dead eslint, dedupe scripts, cacheable turbo tasks Delete eslint.config.js (oxlint is the linter), drop lint:dead alias, pin smol-toml, fold jscpd/scan:todos into check:pr, make test:run cacheable, align oxlint ignores. * fix(config): hash all test inputs for cached runs * docs: fix architecture diagram and pretty-print tool catalog Drop dangling REPLAY edges, add dotnet/reference/error/evaluation nodes. Emit 2-space JSON from the catalog generator and regenerate. * test: extract shared fixtures, drop knip carve-outs Dedupe android/apple session tests, bundler adapter headers, and reconstruction helpers into tests/support fixtures. Delete unused type aliases and the knip ignoreIssues block. Lower jscpd threshold 2.7 to 2.5.
This commit is contained in:
@@ -43,7 +43,6 @@ export const iosManifestSchema = z.strictObject({
|
||||
ui_required_device_capabilities: z.array(z.string()).default([]),
|
||||
app_permissions: z.array(z.string()).default([]),
|
||||
});
|
||||
export type IosManifest = z.infer<typeof iosManifestSchema>;
|
||||
/** Signing information. */
|
||||
export const signingInfoSchema = z.strictObject({
|
||||
is_signed: z.boolean().default(false),
|
||||
|
||||
@@ -18,7 +18,6 @@ export const objcPropertyAttributeSchema = z.strictObject({
|
||||
is_copy: z.boolean().default(false),
|
||||
is_strong: z.boolean().default(false),
|
||||
});
|
||||
export type ObjcPropertyAttribute = z.infer<typeof objcPropertyAttributeSchema>;
|
||||
|
||||
/** Objective-C method metadata. */
|
||||
export const objcMethodSchema = z.strictObject({
|
||||
@@ -39,7 +38,6 @@ export const objcPropertySchema = z.strictObject({
|
||||
getter: z.string().nullable(),
|
||||
setter: z.string().nullable(),
|
||||
});
|
||||
export type ObjcProperty = z.infer<typeof objcPropertySchema>;
|
||||
|
||||
/** Objective-C protocol metadata. */
|
||||
export const objcProtocolSchema = z.strictObject({
|
||||
@@ -48,7 +46,6 @@ export const objcProtocolSchema = z.strictObject({
|
||||
optional_methods: z.array(objcMethodSchema).default([]),
|
||||
properties: z.array(objcPropertySchema).default([]),
|
||||
});
|
||||
export type ObjcProtocol = z.infer<typeof objcProtocolSchema>;
|
||||
|
||||
/** Objective-C class metadata. */
|
||||
export const objcClassSchema = z.strictObject({
|
||||
@@ -106,7 +103,6 @@ export const nativeMetadataDecodeSchema = z.strictObject({
|
||||
status: z.enum(["decoded", "partial", "unsupported", "invalid"]),
|
||||
reason: z.string().nullable(),
|
||||
});
|
||||
export type NativeMetadataDecode = z.infer<typeof nativeMetadataDecodeSchema>;
|
||||
|
||||
/** Evidence attached to one dispatch edge or metadata record. */
|
||||
export const nativeMetadataEvidenceSchema = z.strictObject({
|
||||
@@ -142,7 +138,6 @@ export const objcIvarSchema = z.strictObject({
|
||||
decode: nativeMetadataDecodeSchema,
|
||||
evidence: z.array(nativeMetadataEvidenceSchema).min(1),
|
||||
});
|
||||
export type ObjcIvar = z.infer<typeof objcIvarSchema>;
|
||||
|
||||
/** Encoded Objective-C protocol declaration with required and optional method facts. */
|
||||
export const objcProtocolRecordSchema = z.strictObject({
|
||||
@@ -179,7 +174,6 @@ export const swiftConformanceSchema = z.strictObject({
|
||||
decode: nativeMetadataDecodeSchema,
|
||||
evidence: z.array(nativeMetadataEvidenceSchema).min(1),
|
||||
});
|
||||
export type SwiftConformance = z.infer<typeof swiftConformanceSchema>;
|
||||
|
||||
/** A typed slot in a Swift protocol witness table or class vtable. */
|
||||
export const swiftDispatchSlotSchema = z.strictObject({
|
||||
@@ -194,7 +188,6 @@ export const swiftDispatchSlotSchema = z.strictObject({
|
||||
decode: nativeMetadataDecodeSchema,
|
||||
evidence: z.array(nativeMetadataEvidenceSchema).min(1),
|
||||
});
|
||||
export type SwiftDispatchSlot = z.infer<typeof swiftDispatchSlotSchema>;
|
||||
|
||||
/** Signed-relative pointer as stored in an Apple binary metadata structure. */
|
||||
export const relativePointerSchema = z.strictObject({
|
||||
@@ -206,7 +199,6 @@ export const relativePointerSchema = z.strictObject({
|
||||
decode: nativeMetadataDecodeSchema,
|
||||
evidence: z.array(nativeMetadataEvidenceSchema).min(1),
|
||||
});
|
||||
export type RelativePointer = z.infer<typeof relativePointerSchema>;
|
||||
|
||||
/** A raw Swift-mangled symbol when a provider has not decoded its metadata. */
|
||||
export const swiftSymbolSchema = z.strictObject({
|
||||
@@ -225,9 +217,6 @@ export const nativeMetadataCoverageSchema = z.strictObject({
|
||||
examined: z.number().int().nonnegative(),
|
||||
decoded: z.number().int().nonnegative(),
|
||||
});
|
||||
export type NativeMetadataCoverage = z.infer<
|
||||
typeof nativeMetadataCoverageSchema
|
||||
>;
|
||||
|
||||
/** Swift declaration kind. */
|
||||
export const swiftDeclKindSchema = z.enum([
|
||||
@@ -250,7 +239,6 @@ export const swiftAccessLevelSchema = z.enum([
|
||||
"public",
|
||||
"open",
|
||||
]);
|
||||
export type SwiftAccessLevel = z.infer<typeof swiftAccessLevelSchema>;
|
||||
/** Swift declaration metadata. */
|
||||
export const swiftDeclSchema = z.strictObject({
|
||||
kind: swiftDeclKindSchema,
|
||||
@@ -275,8 +263,6 @@ export const dbOperationSchema = z.enum([
|
||||
"export",
|
||||
"import",
|
||||
]);
|
||||
export type DbOperation = z.infer<typeof dbOperationSchema>;
|
||||
|
||||
/** Database save operation result. */
|
||||
export const dbSaveResultSchema = z.strictObject({
|
||||
operation: dbOperationSchema,
|
||||
@@ -322,9 +308,6 @@ export const nativeDispatchMetadataResultSchema = z.strictObject({
|
||||
analysis_profile_digest: z.string().min(1).nullable(),
|
||||
result: objcSwiftMetadataSchema,
|
||||
});
|
||||
export type NativeDispatchMetadataResult = z.infer<
|
||||
typeof nativeDispatchMetadataResultSchema
|
||||
>;
|
||||
|
||||
/** Decode only facts visible in a provider's existing name inventory. */
|
||||
export const inspectNativeDispatchMetadata = (
|
||||
|
||||
Reference in New Issue
Block a user