mirror of
https://github.com/firstsun-dev/git-files-sync.git
synced 2026-07-22 06:54:27 +00:00
Merge pull request #9 from firstsun-dev/fix/sonarcloud-failure
fix: SonarCloud analysis failure and quality gate issues
This commit is contained in:
commit
63f80530a1
5 changed files with 33 additions and 8 deletions
4
.github/workflows/sonarqube.yml
vendored
4
.github/workflows/sonarqube.yml
vendored
|
|
@ -45,3 +45,7 @@ jobs:
|
|||
uses: SonarSource/sonarqube-scan-action@v7.1.0
|
||||
env:
|
||||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||
SONAR_HOST_URL: https://sonarcloud.io
|
||||
with:
|
||||
args: >
|
||||
-Dsonar.qualitygate.wait=true
|
||||
|
|
|
|||
6
.gitignore
vendored
6
.gitignore
vendored
|
|
@ -18,5 +18,11 @@ main.js
|
|||
# obsidian
|
||||
data.json
|
||||
|
||||
# test coverage
|
||||
coverage/
|
||||
|
||||
# Claude worktrees
|
||||
.claude/
|
||||
|
||||
# Exclude macOS Finder (System Explorer) View States
|
||||
.DS_Store
|
||||
|
|
|
|||
|
|
@ -30,5 +30,7 @@ export default tseslint.config(
|
|||
"version-bump.mjs",
|
||||
"versions.json",
|
||||
"main.js",
|
||||
".claude/**",
|
||||
"coverage/**",
|
||||
]),
|
||||
);
|
||||
|
|
|
|||
|
|
@ -1,14 +1,20 @@
|
|||
sonar.projectKey=firstsun-dev_git-files-sync
|
||||
sonar.organization=firstsun-dev
|
||||
|
||||
|
||||
# This is the name and version displayed in the SonarCloud UI.
|
||||
#sonar.projectName=git-files-sync
|
||||
#sonar.projectVersion=1.0
|
||||
sonar.projectName=git-files-sync
|
||||
sonar.projectVersion=1.1.0
|
||||
|
||||
# Path is relative to the sonar-project.properties file.
|
||||
sonar.sources=src
|
||||
sonar.tests=tests
|
||||
sonar.test.inclusions=tests/**/*.test.ts
|
||||
|
||||
# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
|
||||
#sonar.sources=.
|
||||
# Encoding of the source code.
|
||||
sonar.sourceEncoding=UTF-8
|
||||
|
||||
# Encoding of the source code. Default is default system encoding
|
||||
#sonar.sourceEncoding=UTF-8
|
||||
# Coverage reporting
|
||||
sonar.javascript.lcov.reportPaths=coverage/lcov.info
|
||||
|
||||
# Exclusions
|
||||
sonar.exclusions=main.js, styles.css, node_modules/**, .claude/**, dist/**, *.config.*
|
||||
|
|
|
|||
|
|
@ -7,6 +7,13 @@ export default defineConfig({
|
|||
setupFiles: ['./tests/setup.ts'],
|
||||
alias: {
|
||||
'obsidian': './tests/setup.ts'
|
||||
}
|
||||
},
|
||||
include: ['tests/**/*.test.ts'],
|
||||
exclude: ['**/node_modules/**', '**/.claude/**'],
|
||||
coverage: {
|
||||
include: ['src/**/*.ts'],
|
||||
exclude: ['src/ui/**', 'src/main.ts', 'src/settings.ts', '**/.claude/**'],
|
||||
reporter: ['text', 'json', 'html', 'lcov'],
|
||||
},
|
||||
},
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue