-
-
Notifications
You must be signed in to change notification settings - Fork 318
Create an analyzer for DSharpPlus #2154
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
Also renamed everything from DSharpPlus.Analyzer to DSharpPlus.Analyzers
…late/analyzer # Conflicts: # DSharpPlus.sln
Checks so the user uses pagination related methods instead of single entity fetching
… commands that specify guilds to install too
# Conflicts: # DSharpPlus.sln # Directory.Packages.props
DSharpPlus.Analyzers/DSharpPlus.Analyzers/Commands/ProcessorCheckAnalyzer.cs
Outdated
Show resolved
Hide resolved
DSharpPlus.Analyzers/DSharpPlus.Analyzers/Core/HasPermissionAnalyzer.cs
Outdated
Show resolved
Hide resolved
DSharpPlus.Analyzers/DSharpPlus.Analyzers/Core/SingleEntityGetRequestAnalyzer.cs
Show resolved
Hide resolved
Also made more tests for SingleEntityGetRequestAnalyzer
# Conflicts: # DSharpPlus/DSharpPlus.csproj # Directory.Packages.props
Also cleaned up some small documentation inconsistency
akiraveliara
left a comment
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.
it appears that you're fundamentally misunderstanding how permissions work. everything else looks... fine? i don't understand the recent severity changes, though
DSharpPlus.Analyzers/DSharpPlus.Analyzers.Test/UseDiscordPermissionsTest.cs
Outdated
Show resolved
Hide resolved
DSharpPlus.Analyzers/DSharpPlus.Analyzers.Test/HasPermissionTest.cs
Outdated
Show resolved
Hide resolved
DSharpPlus.Analyzers/DSharpPlus.Analyzers.Test/UseDiscordPermissionsTest.cs
Outdated
Show resolved
Hide resolved
DSharpPlus.Analyzers/DSharpPlus.Analyzers/Core/UseDiscordPermissionsAnalyzer.cs
Outdated
Show resolved
Hide resolved
Incremented all core IDs by one as new obsolete IDs have been added
|
There is one more change needed to be done and that is to package the analyzer dll into the Found this article that guides on how to do that. So I will use that as an example and implement it later this evening (CET). |
blehh
# Conflicts: # DSharpPlus.sln # Directory.Packages.props
This is untested
Limited triggers for DSP0010 to only some numerical operations.
Summary
Make an analyzer for DSharpPlus that tells the user various wrong usage of the library. Related to #2096
Notes
I do not know if this is too barebones to be merged yet. If it is good enough I will convert it from a draft to a pull request.
How documentation needs to be done is also a discussion that is needed to be done.
There's also typos and stuff so if anyone have time preferably commit it to the branch, otherwise leave it as a review.