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

adrienverge / yamllint / 6962676365 / 3
100%
master: 100%

Build:
DEFAULT BRANCH: master
Ran 22 Nov 2023 09:05PM UTC
Files 65
Run time 1s
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

22 Nov 2023 09:04PM UTC coverage: 99.32% (+0.001%) from 99.319%
6962676365.3

push

github

adrienverge
quoted-strings: Fix only-when-needed in flow maps and sequences

Flow maps and sequences need quotes if the values contain any of the
flow tokens ({}, [], ','). However, yamllint generates false positives
in these cases:

$ yamllint -d 'rules: {quoted-strings: {required: only-when-needed}}' - <<<'field: ["string[bracket]"]'
  1:9       error    string value is redundantly quoted with any quotes  (quoted-strings)

To fix this, track when inside a flow map/sequence and skip the quoting
checks except for the quoting type.

Closes #516

3799 of 3825 relevant lines covered (99.32%)

0.99 hits per line

Source Files on job 6962676365.3
  • Tree
  • List 0
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 6962676365
  • 0dcf5f41 on github
  • Prev Job for on master (#6949853309.1)
  • Next Job for on master (#7159408171.1)
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