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

Include validation analyzer #7071

Merged
37 commits merged into from
Mar 4, 2021
Merged

Conversation

fkpwolf
Copy link

@fkpwolf fkpwolf commented Feb 20, 2021

Microsoft Reviewers: Open in CodeFlow

@codecov
Copy link

codecov bot commented Feb 25, 2021

Codecov Report

Merging #7071 (965c26c) into v3 (1af6c2e) will decrease coverage by 0.03%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##               v3    #7071      +/-   ##
==========================================
- Coverage   84.12%   84.08%   -0.04%     
==========================================
  Files         373      373              
  Lines       14535    14538       +3     
  Branches     2764     2764              
==========================================
- Hits        12227    12225       -2     
- Misses       1737     1742       +5     
  Partials      571      571              
Impacted Files Coverage Δ
src/docfx/Errors.cs 88.42% <100.00%> (+0.39%) ⬆️
.../docfx/lib/moniker/EvaluatorWithMonikersVisitor.cs 88.23% <100.00%> (-0.34%) ⬇️
src/docfx/lib/moniker/ExpressionCreator.cs 97.10% <100.00%> (ø)
src/docfx/lib/moniker/MonikerRangeParser.cs 100.00% <100.00%> (ø)
src/docfx/lib/git/GitUtility.cs 55.85% <0.00%> (-4.51%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1af6c2e...965c26c. Read the comment docs.

@fkpwolf fkpwolf requested a review from yufeih February 26, 2021 09:27
@fkpwolf fkpwolf marked this pull request as ready for review February 26, 2021 09:28
@fkpwolf
Copy link
Author

fkpwolf commented Feb 26, 2021

updated to latest version. Now fix of Errors not included. Wait to see if it will make build failed.

@fkpwolf fkpwolf changed the title Include validation analyzer Include validation analyzer[not merge] Feb 26, 2021
@fkpwolf fkpwolf requested a review from xichan-ms March 1, 2021 02:18
@fkpwolf fkpwolf requested a review from OsmondJiang March 1, 2021 04:44
.editorconfig Outdated Show resolved Hide resolved
docs/specs/markdown.yml Show resolved Hide resolved
/// </summary>
/// Behavior: ✔️ Message: ❌
public static Error MonikerRangeInvalid(SourceInfo? operand, FormattableString message)
=> new Error(ErrorLevel.Error, "moniker-range-invalid", message, operand);
public static Error MonikerRangeMissing(SourceInfo<string?> operand, string moniker)
Copy link
Contributor

Choose a reason for hiding this comment

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

@928PJY to see if this one needs to be expanded to multiple error codes. I am tentative to do this change. This error is like regular expression parse error, we could have a single exception type, with exception details as args, like this:

Suggested change
public static Error MonikerRangeMissing(SourceInfo<string?> operand, string moniker)
public static Error MonikerRangeInvalid(SourceInfo source, string message)

@AngryBerryMS AngryBerryMS added the v3 label Mar 2, 2021
@ghost
Copy link

ghost commented Mar 2, 2021

Apologies, while this PR appears ready to be merged, I've been configured to only merge when all checks have explicitly passed. The following integrations have not reported any progress on their checks and are blocking auto-merge:

  1. Azure Pipelines

These integrations are possibly never going to report a check, and unblocking auto-merge likely requires a human being to update my configuration to exempt these integrations from requiring a passing check.

Give feedback on this
From the bot dev team

We've tried to tune the bot such that it posts a comment like this only when auto-merge is blocked for exceptional, non-intuitive reasons. When the bot's auto-merge capability is properly configured, auto-merge should operate as you would intuitively expect and you should not see any spurious comments.

Please reach out to us at [email protected] to provide feedback if you believe you're seeing this comment appear spuriously. Please note that we usually are unable to update your bot configuration on your team's behalf, but we're happy to help you identify your bot admin.

@ghost
Copy link

ghost commented Mar 2, 2021

Apologies, while this PR appears ready to be merged, I've been configured to only merge when all checks have explicitly passed. The following integrations have not reported any progress on their checks and are blocking auto-merge:

  1. Azure Pipelines

These integrations are possibly never going to report a check, and unblocking auto-merge likely requires a human being to update my configuration to exempt these integrations from requiring a passing check.

Give feedback on this
From the bot dev team

We've tried to tune the bot such that it posts a comment like this only when auto-merge is blocked for exceptional, non-intuitive reasons. When the bot's auto-merge capability is properly configured, auto-merge should operate as you would intuitively expect and you should not see any spurious comments.

Please reach out to us at [email protected] to provide feedback if you believe you're seeing this comment appear spuriously. Please note that we usually are unable to update your bot configuration on your team's behalf, but we're happy to help you identify your bot admin.

@fkpwolf fkpwolf requested a review from live1206 March 3, 2021 09:14
@yufeih yufeih mentioned this pull request Mar 4, 2021
@ghost
Copy link

ghost commented Mar 4, 2021

Apologies, while this PR appears ready to be merged, I've been configured to only merge when all checks have explicitly passed. The following integrations have not reported any progress on their checks and are blocking auto-merge:

  1. Azure Pipelines

These integrations are possibly never going to report a check, and unblocking auto-merge likely requires a human being to update my configuration to exempt these integrations from requiring a passing check.

Give feedback on this
From the bot dev team

We've tried to tune the bot such that it posts a comment like this only when auto-merge is blocked for exceptional, non-intuitive reasons. When the bot's auto-merge capability is properly configured, auto-merge should operate as you would intuitively expect and you should not see any spurious comments.

Please reach out to us at [email protected] to provide feedback if you believe you're seeing this comment appear spuriously. Please note that we usually are unable to update your bot configuration on your team's behalf, but we're happy to help you identify your bot admin.

@ghost
Copy link

ghost commented Mar 4, 2021

Apologies, while this PR appears ready to be merged, I've been configured to only merge when all checks have explicitly passed. The following integrations have not reported any progress on their checks and are blocking auto-merge:

  1. Azure Pipelines

These integrations are possibly never going to report a check, and unblocking auto-merge likely requires a human being to update my configuration to exempt these integrations from requiring a passing check.

Give feedback on this
From the bot dev team

We've tried to tune the bot such that it posts a comment like this only when auto-merge is blocked for exceptional, non-intuitive reasons. When the bot's auto-merge capability is properly configured, auto-merge should operate as you would intuitively expect and you should not see any spurious comments.

Please reach out to us at [email protected] to provide feedback if you believe you're seeing this comment appear spuriously. Please note that we usually are unable to update your bot configuration on your team's behalf, but we're happy to help you identify your bot admin.

@fkpwolf
Copy link
Author

fkpwolf commented Mar 4, 2021

/zap

@fkpwolf
Copy link
Author

fkpwolf commented Mar 4, 2021

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@ghost
Copy link

ghost commented Mar 4, 2021

Apologies, while this PR appears ready to be merged, I've been configured to only merge when all checks have explicitly passed. The following integrations have not reported any progress on their checks and are blocking auto-merge:

  1. Azure Pipelines

These integrations are possibly never going to report a check, and unblocking auto-merge likely requires a human being to update my configuration to exempt these integrations from requiring a passing check.

Give feedback on this
From the bot dev team

We've tried to tune the bot such that it posts a comment like this only when auto-merge is blocked for exceptional, non-intuitive reasons. When the bot's auto-merge capability is properly configured, auto-merge should operate as you would intuitively expect and you should not see any spurious comments.

Please reach out to us at [email protected] to provide feedback if you believe you're seeing this comment appear spuriously. Please note that we usually are unable to update your bot configuration on your team's behalf, but we're happy to help you identify your bot admin.

1 similar comment
@ghost
Copy link

ghost commented Mar 4, 2021

Apologies, while this PR appears ready to be merged, I've been configured to only merge when all checks have explicitly passed. The following integrations have not reported any progress on their checks and are blocking auto-merge:

  1. Azure Pipelines

These integrations are possibly never going to report a check, and unblocking auto-merge likely requires a human being to update my configuration to exempt these integrations from requiring a passing check.

Give feedback on this
From the bot dev team

We've tried to tune the bot such that it posts a comment like this only when auto-merge is blocked for exceptional, non-intuitive reasons. When the bot's auto-merge capability is properly configured, auto-merge should operate as you would intuitively expect and you should not see any spurious comments.

Please reach out to us at [email protected] to provide feedback if you believe you're seeing this comment appear spuriously. Please note that we usually are unable to update your bot configuration on your team's behalf, but we're happy to help you identify your bot admin.

@ghost ghost merged commit 9c36a70 into dotnet:v3 Mar 4, 2021
fkpwolf added a commit to fkpwolf/docfx that referenced this pull request May 6, 2021
* Update Errors.cs

* include analyzer package

* update version

* upgrade version

* Minor clean up

* update version

* merge

* update version

* restore analyzer severity level

* fix analyzer error of Errors.cs

* fix test case

* fix test case

* change "disallowed-html" to "disallowed-html-tag"

* change version

* update version

* test warn as error

* fix Errors.cs

* update version

Co-authored-by: Yufei Huang <[email protected]>
This pull request was closed.
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.

5 participants