Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions build.helpers.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -1300,7 +1300,7 @@ function Export-GrammarBinding {
} finally {
Pop-Location
}

}
}

Expand Down Expand Up @@ -1369,9 +1369,13 @@ function Build-RustProject {
cargo clean
}

if ($Clippy) {
if ($Clippy -and !$Project.ClippyUnclean) {
$clippyFlags = @()
cargo clippy @clippyFlags --% -- -Dwarnings --no-deps
if (!$Project.ClippyPedanticUnclean) {
cargo clippy @clippyFlags --% -- -Dclippy::pedantic --no-deps -Dwarnings
} else {
cargo clippy @clippyFlags --% -- -Dwarnings --no-deps
}

if ($null -ne $LASTEXITCODE -and $LASTEXITCODE -ne 0) {
throw "Last exit code is $LASTEXITCODE, clippy failed for at least one project"
Expand Down
1 change: 1 addition & 0 deletions grammars/tree-sitter-dscexpression/.project.data.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"Kind": "Grammar",
"IsRust": true,
"ClippyUnclean": true,
"ClippyPedanticUnclean": true,
"SkipTest": {
"Windows": true
}
Expand Down
2 changes: 1 addition & 1 deletion grammars/tree-sitter-dscexpression/grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const PREC = {
STRINGLITERAL: -11,
}

module.exports = grammar({
export default grammar({
name: 'dscexpression',

extras: $ => ['\n', ' '],
Expand Down
1 change: 1 addition & 0 deletions grammars/tree-sitter-dscexpression/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "tree-sitter-dscexpression",
"version": "1.0.0",
"description": "Dscexpression grammar for tree-sitter",
"type": "module",
"repository": "github:tree-sitter/tree-sitter-dscexpression",
"license": "MIT",
"main": "bindings/node",
Expand Down
3 changes: 2 additions & 1 deletion grammars/tree-sitter-ssh-server-config/.project.data.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
"Name": "tree-sitter-ssh-server-config",
"Kind": "Grammar",
"IsRust": true,
"ClippyUnclean": true
"ClippyUnclean": true,
"ClippyPedanticUnclean": true
}
2 changes: 1 addition & 1 deletion grammars/tree-sitter-ssh-server-config/grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const PREC = {
OPERATOR: 1
}

module.exports = grammar({
export default grammar({
name: 'ssh_server_config',

extras: $ => [' ', '\t', '\r'],
Expand Down
1 change: 1 addition & 0 deletions grammars/tree-sitter-ssh-server-config/package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.