Skip to content

Commit c7e1280

Browse files
appveyor and sonar ymls update, and file encodings
1 parent f1a394f commit c7e1280

17 files changed

Lines changed: 217 additions & 57 deletions

.gitattributes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
# Auto detect text files and perform LF normalization
1+
# Auto detect text files and perform LF normalization
22
* text=auto

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
---
1+
---
22
name: Bug report
33
about: Create a bug report to help us improve
44
title: "[BUG] Write the title here"

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
---
1+
---
22
name: Feature request
33
about: Suggest an idea for this project
44
title: "[FEATURE] Write the title here"

.github/ISSUE_TEMPLATE/question---get-support.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
---
1+
---
22
name: Question / Get Support
33
about: Ask any question you have in mind related to this project
44
title: "[QUESTION] Write the title here"

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Description
1+
# Description
22

33
Please include a summary of the changes and the related issue. Also include relevant motivation and context.
44

.github/workflows/build.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# ------------------------------------------
2+
# CUSTOMIZABLE TEMPLATE REPOSITORY VARIABLES
3+
#
4+
env:
5+
SOLUTION_NAME: "Temp File Cleaner VS2026"
6+
SOLUTION_EXT: "slnx"
7+
SONAR_PROJECT_KEY: "ElektroStudios_Temp-File-Cleaner-for-Visual-Studio-2026"
8+
SONAR_ORGANIZATION: "elektrostudios"
9+
# ------------------------------------------
10+
11+
name: SonarQube
12+
on:
13+
push:
14+
branches:
15+
- main
16+
pull_request:
17+
types: [opened, synchronize, reopened]
18+
jobs:
19+
build:
20+
name: Build and analyze
21+
runs-on: windows-latest
22+
steps:
23+
- name: Set up JDK 17
24+
uses: actions/setup-java@c1e323688fd81a25caa38c78aa6df2d33d3e20d9 # v4.8.0
25+
with:
26+
java-version: 17
27+
distribution: 'zulu' # Alternative distribution options are available.
28+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
29+
with:
30+
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
31+
- name: Cache SonarQube Cloud packages
32+
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
33+
with:
34+
path: ~\sonar\cache
35+
key: ${{ runner.os }}-sonar
36+
restore-keys: ${{ runner.os }}-sonar
37+
- name: Cache SonarQube Cloud scanner
38+
id: cache-sonar-scanner
39+
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
40+
with:
41+
path: ${{ runner.temp }}\scanner
42+
key: ${{ runner.os }}-sonar-scanner
43+
restore-keys: ${{ runner.os }}-sonar-scanner
44+
- name: Install SonarQube Cloud scanner
45+
if: steps.cache-sonar-scanner.outputs.cache-hit != 'true'
46+
shell: powershell
47+
run: |
48+
New-Item -Path ${{ runner.temp }}\scanner -ItemType Directory
49+
dotnet tool update dotnet-sonarscanner --tool-path ${{ runner.temp }}\scanner
50+
- name: Setup MSBuild
51+
uses: microsoft/setup-msbuild@6fb02220983dee41ce7ae257b6f4d8f9bf5ed4ce # v2.0.0
52+
- name: Build and analyze
53+
env:
54+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
55+
shell: powershell
56+
run: |
57+
dotnet nuget locals all --clear
58+
& "${{ runner.temp }}\scanner\dotnet-sonarscanner" begin /k:"${{ env.SONAR_PROJECT_KEY }}" /o:"${{ env.SONAR_ORGANIZATION }}" /d:sonar.token="$env:SONAR_TOKEN" /d:sonar.sourceEncoding=UTF-8 /d:sonar.exclusions="**/*.png,**/*.ico,**/*.jpg,**/*.jpeg,**/*.gif,**/*.webp,**/*.bmp,**/*.tif,**/*.tiff,**/*.rtf,**/*.html,**/*.htm,**/*.resx,**/*.yml,**/*.myapp,**/*.sample,**/*.settings,**/*.conf,**/*.md,**/*.bin,**/*.sln,**/*.slnx,**/*.zip,**/*.rar,**/*.rev,**/*.idx,**/*.nfo,**/*.gitattributes,**/*.gitignore,**/.github/**/*"
59+
nuget restore "Source\${{ env.SOLUTION_NAME }}.${{ env.SOLUTION_EXT }}"
60+
dotnet build "Source\${{ env.SOLUTION_NAME }}.${{ env.SOLUTION_EXT }}" -p:Configuration=Release -p:GenerateResourceUsePreserializedResources=true
61+
& "${{ runner.temp }}\scanner\dotnet-sonarscanner" end /d:sonar.token="$env:SONAR_TOKEN"

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Ignore Visual Studio temporary files, build results, and
1+
## Ignore Visual Studio temporary files, build results, and
22
## files generated by popular Visual Studio add-ons.
33
##
44
## Get latest from https://github.com/github/gitignore/blob/main/VisualStudio.gitignore

CODE_OF_CONDUCT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Contributor Covenant Code of Conduct
1+
# Contributor Covenant Code of Conduct
22

33
## Our Pledge
44

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## 💪 Contributing
1+
## 💪 Contributing
22

33
Your contribution is highly appreciated!. If you have any ideas, suggestions, or encounter issues, feel free to open an issue.
44

Docs/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Snippet Tool for Visual Studio 2026 Change Log 📋
1+
# Snippet Tool for Visual Studio 2026 Change Log 📋
22

33
## v1.0 *(current)* 🆕
44
Initial Release.

0 commit comments

Comments
 (0)