Skip to content
Open

Lab1 #54

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
b7921d8
Update sonarcloud.yml
YehorYurch5 Oct 30, 2025
e62fa90
Update sonarcloud.yml
YehorYurch5 Oct 30, 2025
7bacd13
Update README.md
YehorYurch5 Oct 30, 2025
19e0594
Update Program.cs
YehorYurch5 Nov 6, 2025
d3fbb7f
Update Program.cs
YehorYurch5 Nov 6, 2025
41a6ec7
Update NetSdrClient.cs
YehorYurch5 Nov 6, 2025
02b89ff
update
Nov 6, 2025
c2ff926
Update
Nov 6, 2025
aa93a91
Update
Nov 8, 2025
f037ad2
Update
Nov 8, 2025
7fdd598
Update NetSdrClient.cs
YehorYurch5 Nov 8, 2025
e989175
lab7
Nov 10, 2025
21c1e04
lab7
Nov 14, 2025
86625e9
Lab7
Nov 14, 2025
2ea8eff
manual_update_lab7
Nov 14, 2025
587414e
Merge pull request #6 from YehorYurch5/lab7
YehorYurch5 Nov 14, 2025
2823304
Bump SharpZipLib from 1.3.2 to 1.3.3
dependabot[bot] Nov 15, 2025
9690efc
Merge pull request #7 from YehorYurch5/dependabot/nuget/NetSdrClientA…
YehorYurch5 Nov 15, 2025
e2f826d
manualupdate NetSdrClientApp.csproj
YehorYurch5 Nov 15, 2025
f92c4b3
update
Nov 22, 2025
e6d89f4
Merge pull request #9 from YehorYurch5/lab8_!
YehorYurch5 Nov 22, 2025
394f64f
updatetest
Nov 22, 2025
f06b315
update
Nov 22, 2025
3630557
update
Nov 22, 2025
b6a8be1
update
Nov 22, 2025
4cdb81f
update
Nov 22, 2025
236a85c
update
Nov 23, 2025
9945000
update
Nov 23, 2025
b56f3b4
update
Nov 23, 2025
da7addc
update
Nov 23, 2025
fa0cf7c
update
Nov 23, 2025
492a8a8
update
Nov 23, 2025
ddc0182
update
Nov 23, 2025
91d24f4
update
Nov 23, 2025
403eed8
update
Nov 23, 2025
2f49b10
update
Nov 23, 2025
f263dd5
update
Nov 23, 2025
e0e4528
update
Nov 23, 2025
4879e21
update
Nov 23, 2025
8a0fbab
update
Nov 23, 2025
2cbadfb
Merge pull request #10 from YehorYurch5/lab8_!
YehorYurch5 Nov 23, 2025
d1f5283
update
Nov 23, 2025
bd5387c
Update
Nov 23, 2025
77fcf92
Merge pull request #11 from YehorYurch5/lab8.2
YehorYurch5 Nov 23, 2025
d46de70
update
Nov 23, 2025
6b5c59c
update
Nov 23, 2025
1074801
Merge pull request #12 from YehorYurch5/lab8.3
YehorYurch5 Nov 23, 2025
6fbfbe8
Update
Nov 23, 2025
f6d42f9
Merge pull request #13 from YehorYurch5/lab8.4
YehorYurch5 Nov 23, 2025
0bbbdb8
Update
Nov 23, 2025
1fdb163
update
Nov 23, 2025
76684bd
update
Nov 23, 2025
2f89d30
Update
Nov 23, 2025
a5035d0
update
Nov 23, 2025
39cec1c
Merge pull request #14 from YehorYurch5/lab8.5
YehorYurch5 Nov 23, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: 2
updates:
# Configuration for the NuGet package ecosystem (.NET / C#)
- package-ecosystem: "nuget"
# Path to the manifest files (csproj) � check the root of the repository
directory: "/"
schedule:
interval: "weekly"
66 changes: 22 additions & 44 deletions .github/workflows/sonarcloud.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,3 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

