-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoxlint.log
More file actions
712 lines (662 loc) · 29.6 KB
/
oxlint.log
File metadata and controls
712 lines (662 loc) · 29.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
x oxc(no-barrel-file): Barrel file detected, 844 modules are loaded which exceeds the threshold of 100.
,-[src/index.ts:1:15]
1 | export * from "./schema"
: ^^^^^|^^^^
: `-- 90 modules
2 | export * from "./merge"
: ^^^^|^^^^
: `-- 92 modules
3 | export * from "./resolution"
: ^^^^^^^|^^^^^^
: `-- 114 modules
4 | export * from "./model"
: ^^^^|^^^^
: `-- 92 modules
5 | export * from "./builder"
: ^^^^^|^^^^^
: `-- 114 modules
6 | export * from "./serializer"
: ^^^^^^^|^^^^^^
: `-- 95 modules
7 | export * from "./importer"
: ^^^^^^|^^^^^
: `-- 8 modules
8 | export * from "./resolver"
: ^^^^^^|^^^^^
: `-- 114 modules
9 | export * from "./simulation"
: ^^^^^^^|^^^^^^
: `-- 116 modules
10 | export { ConfigBuilder } from "./builder/ConfigBuilder"
`----
help: Consider importing directly from the specific modules instead of using `export *` or `import *`.
Loading 844 modules may be slow for runtimes and bundlers.
note: See: https://marvinh.dev/blog/speeding-up-javascript-ecosystem-part-7
x vitest(no-conditional-expect): Unexpected conditional expect
,-[tests/unit/remote-extends-normalization.test.ts:55:7]
54 | if (Array.isArray(extendsValue)) {
55 | expect(extendsValue).not.toHaveLength(5)
: ^^^^^^
56 | expect(extendsValue).not.toStrictEqual([".", "b", "a", "s", "e"])
`----
help: Avoid calling `expect` conditionally
x vitest(no-conditional-expect): Unexpected conditional expect
,-[tests/unit/remote-extends-normalization.test.ts:56:7]
55 | expect(extendsValue).not.toHaveLength(5)
56 | expect(extendsValue).not.toStrictEqual([".", "b", "a", "s", "e"])
: ^^^^^^
57 | }
`----
help: Avoid calling `expect` conditionally
x vitest(no-conditional-expect): Unexpected conditional expect
,-[tests/unit/reference-array-flattening.test.ts:29:7]
28 | if (Array.isArray(testJob?.script)) {
29 | expect(testJob.script).toStrictEqual([
: ^^^^^^
30 | "echo 'first'",
`----
help: Avoid calling `expect` conditionally
x vitest(no-conditional-expect): Unexpected conditional expect
,-[tests/unit/reference-array-flattening.test.ts:63:7]
62 | if (Array.isArray(testJob?.script)) {
63 | expect(testJob.script).toStrictEqual([
: ^^^^^^
64 | "echo 'before'",
`----
help: Avoid calling `expect` conditionally
x vitest(no-conditional-expect): Unexpected conditional expect
,-[tests/unit/reference-array-flattening.test.ts:102:7]
101 | if (Array.isArray(testJob?.before_script)) {
102 | expect(testJob.before_script).toStrictEqual([
: ^^^^^^
103 | "echo 'load secrets'",
`----
help: Avoid calling `expect` conditionally
x vitest(no-conditional-expect): Unexpected conditional expect
,-[tests/unit/reference-array-flattening.test.ts:112:7]
111 | if (Array.isArray(testJob.after_script)) {
112 | expect(testJob.after_script).toStrictEqual([
: ^^^^^^
113 | "echo 'custom cleanup'",
`----
help: Avoid calling `expect` conditionally
x vitest(expect-expect): Test has no assertions
,-[tests/integration/gitlab-templates/infrastructure.test.ts:16:3]
15 | describe("GitLab Templates: Infrastructure", () => {
16 | it("should handle OpenTofu.latest template", async () => {
: ^^
17 | const yaml = loadLocalTemplate(
`----
help: Add assertion(s) in this Test
x vitest(expect-expect): Test has no assertions
,-[tests/integration/gitlab-templates/infrastructure.test.ts:24:3]
23 |
24 | it("should handle Code-Quality template", async () => {
: ^^
25 | const yaml = loadLocalTemplate(testFilesDir, "Code-Quality.gitlab-ci.yml")
`----
help: Add assertion(s) in this Test
x vitest(expect-expect): Test has no assertions
,-[tests/integration/gitlab-templates/infrastructure.test.ts:29:3]
28 |
29 | it("should handle Getting-Started template", async () => {
: ^^
30 | const yaml = loadLocalTemplate(
`----
help: Add assertion(s) in this Test
x import(no-named-as-default-member): "yaml" also has a named export "Type"
,-[src/importer/yaml-parser/reference.ts:7:33]
6 | */
7 | export const referenceTag = new yaml.Type("!reference", {
: ^^^^^^^^^
8 | kind: "sequence",
`----
help: Check if you meant to write `import { Type } from "js-yaml"`
x import(no-named-as-default-member): "yaml" also has a named export "Type"
,-[src/importer/yaml-parser/reference.ts:17:43]
16 | */
17 | export const referenceTagResolvable = new yaml.Type("!reference", {
: ^^^^^^^^^
18 | kind: "sequence",
`----
help: Check if you meant to write `import { Type } from "js-yaml"`
x unicorn(prefer-module): Do not use "__dirname".
,-[tests/integration/multi-document-yaml/multi-document-yaml.test.ts:17:18]
16 |
17 | const TEST_DIR = __dirname
: ^^^^^^^^^
18 | const TEST_FILES_DIR = join(TEST_DIR, "test_files")
`----
help: Prefer ES modules over CommonJS globals.
x vitest(no-conditional-expect): Unexpected conditional expect
,-[tests/integration/multi-document-yaml/opentofu-component.test.ts:85:7]
84 | const inputKeys = Object.keys(inputs)
85 | expect(inputKeys.length).toBeGreaterThan(0)
: ^^^^^^
86 |
`----
help: Avoid calling `expect` conditionally
x vitest(no-conditional-expect): Unexpected conditional expect
,-[tests/integration/multi-document-yaml/opentofu-component.test.ts:88:7]
87 | // Check for some key inputs
88 | expect(inputKeys).toContain("as")
: ^^^^^^
89 | expect(inputKeys).toContain("stage")
`----
help: Avoid calling `expect` conditionally
x vitest(no-conditional-expect): Unexpected conditional expect
,-[tests/integration/multi-document-yaml/opentofu-component.test.ts:89:7]
88 | expect(inputKeys).toContain("as")
89 | expect(inputKeys).toContain("stage")
: ^^^^^^
90 | expect(inputKeys).toContain("opentofu_version")
`----
help: Avoid calling `expect` conditionally
x vitest(no-conditional-expect): Unexpected conditional expect
,-[tests/integration/multi-document-yaml/opentofu-component.test.ts:90:7]
89 | expect(inputKeys).toContain("stage")
90 | expect(inputKeys).toContain("opentofu_version")
: ^^^^^^
91 | }
`----
help: Avoid calling `expect` conditionally
x unicorn(prefer-module): Do not use "__dirname".
,-[tests/integration/multi-document-yaml/opentofu-component.test.ts:17:18]
16 |
17 | const TEST_DIR = __dirname
: ^^^^^^^^^
18 | const TEST_FILES_DIR = join(TEST_DIR, "test_files")
`----
help: Prefer ES modules over CommonJS globals.
x unicorn(consistent-function-scoping): Function `isTemplate` does not capture any variables from its parent scope
,-[src/simulation/pipeline-simulator.ts:146:11]
145 | // Helper to check if a job is a template (starts with .)
146 | const isTemplate = (name: string): boolean => name.startsWith(".")
: ^^^^^^^^^^
147 |
`----
help: Move `isTemplate` to the outer scope to avoid recreating it on every call.
x unicorn(consistent-function-scoping): Function `shouldIncludeJob` does not capture any variables from its parent scope
,-[src/simulation/pipeline-simulator.ts:149:11]
148 | // Helper to check if a job should be included in simulation
149 | const shouldIncludeJob = (job: JobDefinitionNormalized): boolean => {
: ^^^^^^^^^^^^^^^^
150 | // A job must have at least one of these to be executable:
`----
help: Move `shouldIncludeJob` to the outer scope to avoid recreating it on every call.
x eslint(complexity): function has a complexity of 21. Maximum allowed is 20.
,-[src/simulation/pipeline-simulator.ts:149:30]
148 | // Helper to check if a job should be included in simulation
149 | ,-> const shouldIncludeJob = (job: JobDefinitionNormalized): boolean => {
150 | | // A job must have at least one of these to be executable:
151 | | // - script or run (actual commands to execute)
152 | | // - trigger (child pipeline or multi-project pipeline)
153 | | // - needs with pipeline keyword (parent-child pipeline trigger)
154 | | // - release (create a GitLab release)
155 | | // - pages (GitLab Pages deployment)
156 | | if (job.script ?? job.run) {
157 | | return true
158 | | }
159 | | if (job.trigger) {
160 | | return true
161 | | }
162 | | if (job.release) {
163 | | return true
164 | | }
165 | | if (job.pages) {
166 | | return true
167 | | }
168 | |
169 | | // Check if this is a child pipeline trigger via needs
170 | | if (job.needs && Array.isArray(job.needs)) {
171 | | const hasPipelineTrigger = job.needs.some((need) => {
172 | | // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
173 | | if (typeof need === "object" && need !== null) {
174 | | return "pipeline" in need
175 | | }
176 | | return false
177 | | })
178 | | if (hasPipelineTrigger) {
179 | | return true
180 | | }
181 | | }
182 | |
183 | | // Special case: Jobs that have a stage defined (not using default 'test')
184 | | // are likely real jobs where the script comes from remote includes
185 | | // Include them if they have any content beyond just the stage
186 | | if (job.stage && job.stage !== "test") {
187 | | // If the job has variables, rules, or other config, it's likely a real job
188 | | // being configured locally with the actual implementation in a remote include
189 | | const hasConfig =
190 | | (job.variables && Object.keys(job.variables).length > 0) ??
191 | | (job.rules && job.rules.length > 0) ??
192 | | job.image ??
193 | | job.before_script ??
194 | | job.after_script ??
195 | | job.tags ??
196 | | job.only ??
197 | | job.except
198 | | if (hasConfig) {
199 | | return true
200 | | }
201 | | }
202 | |
203 | | // Jobs with only variables/stage/tags/etc and no other content
204 | | // are pure template jobs that are meant to be extended
205 | | return false
206 | `-> }
207 |
`----
x unicorn(prefer-ternary): Prefer ternary expressions over simple `if-else` statements.
,-[src/simulation/pipeline-simulator.ts:87:9]
86 | for (const [key, val] of Object.entries(plain.variables)) {
87 | ,-> if (val && typeof val === "object" && "value" in val) {
88 | | globalVariables[key] = String(val.value)
89 | | } else {
90 | | globalVariables[key] = String(val)
91 | `-> }
92 | }
`----
help: Rewrite this `if`/`else` as a ternary expression.
x unicorn(prefer-ternary): Prefer ternary expressions over simple `if-else` statements.
,-[src/simulation/pipeline-simulator.ts:284:9]
283 | // JobVariable can be string | number | boolean | { value: string, expand?: boolean }
284 | ,-> if (val && typeof val === "object" && "value" in val) {
285 | | jobVariables[key] = String(val.value)
286 | | } else {
287 | | jobVariables[key] = String(val)
288 | `-> }
289 | }
`----
help: Rewrite this `if`/`else` as a ternary expression.
x unicorn(no-immediate-mutation): Do not call `push()` immediately after initializing an array.
,-[src/importer/ts-factory/generator.ts:72:5]
71 | // Add import
72 | statements.push(this.createImport())
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
73 |
`----
help: Move the elements from `push()` into the array initializer.
x eslint(class-methods-use-this): Expected method `createBodyStatements` to have this.
,-[src/importer/ts-factory/generator.ts:148:11]
147 | */
148 | private createBodyStatements(
: ^^^^^^^^^^^^^^^^^^^^
149 | topLevel: {
`----
help: Consider converting method `createBodyStatements` to a static method.
x vitest(prefer-hooks-in-order): Test hooks are not in a consistent order.
,-[tests/integration/cli/remote-includes.test.ts:157:3]
156 | beforeAll(() => server.listen({ onUnhandledRequest: "error" }))
157 | afterAll(() => server.close())
: ^^^^^^^^^^^^^^^|^^^^^^^^^^^^^^
: `-- "afterEach" hook should be called before this
158 | afterEach(() => server.resetHandlers())
: ^^^^^^^^^^^^^^^^^^^|^^^^^^^^^^^^^^^^^^^
: `-- this should be moved to before the "afterAll" hook
159 | it("should resolve and visualize YAML with remote include via HTTP", async () => {
`----
help: "afterEach" hooks should be before any "afterAll" hooks
x unicorn(no-empty-file): Empty files are not allowed.
,-[tests/unit/fixtures/no-export.mjs:1:1]
1 | ,-> // This file intentionally doesn't export anything
2 | `-> // Used to test error handling when no extendConfig is exported
3 |
`----
help: Delete this file or add some code to it.
x unicorn(filename-case): Filename should be in kebab-case
,-[src/builder/JobBuilder.ts:1:1]
1 | import type {
: ^
2 | Artifacts,
`----
help: Rename the file to 'job-builder.ts'
x eslint(complexity): function `loadChildPipelineConfig` has a complexity of 22. Maximum allowed is 20.
,-[src/resolution/child-pipeline.ts:48:1]
47 | */
48 | ,-> function loadChildPipelineConfig(
49 | | triggerInclude: unknown,
50 | | basePath?: string
51 | | ): { config: ConfigBuilder; source: string } | null {
52 | | if (!triggerInclude || typeof triggerInclude !== "object") {
53 | | return null
54 | | }
55 | |
56 | | const include = triggerInclude as Record<string, unknown>
57 | |
58 | | // Handle local file includes
59 | | if ("local" in include && typeof include.local === "string") {
60 | | try {
61 | | const filePath = basePath
62 | | ? resolve(basePath, include.local)
63 | | : include.local
64 | | const yamlContent = readFileSync(filePath, "utf-8")
65 | | const parsed = parseYaml(yamlContent)
66 | |
67 | | const config = new ConfigBuilder()
68 | |
69 | | // Handle empty or null parsed result
70 | | // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
71 | | if (!parsed || typeof parsed !== "object") {
72 | | return { config, source: include.local }
73 | | }
74 | |
75 | | // Add stages
76 | | if (parsed.stages) {
77 | | config.stages(
78 | | ...((Array.isArray(parsed.stages)
79 | | ? parsed.stages
80 | | : [parsed.stages]) as string[])
81 | | )
82 | | }
83 | |
84 | | // Add jobs and templates
85 | | for (const [name, definition] of Object.entries(parsed)) {
86 | | if (
87 | | typeof definition === "object" &&
88 | | definition !== null &&
89 | | ![
90 | | "stages",
91 | | "variables",
92 | | "workflow",
93 | | "include",
94 | | "default",
95 | | "spec",
96 | | ].includes(name)
97 | | ) {
98 | | try {
99 | | if (name.startsWith(".")) {
100 | | config.template(name, definition)
101 | | } else {
102 | | config.job(name, definition)
103 | | }
104 | | } catch {
105 | | // Skip invalid jobs
106 | | }
107 | | }
108 | | }
109 | |
110 | | return { config, source: include.local }
111 | | } catch {
112 | | return null
113 | | }
114 | | }
115 | |
116 | | // Handle artifact includes (can't be loaded at build time)
117 | | if ("artifact" in include && typeof include.artifact === "string") {
118 | | return {
119 | | config: new ConfigBuilder(),
120 | | source: `artifact:${include.artifact}`,
121 | | }
122 | | }
123 | |
124 | | // Handle array of includes
125 | | if (Array.isArray(include)) {
126 | | for (const item of include) {
127 | | const result = loadChildPipelineConfig(item, basePath)
128 | | if (result) {
129 | | return result
130 | | }
131 | | }
132 | | }
133 | |
134 | | return null
135 | `-> }
136 |
`----
x import(no-cycle): Dependency cycle detected
,-[src/resolution/child-pipeline.ts:4:31]
3 |
4 | import { ConfigBuilder } from "../builder"
: ^^^^^^^^^^^^
5 | import { parseYaml } from "../importer/parser"
`----
help: Refactor to remove the cycle. Consider extracting shared code into a separate module that both files can import.
note: These paths form a cycle:
╭──▶ ../builder (src/builder/index.ts)
│ ⬇ imports
│ ./ConfigBuilder (src/builder/ConfigBuilder.ts)
│ ⬇ imports
│ ../resolution/visualization (src/resolution/visualization.ts)
│ ⬇ imports
│ ./child-pipeline (src/resolution/child-pipeline.ts)
╰─────────╯ imports the current file
x vitest(require-mock-type-parameters): Missing type parameters on mock function call
,-[tests/unit/dynamic-include.test.ts:10:16]
9 | vi.mock(import("tinyglobby"), () => ({
10 | globSync: vi.fn(),
: ^^
11 | }))
`----
help: Add a type parameter to the mock function, e.g. `vi.fn<() => void>()`.
x vitest(require-mock-type-parameters): Missing type parameters on mock function call
,-[tests/unit/dynamic-include.test.ts:57:33]
56 | it("should call extendConfig for each matched file", async () => {
57 | const mockExtendConfig = vi.fn((cfg: ConfigBuilder) => {
: ^^
58 | cfg.job("included-job", { script: ["echo included"] })
`----
help: Add a type parameter to the mock function, e.g. `vi.fn<() => void>()`.
x vitest(require-mock-type-parameters): Missing type parameters on mock function call
,-[tests/unit/dynamic-include.test.ts:107:33]
106 | it("should work with multiple globs", async () => {
107 | const mockExtendConfig = vi.fn()
: ^^
108 |
`----
help: Add a type parameter to the mock function, e.g. `vi.fn<() => void>()`.
x vitest(require-mock-type-parameters): Missing type parameters on mock function call
,-[tests/unit/dynamic-include.test.ts:136:33]
135 | it("should support default export", async () => {
136 | const mockExtendConfig = vi.fn((cfg: ConfigBuilder) => {
: ^^
137 | cfg.job("default-job", { script: ["echo default"] })
`----
help: Add a type parameter to the mock function, e.g. `vi.fn<() => void>()`.
x vitest(require-mock-type-parameters): Missing type parameters on mock function call
,-[tests/unit/dynamic-include.test.ts:155:28]
154 | it("should prefer default export over named extendConfig", async () => {
155 | const mockDefault = vi.fn()
: ^^
156 | const mockNamed = vi.fn()
`----
help: Add a type parameter to the mock function, e.g. `vi.fn<() => void>()`.
x vitest(require-mock-type-parameters): Missing type parameters on mock function call
,-[tests/unit/dynamic-include.test.ts:156:26]
155 | const mockDefault = vi.fn()
156 | const mockNamed = vi.fn()
: ^^
157 |
`----
help: Add a type parameter to the mock function, e.g. `vi.fn<() => void>()`.
x oxc(no-barrel-file): Barrel file detected, 230 modules are loaded which exceeds the threshold of 100.
,-[src/builder/index.ts:1:15]
1 | export * from "./ConfigBuilder"
: ^^^^^^^^|^^^^^^^^
: `-- 114 modules
2 | export * from "./JobBuilder"
: ^^^^^^^|^^^^^^
: `-- 114 modules
`----
help: Consider importing directly from the specific modules instead of using `export *` or `import *`.
Loading 230 modules may be slow for runtimes and bundlers.
note: See: https://marvinh.dev/blog/speeding-up-javascript-ecosystem-part-7
x import(no-cycle): Dependency cycle detected
,-[src/builder/index.ts:1:15]
1 | export * from "./ConfigBuilder"
: ^^^^^^^^^^^^^^^^^
2 | export * from "./JobBuilder"
`----
help: Refactor to remove the cycle. Consider extracting shared code into a separate module that both files can import.
note: These paths form a cycle:
╭──▶ ./ConfigBuilder (src/builder/ConfigBuilder.ts)
│ ⬇ imports
│ ../resolution/visualization (src/resolution/visualization.ts)
│ ⬇ imports
│ ./child-pipeline (src/resolution/child-pipeline.ts)
│ ⬇ imports
│ ../builder (src/builder/index.ts)
╰─────────╯ imports the current file
x oxc(no-barrel-file): Barrel file detected, 322 modules are loaded which exceeds the threshold of 100.
,-[src/resolution/index.ts:1:15]
1 | export * from "./graph"
: ^^^^|^^^^
: `-- 91 modules
2 | export * from "./visualization"
: ^^^^^^^^|^^^^^^^^
: `-- 114 modules
3 | export * from "./child-pipeline"
: ^^^^^^^^^|^^^^^^^^
: `-- 114 modules
`----
help: Consider importing directly from the specific modules instead of using `export *` or `import *`.
Loading 322 modules may be slow for runtimes and bundlers.
note: See: https://marvinh.dev/blog/speeding-up-javascript-ecosystem-part-7
x oxc(no-barrel-file): Barrel file detected, 210 modules are loaded which exceeds the threshold of 100.
,-[src/resolver/index.ts:1:15]
1 | export * from "./builder"
: ^^^^^|^^^^^
: `-- 94 modules
2 | export * from "./cli"
: ^^^|^^^
: `-- 114 modules
`----
help: Consider importing directly from the specific modules instead of using `export *` or `import *`.
Loading 210 modules may be slow for runtimes and bundlers.
note: See: https://marvinh.dev/blog/speeding-up-javascript-ecosystem-part-7
x oxc(no-barrel-file): Barrel file detected, 201 modules are loaded which exceeds the threshold of 100.
,-[src/simulation/index.ts:1:15]
1 | export * from "./pipeline-simulator"
: ^^^^^^^^^^^|^^^^^^^^^^
: `-- 115 modules
2 | export * from "./rule-evaluator"
: ^^^^^^^^^|^^^^^^^^
: `-- 84 modules
`----
help: Consider importing directly from the specific modules instead of using `export *` or `import *`.
Loading 201 modules may be slow for runtimes and bundlers.
note: See: https://marvinh.dev/blog/speeding-up-javascript-ecosystem-part-7
x unicorn(filename-case): Filename should be in kebab-case
,-[src/builder/ConfigBuilder.ts:1:1]
1 | import fs from "node:fs/promises"
: ^
2 | import path from "node:path"
`----
help: Rename the file to 'config-builder.ts'
x import(no-cycle): Dependency cycle detected
,-[src/builder/ConfigBuilder.ts:10:43]
9 | import type { ExtendsGraphNode } from "../resolution/graph"
10 | import type { VisualizationOptions } from "../resolution/visualization"
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
11 | import {
`----
help: Refactor to remove the cycle. Consider extracting shared code into a separate module that both files can import.
note: These paths form a cycle:
╭──▶ ../resolution/visualization (src/resolution/visualization.ts)
│ ⬇ imports
│ ../resolver/cli (src/resolver/cli.ts)
│ ⬇ imports
│ ../builder/ConfigBuilder (src/builder/ConfigBuilder.ts)
╰─────────╯ imports the current file
x oxc(no-barrel-file): Barrel file detected, 815 modules are loaded which exceeds the threshold of 100.
,-[src/schema/index.ts:1:15]
1 | export * from "./base"
: ^^^^|^^^
: `-- 80 modules
2 | export * from "./defaults"
: ^^^^^^|^^^^^
: `-- 84 modules
3 | export * from "./errors"
: ^^^^^|^^^^
: `-- 79 modules
4 | export * from "./include"
: ^^^^^|^^^^^
: `-- 84 modules
5 | export * from "./interpolation"
: ^^^^^^^^|^^^^^^^^
: `-- 79 modules
6 | export * from "./job"
: ^^^|^^^
: `-- 83 modules
7 | export * from "./policies"
: ^^^^^^|^^^^^
: `-- 79 modules
8 | export * from "./spec"
: ^^^^|^^^
: `-- 79 modules
9 | export * from "./steps"
: ^^^^|^^^^
: `-- 79 modules
10 | export * from "./workflow"
: ^^^^^^|^^^^^
: `-- 79 modules
11 |
`----
help: Consider importing directly from the specific modules instead of using `export *` or `import *`.
Loading 815 modules may be slow for runtimes and bundlers.
note: See: https://marvinh.dev/blog/speeding-up-javascript-ecosystem-part-7
x import(no-named-as-default-member): "yaml" also has a named export "DEFAULT_SCHEMA"
,-[src/resolver/cli.ts:12:27]
11 |
12 | const RESOLVABLE_SCHEMA = yaml.DEFAULT_SCHEMA.extend({
: ^^^^^^^^^^^^^^^^^^^
13 | explicit: [referenceTagResolvable],
`----
help: Check if you meant to write `import { DEFAULT_SCHEMA } from "js-yaml"`
x import(no-named-as-default-member): "yaml" also has a named export "loadAll"
,-[src/resolver/cli.ts:37:21]
36 | function parseYamlResolvable(yamlContent: string): Record<string, unknown> {
37 | const documents = yaml.loadAll(yamlContent, null, {
: ^^^^^^^^^^^^
38 | schema: RESOLVABLE_SCHEMA,
`----
help: Check if you meant to write `import { loadAll } from "js-yaml"`
x import(no-cycle): Dependency cycle detected
,-[src/resolver/cli.ts:6:36]
5 |
6 | import type { ConfigBuilder } from "../builder/ConfigBuilder"
: ^^^^^^^^^^^^^^^^^^^^^^^^^^
7 | import { ConfigBuilder as Builder } from "../builder/ConfigBuilder"
`----
help: Refactor to remove the cycle. Consider extracting shared code into a separate module that both files can import.
note: These paths form a cycle:
╭──▶ ../builder/ConfigBuilder (src/builder/ConfigBuilder.ts)
│ ⬇ imports
│ ../resolution/visualization (src/resolution/visualization.ts)
│ ⬇ imports
│ ../resolver/cli (src/resolver/cli.ts)
╰─────────╯ imports the current file
x import(no-cycle): Dependency cycle detected
,-[src/resolution/visualization.ts:5:33]
4 | import { parseYaml } from "../importer/parser"
5 | import { resolveIncludes } from "../resolver/cli"
: ^^^^^^^^^^^^^^^^^
6 | import type { IncludeInput, Stage, Workflow } from "../schema"
`----
help: Refactor to remove the cycle. Consider extracting shared code into a separate module that both files can import.
note: These paths form a cycle:
╭──▶ ../resolver/cli (src/resolver/cli.ts)
│ ⬇ imports
│ ../builder/ConfigBuilder (src/builder/ConfigBuilder.ts)
│ ⬇ imports
│ ../resolution/visualization (src/resolution/visualization.ts)
╰─────────╯ imports the current file
x import(no-cycle): Dependency cycle detected
,-[src/resolution/visualization.ts:8:43]
7 | import type { BaseJob } from "../schema/job"
8 | import type { TrackedChildPipeline } from "./child-pipeline"
: ^^^^^^^^^^^^^^^^^^
9 | import { extractChildPipelines } from "./child-pipeline"
`----
help: Refactor to remove the cycle. Consider extracting shared code into a separate module that both files can import.
note: These paths form a cycle:
╭──▶ ./child-pipeline (src/resolution/child-pipeline.ts)
│ ⬇ imports
│ ../builder (src/builder/index.ts)
│ ⬇ imports
│ ./ConfigBuilder (src/builder/ConfigBuilder.ts)
│ ⬇ imports
│ ../resolution/visualization (src/resolution/visualization.ts)
╰─────────╯ imports the current file
Found 0 warnings and 49 errors.
Finished in 170ms on 109 files with 445 rules using 12 threads.