Skip to content

API docs for HttpAbstractions #26358

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

Closed
wants to merge 3 commits into from
Closed

API docs for HttpAbstractions #26358

wants to merge 3 commits into from

Conversation

pranavkm
Copy link
Contributor

  • Arcade suppresses doc errors and warnings by adding it to the NoWarn list.
    Override this so we get warning from arcade until we can update it.

  • Finishing touches to API docs for Authentication.Abstractions, Http.Abstractions

* Arcade suppresses doc errors and warnings by adding it to the NoWarn list.
  Override this so we get warning from arcade until we can update it.

* Finishing touches to API docs for Authentication.Abstractions, Http.Abstractions
@ghost ghost added the area-servers label Sep 27, 2020
@pranavkm pranavkm added this to the 5.0.0 milestone Sep 27, 2020
@@ -9,6 +9,8 @@
<PackageTags>aspnetcore;authentication;security</PackageTags>
<IsPackable>false</IsPackable>
<Nullable>enable</Nullable>

<NoWarn />
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@dougbu \ @Pilchie how do you feel about this? Arcade makes 1591 a non-error: https://github.com/dotnet/arcade/blob/4873d157a8f34f8cc7e28b3f9938b32c642ef542/src/Microsoft.DotNet.Arcade.Sdk/tools/ProjectDefaults.props#L94 and this was the easiest way to suppress that behavior.

Copy link
Member

Choose a reason for hiding this comment

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

Seems a big hammer in case there end up being other warnings we need to suppress. An alternative is to add a .editorconfig file with:

[*.cs]
dotnet_diagnostic.CS1591.severity = error

In any directory where we are ready to enable this, which I think should be considered later than the NoWarn

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@wtgodbe suggested doing this instead:

<NoWarn>$(NoWarn.Replace('1591', ''))</NoWarn>

It is much more targeted. Our Directory.Build.props configures this error as a warning: https://github.com/dotnet/aspnetcore/blob/master/Directory.Build.props#L103. If we were to go with your suggestion I guess we would have to say

[*.cs]
dotnet_diagnostic.CS1591.severity = warning

Copy link
Member

Choose a reason for hiding this comment

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

That works too. I think as an end-goal in order to "stay-clean" we'd be better enabling the warning as an error once we don't have any violations.

Copy link
Contributor

Choose a reason for hiding this comment

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

@scottaddie who's the API ref resource

Copy link
Contributor

Choose a reason for hiding this comment

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

Our Directory.Build.props configures this error as a warning: https://github.com/dotnet/aspnetcore/blob/master/Directory.Build.props#L103

No, that line says the warning should not be treated as an error. Try with just your $(NoWarn) update in this project. Should work because project content is loaded after Directory.Build.props and all files it imports

<NoWarn>$(NoWarn.Replace('1591', ''))</NoWarn>

@Pilchie Pilchie added the tell-mode Indicates a PR which is being merged during tell-mode label Sep 29, 2020
@pranavkm pranavkm closed this Oct 1, 2020
@pranavkm pranavkm deleted the prkrishn/docs1 branch October 1, 2020 15:51
@amcasey amcasey added area-networking Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions and removed area-runtime labels Aug 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-networking Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions tell-mode Indicates a PR which is being merged during tell-mode
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants