-
-
Notifications
You must be signed in to change notification settings - Fork 305
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 automation for linting the spec #1543
Add automation for linting the spec #1543
Conversation
771d86f
to
9d32eb6
Compare
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.
Looks good to me. Didn't check the JS stuff, but I trust you on that.
Just a question.
- Issue discussing feature - https://github.com/json-schema-org/json-schema-spec/issues/1082 | ||
- PR to add to the spec - https://github.com/json-schema-org/json-schema-spec/pull/1143 | ||
- ADR to extract from the spec and use feature life cycle - https://github.com/json-schema-org/json-schema-spec/pull/1505 | ||
- Issue discussing feature - <https://github.com/json-schema-org/json-schema-spec/issues/1082> |
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.
Why the angle brackets?
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.
The angle brackets are markdown syntax for URLs. We aren't used to using them because Github-flavored markdown detects URLs automatically and turns them into links. The markdown style guide the linting plugin is based on prefers the explicit syntax. I think the rationale makes sense. By forcing you to use angle brackets or backticks, it helps catch errors where a URL is converted to a link when it wasn't intended to be.
Our Additional context: I've created a |
Yes, that should be pretty easy to do. |
9d32eb6
to
ff297d5
Compare
(The force push as just a rebase. Nothing changed.) |
I originally removed the ietf build from the ci, but then remembered that we still have a couple specs (RJP) that still use it, so I put it back. |
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 for these. I think we should merge this ASAP. We can discuss on today's OCWM.
When I setup the build script for the markdown-based spec, I included a markdown linter and link checker. Unfortunately, that isn't being used during development and a lot of errors have gotten in. This PR adds automation to make sure schema authors are aware when they are introducing errors.
This also includes linting automation for the build scripts themselves.