• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

adrienverge / yamllint
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: patch-1
DEFAULT BRANCH: master
Repo Added 12 Jan 2016 08:44PM UTC
Files 67
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH feat/truthy-depending-on-yaml-spec-version
branch: feat/truthy-depending-on-yaml-spec-version
CHANGE BRANCH
x
Reset
  • feat/truthy-depending-on-yaml-spec-version
  • 1.8.2
  • 3.x
  • FURB
  • LICENSE
  • PIE
  • README
  • RUF039
  • SIM
  • actions
  • adamchainz-readthedocs.io
  • add-multiprocessing-option
  • add-tests-from-spec
  • allanlewis-improve-unbreakable
  • allow-non-breakable-words
  • anchors
  • auto-detect-encoding
  • build/pyproject.toml
  • build/readthedocs.yaml
  • build/sphinx-without-setup.py
  • chore/ci-2.6
  • chore/deprecated-setup.py-test
  • chore/drop-python-2-support
  • chore/python-3-bdist-wheel
  • chore/python-3.8
  • chore/python2.6
  • ci/deps
  • ci/fix-testpypi-version-if-on-latest-tag
  • ci/lint
  • ci/publish-from-github-actions
  • ci/publish-to-testpypi-avoid-duplications
  • ci/publish-to-testpypi-avoid-duplications-tmp
  • ci/rename-tests
  • ci/run-docs
  • code-coverage
  • coloured_output_on_tty
  • commas-min-spaces-after
  • comments
  • config-filename-expansion
  • dist/fix-files-not-included-in-sdist
  • dist/skip-existing-on-testpypi
  • dist/use-setuptools-scm
  • doc
  • doc/fedora-and-ubuntu-packages
  • docs
  • docs/add-link-to-github
  • docs/changelog
  • docs/contributing
  • docs/fix-import-config
  • docs/fix-new-rstcheck-error
  • docs/read-from-stdin
  • docs/restore-readthedocs-sphinx-theme
  • docs/sunset-python-2
  • docs/trim-installation-instruction
  • docs/truthy-allowed-values
  • docs/update-ci-status-badge
  • docs/yaml-files
  • drone.io
  • drop-python-3.8
  • enhance-truthy
  • feat/comment-ignore-regex
  • feat/default-implicit-conf
  • feat/ignore-from-file
  • feat/ignore-paths
  • feat/key-ordering-ignored-keys
  • feat/lint-dot-yamllint
  • feat/python-3.13
  • feat/python-3.14
  • feat/quoted-strings-extras
  • feat/rule-anchors
  • feat/validate-conf-list
  • feature/add-gitlab-codequality-format
  • fix
  • fix-734
  • fix-build-on-Koji
  • fix-ci-with-flake8-import-order
  • fix-indentation-consistent-with-flows
  • fix-indentation-with-multi-line-flows
  • fix-linter-run-on-unicode
  • fix-tests-in-sdist
  • fix/275
  • fix/anchors-error-message-quotes
  • fix/ci
  • fix/dos-newlines
  • fix/floating-values-regexp
  • fix/ignore-broken-symlinks
  • fix/ignore-on-explicit-file
  • fix/issue-700-double-quoted-special-chars
  • fix/issues-334-pathspec-dirs.yaml
  • fix/key-duplicates
  • fix/mapping-not-dict
  • fix/pyyaml-peek_token
  • fix/quoted-strings
  • fix/quoted-strings-broken-on-lists
  • fix/quoted-strings-detect-needed-correctly
  • fix/quoted-strings-explicit-octal-values
  • fix/relative-ignore-from-file
  • fix/revert-8f68248
  • fix/run-linter-with-no-filepath
  • fix/test_cli-on-python-3.14
  • forbid_key_types
  • github-actions
  • indentation
  • indentation-cleared-entries
  • indentation-consistent
  • indentation-imbricated-flows
  • key-duplicates
  • license-files
  • manifest
  • master
  • multi-line-strings
  • packaging
  • patch-1
  • patch-2
  • proto/fix-indentation
  • python
  • quote-style-consistent
  • refactor-conf
  • refactor/remove-utf-8
  • ruff
  • s/yml/yaml/g
  • setup.py
  • setuptools
  • style/fix-E722
  • style/flake8-e402
  • style/indentation
  • supports-utf8
  • test-ci
  • test-deps
  • test-doc
  • test/adrien
  • test/bytes-in-test-cli
  • test/ci
  • test/ci-2018-11-23
  • test/ci-coverage
  • test/ci-github-actions
  • test/ci-py3.3
  • test/debug-python-m-build-not-including-tests
  • test/doc8
  • test/fix-flake8-on-docs-conf.py
  • test/fix-space-after-alias
  • test/line-length-and-unicode
  • test/python3.7
  • test/quoted-strings-redundant-tests
  • test/temp
  • test/unicode-in-paths
  • tests/dont-skip-test-because-python-3.6-no-longer-supported
  • tmp
  • tmp-test
  • travis
  • update-actions
  • update-conf
  • user-global-config-file
  • v0.2.0
  • v0.3.0
  • v0.4.0
  • v0.5.0
  • v0.5.1
  • v0.5.2
  • v0.6.0
  • v0.7.0
  • v0.7.1
  • v0.7.2
  • v1.0.0
  • v1.0.1
  • v1.0.2
  • v1.0.3
  • v1.0.4
  • v1.1.0
  • v1.10.0
  • v1.11.0
  • v1.11.1
  • v1.12.0
  • v1.12.1
  • v1.13.0
  • v1.14.0
  • v1.15.0
  • v1.16.0
  • v1.18.0
  • v1.19.0
  • v1.2.1
  • v1.2.2
  • v1.20.0
  • v1.21.0
  • v1.22.0
  • v1.22.1
  • v1.23.0
  • v1.24.0
  • v1.24.1
  • v1.24.2
  • v1.25.0
  • v1.26.0
  • v1.26.2
  • v1.26.3
  • v1.27.0
  • v1.27.1
  • v1.28.0
  • v1.29.0
  • v1.3.0
  • v1.3.1
  • v1.3.2
  • v1.30.0
  • v1.31.0
  • v1.32.0
  • v1.33.0
  • v1.34.0
  • v1.35.0
  • v1.35.1
  • v1.36.0
  • v1.36.1
  • v1.36.2
  • v1.37.0
  • v1.37.1
  • v1.4.0
  • v1.4.1
  • v1.5.0
  • v1.6.0
  • v1.6.1
  • v1.7.0
  • v1.8.0
  • v1.8.1
  • v1.8.2
  • v1.9.0
  • wip/doc
  • wip/empty-values-forbid-in-flow-mappings
  • wip/in-file-directives
  • wip/tests
  • yes-true

06 Feb 2024 08:42AM UTC coverage: 99.823% (+0.001%) from 99.822%
7796918326

Pull #650

github

adrienverge
truthy: Adapt forbidden values based on YAML version

Specification of YAML ≤ 1.1 has 22 boolean values:

    y     | Y            | n     | N
    yes   | Yes   | YES  | no    | No    | NO
    true  | True  | TRUE | false | False | FALSE
    on    | On    | ON   | off   | Off   | OFF

Whereas YAML 1.2 spec recognizes only 6 [^1]:

    true  | True  | TRUE | false | False | FALSE

For documents that explicit state their YAML spec version at the top of
the document, let's adapt the list of forbidden values.

In the future, we should:
- implement a configuration option to declare the default YAML spec
  version, e.g. `default-yaml-spec-version: 1.2`,
- consider making 1.2 the default in a future release (this would be a
  slight breaking change, but yamllint always tried to be
  1.2-compatible).
- consider adapting yamllint to other 1.1 vs. 1.2 differences [^2].

Solves: https://github.com/adrienverge/yamllint/issues/587

Related to: #559 #540 #430 #344 #247 #232 #158

[^1]: https://yaml.org/spec/1.2.2/#1032-tag-resolution
[^2]: https://yaml.org/spec/1.2.2/ext/changes/#changes-in-version-12-revision-120-2009-07-21
Pull Request #650: truthy: Adapt forbidden values based on YAML version

25 of 25 new or added lines in 2 files covered. (100.0%)

3945 of 3952 relevant lines covered (99.82%)

4.99 hits per line

Relevant lines Covered
Build:
Build:
3952 RELEVANT LINES 3945 COVERED LINES
4.99 HITS PER LINE
Source Files on feat/truthy-depending-on-yaml-spec-version
  • Tree
  • List 65
  • Changed 3
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
7796918326 feat/truthy-depending-on-yaml-spec-version truthy: Adapt forbidden values based on YAML version Specification of YAML ≤ 1.1 has 22 boolean values: y | Y | n | N yes | Yes | YES | no | No | NO true | True | TRUE | false | False | FALSE on ... Pull #650 06 Feb 2024 08:44AM UTC adrienverge github
99.82
7775970510 feat/truthy-depending-on-yaml-spec-version truthy: Adapt valid values based on YAML version Specification of YAML ≤ 1.1 has 22 boolean values: y | Y | n | N yes | Yes | YES | no | No | NO true | True | TRUE | false | False | FALSE on | O... Pull #650 04 Feb 2024 06:27PM UTC adrienverge github
99.82
7729902525 feat/truthy-depending-on-yaml-spec-version truthy: Adapt valid values based on YAML version Specification of YAML ≤ 1.1 has 18 boolean values: true | True | TRUE | false | False | FALSE yes | Yes | YES | no | No | NO on | On | ON | off | Off | OFF Wh... Pull #650 31 Jan 2024 05:21PM UTC adrienverge github
99.82
7729893231 feat/truthy-depending-on-yaml-spec-version truthy: Adapt valid values based on YAML version Specification of YAML ≤ 1.1 has 18 boolean values: true | True | TRUE | false | False | FALSE yes | Yes | YES | no | No | NO on | On | ON | off | Off | OFF Wh... push 31 Jan 2024 05:20PM UTC adrienverge github
99.82
7729304123 feat/truthy-depending-on-yaml-spec-version truthy: Adapt valid values based on YAML version Specification of YAML ≤ 1.1 has 18 boolean values: true | True | TRUE | false | False | FALSE yes | Yes | YES | no | No | NO on | On | ON | off | Off | OFF Wh... push 31 Jan 2024 04:34PM UTC adrienverge github
99.82
7728344690 feat/truthy-depending-on-yaml-spec-version WIP push 31 Jan 2024 03:24PM UTC adrienverge github
99.82
See All Builds (1767)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc