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

adrienverge / yamllint / 1144
100%

Build:
DEFAULT BRANCH: master
Ran 11 Jan 2021 03:39PM UTC
Jobs 12
Files 29
Run time 24s
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

pending completion
1144

push

travis-ci-com

adrienverge
quoted-strings: Fix explicit octal recognition

PyYAML implements YAML spec version 1.1, not 1.2. Hence, values starting
with `0o` are not considered as numbers: they are just strings, so they
need quotes when `quoted-strings: {required: true}`.

>>> import yaml
>>> yaml.resolver.Resolver().resolve(yaml.nodes.ScalarNode, '100', (True, False))
'tag:yaml.org,2002:int'
>>> yaml.resolver.Resolver().resolve(yaml.nodes.ScalarNode, '0100', (True, False))
'tag:yaml.org,2002:int'
>>> yaml.resolver.Resolver().resolve(yaml.nodes.ScalarNode, '0o100', (True, False))
'tag:yaml.org,2002:str'

Let's try to prevent that.

Fixes https://github.com/adrienverge/yamllint/issues/351.

1127 of 1155 relevant lines covered (97.58%)

11.69 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1144.1 (REMOVE_LOCALES=false) 11 Jan 2021 03:39PM UTC 0
97.58
Travis Job 1144.1
2 1144.2 (REMOVE_LOCALES=true) 11 Jan 2021 03:39PM UTC 0
97.32
Travis Job 1144.2
3 1144.3 (REMOVE_LOCALES=false) 11 Jan 2021 03:39PM UTC 0
97.58
Travis Job 1144.3
4 1144.4 (REMOVE_LOCALES=true) 11 Jan 2021 03:39PM UTC 0
97.32
Travis Job 1144.4
5 1144.5 (REMOVE_LOCALES=false) 11 Jan 2021 03:39PM UTC 0
97.58
Travis Job 1144.5
6 1144.6 (REMOVE_LOCALES=true) 11 Jan 2021 03:39PM UTC 0
97.32
Travis Job 1144.6
7 1144.7 (REMOVE_LOCALES=false) 11 Jan 2021 03:39PM UTC 0
97.5
Travis Job 1144.7
8 1144.8 (REMOVE_LOCALES=true) 11 Jan 2021 03:39PM UTC 0
97.24
Travis Job 1144.8
9 1144.9 (REMOVE_LOCALES=false) 11 Jan 2021 03:39PM UTC 0
97.5
Travis Job 1144.9
10 1144.10 (REMOVE_LOCALES=true) 11 Jan 2021 03:39PM UTC 0
97.24
Travis Job 1144.10
11 1144.11 (REMOVE_LOCALES=false) 11 Jan 2021 03:39PM UTC 0
97.59
Travis Job 1144.11
12 1144.12 (REMOVE_LOCALES=true) 11 Jan 2021 03:39PM UTC 0
97.33
Travis Job 1144.12
Source Files on build 1144
Detailed source file information is not available for this build.
  • Back to Repo
  • Build #1144
  • 1b378ed5 on github
  • Prev Build on master (#1142)
  • Next Build on master (#1146)
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