path-invalid
What it catches
Section titled “What it catches”A path that is not a relative path inside the project, written with / and
with no . or .. element (and so no leading / or ./) and no \. It is
checked in:
starboard.yaml:content, each platform’sroots, and each vocabulary’sfile;screens.yaml: each screen’sfilesandscreenshots, and eachunmappedentry’spath.
Each platform’s screenFiles patterns are checked the same way, and must
also be valid globs, with no / inside a {…} group.
Paths are relative to the project root, the directory that holds
starboard.yaml.
Why it matters
Section titled “Why it matters”Starboard reads only inside the project, so that linting a repository can
never read files outside it, and checks the same way on every operating
system. A path that leaves the project, or uses \, would mean different
files on different machines. A path that is not valid is never opened, so
whatever it names is not checked. This is a correctness rule: it is always an
error.
How to fix
Section titled “How to fix”Write the path from the project root with / and no ./, ../ or leading
/. If the file really lives outside the project, move starboard.yaml up to
a directory that contains both.
Example
Section titled “Example”The screen’s file starts with ./:
screens: trip.timeline: title: Timeline area: trip presentation: tab files: ios: [./ios/Timeline/TimelineView.swift]screens: trip.timeline: title: Timeline area: trip presentation: tab files: ios: [ios/Timeline/TimelineView.swift]