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

redhat-developer / yaml-language-server / 15259240957
84%
master: 80%

Build:
Build:
LAST BUILD BRANCH: crd
DEFAULT BRANCH: master
Ran 26 May 2025 05:26PM UTC
Jobs 3
Files 53
Run time 1min
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

26 May 2025 05:25PM UTC coverage: 83.873% (+0.002%) from 83.871%
15259240957

push

github

datho7561
Fix YAML JSON Schema files starting with %YAML 1.x

Fix a bug where YAML files containing a JSON Schema that start with
%YAML 1.x or a comment that contains a number would fail to to be parsed.

This is caused by the fact that the JSON Schema parser would contain the
number, e.g. 1.2 as the value of `unresolvedJsonSchema.schema` and so
the test for `=== undefined` would fail. This would cause the error from
the JSON parser to be returned instead of trying to parse the file as a
YAML file.

To work around this, also check if `unresolvedJsonSchema.schema` is a
number. It if is, it clearly was not a JSON Schema and so we can safely
try to parse the file as a YAML file.

Fixes: https://github.com/redhat-developer/yaml-language-server/issues/922
Signed-off-by: David Lechner <dlechner@baylibre.com>

2162 of 2739 branches covered (78.93%)

Branch coverage included in aggregate %.

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

3377 of 3865 relevant lines covered (87.37%)

9864.16 hits per line

Jobs
ID Job ID Ran Files Coverage
1 15259240957.1 26 May 2025 05:26PM UTC 53
83.87
GitHub Action Run
2 15259240957.2 26 May 2025 05:26PM UTC 53
83.87
GitHub Action Run
3 15259240957.3 26 May 2025 05:27PM UTC 53
83.87
GitHub Action Run
Source Files on build 15259240957
  • Tree
  • List 53
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #15259240957
  • c94fa435 on github
  • Prev Build on main (#15167284582)
  • Next Build on main (#15611069352)
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