Skip to content

Commit

Permalink
Test dotnet official analyzer
Browse files Browse the repository at this point in the history
  • Loading branch information
Pythonic-Rainbow committed Jan 16, 2024
1 parent d773196 commit 87ddce2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions .github/workflows/bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,18 @@ jobs:
solutionPath: './Bot.sln'
noBuild: true
minimumSeverity: 'warning'
dotnet-inspect:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0.x'
- name: Restore
run: dotnet restore
- name: Inspect
uses: dotnet/code-analysis@v1
with:
solution: './Bot.sln'
build-breaking: true
2 changes: 1 addition & 1 deletion Bot/Coc.cs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ internal static async Task BotReadyAsync()
while (true)
{
await PollAsync();
await Task.Delay(5000);
await Task.Delay(4000);
}
}

Check warning on line 118 in Bot/Coc.cs

View workflow job for this annotation

GitHub Actions / inspect

"[FunctionNeverReturns] Function never returns" on /home/runner/work/Hyperstellar/Hyperstellar/Bot/Coc.cs(118,3771)
}

0 comments on commit 87ddce2

Please sign in to comment.