Skip to content

Commit ed383ac

Browse files
committed
chore(format): apply oxfmt to .git-hooks/pre-commit.mts + xport.schema.json
CI surfaced two files with format drift after the prior commits. Run `pnpm exec oxfmt --write` over both. Whitespace + structural JSON formatting only — no functional change.
1 parent 812bceb commit ed383ac

2 files changed

Lines changed: 7 additions & 24 deletions

File tree

.git-hooks/pre-commit.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ const main = (): number => {
242242
}
243243
}
244244
out(
245-
"Use `getDefaultLogger()` from `@socketsecurity/lib/logger`. " +
245+
'Use `getDefaultLogger()` from `@socketsecurity/lib/logger`. ' +
246246
'For documentation lines that need the literal call, append ' +
247247
'the marker `# socket-hook: allow logger`.',
248248
)

xport.schema.json

Lines changed: 6 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@
44
"title": "xport lock-step manifest",
55
"description": "Unified lock-step manifest shared across Socket repos. One schema, all cases — `kind` discriminator on each row selects which flavor of lock-step applies.",
66
"type": "object",
7-
"required": [
8-
"rows"
9-
],
7+
"required": ["rows"],
108
"properties": {
119
"$schema": {
1210
"type": "string"
@@ -32,10 +30,7 @@
3230
"^(.*)$": {
3331
"additionalProperties": false,
3432
"type": "object",
35-
"required": [
36-
"submodule",
37-
"repo"
38-
],
33+
"required": ["submodule", "repo"],
3934
"properties": {
4035
"submodule": {
4136
"description": "Submodule path, relative to repo root.",
@@ -57,9 +52,7 @@
5752
"^(.*)$": {
5853
"additionalProperties": false,
5954
"type": "object",
60-
"required": [
61-
"path"
62-
],
55+
"required": ["path"],
6356
"properties": {
6457
"path": {
6558
"description": "Path to the port's root directory, relative to repo root.",
@@ -212,13 +205,7 @@
212205
"additionalProperties": false,
213206
"description": "A behavioral feature reimplemented locally to match upstream behavior. Three-pillar validation: code patterns, test patterns, fixture snapshots.",
214207
"type": "object",
215-
"required": [
216-
"kind",
217-
"id",
218-
"upstream",
219-
"criticality",
220-
"local_area"
221-
],
208+
"required": ["kind", "id", "upstream", "criticality", "local_area"],
222209
"properties": {
223210
"kind": {
224211
"const": "feature-parity",
@@ -273,9 +260,7 @@
273260
"additionalProperties": false,
274261
"description": "Golden-input verification. Prefer snapshot-based diffs over hardcoded counts (brittleness lesson from sdxgen's lock-step-features).",
275262
"type": "object",
276-
"required": [
277-
"fixture_path"
278-
],
263+
"required": ["fixture_path"],
279264
"properties": {
280265
"fixture_path": {
281266
"type": "string"
@@ -425,9 +410,7 @@
425410
"additionalProperties": false,
426411
"description": "Per-port status for a lang-parity row. `implemented` = port meets assertions; `opt-out` = port consciously skips, requires non-empty `reason`.",
427412
"type": "object",
428-
"required": [
429-
"status"
430-
],
413+
"required": ["status"],
431414
"properties": {
432415
"status": {
433416
"anyOf": [

0 commit comments

Comments
 (0)