Skip to content

Commit 59007e9

Browse files
committed
Codacity round 2
1 parent 48698c3 commit 59007e9

3 files changed

Lines changed: 13 additions & 8 deletions

File tree

.github/workflows/ci.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,11 +128,17 @@ jobs:
128128
- name: Generate coverage report
129129
run: npm run test:coverage
130130

131-
- name: Generate coverage badge
132-
uses: jaywcjlove/coverage-badges-cli@main
131+
- name: Generate coverage badge
132+
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
133133
with:
134-
source: coverage/coverage-summary.json
135-
output: coverage/badges.svg
134+
script: |
135+
const fs = require('fs');
136+
const path = 'coverage/coverage-summary.json';
137+
if (fs.existsSync(path)) {
138+
const coverage = JSON.parse(fs.readFileSync(path, 'utf8'));
139+
const pct = coverage.total.lines.pct;
140+
console.log(`Coverage: ${pct}%`);
141+
}
136142
137143
- name: Upload coverage reports
138144
uses: actions/upload-artifact@v4

src/Types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,10 @@ export interface VTourExposedMethods {
143143
stopTour: () => void;
144144

145145
/** Navigate to a specific step by index */
146-
goToStep: (stepIndex: number) => Promise<void>;
146+
goToStep: (_stepIndex: number) => Promise<void>;
147147

148148
/** Reset tour state and optionally restart */
149-
resetTour: (shouldRestart?: boolean) => void;
149+
resetTour: (_shouldRestart?: boolean) => void;
150150

151151
/** Update tooltip position */
152152
updatePosition: () => Promise<void>;

vite.config.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ export default defineConfig({
3838
}),
3939
dts({
4040
insertTypesEntry: true,
41-
cleanVueFileName: true,
42-
rollupTypes: true
41+
cleanVueFileName: true
4342
})
4443
],
4544
server: {

0 commit comments

Comments
 (0)