travis-ci / travis-yaml

parses, normalizes, validates and serializes your .travis.yml
http://yaml.travis-ci.org/
MIT License
170 stars 66 forks source link

Strange Error in Travis yml during lint #133

Closed joesan closed 4 years ago

joesan commented 4 years ago

I'm facing a strange error all of a sudden on one of my projects whose build I last ran 2 years ago!

Here is the Error message:

syntax_error: (): did not find expected alphabetic or numeric character while scanning an alias at line 27 column 5

Here is my travis yml file:

https://github.com/joesan/plant-simulator/blob/master/.travis.yml

joesan commented 4 years ago

Somehow managed to fix this, but the error message was not that helpful. The error was actually on this line:

ignore:
  -*.md

I had it originally like this (with space) which was causing the linter to fail!

ignore:
  - *.md