feat: added new duplicate tag names rule
#6950
tests.yaml
on: pull_request
build-and-unit
4m 26s
cli-package-test
46s
coverage-report
6s
code-style-check
1m 10s
Annotations
2 errors and 10 warnings
|
build-and-unit
Process completed with exit code 1.
|
|
__tests__/commands.test.ts > E2E > lint > tags-duplicated-names:
__tests__/commands.test.ts#L29
Error: Snapshot `E2E > lint > tags-duplicated-names 1` mismatched
- Expected
+ Received
- [1] openapi.yaml:9:3 at #/tags/2
+ [1] openapi.yaml:11:5 at #/tags/2
- Duplicate tag name found: 'store'.
+ Duplicate tag name found: 'store'
- 7 | - name: store
+ 9 | - name: store
- 8 | description: Access to Petstore orders
+ 10 | description: Access to Petstore orders
- 9 | - name: store
+ 11 | - name: store
- | ^^^^^^^^^^^
+ | ^^^^^^^^^^^
- 10 | description: YOU DO NOT SEE THIS HEHE
+ 12 | description: YOU DO NOT SEE THIS
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ 13 |
Warning was generated by the tags-duplicated-names rule.
+
validating openapi.yaml...
openapi.yaml: validated in <test>ms
- OpenAPI description has 1 error.
+ Woohoo! Your API description is valid. 🎉
+ You have 1 warning.
+
+
❯ __tests__/commands.test.ts:29:9
|
|
code-style-check:
packages/cli/src/commands/join.ts#L628
Unexpected any. Specify a different type
|
|
code-style-check:
packages/cli/src/commands/join.ts#L328
Unexpected any. Specify a different type
|
|
code-style-check:
packages/cli/src/commands/join.ts#L302
Unexpected any. Specify a different type
|
|
code-style-check:
packages/cli/src/commands/join.ts#L294
Unexpected any. Specify a different type
|
|
code-style-check:
packages/cli/src/commands/join.ts#L171
Unexpected any. Specify a different type
|
|
code-style-check:
packages/cli/src/commands/join.ts#L51
Unexpected any. Specify a different type
|
|
code-style-check:
packages/cli/src/commands/build-docs/utils.ts#L54
Unexpected any. Specify a different type
|
|
code-style-check:
packages/cli/src/commands/build-docs/types.ts#L21
Unexpected any. Specify a different type
|
|
code-style-check:
packages/cli/src/commands/build-docs/types.ts#L11
Unexpected any. Specify a different type
|
|
code-style-check:
packages/cli/src/commands/build-docs/types.ts#L10
Unexpected any. Specify a different type
|