[Bot] Switched to Interaction framework #36
Annotations
1 error, 12 warnings, and 10 notices
inspect
Issues found.
|
build:
Bot/Dc/Discord.cs#L25
This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
|
build:
Bot/Sql/Member.cs#L4
Type 'Member' can be sealed because it has no subtypes in its containing assembly and is not externally visible (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1852)
|
inspect:
Bot/Coc.cs#L12
"[NotAccessedField.Local] Field '_clan' is assigned but its value is never used" on /home/runner/work/Hyperstellar/Hyperstellar/Bot/Coc.cs(12,225)
|
inspect:
Bot/Coc.cs#L88
"[ConditionIsAlwaysTrueOrFalseAccordingToNullableAPIContract] Expression is always false according to nullable reference types' annotations" on /home/runner/work/Hyperstellar/Hyperstellar/Bot/Coc.cs(88,3140)
|
inspect:
Bot/Coc.cs#L170
"[FunctionNeverReturns] Function never returns" on /home/runner/work/Hyperstellar/Hyperstellar/Bot/Coc.cs(170,5619)
|
inspect:
Bot/Dc/CmdHandlers.cs#L2
"[RedundantUsingDirective] Using directive is not required by the code and can be safely removed" on /home/runner/work/Hyperstellar/Hyperstellar/Bot/Dc/CmdHandlers.cs(2,28)
|
inspect:
Bot/Dc/CmdHandlers.cs#L2
"[IDE0005] Using directive is unnecessary." on /home/runner/work/Hyperstellar/Hyperstellar/Bot/Dc/CmdHandlers.cs(2,28)
|
inspect:
Bot/Dc/Discord.cs#L16
"[StaticMemberInitializerReferesToMemberBelow] Static member initializer refers to static member below or in other type part" on /home/runner/work/Hyperstellar/Hyperstellar/Bot/Dc/Discord.cs(16,586)
|
inspect:
Bot/Dc/Discord.cs#L25
"[CSharpWarnings::CS1998] This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread." on /home/runner/work/Hyperstellar/Hyperstellar/Bot/Dc/Discord.cs(25,813)
|
inspect:
Bot/Secrets.cs#L3
"[CheckNamespace] Namespace does not correspond to file location, must be: 'Hyperstellar'" on /home/runner/work/Hyperstellar/Hyperstellar/Bot/Secrets.cs(3,46)
|
inspect:
Bot/Sql/Alt.cs#L8
"[UnusedAutoPropertyAccessor.Global] Auto-property accessor 'AltId.get' is never used" on /home/runner/work/Hyperstellar/Hyperstellar/Bot/Sql/Alt.cs(8,124)
|
inspect:
Bot/Sql/Alt.cs#L11
"[UnusedAutoPropertyAccessor.Global] Auto-property accessor 'MainId.get' is never used" on /home/runner/work/Hyperstellar/Hyperstellar/Bot/Sql/Alt.cs(11,178)
|
inspect:
Bot/Coc.cs#L8
"[ClassNeverInstantiated.Global] Class 'Coc' is never instantiated" on /home/runner/work/Hyperstellar/Hyperstellar/Bot/Coc.cs(8,157)
|
inspect:
Bot/Coc.cs#L16
"[FieldCanBeMadeReadOnly.Local] Field can be made readonly" on /home/runner/work/Hyperstellar/Hyperstellar/Bot/Coc.cs(16,511)
|
inspect:
Bot/Coc.cs#L31
"[ForeachCanBePartlyConvertedToQueryUsingAnotherGetEnumerator] Part of loop's body can be converted into LINQ-expression but another 'GetEnumerator' method will be used" on /home/runner/work/Hyperstellar/Hyperstellar/Bot/Coc.cs(31,1025)
|
inspect:
Bot/Coc.cs#L33
"[InvertIf] Invert 'if' statement to reduce nesting" on /home/runner/work/Hyperstellar/Hyperstellar/Bot/Coc.cs(33,1115)
|
inspect:
Bot/Coc.cs#L43
"[ArrangeObjectCreationWhenTypeNotEvident] Missing type specification" on /home/runner/work/Hyperstellar/Hyperstellar/Bot/Coc.cs(43,1503)
|
inspect:
Bot/Coc.cs#L51
"[ArrangeObjectCreationWhenTypeNotEvident] Missing type specification" on /home/runner/work/Hyperstellar/Hyperstellar/Bot/Coc.cs(51,1691)
|
inspect:
Bot/Coc.cs#L68
"[MemberCanBePrivate.Local] Method 'HasMember' can be made private" on /home/runner/work/Hyperstellar/Hyperstellar/Bot/Coc.cs(68,2218)
|
inspect:
Bot/Coc.cs#L68
"[SuggestBaseTypeForParameter] Parameter can be of type 'ClashOfClans.Models.Identity'" on /home/runner/work/Hyperstellar/Hyperstellar/Bot/Coc.cs(68,2242)
|
inspect:
Bot/Coc.cs#L78
"[MemberCanBePrivate.Global] Field 's_client' can be made private" on /home/runner/work/Hyperstellar/Hyperstellar/Bot/Coc.cs(78,2542)
|
inspect:
Bot/Coc.cs#L102
"[ArrangeTrailingCommaInMultilineLists] Remove trailing comma to conform to code style" on /home/runner/work/Hyperstellar/Hyperstellar/Bot/Coc.cs(102,3470)
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
Bot
Expired
|
8.05 MB |
|