plz #21
Annotations
1 error, 20 warnings, and 10 notices
inspect
Issues found.
|
build:
Bot/Sql/User.cs#L7
Non-nullable property 'CocId' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.
|
build:
Bot/Sql/User.cs#L8
Field 'User.DiscordId' is never assigned to, and will always have its default value
|
build:
Bot/Secrets.cs#L5
Naming rule violation: Missing prefix: 's_' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide1006)
|
build:
Bot/Secrets.cs#L6
Naming rule violation: Missing prefix: 's_' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide1006)
|
build:
Bot/Sql/Db.cs#L11
Use explicit type instead of 'var' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0008)
|
build:
Bot/Sql/Db.cs#L12
Use explicit type instead of 'var' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0008)
|
build:
Bot/Sql/Db.cs#L12
Unnecessary assignment of a value to 'y' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0059)
|
build:
Bot/Discord.cs#L65
Expression value is never used (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0058)
|
build:
Bot/Discord.cs#L29
Expression value is never used (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0058)
|
build:
Bot/Coc.cs#L6
Type 'Coc' 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#L6
"[CA1852] Type 'Coc' can be sealed because it has no subtypes in its containing assembly and is not externally visible" on /home/runner/work/Hyperstellar/Hyperstellar/Bot/Coc.cs(6,88)
|
inspect:
Bot/Coc.cs#L8
"[CA1852] Type 'ClanUtil' can be sealed because it has no subtypes in its containing assembly and is not externally visible" on /home/runner/work/Hyperstellar/Hyperstellar/Bot/Coc.cs(8,112)
|
inspect:
Bot/Coc.cs#L10
"[NotAccessedField.Local] Field '_clan' is assigned but its value is never used" on /home/runner/work/Hyperstellar/Hyperstellar/Bot/Coc.cs(10,158)
|
inspect:
Bot/Coc.cs#L13
"[CollectionNeverQueried.Local] Content of collection '_joiningMembers' is only updated but never used" on /home/runner/work/Hyperstellar/Hyperstellar/Bot/Coc.cs(13,374)
|
inspect:
Bot/Coc.cs#L35
"[UnusedParameter.Local] Parameter 'init' is never used" on /home/runner/work/Hyperstellar/Hyperstellar/Bot/Coc.cs(35,1103)
|
inspect:
Bot/Coc.cs#L66
"[ConditionIsAlwaysTrueOrFalseAccordingToNullableAPIContract] Expression is always false according to nullable reference types' annotations" on /home/runner/work/Hyperstellar/Hyperstellar/Bot/Coc.cs(66,2254)
|
inspect:
Bot/Coc.cs#L108
"[FunctionNeverReturns] Function never returns" on /home/runner/work/Hyperstellar/Hyperstellar/Bot/Coc.cs(108,3503)
|
inspect:
Bot/Discord.cs#L7
"[CA1852] Type 'Discord' can be sealed because it has no subtypes in its containing assembly and is not externally visible" on /home/runner/work/Hyperstellar/Hyperstellar/Bot/Discord.cs(7,112)
|
inspect:
Bot/Discord.cs#L29
"[IDE0058] Expression value is never used" on /home/runner/work/Hyperstellar/Hyperstellar/Bot/Discord.cs(29,897)
|
inspect:
Bot/Discord.cs#L65
"[IDE0058] Expression value is never used" on /home/runner/work/Hyperstellar/Hyperstellar/Bot/Discord.cs(65,1987)
|
inspect:
Bot/Coc.cs#L6
"[ClassNeverInstantiated.Global] Class 'Coc' is never instantiated" on /home/runner/work/Hyperstellar/Hyperstellar/Bot/Coc.cs(6,88)
|
inspect:
Bot/Coc.cs#L13
"[MemberCanBePrivate.Local] Field '_joiningMembers' can be made private" on /home/runner/work/Hyperstellar/Hyperstellar/Bot/Coc.cs(13,325)
|
inspect:
Bot/Coc.cs#L14
"[MemberCanBePrivate.Local] Field '_leavingMembers' can be made private" on /home/runner/work/Hyperstellar/Hyperstellar/Bot/Coc.cs(14,404)
|
inspect:
Bot/Coc.cs#L45
"[MemberCanBePrivate.Local] Method 'HasMember' can be made private" on /home/runner/work/Hyperstellar/Hyperstellar/Bot/Coc.cs(45,1333)
|
inspect:
Bot/Coc.cs#L45
"[SuggestBaseTypeForParameter] Parameter can be of type 'ClashOfClans.Models.Identity'" on /home/runner/work/Hyperstellar/Hyperstellar/Bot/Coc.cs(45,1357)
|
inspect:
Bot/Coc.cs#L55
"[MemberCanBePrivate.Global] Field 's_client' can be made private" on /home/runner/work/Hyperstellar/Hyperstellar/Bot/Coc.cs(55,1657)
|
inspect:
Bot/Coc.cs#L90
"[ArrangeObjectCreationWhenTypeNotEvident] Missing type specification" on /home/runner/work/Hyperstellar/Hyperstellar/Bot/Coc.cs(90,2990)
|
inspect:
Bot/Coc.cs#L99
"[ArrangeObjectCreationWhenTypeNotEvident] Missing type specification" on /home/runner/work/Hyperstellar/Hyperstellar/Bot/Coc.cs(99,3304)
|
inspect:
Bot/Discord.cs#L7
"[ClassNeverInstantiated.Global] Class 'Discord' is never instantiated" on /home/runner/work/Hyperstellar/Hyperstellar/Bot/Discord.cs(7,112)
|
inspect:
Bot/Discord.cs#L45
"[ForeachCanBeConvertedToQueryUsingAnotherGetEnumerator] Loop can be converted into LINQ-expression but another 'GetEnumerator' method will be used" on /home/runner/work/Hyperstellar/Hyperstellar/Bot/Discord.cs(45,1382)
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
Bot
Expired
|
5.48 MB |
|