forked from getporter/porter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure lint warnings are printed (getporter#2534)
* Refactor PrintLintResults() to ensure lint warnings are printed. Signed-off-by: James Blair <mail@jamesblair.net> * Bump github.com/moby/buildkit from 0.11.0 to 0.11.1 (getporter#2528) Bumps [github.com/moby/buildkit](https://github.com/moby/buildkit) from 0.11.0 to 0.11.1. Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * check for plugins file schema version and type (getporter#2532) * check for plugins file schema version and type Signed-off-by: Yingrong Zhao <yingrong.zhao@gmail.com> * Update contributors list. Signed-off-by: James Blair <mail@jamesblair.net> * Add unit tests for ensuring lint warnings are printed. Signed-off-by: James Blair <mail@jamesblair.net> --------- Signed-off-by: James Blair <mail@jamesblair.net> Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: Yingrong Zhao <yingrong.zhao@gmail.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Yingrong Zhao <yingrong.zhao@gmail.com>
- Loading branch information
Showing
5 changed files
with
100 additions
and
11 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,15 @@ | ||
[ | ||
{ | ||
"Level": 2, | ||
"Location": { | ||
"Action": "install", | ||
"Mixin": "exec", | ||
"StepNumber": 2, | ||
"StepDescription": "Install Hello World" | ||
}, | ||
"Code": "exec-100", | ||
"Title": "bash -c argument missing wrapping quotes", | ||
"Message": "The bash -c flag argument must be wrapped in quotes, for example\nexec:\n description: Say Hello\n command: bash\n flags:\n c: '\"echo Hello World\"'\n", | ||
"URL": "https://getporter.org/best-practices/exec-mixin/#quoting-escaping-bash-and-yaml" | ||
} | ||
] |
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,13 @@ | ||
warning(exec-100) - bash -c argument missing wrapping quotes | ||
install: 2nd step in the exec mixin (Install Hello World) | ||
The bash -c flag argument must be wrapped in quotes, for example | ||
exec: | ||
description: Say Hello | ||
command: bash | ||
flags: | ||
c: '"echo Hello World"' | ||
|
||
See https://getporter.org/best-practices/exec-mixin/#quoting-escaping-bash-and-yaml for more information | ||
--- | ||
|
||
✨ Bundle validation was successful! |