-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(cli): add support for slim-lint (#723)
- Loading branch information
Showing
6 changed files
with
56 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/// | ||
/// THIS FILE IS GENERATED USING CODE - DO NOT EDIT MANUALLY | ||
/// | ||
use crate::runners::CommandType; | ||
|
||
#[inline] | ||
pub fn set_args( | ||
mut cmd: std::process::Command, | ||
file_path: &std::path::Path, | ||
) -> std::process::Command { | ||
cmd.arg(file_path); | ||
cmd | ||
} | ||
|
||
pub const COMMANDS: [CommandType; 1] = [CommandType::Direct("slim-lint")]; | ||
|
||
#[cfg(test)] | ||
mod test_slim_lint {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"$schema": "../tool.schema.json", | ||
"binary": "slim-lint", | ||
"categories": ["linter"], | ||
"commands": { | ||
"": { | ||
"arguments": ["$PATH"] | ||
} | ||
}, | ||
"description": "Tool for analyzing Slim templates", | ||
"homepage": "https://github.com/sds/slim-lint", | ||
"languages": ["slim"], | ||
"packages": { | ||
"gem": "slim_lint" | ||
} | ||
} |