Skip to content

[Bot] Refactor and added Donation table #41

[Bot] Refactor and added Donation table

[Bot] Refactor and added Donation table #41

Triggered via push January 21, 2024 14:39
Status Failure
Total duration 51s
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/Sql/Donation.cs#L5
Type 'Donation' 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/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,4220)
inspect: Bot/Coc.cs#L161
"[UnusedMember.Local] Method 'Donate25Async' is never used" on /home/runner/work/Hyperstellar/Hyperstellar/Bot/Coc.cs(161,5362)
inspect: Bot/Coc.cs#L173
"[FunctionNeverReturns] Function never returns" on /home/runner/work/Hyperstellar/Hyperstellar/Bot/Coc.cs(173,5717)
inspect: Bot/Coc.cs#L193
"[FunctionNeverReturns] Function never returns" on /home/runner/work/Hyperstellar/Hyperstellar/Bot/Coc.cs(193,6283)
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/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/Db.cs#L56
"[FunctionNeverReturns] Function never returns" on /home/runner/work/Hyperstellar/Hyperstellar/Bot/Sql/Db.cs(56,1671)
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,2210)
inspect: Bot/Coc.cs#L68
"[SuggestBaseTypeForParameter] Parameter can be of type 'ClashOfClans.Models.Identity'" on /home/runner/work/Hyperstellar/Hyperstellar/Bot/Coc.cs(68,2234)
inspect: Bot/Coc.cs#L85
"[InvertIf] Invert 'if' statement to reduce nesting" on /home/runner/work/Hyperstellar/Hyperstellar/Bot/Coc.cs(85,2999)
inspect: Bot/Coc.cs#L103
"[InvertIf] Invert 'if' statement to reduce nesting" on /home/runner/work/Hyperstellar/Hyperstellar/Bot/Coc.cs(103,3545)

Artifacts

Produced during runtime
Name Size
Bot Expired
8.37 MB