Skip to content

[Bot] Add shutdown and commit commands #33

[Bot] Add shutdown and commit commands

[Bot] Add shutdown and commit commands #33

Triggered via push January 19, 2024 07:46
Status Failure
Total duration 50s
Artifacts 1

bot.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

1 error, 12 warnings, and 10 notices
inspect
Issues found.
build: Bot/Dc/CmdHandlers.cs#L6
Type 'CmdHandlers' 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/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#L6
"[CA1852] Type 'CmdHandlers' 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/CmdHandlers.cs(6,93)
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/Sql/Db.cs#L37
"[FunctionNeverReturns] Function never returns" on /home/runner/work/Hyperstellar/Hyperstellar/Bot/Sql/Db.cs(37,908)
inspect: Bot/Sql/Member.cs#L4
"[CA1852] Type 'Member' can be sealed because it has no subtypes in its containing assembly and is not externally visible" on /home/runner/work/Hyperstellar/Hyperstellar/Bot/Sql/Member.cs(4,58)
inspect: Bot/Sql/Member.cs#L9
"[UnusedAutoPropertyAccessor.Global] Auto-property accessor 'DiscordId.get' is never used" on /home/runner/work/Hyperstellar/Hyperstellar/Bot/Sql/Member.cs(9,174)
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
2.35 MB