-
-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add files
linting rules for track-level config.json
#155
Add files
linting rules for track-level config.json
#155
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! It was just an omission on my part, they should definitely have been documented.
@ErikSchierboom So the If yes, this PR should update docs/building/tracks/config-json.md Lines 23 to 28 in 772e023
|
Oh noes, I've completely misread :( Ignore all my comments. |
So what are your real thoughts? :) I was thinking that I'd make |
What I would expect
And that's it. I think I'd prefer the actual linting of the file paths to happen only when |
So just to confirm: do you want an informational message if e.g.
Do you mean
What should
|
No, I'd only display the information message when running
I do. Forgot that we're now non-interactive by default :)
I would like the
Probably output an error.
If that property is empty and there is a file path pattern defined for it: populate it based on the pattern. For the other properties: if there are file path patterns defined for them, I think would just add those too. |
These properties were described in `building/tracks/config-json.md`, but were missing from `building/configlet/lint.md`.
7bef302
to
3b4d965
Compare
Resolved the merge conflicts from @ErikSchierboom I side-tracked this PR into a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
These properties were described in
building/tracks/config-json.md
, butwere missing from
building/configlet/lint.md
.Do we want this?
It's true that the track-level
files
property will only used byconfiglet sync
. But it feels likeconfiglet lint
should complain about a problem in this property, otherwise a user might:configlet sync
files
propertyThe alternative attempt to catch a problem with
files
at CI-time doesn't work: we could runconfiglet sync
during CI on every track, and make it exit non-zero for a problem withfiles
. Butconfiglet sync
will already produce a non-zero exit code if there's something unsynced, so we can't easily distinguish a problem withfiles
.