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
feat: add support for multiple errors per file. #357
Conversation
Codecov Report
@@ Coverage Diff @@
## main #357 +/- ##
==========================================
+ Coverage 67.79% 68.02% +0.23%
==========================================
Files 37 37
Lines 6844 6947 +103
==========================================
+ Hits 4640 4726 +86
- Misses 1950 1967 +17
Partials 254 254
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
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
My main source of confusion was dropping errors.As usage, but I imagine I'm missing something and it is not critical to the PR.
Also we are missing some tests involving multiple errors, but we can improve that later too.
Co-authored-by: Tiago Cesar Katcipis <tiagokatcipis@gmail.com>
Co-authored-by: Tiago Cesar Katcipis <tiagokatcipis@gmail.com>
…ate into i4k-add-multiple-errs
@katcipis I added tests for multiple errors in the terramate-lsp PR because I thought it'd be a huge change in an already big PR, but actually it doesn't seem like it's going to be that bad. |
Always like smaller PRs, thanks for doing it ❤️ |
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.
🚀
@@ -1097,6 +1145,9 @@ func testParser(t *testing.T, tc testcase) { | |||
|
|||
// some helpers to easy build file ranges. | |||
func mkrange(start, end hhcl.Pos) hhcl.Range { | |||
if start.Byte == end.Byte { |
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.
Nice, I had some troubles with that but I missed the opportunity to improve this ❤️
This PR adds support for multiple errors per configuration file.