Azure / Azure/azure-rest-api-specs

[TypeSpecValidation/LinterRuleset] Improve error message when tspconfig contains old ruleset

Open
#29,359 0 comments 0 reactions 1 assignee Claimed by @mikeharder View on GitHub
Dominant language
TypeSpec
Stars
3.1k
Forks
5.9k
Avg merge
2d 22h
Merged PRs (30d)
444

Description

Current:

```
Rule LinterRuleset failed
tspconfig.yaml references the following ruleset which is deprecated:

linter:
extends:
- "@azure-tools/typespec-azure-resource-manager/all"

It should be replaced with the following:

linter:
extends:
- "@azure-tools/typespec-azure-rulesets/resource-manager"tspconfig.yaml must define the following property:

linter:
extends:
- "@azure-tools/typespec-azure-rulesets/resource-manager"
```

Problems:
* Second error is redundant with first
* Missing newline between two error messages

Example:

https://github.com/Azure/azure-rest-api-specs-pr/pull/18316/checks?check_run_id=25870582083

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.