Skip to content

Commit f8aab4f

Browse files
authored
Fix prisma and dustilock for Windows (#410)
- Fix prisma by finding the correct binary - Fix dustilock by expanding the regex
1 parent 4032a5e commit f8aab4f

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

linters/dustilock/plugin.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ lint:
1010
output: regex
1111
# example line:
1212
# error - python package "myinternaltool" is available for public registration. /home/maverick/plugins/requirements.txt
13-
parse_regex: (error - (?P<message>(?P<code>python|npm)[^.]*\.) (?P<path>\/.*))
13+
parse_regex:
14+
(error - (?P<message>(?P<code>python|npm)[^.]*\.) (?P<path>(\/|[A-Za-z]:\\).*))
1415
run: dustilock --path ${target}
1516
target: ${parent}
1617
success_codes: [0, 1]

linters/prisma/plugin.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,14 @@ lint:
77
known_good_version: 4.16.1
88
suggest_if: never
99
commands:
10-
- name: prisma format
10+
- name: format
11+
platforms: [windows]
12+
output: rewrite
13+
success_codes: [0]
14+
in_place: true
15+
formatter: true
16+
run: prisma.cmd format --schema=${target}
17+
- name: format
1118
output: rewrite
1219
success_codes: [0]
1320
in_place: true

0 commit comments

Comments
 (0)