# This workflow helps you trigger a SonarCloud analysis of your code and populates
# GitHub Code Scanning alerts with the vulnerabilities found.
# Free for open source project.

# 1. Login to SonarCloud.io using your GitHub account

# 2. Import your project on SonarCloud
# * Add your GitHub organization first, then add your repository as a new project.
# * Please note that many languages are eligible for automatic analysis,
# which means that the analysis will start automatically without the need to set up GitHub Actions.
# * This behavior can be changed in Administration > Analysis Method.
#
# 3. Follow the SonarCloud in-product tutorial
# * a. Copy/paste the Project Key and the Organization Key into the args parameter below
# (You'll find this information in SonarCloud. Click on "Information" at the bottom left)
#
# * b. Generate a new token and add it to your Github repository's secrets using the name SONAR_TOKEN
# (On SonarCloud, click on your avatar on top-right > My account > Security
# or go directly to https://sonarcloud.io/account/security/)

# Feel free to take a look at our documentation (https://docs.sonarcloud.io/getting-started/github/)
# or reach out to our community forum if you need some help (https://community.sonarsource.com/c/help/sc/9)

name: SonarCloud analysis

on:
Expand All @@ -41,10 +13,11 @@ permissions:
jobs:
sonar-check:
name: Sonar Check
runs-on: windows-latest # безпечно для будь-яких .NET проектів
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with: { fetch-depth: 0 }
- uses: actions/checkout@v4 # <-- ВИПРАВЛЕНО: Відновлено коректне використання '- uses:'
with:
fetch-depth: 0

- uses: actions/setup-dotnet@v4
with:
Expand All @@ -56,28 +29,33 @@ jobs:
dotnet tool install --global dotnet-sonarscanner
echo "$env:USERPROFILE\.dotnet\tools" >> $env:GITHUB_PATH
dotnet sonarscanner begin `
/k:"ppanchen_NetSdrClient" `
/o:"ppanchen" `
/k:"YehorYurch5_NetSdrClient" `
/o:"yehoryurch5-kai" `
/d:sonar.token="${{ secrets.SONAR_TOKEN }}" `
/d:sonar.cs.opencover.reportsPaths="**/coverage.xml" `
/d:sonar.cs.opencover.reportsPaths="EchoServerTests/TestResults/coverage.xml,NetSdrClientAppTests/TestResults/coverage.xml" `
/d:sonar.cpd.cs.minimumTokens=40 `
/d:sonar.cpd.cs.minimumLines=5 `
/d:sonar.exclusions=**/bin/**,**/obj/**,**/sonarcloud.yml `
/d:sonar.qualitygate.wait=true
/d:sonar.exclusions="**/bin/**,**/obj/**,**/sonarcloud.yml,**/EchoTspServer/Presentation/Program.cs,**/NetSdrClient/NetSdrClientApp/Program.cs,**/Program.cs" `
/d:sonar.coverage.exclusions="**/Program.cs,**/EchoTspServer/Presentation/Program.cs,**/NetSdrClientApp/Program.cs"
shell: pwsh

# 2) BUILD & TEST
- name: Restore
run: dotnet restore NetSdrClient.sln

- name: Build
run: dotnet build NetSdrClient.sln -c Release --no-restore
#- name: Tests with coverage (OpenCover)
# run: |
# dotnet test NetSdrClientAppTests/NetSdrClientAppTests.csproj -c Release --no-build `
# /p:CollectCoverage=true `
# /p:CoverletOutput=TestResults/coverage.xml `
# /p:CoverletOutputFormat=opencover
# shell: pwsh

