Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
08e4677
Update README.md
olekca160406 Dec 5, 2025
792dc80
Update Program.cs
olekca160406 Dec 5, 2025
125b26c
Update Program.cs
olekca160406 Dec 5, 2025
d0b32c9
Update Program.cs
olekca160406 Dec 5, 2025
8dfcb5a
Update sonarcloud.yml
olekca160406 Dec 5, 2025
22c34b7
Update sonarcloud.yml
olekca160406 Dec 5, 2025
c3eb03a
Update sonarcloud.yml
olekca160406 Dec 5, 2025
e515677
Update sonarcloud.yml
olekca160406 Dec 5, 2025
aed126b
Update sonarcloud.yml
olekca160406 Dec 5, 2025
a29cdb9
Update sonarcloud.yml
olekca160406 Dec 5, 2025
a304180
Update IUdpClient.cs
olekca160406 Dec 5, 2025
4102906
Update Program.cs
olekca160406 Dec 5, 2025
665d925
Update IUdpClient.cs
olekca160406 Dec 5, 2025
02d50ff
Update Program.cs
olekca160406 Dec 5, 2025
a125d2b
Update Program.cs
olekca160406 Dec 5, 2025
fb467d2
Update Program.cs
olekca160406 Dec 5, 2025
6bec152
Update Program.cs
olekca160406 Dec 5, 2025
e9981ff
Update IUdpClient.cs
olekca160406 Dec 5, 2025
890982b
Update IUdpClient.cs
olekca160406 Dec 5, 2025
a7fffca
Update Program.cs
olekca160406 Dec 5, 2025
0dd39da
Update README.md
olekca160406 Dec 8, 2025
14844de
Update UdpClientWrapper.cs
olekca160406 Dec 8, 2025
07de388
Update UdpClientWrapper.cs
olekca160406 Dec 8, 2025
a23b990
Update UdpClientWrapper.cs
olekca160406 Dec 8, 2025
7183d4f
Merge branch 'master' into lab2-fix-sonar-issues
olekca160406 Dec 8, 2025
bc96014
Update sonarcloud.yml
olekca160406 Dec 8, 2025
e1ea4f4
Create DummyTests.cs
olekca160406 Dec 8, 2025
802f142
Update DummyTests.cs
olekca160406 Dec 8, 2025
6fdafe7
Update DummyTests.cs
olekca160406 Dec 8, 2025
6ce7794
Delete NetSdrClientAppTests/DummyTests.cs
olekca160406 Dec 8, 2025
c95e44f
Update README.md
olekca160406 Dec 8, 2025
ce9b740
Update README.md
olekca160406 Dec 8, 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
98 changes: 28 additions & 70 deletions .github/workflows/sonarcloud.yml
Original file line number Diff line number Diff line change
@@ -1,83 +1,41 @@
# 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
name: SonarCloud Analysis

on:
push:
branches: [ "master" ]
branches:
- master
pull_request:
branches: [ "master" ]
workflow_dispatch:

permissions:
pull-requests: read # allows SonarCloud to decorate PRs with analysis results
branches:
- master

jobs:
sonar-check:
name: Sonar Check
runs-on: windows-latest # безпечно для будь-яких .NET проектів
build:
runs-on: windows-latest

steps:
- uses: actions/checkout@v4
with: { fetch-depth: 0 }
with:
fetch-depth: 0

- uses: actions/setup-dotnet@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'

# 1) BEGIN: SonarScanner for .NET
- name: SonarScanner Begin
run: |
dotnet tool install --global dotnet-sonarscanner
echo "$env:USERPROFILE\.dotnet\tools" >> $env:GITHUB_PATH
dotnet sonarscanner begin `
/k:"ppanchen_NetSdrClient" `
/o:"ppanchen" `
/d:sonar.token="${{ secrets.SONAR_TOKEN }}" `
/d:sonar.cs.opencover.reportsPaths="**/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
shell: pwsh
# 2) BUILD & TEST
- name: Restore
run: dotnet restore NetSdrClient.sln
- name: Restore dependencies
run: dotnet restore

- 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
# 3) END: SonarScanner
- name: SonarScanner End
run: dotnet sonarscanner end /d:sonar.token="${{ secrets.SONAR_TOKEN }}"
shell: pwsh
run: dotnet build --no-restore

- name: Test
run: dotnet test --no-build --verbosity normal

- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@v2
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
with:
args: >
-Dsonar.projectKey=olekca160406_NetSdrClient
-Dsonar.organization=olekca160406
Loading