Skip to content

Commit

Permalink
support windows
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerJang27 committed Sep 10, 2024
1 parent e48db75 commit f646542
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
10 changes: 10 additions & 0 deletions linters/squawk/plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,16 @@ lint:
suggest_if: config_present
direct_configs: [.squawk.toml]
commands:
- name: lint
platforms: [windows]
run: ${linter}/node_modules/squawk-cli/js/binaries/squawk --reporter Gcc ${target}
output: regex
success_codes: [0, 1]
batch: true
cache_results: true
parse_regex:
"(?P<path>.*):(?P<line>\\d+):(?P<col>\\d+): (?P<severity>\\S*) (?P<code>\\S*)
(?P<message>.*)"
- name: lint
run: squawk --reporter Gcc ${target}
output: regex
Expand Down
4 changes: 4 additions & 0 deletions runtimes/node/plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ runtimes:
- name: NPM_CONFIG_USERCONFIG
value: ${env.NPM_CONFIG_USERCONFIG}
optional: true
# Necessary for some Windows install scripts
- name: COMSPEC
value: ${env.COMSPEC}
optional: true
linter_environment:
- name: PATH
list: ["${linter}/node_modules/.bin"]
Expand Down

0 comments on commit f646542

Please sign in to comment.