Skip to content

Commit

Permalink
add yamllint config
Browse files Browse the repository at this point in the history
Signed-off-by: Arjun Raja Yogidas <arjunry@amazon.com>
  • Loading branch information
coderbirju committed Sep 5, 2024
1 parent 6e9e34a commit d8b1994
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
10 changes: 10 additions & 0 deletions .yamllint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
extends: default
rules:
trailing-spaces:
# issue templates intentionally have some whitespace
ignore: .github/ISSUE_TEMPLATE/
document-start: disable # preference, can enable if desired
comments: disable # doesn't like in-line comments like this
line-length: disable # hard to enforce <80 chars for some cmds
truthy:
allowed-values: ['true', 'false', 'on']
1 change: 0 additions & 1 deletion api/handlers/container/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,6 @@ func (h *handler) create(w http.ResponseWriter, r *http.Request) {
Workdir: req.WorkingDir,
Entrypoint: req.Entrypoint,
EntrypointChanged: len(req.Entrypoint) > 0,
//req.Entrypoint != nil is removed because len(x) > 0 will automatically verify that req.Entrypoint is not nil
// #endregion

// #region for metadata flags
Expand Down
2 changes: 1 addition & 1 deletion setup-test-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ export PATH=$PATH:/usr/local/bin
sudo containerd &
sudo buildkitd &

sleep 2
sleep 2

0 comments on commit d8b1994

Please sign in to comment.