Skip to content

Commit 432d024

Browse files
Codacy quality updates
Signed-off-by: Steve Springett <steve@springett.us>
1 parent 49f8a68 commit 432d024

File tree

5 files changed

+10
-6
lines changed

5 files changed

+10
-6
lines changed

.codacy.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,12 @@ engines:
8888
# in try/catch and returns null on failure. The rule cannot see that
8989
# error handling is complete within the async function body.
9090
- ESLint8_security-node_detect-unhandled-async-errors
91+
# False positive: bump-version.mjs uses console.error() with template
92+
# literals for CLI error messages, not HTML output.
93+
- ESLint8_xss_no-mixed-html
94+
# False positive: bump-version.mjs constructs file paths from a static
95+
# list of known package.json locations, not from user input.
96+
- ESLint8_security_detect-non-literal-fs-filename
9197

9298
securitypatterns:
9399
enabled: true

frontend/src/App.vue

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,13 @@
2424
<script setup lang="ts">
2525
import { computed, ref, onMounted } from 'vue'
2626
import { useRoute, useRouter } from 'vue-router'
27-
import { useAuthStore } from '@/stores/auth'
2827
import { useUIStore } from '@/stores/ui'
2928
import TopBar from '@/components/layout/TopBar.vue'
3029
import SideBar from '@/components/layout/SideBar.vue'
3130
import StatusBar from '@/components/layout/StatusBar.vue'
3231
3332
const route = useRoute()
3433
const router = useRouter()
35-
const authStore = useAuthStore()
3634
const uiStore = useUIStore()
3735
3836
const routerReady = ref(false)

frontend/src/components/shared/EventTypeSelector.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,9 @@ function toggleCategory(category: string, checked: boolean) {
145145
const events = eventCategories.value[category] || []
146146
const current = new Set(props.modelValue)
147147
if (checked) {
148-
events.forEach((evt) => current.add(evt))
148+
events.forEach((evt) => { current.add(evt) })
149149
} else {
150-
events.forEach((evt) => current.delete(evt))
150+
events.forEach((evt) => { current.delete(evt) })
151151
}
152152
emit('update:modelValue', [...current])
153153
}

frontend/src/components/shared/SearchSelect.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ const filteredOptions = computed(() => {
127127
const q = searchQuery.value.toLowerCase()
128128
return props.options.filter(o =>
129129
o.label.toLowerCase().includes(q) ||
130-
(o.description && o.description.toLowerCase().includes(q))
130+
(o.description?.toLowerCase().includes(q))
131131
)
132132
})
133133

scripts/bump-version.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,4 @@ for (const relPath of PACKAGE_FILES) {
5151
console.log(`${relPath}: ${previous} -> ${version}`)
5252
}
5353

54-
console.log(`\nAll package.json files set to ${version}`)
54+
console.log(`\nAll package.json files set to version ${version}`)

0 commit comments

Comments
 (0)