Skip to content

[Bot] Add alt command #38

[Bot] Add alt command

[Bot] Add alt command #38

Triggered via push January 21, 2024 05:33
Status Failure
Total duration 1m 3s
Artifacts 1

bot.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

1 error, 13 warnings, and 10 notices
inspect
Issues found.
build: Bot/Dc/Discord.cs#L30
Because this call is not awaited, execution of the current method continues before the call is completed. Consider applying the 'await' operator to the result of the call.
build: Bot/Dc/Attr/RequireAdmin.cs#L7
Type 'RequireAdmin' 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)
build: Bot/Dc/MemberConverter.cs#L8
Type 'MemberConverter' 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#L124
"[ConditionIsAlwaysTrueOrFalseAccordingToNullableAPIContract] Expression is always false according to nullable reference types' annotations" on /home/runner/work/Hyperstellar/Hyperstellar/Bot/Coc.cs(124,4232)
inspect: Bot/Coc.cs#L178
"[FunctionNeverReturns] Function never returns" on /home/runner/work/Hyperstellar/Hyperstellar/Bot/Coc.cs(178,5888)
inspect: Bot/Dc/Attr/RequireAdmin.cs#L7
"[CA1852] Type 'RequireAdmin' can be sealed because it has no subtypes in its containing assembly and is not externally visible" on /home/runner/work/Hyperstellar/Hyperstellar/Bot/Dc/Attr/RequireAdmin.cs(7,116)
inspect: Bot/Dc/Discord.cs#L18
"[StaticMemberInitializerReferesToMemberBelow] Static member initializer refers to static member below or in other type part" on /home/runner/work/Hyperstellar/Hyperstellar/Bot/Dc/Discord.cs(18,660)
inspect: Bot/Dc/Discord.cs#L30
"[CSharpWarnings::CS4014] Because this call is not awaited, execution of the current method continues before the call is completed. Consider applying the 'await' operator to the result of the call." on /home/runner/work/Hyperstellar/Hyperstellar/Bot/Dc/Discord.cs(30,996)
inspect: Bot/Dc/MemberConverter.cs#L1
"[RedundantUsingDirective] Using directive is not required by the code and can be safely removed" on /home/runner/work/Hyperstellar/Hyperstellar/Bot/Dc/MemberConverter.cs
inspect: Bot/Dc/MemberConverter.cs#L1
"[IDE0005] Using directive is unnecessary." on /home/runner/work/Hyperstellar/Hyperstellar/Bot/Dc/MemberConverter.cs
inspect: Bot/Dc/MemberConverter.cs#L8
"[CA1852] Type 'MemberConverter' can be sealed because it has no subtypes in its containing assembly and is not externally visible" on /home/runner/work/Hyperstellar/Hyperstellar/Bot/Dc/MemberConverter.cs(8,138)
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/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#L12
"[FieldCanBeMadeReadOnly.Local] Field can be made readonly" on /home/runner/work/Hyperstellar/Hyperstellar/Bot/Coc.cs(12,225)
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#L85
"[InvertIf] Invert 'if' statement to reduce nesting" on /home/runner/work/Hyperstellar/Hyperstellar/Bot/Coc.cs(85,3011)

Artifacts

Produced during runtime
Name Size
Bot Expired
16.8 MB