- name: Tests with coverage (OpenCover)
run: |
# 🔹 Автоматично запускає всі тестові проєкти у рішенні (.sln)
dotnet test NetSdrClient.sln -c Release --no-build `
/p:CollectCoverage=true `
/p:CoverletOutput=TestResults/coverage.xml `
/p:CoverletOutputFormat=opencover
shell: pwsh

# 3) END: SonarScanner
- name: SonarScanner End
run: dotnet sonarscanner end /d:sonar.token="${{ secrets.SONAR_TOKEN }}"
shell: pwsh
shell: pwsh
9 changes: 9 additions & 0 deletions .sonarqube/conf/0/FilesToAnalyze.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
C:\Users\compa\source\repos\YehorYurch5\NetSdrClient\EchoTspServer\Application\Interfaces\IClientHandler.cs
C:\Users\compa\source\repos\YehorYurch5\NetSdrClient\EchoTspServer\Application\Interfaces\IEchoServer.cs
C:\Users\compa\source\repos\YehorYurch5\NetSdrClient\EchoTspServer\Application\Interfaces\ILogger.cs
C:\Users\compa\source\repos\YehorYurch5\NetSdrClient\EchoTspServer\Application\Interfaces\IUdpSender.cs
C:\Users\compa\source\repos\YehorYurch5\NetSdrClient\EchoTspServer\Application\Services\ClientHandler.cs
C:\Users\compa\source\repos\YehorYurch5\NetSdrClient\EchoTspServer\Application\Services\EchoServer.cs
C:\Users\compa\source\repos\YehorYurch5\NetSdrClient\EchoTspServer\Application\Services\UdpTimedSender.cs
C:\Users\compa\source\repos\YehorYurch5\NetSdrClient\EchoTspServer\Presentation\Infrastructure\ConsoleLogger.cs
C:\Users\compa\source\repos\YehorYurch5\NetSdrClient\EchoTspServer\Presentation\Program.cs
1 change: 1 addition & 0 deletions .sonarqube/conf/0/ProjectOutFolderPath.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
C:\Users\compa\source\repos\YehorYurch5\NetSdrClient\.sonarqube\out\0
9 changes: 9 additions & 0 deletions .sonarqube/conf/0/SonarProjectConfig.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<SonarProjectConfig xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.sonarsource.com/msbuild/analyzer/2021/1">
<AnalysisConfigPath>C:\Users\compa\source\repos\YehorYurch5\NetSdrClient\.sonarqube\conf\SonarQubeAnalysisConfig.xml</AnalysisConfigPath>
<ProjectPath>C:\Users\compa\source\repos\YehorYurch5\NetSdrClient\EchoTspServer\EchoServer.csproj</ProjectPath>
<FilesToAnalyzePath>C:\Users\compa\source\repos\YehorYurch5\NetSdrClient\.sonarqube\conf\0\FilesToAnalyze.txt</FilesToAnalyzePath>
<OutPath>C:\Users\compa\source\repos\YehorYurch5\NetSdrClient\.sonarqube\out\0</OutPath>
<ProjectType>Product</ProjectType>
<TargetFramework>net8.0</TargetFramework>
</SonarProjectConfig>
7 changes: 7 additions & 0 deletions .sonarqube/conf/1/FilesToAnalyze.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
C:\Users\compa\source\repos\YehorYurch5\NetSdrClient\NetSdrClientApp\Messages\NetSdrMessageHelper.cs
C:\Users\compa\source\repos\YehorYurch5\NetSdrClient\NetSdrClientApp\NetSdrClient.cs
C:\Users\compa\source\repos\YehorYurch5\NetSdrClient\NetSdrClientApp\Networking\ITcpClient.cs
C:\Users\compa\source\repos\YehorYurch5\NetSdrClient\NetSdrClientApp\Networking\IUdpClient.cs
C:\Users\compa\source\repos\YehorYurch5\NetSdrClient\NetSdrClientApp\Networking\TcpClientWrapper.cs
C:\Users\compa\source\repos\YehorYurch5\NetSdrClient\NetSdrClientApp\Networking\UdpClientWrapper.cs
C:\Users\compa\source\repos\YehorYurch5\NetSdrClient\NetSdrClientApp\Program.cs
1 change: 1 addition & 0 deletions .sonarqube/conf/1/ProjectOutFolderPath.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
C:\Users\compa\source\repos\YehorYurch5\NetSdrClient\.sonarqube\out\1
9 changes: 9 additions & 0 deletions .sonarqube/conf/1/SonarProjectConfig.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<SonarProjectConfig xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.sonarsource.com/msbuild/analyzer/2021/1">
<AnalysisConfigPath>C:\Users\compa\source\repos\YehorYurch5\NetSdrClient\.sonarqube\conf\SonarQubeAnalysisConfig.xml</AnalysisConfigPath>
<ProjectPath>C:\Users\compa\source\repos\YehorYurch5\NetSdrClient\NetSdrClientApp\NetSdrClientApp.csproj</ProjectPath>
<FilesToAnalyzePath>C:\Users\compa\source\repos\YehorYurch5\NetSdrClient\.sonarqube\conf\1\FilesToAnalyze.txt</FilesToAnalyzePath>
<OutPath>C:\Users\compa\source\repos\YehorYurch5\NetSdrClient\.sonarqube\out\1</OutPath>
<ProjectType>Product</ProjectType>
<TargetFramework>net8.0</TargetFramework>
</SonarProjectConfig>
13 changes: 13 additions & 0 deletions .sonarqube/conf/2/FilesToAnalyze.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
C:\Users\compa\source\repos\YehorYurch5\NetSdrClient\NetSdrClientAppTests\ArchitectureTests.cs
C:\Users\compa\source\repos\YehorYurch5\NetSdrClient\NetSdrClientAppTests\NetSdrClientTests.cs
C:\Users\compa\source\repos\YehorYurch5\NetSdrClient\NetSdrClientAppTests\NetSdrMessageHelperTests.cs
C:\Users\compa\.nuget\packages\microsoft.net.test.sdk\18.0.0\build\net8.0\Microsoft.NET.Test.Sdk.Program.cs
C:\Users\compa\.nuget\packages\microsoft.testplatform.testhost\18.0.0\build\net8.0\x64\testhost.exe
C:\Users\compa\.nuget\packages\microsoft.testplatform.testhost\18.0.0\build\net8.0\x64\testhost.dll
C:\Users\compa\.nuget\packages\nunit3testadapter\4.5.0\build\netcoreapp3.1\NUnit3.TestAdapter.dll
C:\Users\compa\.nuget\packages\nunit3testadapter\4.5.0\build\netcoreapp3.1\NUnit3.TestAdapter.pdb
C:\Users\compa\.nuget\packages\nunit3testadapter\4.5.0\build\netcoreapp3.1\nunit.engine.dll
C:\Users\compa\.nuget\packages\nunit3testadapter\4.5.0\build\netcoreapp3.1\nunit.engine.api.dll
C:\Users\compa\.nuget\packages\nunit3testadapter\4.5.0\build\netcoreapp3.1\nunit.engine.core.dll
C:\Users\compa\.nuget\packages\nunit3testadapter\4.5.0\build\netcoreapp3.1\testcentric.engine.metadata.dll
C:\Users\compa\source\repos\YehorYurch5\NetSdrClient\NetSdrClientAppTests\TestResults\coverage.xml
1 change: 1 addition & 0 deletions .sonarqube/conf/2/ProjectOutFolderPath.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
C:\Users\compa\source\repos\YehorYurch5\NetSdrClient\.sonarqube\out\2
9 changes: 9 additions & 0 deletions .sonarqube/conf/2/SonarProjectConfig.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<SonarProjectConfig xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.sonarsource.com/msbuild/analyzer/2021/1">
<AnalysisConfigPath>C:\Users\compa\source\repos\YehorYurch5\NetSdrClient\.sonarqube\conf\SonarQubeAnalysisConfig.xml</AnalysisConfigPath>
<ProjectPath>C:\Users\compa\source\repos\YehorYurch5\NetSdrClient\NetSdrClientAppTests\NetSdrClientAppTests.csproj</ProjectPath>
<FilesToAnalyzePath>C:\Users\compa\source\repos\YehorYurch5\NetSdrClient\.sonarqube\conf\2\FilesToAnalyze.txt</FilesToAnalyzePath>
<OutPath>C:\Users\compa\source\repos\YehorYurch5\NetSdrClient\.sonarqube\out\2</OutPath>
<ProjectType>Test</ProjectType>
<TargetFramework>net8.0</TargetFramework>
</SonarProjectConfig>
13 changes: 13 additions & 0 deletions .sonarqube/conf/3/FilesToAnalyze.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
C:\Users\compa\source\repos\YehorYurch5\NetSdrClient\EchoServerTests\ClientHandlerTests.cs
C:\Users\compa\source\repos\YehorYurch5\NetSdrClient\EchoServerTests\ConsoleLoggerTests.cs
C:\Users\compa\source\repos\YehorYurch5\NetSdrClient\EchoServerTests\EchoServerTests.cs
C:\Users\compa\source\repos\YehorYurch5\NetSdrClient\EchoServerTests\UdpTimedSenderTests.cs
C:\Users\compa\.nuget\packages\microsoft.net.test.sdk\18.0.0\build\net8.0\Microsoft.NET.Test.Sdk.Program.cs
C:\Users\compa\.nuget\packages\microsoft.testplatform.testhost\18.0.0\build\net8.0\x64\testhost.exe
C:\Users\compa\.nuget\packages\microsoft.testplatform.testhost\18.0.0\build\net8.0\x64\testhost.dll
C:\Users\compa\.nuget\packages\nunit3testadapter\4.5.0\build\netcoreapp3.1\NUnit3.TestAdapter.dll
C:\Users\compa\.nuget\packages\nunit3testadapter\4.5.0\build\netcoreapp3.1\NUnit3.TestAdapter.pdb
C:\Users\compa\.nuget\packages\nunit3testadapter\4.5.0\build\netcoreapp3.1\nunit.engine.dll
C:\Users\compa\.nuget\packages\nunit3testadapter\4.5.0\build\netcoreapp3.1\nunit.engine.api.dll
C:\Users\compa\.nuget\packages\nunit3testadapter\4.5.0\build\netcoreapp3.1\nunit.engine.core.dll
C:\Users\compa\.nuget\packages\nunit3testadapter\4.5.0\build\netcoreapp3.1\testcentric.engine.metadata.dll
1 change: 1 addition & 0 deletions .sonarqube/conf/3/ProjectOutFolderPath.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
C:\Users\compa\source\repos\YehorYurch5\NetSdrClient\.sonarqube\out\3
9 changes: 9 additions & 0 deletions .sonarqube/conf/3/SonarProjectConfig.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<SonarProjectConfig xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.sonarsource.com/msbuild/analyzer/2021/1">
<AnalysisConfigPath>C:\Users\compa\source\repos\YehorYurch5\NetSdrClient\.sonarqube\conf\SonarQubeAnalysisConfig.xml</AnalysisConfigPath>
<ProjectPath>C:\Users\compa\source\repos\YehorYurch5\NetSdrClient\EchoServerTests\EchoServerTests.csproj</ProjectPath>
<FilesToAnalyzePath>C:\Users\compa\source\repos\YehorYurch5\NetSdrClient\.sonarqube\conf\3\FilesToAnalyze.txt</FilesToAnalyzePath>
<OutPath>C:\Users\compa\source\repos\YehorYurch5\NetSdrClient\.sonarqube\out\3</OutPath>
<ProjectType>Test</ProjectType>
<TargetFramework>net8.0</TargetFramework>
</SonarProjectConfig>
Loading