Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show default diagnostic level in rule descriptions #13888

Merged
merged 1 commit into from
Apr 23, 2024

Conversation

StephenWeatherford
Copy link
Contributor

@StephenWeatherford StephenWeatherford commented Apr 16, 2024

Microsoft Reviewers: Open in CodeFlow

Copy link
Contributor

github-actions bot commented Apr 16, 2024

Test this change out locally with the following install scripts (Action run 8808651224)

VSCode
  • Mac/Linux
    bash <(curl -Ls https://aka.ms/bicep/nightly-vsix.sh) --run-id 8808651224
  • Windows
    iex "& { $(irm https://aka.ms/bicep/nightly-vsix.ps1) } -RunId 8808651224"
Azure CLI
  • Mac/Linux
    bash <(curl -Ls https://aka.ms/bicep/nightly-cli.sh) --run-id 8808651224
  • Windows
    iex "& { $(irm https://aka.ms/bicep/nightly-cli.ps1) } -RunId 8808651224"

Copy link
Contributor

github-actions bot commented Apr 16, 2024

Test Results

    63 files   -     36      63 suites   - 36   19m 55s ⏱️ - 24m 24s
10 849 tests  -     24  10 848 ✅  -     24  1 💤 ±0  0 ❌ ±0 
22 763 runs   - 15 636  22 761 ✅  - 15 635  2 💤  - 1  0 ❌ ±0 

Results for commit 9bb0ce0. ± Comparison against base commit f2f3502.

♻️ This comment has been updated with latest results.

@StephenWeatherford
Copy link
Contributor Author

Related to ##8013

@@ -438,5 +438,18 @@ public void RuleConfigs_DefaultLevelShouldMatchRuleDefinition(string id, IBicepA
defaultLevelInSchema.Should().Be(defaultLevelInRuleDefinition,
$"the default diagnostic level of a rule's config schema should match that defined in the rule's class definition (make sure rule {id} #/definitions/rule-def-level-xxx reference is correct)");
}

[TestMethod]
public void RuleConfigs_RuleDescriptionShouldIndicateDefaultDiagnosticLevel()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@StephenWeatherford StephenWeatherford merged commit 588d874 into main Apr 23, 2024
85 of 86 checks passed
@StephenWeatherford StephenWeatherford deleted the sw/desc-def-level branch April 23, 2024 23:40
anthony-c-martin added a commit that referenced this pull request Apr 24, 2024
#13888 and #13905 were checked in at around the same time, but contained
incompatible changes causing test failures on main.

This PR fixes up the test failure.
###### Microsoft Reviewers: [Open in
CodeFlow](https://microsoft.github.io/open-pr/?codeflow=https://github.com/Azure/bicep/pull/13939)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants