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

adrienverge / yamllint / 7796936487
100%

Build:
DEFAULT BRANCH: master
Ran 06 Feb 2024 08:46AM UTC
Jobs 5
Files 65
Run time 20s
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

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

push

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

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

Jobs
ID Job ID Ran Files Coverage
1 7796936487.1 06 Feb 2024 08:46AM UTC 0
99.75
2 7796936487.2 06 Feb 2024 08:46AM UTC 0
99.82
3 7796936487.3 06 Feb 2024 08:46AM UTC 0
99.82
4 7796936487.4 06 Feb 2024 08:46AM UTC 0
99.75
5 7796936487.5 06 Feb 2024 08:46AM UTC 0
99.82
Source Files on build 7796936487
Detailed source file information is not available for this build.
  • Back to Repo
  • 01df5bf0 on github
  • Prev Build on master (#7753692638)
  • Next Build on master (#7797033914)
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

© 2026 Coveralls, Inc