Skip to content

[Bot] Resolve some CA warnings #4

[Bot] Resolve some CA warnings

[Bot] Resolve some CA warnings #4

Triggered via push January 22, 2024 13:28
Status Failure
Total duration 58s
Artifacts 1

bot.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

1 error, 4 warnings, and 10 notices
inspect
Issues found.
inspect: Bot/Coc.cs#L128
"[ConditionIsAlwaysTrueOrFalseAccordingToNullableAPIContract] Expression is always false according to nullable reference types' annotations" on /home/runner/work/coc-clan/coc-clan/Bot/Coc.cs(128,4194)
inspect: Bot/Coc.cs#L165
"[UnusedMember.Local] Method 'Donate25Async' is never used" on /home/runner/work/coc-clan/coc-clan/Bot/Coc.cs(165,5336)
inspect: Bot/Dc/MemberConverter.cs#L9
"[RedundantNameQualifier] Qualifier is redundant" on /home/runner/work/coc-clan/coc-clan/Bot/Dc/MemberConverter.cs(9,190)
inspect: Bot/Sql/Member.cs#L9
"[UnusedAutoPropertyAccessor.Global] Auto-property accessor 'DiscordId.get' is never used" on /home/runner/work/coc-clan/coc-clan/Bot/Sql/Member.cs(9,172)
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/coc-clan/coc-clan/Bot/Coc.cs(31,1043)
inspect: Bot/Coc.cs#L33
"[InvertIf] Invert 'if' statement to reduce nesting" on /home/runner/work/coc-clan/coc-clan/Bot/Coc.cs(33,1133)
inspect: Bot/Coc.cs#L43
"[ArrangeObjectCreationWhenTypeNotEvident] Missing type specification" on /home/runner/work/coc-clan/coc-clan/Bot/Coc.cs(43,1521)
inspect: Bot/Coc.cs#L51
"[ArrangeObjectCreationWhenTypeNotEvident] Missing type specification" on /home/runner/work/coc-clan/coc-clan/Bot/Coc.cs(51,1709)
inspect: Bot/Coc.cs#L68
"[MemberCanBePrivate.Local] Method 'HasMember' can be made private" on /home/runner/work/coc-clan/coc-clan/Bot/Coc.cs(68,2228)
inspect: Bot/Coc.cs#L68
"[SuggestBaseTypeForParameter] Parameter can be of type 'ClashOfClans.Models.Identity'" on /home/runner/work/coc-clan/coc-clan/Bot/Coc.cs(68,2252)
inspect: Bot/Coc.cs#L142
"[ArrangeTrailingCommaInMultilineLists] Remove trailing comma to conform to code style" on /home/runner/work/coc-clan/coc-clan/Bot/Coc.cs(142,4524)
inspect: Bot/Coc.cs#L156
"[ArrangeObjectCreationWhenTypeNotEvident] Missing type specification" on /home/runner/work/coc-clan/coc-clan/Bot/Coc.cs(156,5059)
inspect: Bot/Dc/Cmds.cs#L9
"[UnusedType.Global] Class 'Cmds' is never used" on /home/runner/work/coc-clan/coc-clan/Bot/Dc/Cmds.cs(9,174)
inspect: Bot/Dc/Cmds.cs#L13
"[UnusedMember.Global] Method 'ShutdownAsync' is never used" on /home/runner/work/coc-clan/coc-clan/Bot/Dc/Cmds.cs(13,299)

Artifacts

Produced during runtime
Name Size
Bot Expired
8.37 MB