-
Notifications
You must be signed in to change notification settings - Fork 16
diagnostic.py: Correct row and column number convention #39
Conversation
@jayvdb Could you please have a look why gitmate does not add labels automatically? |
Whoops, I ran coala on my laptop and found this commit doesn't pass GitCommitBear check. I'll fix it. |
e3ae164
to
1f12f0a
Compare
'line': code['end']['line'] - 1, | ||
'character': code['end']['column'] | ||
'line': end_line, | ||
'character': end_char |
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.
Should we set the column to 0 or the whole line if the bear returns None?
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.
Oh yes, I should be careful about that.
According to LSP specification, if there is an issue with whole line x, the output format should be as follows:
{
start: { line: x, character: 0 }
end : { line: x + 1, character : 0 }
}
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.
Cool, thus I think we should check if endline == startline.
c7e9a6c
to
1c094c9
Compare
ack 1c094c9 |
@gitmate-bot rebase |
Hey! I'm GitMate.io! This pull request is being rebased automatically. Please DO NOT push while rebase is in progress or your changes would be lost permanently |
Automated rebase with GitMate.io was successful! 🎉 |
@gitmate-bot ff |
Hey @gaocegege, you do not have the access to perform the fastforward action with GitMate.io. Please ask a maintainer to give you access. |
fwiw, PRs can be based on top of another PR. |
Row and column number should be zero-based integer, not null Fixes coala#37
@gitmate-bot rebase |
Hey! I'm GitMate.io! This pull request is being rebased automatically. Please DO NOT push while rebase is in progress or your changes would be lost permanently |
Automated rebase with GitMate.io was successful! 🎉 |
@gitmate-bot ff |
Hey! I'm GitMate.io! This pull request is being fastforwarded automatically. Please DO NOT push while fastforward is in progress or your changes would be lost permanently |
Automated fastforward with GitMate.io was successful! 🎉 |
Row and column number should be zero-based integer, not null
Fixes #37