Closed dosas closed 7 months ago
@adrienverge Could you be a little bit more verbose about it?
@dosas this is an issue report with a lot of duplicates (e.g. #430). It's not a problem, it's intended default behavior.
Your options are:
Quote the key
---
name: Run tests
"on": [push, pull_request]
Disable the rule with a line comment
---
name: Run tests
on: [push, pull_request] # yamllint disable-line rule:truthy
Disable key checking in the yamllint configuration (e.g. .yamllint.yaml
)
---
extends: default
rules:
truthy:
check-keys: false
Thanks @andrewimeson :pray:
Since https://github.com/adrienverge/yamllint/pull/650 and yamllint 1.34.0 there is yet another solution: declare the YAML version explicitly:
%YAML 1.2
---
name: Run tests
on: [push, pull_request]
When running
Actual: warning truthy value should be one of [false, true] (truthy)
Expected: No warning