Skip to content

Commit 0f9ad16

Browse files
committed
fix: Codacy (Hopefully)
1 parent 7d2b582 commit 0f9ad16

2 files changed

Lines changed: 95 additions & 9 deletions

File tree

.codacy.yml

Lines changed: 95 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,107 @@
11
---
2+
# Codacy configuration for VueJS Tour project
23
engines:
4+
# ESLint for JavaScript/TypeScript/Vue linting
35
eslint:
46
enabled: true
57
exclude_paths:
6-
- 'src/Types.ts'
7-
- 'vite.config.ts'
8+
- 'vite.config.*'
9+
- 'vitest.config.*'
10+
- '*.d.ts'
11+
- 'env.d.ts'
12+
- 'docs/.vitepress/**'
13+
configuration:
14+
rules:
15+
# Allow unused parameters in interface method signatures (public API definitions)
16+
"@typescript-eslint/no-unused-vars":
17+
- "error"
18+
- "argsIgnorePattern": "^(stepIndex|shouldRestart)$"
19+
"varsIgnorePattern": "^_"
20+
"args": "after-used"
21+
22+
# TypeScript linting
23+
typescript:
24+
enabled: true
25+
exclude_paths:
26+
- '*.d.ts'
27+
- 'env.d.ts'
28+
- 'vite.config.*'
29+
- 'vitest.config.*'
30+
31+
# Duplication detection
832
duplication:
933
enabled: true
10-
34+
exclude_paths:
35+
- 'test/**'
36+
- 'docs/**'
37+
- 'coverage/**'
38+
39+
# Code complexity analysis
40+
metrics:
41+
enabled: true
42+
exclude_paths:
43+
- 'test/**'
44+
- 'docs/**'
45+
- 'coverage/**'
46+
- 'vite.config.*'
47+
- 'vitest.config.*'
48+
49+
# CSS/SCSS linting
50+
csslint:
51+
enabled: true
52+
exclude_paths:
53+
- 'coverage/**'
54+
- 'docs/**'
55+
56+
# Global exclude patterns
1157
exclude_patterns:
12-
- 'test/**'
58+
# Dependencies and build artifacts
1359
- 'node_modules/**'
1460
- 'dist/**'
1561
- 'coverage/**'
62+
- '.vitepress/cache/**'
63+
64+
# Test files (if you want to exclude from analysis)
65+
- 'test/**'
66+
67+
# Configuration files that don't need deep analysis
68+
- '*.config.*'
1669
- '*.d.ts'
17-
- 'vite.config.js'
18-
- 'vitest.config.ts'
70+
- 'env.d.ts'
71+
- 'tsconfig*.json'
72+
73+
# Documentation build artifacts
74+
- 'docs/.vitepress/dist/**'
75+
76+
# Generated files
77+
- '*.tsbuildinfo'
78+
- '*.gif'
79+
- '*.png'
80+
- '*.jpg'
81+
- '*.jpeg'
82+
- '*.svg'
83+
- '*.ico'
84+
85+
# Package files
86+
- '*.tgz'
87+
- '*.tar.gz'
88+
- 'package-lock.json'
89+
- 'yarn.lock'
90+
- 'pnpm-lock.yaml'
91+
92+
# IDE and editor files
93+
- '.vscode/**'
94+
- '.idea/**'
95+
- '*.swp'
96+
- '*.swo'
97+
- '*~'
98+
99+
# OS generated files
100+
- '.DS_Store'
101+
- 'Thumbs.db'
102+
103+
# File size limits (optional)
104+
file_size_limit: 5000 # Lines
105+
106+
# Complexity thresholds (optional)
107+
complexity_threshold: 15

src/Types.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable @typescript-eslint/no-unused-vars */
21
import type { NanoPopPosition } from 'nanopop';
32

43
/**
@@ -144,11 +143,9 @@ export interface VTourExposedMethods {
144143
stopTour: () => void;
145144

146145
/** Navigate to a specific step by index */
147-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
148146
goToStep: (stepIndex: number) => Promise<void>;
149147

150148
/** Reset tour state and optionally restart */
151-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
152149
resetTour: (shouldRestart?: boolean) => void;
153150

154151
/** Update tooltip position */

0 commit comments

Comments
 (0)