-
-
Notifications
You must be signed in to change notification settings - Fork 6
fix#140: ordering of linting errors by source location #141
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
base: main
Are you sure you want to change the base?
Conversation
|
The diff is huge, as it seems you are changing formatting/indention of the entire files you touch. Can you configure your editor to follow the current conventions so that the diff only reflects the actual changes? The industry standard out there is EditorConfig (https://editorconfig.org), which you should be able to install on your editor. That will make it follow https://github.com/sourcemeta/studio/blob/main/.editorconfig |
|
I'm also wondering if we can actually do the ordering on the CLI when |
|
I have formatted it using editorconfig in my latest commit, can u check it once? |
@jviotti will work on it and open a PR after 3-4 days as my semester end exams are going on. |
test/vscode/extension.test.ts
Outdated
| }); | ||
|
|
||
| test("Lint diagnostics should be ordered by line number", async function () { | ||
| this.timeout(15000); |
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.
Indentation problems here?
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.
fixed it.
vscode/src/extension.ts
Outdated
|
|
||
| if (lintResult.errors && lintResult.errors.length > 0) { | ||
| // TODO: Consider moving lint diagnostic ordering to the jsonschema CLI | ||
| lintResult.errors = sortLintErrorsByLocation(lintResult.errors); |
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.
Indentation issues here?
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.
fixed it.
|
@jviotti , the ordering is already implemented on CLI by @Karan-Palan . I think we should remove the todo comment. |
We might not need to merge this if ordering works fine on the CLI |
yeah, it makes sense. |
|
Let's merge the CLI PR first. I think we still want this PR, mostly because of the test. |
Fixes #140
What have been done
Proof of Action