Skip to content

[Bot] Add admin command #37

[Bot] Add admin command

[Bot] Add admin command #37

Triggered via push January 20, 2024 08:28
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/Commands.cs#L7
The type name Commands conflicts in whole or in part with the namespace name 'Discord.Commands'. Change either name to eliminate the conflict. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1724)
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/Commands.cs#L7
"[CA1724] The type name Commands conflicts in whole or in part with the namespace name 'Discord.Commands'. Change either name to eliminate the conflict." on /home/runner/work/Hyperstellar/Hyperstellar/Bot/Dc/Commands.cs(7,119)
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/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#L8
"[CollectionNeverQueried.Global] Content of collection 's_admins' is only updated but never used" on /home/runner/work/Hyperstellar/Hyperstellar/Bot/Sql/Db.cs(8,192)
inspect: Bot/Sql/Db.cs#L47
"[FunctionNeverReturns] Function never returns" on /home/runner/work/Hyperstellar/Hyperstellar/Bot/Sql/Db.cs(47,1239)
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.29 MB