-
Notifications
You must be signed in to change notification settings - Fork 19
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
New Reek violations may not be reported #20
Comments
+1 to this idea/bug. Would be great if pronto-reek could cater for this somehow. |
I suppose a potential valid approach for a fix would be to compare the violations of the files before the PR changes with the ones gotten from each commit. The new violations should be the ones introduced by the PR. |
yes, but what line would it put the comment on? what happens if the correct line becomes available later on the PR later, Will it move the comment or leave it as it? Does pronto even support moving comments .... |
Good questions. Perhaps it would not comment on the diff line, if not possible but in the PR regular thread. Perhaps there is no perfect solution. |
This is similar to prontolabs/pronto-rubocop#46 -- I suppose a common solution will work for both 🤔 |
Given I have the code on GH (
path/some_class.rb
)The current reek status is:
Inspecting 1 file(s): .
I change the file and create a pull request that changes the file like follows
Pronto rubocop will not create any comment on my PR, because the report is on
the method on line 2, which is not part of the changed code.
Now, if I add a comment in the line of the method name (where reek reports the
violaiton) and update the PR, I will get a comment from pronto, because line num 2 changed.
It is a bug, isn't it? The new code created a violation in the existing code.
The text was updated successfully, but these errors were encountered: