forked from GlobalHive/vuejs-tour
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.codacy.yml
More file actions
115 lines (99 loc) · 2.23 KB
/
Copy path.codacy.yml
File metadata and controls
115 lines (99 loc) · 2.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
---
# Codacy configuration for VueJS Tour project
# CRITICAL: Exclude config files FIRST to prevent any engine from analyzing them
exclude_paths:
- 'vite.config.ts'
- 'vite.config.js'
- 'vitest.config.ts'
- '*.config.ts'
- '*.config.js'
engines:
# ESLint for JavaScript/TypeScript/Vue linting
eslint:
enabled: true
exclude_paths:
- 'vite.config.*'
- 'vitest.config.*'
- '*.d.ts'
- 'env.d.ts'
- 'docs/.vitepress/**'
configuration:
rules:
"@typescript-eslint/no-unused-vars": "off"
# TypeScript linting
typescript:
enabled: true
exclude_paths:
- '*.d.ts'
- 'env.d.ts'
- 'vite.config.ts'
- 'vite.config.js'
- 'vite.config.d.ts'
- 'vitest.config.ts'
- 'vitest.config.js'
- 'src/Types.ts' # Public API interface definitions
# Duplication detection
duplication:
enabled: true
exclude_paths:
- 'test/**'
- 'docs/**'
- 'coverage/**'
# Code complexity analysis
metrics:
enabled: true
exclude_paths:
- 'test/**'
- 'docs/**'
- 'coverage/**'
- 'vite.config.*'
- 'vitest.config.*'
# CSS/SCSS linting
csslint:
enabled: true
exclude_paths:
- 'coverage/**'
- 'docs/**'
# Additional global exclude patterns (config files already excluded at top)
exclude_patterns:
# Dependencies and build artifacts
- 'node_modules/**'
- 'dist/**'
- 'coverage/**'
- '.vitepress/cache/**'
# Test files (if you want to exclude from analysis)
- 'test/**'
# Configuration files that don't need deep analysis
- '*.config.*'
- '*.d.ts'
- 'env.d.ts'
- 'tsconfig*.json'
# Documentation build artifacts
- 'docs/.vitepress/dist/**'
# Generated files
- '*.tsbuildinfo'
- '*.gif'
- '*.png'
- '*.jpg'
- '*.jpeg'
- '*.svg'
- '*.ico'
# Package files
- '*.tgz'
- '*.tar.gz'
- 'package-lock.json'
- 'yarn.lock'
- 'pnpm-lock.yaml'
# IDE and editor files
- '.vscode/**'
- '.idea/**'
- '*.swp'
- '*.swo'
- '*~'
# OS generated files
- '.DS_Store'
- 'Thumbs.db'
# File size limits (optional)
file_size_limit: 5000 # Lines
# Complexity thresholds (optional)
complexity_threshold: 15