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

adrienverge / yamllint / 6962676365
100%

Build:
DEFAULT BRANCH: master
Ran 22 Nov 2023 09:05PM UTC
Jobs 5
Files 65
Run time 6s
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.399% (+0.002%) from 99.397%
6962676365

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

9 of 9 new or added lines in 1 file covered. (100.0%)

3802 of 3825 relevant lines covered (99.4%)

4.75 hits per line

Jobs
ID Job ID Ran Files Coverage
1 6962676365.1 22 Nov 2023 09:05PM UTC 0
99.4
2 6962676365.2 22 Nov 2023 09:05PM UTC 0
99.32
3 6962676365.3 22 Nov 2023 09:05PM UTC 0
99.32
4 6962676365.4 22 Nov 2023 09:05PM UTC 0
99.4
5 6962676365.5 22 Nov 2023 09:05PM UTC 0
99.4
Source Files on build 6962676365
Detailed source file information is not available for this build.
  • Back to Repo
  • 0dcf5f41 on github
  • Prev Build on master (#6949853309)
  • Next Build on master (#7159408171)
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