[Bot] Sealing Alt #27
Annotations
1 error, 11 warnings, and 10 notices
inspect
Issues found.
|
inspect:
Bot/Coc.cs#L11
"[NotAccessedField.Local] Field '_clan' is assigned but its value is never used" on /home/runner/work/Hyperstellar/Hyperstellar/Bot/Coc.cs(11,187)
|
inspect:
Bot/Coc.cs#L87
"[ConditionIsAlwaysTrueOrFalseAccordingToNullableAPIContract] Expression is always false according to nullable reference types' annotations" on /home/runner/work/Hyperstellar/Hyperstellar/Bot/Coc.cs(87,3102)
|
inspect:
Bot/Coc.cs#L169
"[FunctionNeverReturns] Function never returns" on /home/runner/work/Hyperstellar/Hyperstellar/Bot/Coc.cs(169,5589)
|
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#L17
"[FunctionNeverReturns] Function never returns" on /home/runner/work/Hyperstellar/Hyperstellar/Bot/Sql/Db.cs(17,352)
|
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/Sql/Member.cs#L15
"[InconsistentNaming] Name 'CocId' does not match rule 'Parameters'. Suggested name is 'cocId'." on /home/runner/work/Hyperstellar/Hyperstellar/Bot/Sql/Member.cs(15,299)
|
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#L7
"[ClassNeverInstantiated.Global] Class 'Coc' is never instantiated" on /home/runner/work/Hyperstellar/Hyperstellar/Bot/Coc.cs(7,119)
|
inspect:
Bot/Coc.cs#L15
"[FieldCanBeMadeReadOnly.Local] Field can be made readonly" on /home/runner/work/Hyperstellar/Hyperstellar/Bot/Coc.cs(15,473)
|
inspect:
Bot/Coc.cs#L30
"[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(30,987)
|
inspect:
Bot/Coc.cs#L32
"[InvertIf] Invert 'if' statement to reduce nesting" on /home/runner/work/Hyperstellar/Hyperstellar/Bot/Coc.cs(32,1077)
|
inspect:
Bot/Coc.cs#L42
"[ArrangeObjectCreationWhenTypeNotEvident] Missing type specification" on /home/runner/work/Hyperstellar/Hyperstellar/Bot/Coc.cs(42,1465)
|
inspect:
Bot/Coc.cs#L50
"[ArrangeObjectCreationWhenTypeNotEvident] Missing type specification" on /home/runner/work/Hyperstellar/Hyperstellar/Bot/Coc.cs(50,1653)
|
inspect:
Bot/Coc.cs#L67
"[MemberCanBePrivate.Local] Method 'HasMember' can be made private" on /home/runner/work/Hyperstellar/Hyperstellar/Bot/Coc.cs(67,2180)
|
inspect:
Bot/Coc.cs#L67
"[SuggestBaseTypeForParameter] Parameter can be of type 'ClashOfClans.Models.Identity'" on /home/runner/work/Hyperstellar/Hyperstellar/Bot/Coc.cs(67,2204)
|
inspect:
Bot/Coc.cs#L77
"[MemberCanBePrivate.Global] Field 's_client' can be made private" on /home/runner/work/Hyperstellar/Hyperstellar/Bot/Coc.cs(77,2504)
|
inspect:
Bot/Coc.cs#L101
"[ArrangeTrailingCommaInMultilineLists] Remove trailing comma to conform to code style" on /home/runner/work/Hyperstellar/Hyperstellar/Bot/Coc.cs(101,3432)
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
Bot
Expired
|
1.89 MB |
|