-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Adding reference to MessagePackAnalyzer to check for MsgPack001 / MsgPack002 (Banned API) #19989
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
Conversation
…iggers on sln/dotnet respo)
Probably not, since you can't transitively leak the per-rule severity settings and I think the defaults aren't what you want anyway. |
…ack and MessagePackAnalyzer
Here is where i lack of knowledge,
Do i just use |
Will what work with |
I meant that because this repo does not directly use Updated this PR : https://github.com/tebeco/AspNetCore/commit/0737ecc65431733d594f4a15f86135eadbe352b5#diff-54a03b3b1112866eeff607edc2c3ec95L20 |
...R/common/Protocols.MessagePack/src/Microsoft.AspNetCore.SignalR.Protocols.MessagePack.csproj
Show resolved
Hide resolved
Sorry. I guess when I said you don't have any Reference items in this PR I wasn't looking carefully. I guess you're using Reference instead of PackageReference, but I have no idea why or how that works. |
because it's specific to this repository. So if you
the |
How curious. Thanks for sharing. |
i can't find anymore what i found at that precise moment, but here are some places that seems related to that logic : https://github.com/dotnet/aspnetcore/blob/master/eng/targets/ResolveReferences.targets#L148-L160 |
I guess this makes sense as to why this would appear in the aspnetcore repo. IIRC @davidfowl wanted this kind of "loaded project vs. fallback to nuget package" behavior since way back in the |
Keep it, there's no problem updating while we're in the middle of 5.0.
I think |
(updated the first comment with these infos) I saw a potential way to change the |
Making it readonly in this PR is fine.
You mean the naming of the field? I'm fine with you changing that in this PR. |
You'll see in a second ^^ |
…the MessagePackHubProtocol ctor
src/SignalR/common/Protocols.MessagePack/src/Protocol/MessagePackHubProtocol.cs
Outdated
Show resolved
Hide resolved
(see PR Description, i inserted NPE screenshot and nuspec content that were generated by running |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks OK to me but would like @BrennanConroy and/or @halter73 to take a look.
src/SignalR/common/Protocols.MessagePack/src/Protocol/MessagePackHubProtocol.cs
Outdated
Show resolved
Hide resolved
src/SignalR/common/Protocols.MessagePack/src/Protocol/MessagePackHubProtocol.cs
Outdated
Show resolved
Hide resolved
…ackHubProtocol.cs
Description
Make sure
MessagePack
built in analyzers run to be sure theMessagePackSerializerOptions
are not usingBannedApi
Addresses #18290
Details :
MessagePackAnalyzer
2.1.90
.editorconfig
for analyzersMessagePackAnalyzer
should not be "leaked as a transitive" to consumer as it wont be possible to enforce the same severity as this repo set in.editorconfig
MessagePackSerializerOptions
readonlyResults
Generated nuget / nuspec :
