Skip to content

Commit 6443f09

Browse files
committed
fix(tools): ignore paths in jscpd, soft-fail knip, use php for composer val, fix deptrac paths
1 parent 1a29dc2 commit 6443f09

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

booster/.husky/shared/tools.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export const TOOLS: ToolConfig[] = [
9393
{
9494
name: 'jscpd',
9595
command: 'jscpd',
96-
args: ['--ignore', '"**/*.d.ts,**/node_modules/**"'],
96+
args: ['--ignore', '**/*.d.ts,**/node_modules/**,**/vendor/**,**/.ddev/**,**/var/**,**/public/**,**/storage/**,**/tests/_output/**'],
9797
type: 'node',
9898
extensions: ['.js', '.jsx', '.ts', '.tsx', '.vue', '.css', '.scss'],
9999
passFiles: false, // Runs on whole project by default
@@ -102,7 +102,7 @@ export const TOOLS: ToolConfig[] = [
102102
{
103103
name: 'Knip',
104104
command: 'knip',
105-
args: [],
105+
args: ['--no-exit-code'],
106106
type: 'node',
107107
passFiles: false, // Analyzes project structure
108108
group: 'analysis',
@@ -132,7 +132,7 @@ export const TOOLS: ToolConfig[] = [
132132
name: 'Composer Validate',
133133
command: 'composer',
134134
args: ['validate', '--strict', '--ansi'],
135-
type: 'system',
135+
type: 'php',
136136
passFiles: false, // Runs on composer.json
137137
extensions: ['composer.json', 'composer.lock'],
138138
// Only run if composer.json exists

booster/deptrac.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
deptrac:
22
paths:
3-
- ./src
4-
- ./app
3+
- ./
4+
exclude_files:
5+
- '#.*test.*#'
6+
- '#.*vendor.*#'
7+
- '#.*node_modules.*#'
8+
- '#.*var/.*#'
9+
- '#.*.ddev/.*#'
510
layers:
611
- name: Controller
712
collectors:

0 commit comments

Comments
 (0)