Merged
Conversation
To combat Node 20 deprecation warnings. Some actions we use (`maxnowack/local-cache` and `thollander/actions-comment-pull-request`) don't have the required updates yet.
- `jb` updated to match CI. - `nvika` removed.
Inspection: https://www.jetbrains.com/help/resharper/DefaultStructEqualityIsUsed.Global.html This is a dodgy one because there's no real sane way to define equality on `StarDifficulty` now that it has difficulty and performance attributes jammed into it. So I just basically shut the inspection up with a `record` modifier and move on.
Inspection: https://www.jetbrains.com/help/resharper/PreferConcreteValueOverDefault.html I could see this one going both ways, but I'm kinda sold on this inspection. Explicit is always better. Saves some allocations in the `CancellationToken` cases as well.
Inspection: https://www.jetbrains.com/help/resharper/PossibleUnintendedQueryableAsEnumerable.html Not fully sold on this one but it's quick and simple so might as well.
|
You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool. What Enabling Code Scanning Means:
For more information about GitHub Code Scanning, check out the documentation. |
peppy
approved these changes
Mar 18, 2026
This was referenced Apr 6, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Most of this is as everywhere else, but there's also interesting code inspection fixes from the InspectCode bump, so I'll talk about that a little.
Fix suspicious equality in
HotkeyInspection: https://www.jetbrains.com/help/resharper/TypeWithSuspiciousEqualityIsUsedInRecord.Global.html
Pretty annoying to fix, nullable array types are a pain. Does look legit though.
Fix
StarDifficultyusing inefficient struct equalityInspection: https://www.jetbrains.com/help/resharper/DefaultStructEqualityIsUsed.Global.html
This is a dodgy one because there's no real sane way to define equality on
StarDifficultynow that it has difficulty and performance attributes jammed into it. So I just basically shut the inspection up with arecordmodifier and move on.Unclear where the equality is used precisely. It's from a global inspection. F12 is very unhelpful when trying to track down usages of
Equals(). We definitely haveBindable<StarDifficulty>instances and those do use equality. Maybe more than that.Use
nameofexpressions to reference enum member namesInspection: https://www.jetbrains.com/help/resharper/CanSimplifyDictionaryRemovingWithSingleCall.html
Pretty quaint.
Prefer using concrete values over
defaultornew()Inspection: https://www.jetbrains.com/help/resharper/PreferConcreteValueOverDefault.html
I could see this one going both ways, but I'm kinda sold on this inspection. Explicit is always better. Saves some allocations in the
CancellationTokencases as well.Explicitly call
.AsEnumerable()in some realm usagesInspection: https://www.jetbrains.com/help/resharper/PossibleUnintendedQueryableAsEnumerable.html
Not fully sold on this one but it's quick and simple so might as well.
Simplify dictionary removal with single
.Remove()callInspection: https://www.jetbrains.com/help/resharper/CanSimplifyDictionaryRemovingWithSingleCall.html
Not much to say.