Skip to content

Commit 22ada59

Browse files
Merge pull request #77 from atc-net/feature/issues-68-has-internet-connection
Fix issues 68 - has internet connection check
2 parents 28c7bab + 1f2da51 commit 22ada59

29 files changed

+60
-18
lines changed

.editorconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,6 @@ dotnet_diagnostic.S1135.severity = suggestion # https://github.com/atc-net
505505

506506
dotnet_diagnostic.IDE0057.severity = none # Substring can be simplified
507507

508-
dotnet_diagnostic.CA1031.severity = none # Do not catch general exception types
509508
dotnet_diagnostic.CA1054.severity = none # URI parameters should not be strings
510509
dotnet_diagnostic.CA1848.severity = none # For improved performance, use the LoggerMessage delegates instead of calling 'LoggerExtensions.LogTrace(ILogger, string, params object[])'
511510
dotnet_diagnostic.CA2007.severity = none # Consider calling ConfigureAwait on the awaited task

.github/workflows/post-integration.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
run: dotnet build -c Release --no-restore /p:UseSourceLink=true
5151

5252
- name: 🧪 Run unit tests
53-
run: dotnet test -c Release --no-build
53+
run: dotnet test -c Release --no-build --filter "Category!=Integration"
5454

5555
- name: 🌩️ SonarCloud install scanner
5656
run: dotnet tool install --global dotnet-sonarscanner

.github/workflows/pre-integration.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,4 @@ jobs:
5555
run: dotnet build -c Release --no-restore /p:UseSourceLink=true
5656

5757
- name: 🧪 Run unit tests
58-
run: dotnet test -c Release --no-build
58+
run: dotnet test -c Release --no-build --filter "Category!=Integration"

.github/workflows/release.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,9 @@ jobs:
5454

5555
- name: 📦 Push packages to NuGet
5656
run: dotnet nuget push ${GITHUB_WORKSPACE}/packages/'atc-coding-rules-updater.'${NBGV_NuGetPackageVersion}'.nupkg' -k ${{ secrets.NUGET_KEY }} -s ${{ env.NUGET_REPO_URL }} --skip-duplicate --no-symbols
57+
58+
- name: 🌩️ ATC-API invalidate cache for CLI-Tool
59+
uses: satak/webrequest-action@master
60+
with:
61+
url: https://atc-api.azurewebsites.net/nuget-search/package?packageId=atc-coding-rules-updater&invalidateCache=true
62+
method: GET

src/Atc.CodingRules.AnalyzerProviders/Atc.CodingRules.AnalyzerProviders.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
</PropertyGroup>
1010

1111
<ItemGroup>
12-
<PackageReference Include="Atc" Version="2.0.60" />
12+
<PackageReference Include="Atc" Version="2.0.67" />
1313
<PackageReference Include="HtmlAgilityPack" Version="1.11.42" />
1414
</ItemGroup>
1515

src/Atc.CodingRules.Updater.CLI/Atc.CodingRules.Updater.CLI.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
</PropertyGroup>
1414

1515
<ItemGroup>
16-
<PackageReference Include="Atc" Version="2.0.60" />
17-
<PackageReference Include="Atc.Console.Spectre" Version="2.0.60" />
16+
<PackageReference Include="Atc" Version="2.0.67" />
17+
<PackageReference Include="Atc.Console.Spectre" Version="2.0.67" />
1818
<PackageReference Include="EPPlus" Version="5.8.6" />
1919
<PackageReference Include="Microsoft.Extensions.Hosting" Version="6.0.1" />
2020
</ItemGroup>

src/Atc.CodingRules.Updater.CLI/Commands/AnalyzerProvidersCacheCleanupCommand.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
namespace Atc.CodingRules.Updater.CLI.Commands;
22

3+
[SuppressMessage("Design", "CA1031:Do not catch general exception types", Justification = "OK.")]
34
public class AnalyzerProvidersCacheCleanupCommand : Command
45
{
56
private readonly ILogger<AnalyzerProvidersCacheCleanupCommand> logger;

src/Atc.CodingRules.Updater.CLI/Commands/AnalyzerProvidersCollectCommand.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ public override Task<int> ExecuteAsync(
1717
return ExecuteInternalAsync(settings);
1818
}
1919

20+
[SuppressMessage("Design", "CA1031:Do not catch general exception types", Justification = "OK.")]
2021
private async Task<int> ExecuteInternalAsync(
2122
AnalyzerProvidersCollectCommandSettings settings)
2223
{

src/Atc.CodingRules.Updater.CLI/Commands/OptionsFileCreateCommand.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ public override Task<int> ExecuteAsync(
1414
return ExecuteInternalAsync(settings);
1515
}
1616

17+
[SuppressMessage("Design", "CA1031:Do not catch general exception types", Justification = "OK.")]
1718
private async Task<int> ExecuteInternalAsync(
1819
ProjectCommandSettings settings)
1920
{

src/Atc.CodingRules.Updater.CLI/Commands/OptionsFileValidateCommand.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ public override Task<int> ExecuteAsync(
1515
return ExecuteInternalAsync(settings);
1616
}
1717

18+
[SuppressMessage("Design", "CA1031:Do not catch general exception types", Justification = "OK.")]
1819
private async Task<int> ExecuteInternalAsync(
1920
ProjectBaseCommandSettings settings)
2021
{

0 commit comments

Comments
 (0)