forked from keimpema/Usenet
-
Notifications
You must be signed in to change notification settings - Fork 0
Fix resharper warnings #90
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
Open
christiaanderidder
wants to merge
35
commits into
main
Choose a base branch
from
fix-resharper-warnings
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
3bb2199
Remove redundant null checks
christiaanderidder 1e269e1
Check for null on Enerator.Current
christiaanderidder fd53580
Remove redundant null checks
christiaanderidder 6b2c01e
Remove unused using
christiaanderidder ddf68a7
Remove redundant null checks
christiaanderidder e3d6685
Response types should not be created by library users, make construct…
christiaanderidder b978d61
Remove NNTP response constructors from public API
christiaanderidder 55c423b
Make NttpArticle constructor internal to prevent passing null values.…
christiaanderidder 7b453f8
Make ValidationResult constructor internal to prevent passing null va…
christiaanderidder 7ab4156
Make Nzb constructors internal to prevent passing null values. Librar…
christiaanderidder c260a47
Remove NNTP response constructors from public API
christiaanderidder 9c5854e
Make NntpArticleRange constructor private. Library users can use the …
christiaanderidder 3ecf71f
Make NntpGroup and NntpGroups constructors internal to prevent passin…
christiaanderidder 1a36cf2
Remove NotNullAttribute without effect
christiaanderidder af22b8f
Disable duplicate entry warning for test testing duplicate entry hand…
christiaanderidder c088c3c
Disable access to disposed variable in closure, the task is always aw…
christiaanderidder 1804e55
Make classes containing just constants static
christiaanderidder 2a9e639
Make EnumerableStream abstract
christiaanderidder 20eafc9
Disable unused tuple warning for test helper
christiaanderidder 626df9d
Use pattern matching
christiaanderidder b202054
Use collection syntax
christiaanderidder 11ed595
Make ValidationFailure constructor internal to prevent passing null v…
christiaanderidder 31dcffd
Remove redundant null checks
christiaanderidder 8ddd16c
Make ValidationFailure constructor internal to prevent passing null v…
christiaanderidder 26d92c4
Use await using for async disposables
christiaanderidder dec7daf
Add JetBrains annotations package
christiaanderidder ffd02f6
Mark all classes part of the public API with PublicAPIAttribute
christiaanderidder c78b77f
Disable CA2007 in tests
christiaanderidder 6978f0e
Fix tests after nullable changes
christiaanderidder 7102fe9
Small syntax fixes
christiaanderidder cacbd16
Make Usenet.Util.Compatibility using optional
christiaanderidder c634eda
Use LINQ
christiaanderidder 1a2f9dd
Use return instead of if
christiaanderidder 6087b8c
Make null check optional
christiaanderidder 1192132
Merge branch 'main' into fix-resharper-warnings
christiaanderidder File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,8 @@ | ||
| root = true | ||
|
|
||
| [*.cs] | ||
| # CSharpier expects adds trailing comma, prevent editor from cleaning it up | ||
| trailing_comma_in_multiline_lists = true | ||
|
|
||
| [tests/**/*.cs] | ||
| dotnet_diagnostic.CA2007.severity = none |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This constructor changed from public to
internal, which is a breaking change for consumers who previously instantiatedNntpArticledirectly (and is reflected by the removals inPublicAPI.Shipped.txt). If this PR is meant to only fix warnings, consider keeping the ctor public or introducing a public factory/builder API that fully replaces direct construction.