From 04e8d850552e9862a515f47906ab143984d0b6cb Mon Sep 17 00:00:00 2001 From: Shing Rui Date: Tue, 21 May 2024 22:28:11 +0800 Subject: [PATCH] Add sonar excludes files. --- main.js | 4 ++-- sonar-project.properties | 5 +---- src/components/User.vue | 2 +- src/components/layout/Header.vue | 12 +++++------- 4 files changed, 9 insertions(+), 14 deletions(-) diff --git a/main.js b/main.js index 95fd13a..31cec36 100644 --- a/main.js +++ b/main.js @@ -8,8 +8,8 @@ process.env['ELECTRON_DISABLE_SECURITY_WARNINGS'] = 'true' function createWindow() { const win = new BrowserWindow({ - width: 1024, - height: 768, + minWidth: 1024, + minHeight: 768, webPreferences: { nodeIntegration: true, contextIsolation: false, diff --git a/sonar-project.properties b/sonar-project.properties index b9ad52b..3e94d81 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -1,7 +1,4 @@ sonar.organization=sunquakes sonar.projectKey=sunquakes_electron-kits -sonar.issue.ignore.allfile=true -sonar.issue.ignore.multicriteria=e1 -sonar.issue.ignore.multicriteria.e1.ruleKey=common-detection:DuplicatedBlocks -sonar.issue.ignore.multicriteria.e1.resourceKey=src/lang/**.js \ No newline at end of file +sonar.exclusions=src/lang/**.js \ No newline at end of file diff --git a/src/components/User.vue b/src/components/User.vue index c8857b7..bb42b97 100644 --- a/src/components/User.vue +++ b/src/components/User.vue @@ -76,7 +76,7 @@ const formState = reactive({ const initPagination: Pagination = { current: 1, - pageSize: 1 + pageSize: 5 } const pagination = reactive({ ...initPagination }) diff --git a/src/components/layout/Header.vue b/src/components/layout/Header.vue index 21c392a..c10c266 100644 --- a/src/components/layout/Header.vue +++ b/src/components/layout/Header.vue @@ -1,17 +1,14 @@