Skip to content

Commit

Permalink
Transform yamllint Warnings into Errors (#3756)
Browse files Browse the repository at this point in the history
* Fix Lint warnings
* Turn warnings into error
  • Loading branch information
Kalaiselvi84 authored Apr 16, 2024
1 parent 1eb7762 commit 45ea667
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 4 deletions.
31 changes: 31 additions & 0 deletions .yamllint
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,37 @@ rules:
truthy: disable
line-length:
max: 1500
level: error
trailing-spaces:
level: error
comments-indentation:
level: error
comments:
level: error
braces:
level: error
indentation:
level: error
brackets:
level: error
colons:
level: error
commas:
level: error
empty-lines:
level: error
float-values:
level: error
hyphens:
level: error
key-duplicates:
level: error
new-line-at-end-of-file:
level: error
new-lines:
level: error
octal-values:
level: error

ignore:
- /build/.gomod/
Expand Down
8 changes: 4 additions & 4 deletions cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -331,23 +331,23 @@ steps:
args:
- --bucket=gs://$_CACHE_BUCKET
- --key=$_CPP_SDK_BUILD_CACHE_KEY-$( checksum sdks/cpp/CMakeLists.txt )
- --path=sdks/cpp/.build # CPP SDK build
- --path=sdks/cpp/.build # CPP SDK build
id: cpp-sdk-build-save-cache
waitFor:
- build-sdks
- name: us-docker.pkg.dev/$PROJECT_ID/ci/save_cache
args:
- --bucket=gs://$_CACHE_BUCKET
- --key=$_CPP_SDK_CONFORMANCE_CACHE_KEY-$( sdks/cpp/CMakeLists.txt )
- --path=test/sdk/cpp/sdk # CPP conformance test build
- --path=test/sdk/cpp/sdk # CPP conformance test build
id: cpp-sdk-conformance-save-cache
waitFor:
- sdk-conformance
- name: us-docker.pkg.dev/$PROJECT_ID/ci/save_cache
args:
- --bucket=gs://$_CACHE_BUCKET
- --key=$_RUST_SDK_BUILD_CACHE_KEY-$( checksum test/sdk/rust/Cargo.toml )
- --path=test/sdk/rust/.cargo # Rust conformance test build
- --path=test/sdk/rust/.cargo # Rust conformance test build
- --path=test/sdk/rust/.cargo-targets
- --no-clobber
id: rust-build-save-cache
Expand All @@ -357,7 +357,7 @@ steps:
args:
- --bucket=gs://$_CACHE_BUCKET
- --key=$_HTMLTEST_CACHE_KEY
- --path=site/tmp # htmltest URL checks
- --path=site/tmp # htmltest URL checks
id: htmltest-save-cache
waitFor:
- tests
Expand Down
1 change: 1 addition & 0 deletions examples/gameserverallocation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ spec:
mode: deathmatch
annotations:
map: garden22
# yamllint disable rule:comments-indentation rule:line-length
# [Stage: Alpha]
# [FeatureFlag:CountsAndLists]
# `Priorities` configuration alters the order in which `GameServers` are searched for matches to the configured `selectors`.
Expand Down

0 comments on commit 45ea667

Please sign in to comment.