Skip to content

Use official .NET .editorconfig #14

Use official .NET .editorconfig

Use official .NET .editorconfig #14

Triggered via push January 16, 2024 05:39
Status Failure
Total duration 51s
Artifacts 1

bot.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

1 error, 20 warnings, and 10 notices
inspect
Issues found.
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/Coc.cs#L10
Naming rule violation: Missing prefix: '_' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide1006)
build: Bot/Coc.cs#L11
Naming rule violation: Missing prefix: '_' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide1006)
build: Bot/Coc.cs#L12
Naming rule violation: Missing prefix: '_' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide1006)
build: Bot/Coc.cs#L13
Naming rule violation: Missing prefix: '_' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide1006)
build: Bot/Coc.cs#L14
Naming rule violation: Missing prefix: '_' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide1006)
build: Bot/Coc.cs#L54
Naming rule violation: Missing prefix: '_' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide1006)
build: Bot/Sql/Db.cs#L7
Private member 'Db.s_db' can be removed as the value assigned to it is never read (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0052)
build: Bot/Coc.cs#L64
Use expression body for method (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0022)
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#L10
"[InconsistentNaming] Name 'Clan' does not match rule 'camel_case_for_private_internal_fields'. Suggested name is '_clan'." on /home/runner/work/Hyperstellar/Hyperstellar/Bot/Coc.cs(10,158)
inspect: Bot/Coc.cs#L10
"[IDE1006] Naming rule violation: Missing prefix: '_'" on /home/runner/work/Hyperstellar/Hyperstellar/Bot/Coc.cs(10,158)
inspect: Bot/Coc.cs#L11
"[InconsistentNaming] Name 'Members' does not match rule 'camel_case_for_private_internal_fields'. Suggested name is '_members'." on /home/runner/work/Hyperstellar/Hyperstellar/Bot/Coc.cs(11,221)
inspect: Bot/Coc.cs#L11
"[IDE1006] Naming rule violation: Missing prefix: '_'" on /home/runner/work/Hyperstellar/Hyperstellar/Bot/Coc.cs(11,221)
inspect: Bot/Coc.cs#L12
"[InconsistentNaming] Name 'ExistingMembers' does not match rule 'camel_case_for_private_internal_fields'. Suggested name is '_existingMembers'." on /home/runner/work/Hyperstellar/Hyperstellar/Bot/Coc.cs(12,292)
inspect: Bot/Coc.cs#L12
"[IDE1006] Naming rule violation: Missing prefix: '_'" on /home/runner/work/Hyperstellar/Hyperstellar/Bot/Coc.cs(12,292)
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,371)
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,322)
inspect: Bot/Coc.cs#L14
"[MemberCanBePrivate.Local] Field 'LeavingMembers' can be made private" on /home/runner/work/Hyperstellar/Hyperstellar/Bot/Coc.cs(14,400)
inspect: Bot/Coc.cs#L45
"[MemberCanBePrivate.Local] Method 'HasMember' can be made private" on /home/runner/work/Hyperstellar/Hyperstellar/Bot/Coc.cs(45,1314)
inspect: Bot/Coc.cs#L45
"[SuggestBaseTypeForParameter] Parameter can be of type 'ClashOfClans.Models.Identity'" on /home/runner/work/Hyperstellar/Hyperstellar/Bot/Coc.cs(45,1338)
inspect: Bot/Coc.cs#L58
"[MemberCanBePrivate.Global] Field 's_client' can be made private" on /home/runner/work/Hyperstellar/Hyperstellar/Bot/Coc.cs(58,1671)
inspect: Bot/Coc.cs#L88
"[ArrangeObjectCreationWhenTypeNotEvident] Missing type specification" on /home/runner/work/Hyperstellar/Hyperstellar/Bot/Coc.cs(88,2958)
inspect: Bot/Coc.cs#L99
"[ArrangeObjectCreationWhenTypeNotEvident] Missing type specification" on /home/runner/work/Hyperstellar/Hyperstellar/Bot/Coc.cs(99,3283)
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,1374)

Artifacts

Produced during runtime
Name Size
Bot Expired
5.48 MB