-
Notifications
You must be signed in to change notification settings - Fork 225
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
Report directory structure when comparing branches seems off #287
Comments
I can confirm (one year on) that I'm seeing the same issue as @dsager We're using ruby 2.7 & rubycritic 4.3.1 &
An example of an actual file on disk is: whilst the link in the top right corner is pointing at:
|
And another year on, this confused me briefly last week 🙂 ETA: By the way, this isn't unique to CI mode - I didn't have CI mode configured, I just had |
@dsager I think it makes sense to restructure the directories the way you would expect them. If you submit a PR I'd be happy to review it.
Not sure why it says that, comparing two branches will always take longer than running just one analysis. Maybe it should be corrected in the documentation?
I think that is a good idea. 👍 |
Hi @etagwerker , we no longer use RubyCritic. I am afraid I lost the context for this issue over time and have to retract my offer of making a PR to fix this 😆
Maybe I'm not thinking this through entirely, but I think running an analysis of just the affected files should work and be faster? |
@GeoffTidey If you have the time and you're still interested, could you check whether my PR merged above has fixed this for you? Thanks 🙂 |
When running rubycritic in CI mode, the report-folder seems to be weirdly nested.
After executing the following command (while on a branch called
test-123
):I get the following directory structure:
I would expect the structure to be this:
Actually, when generating a HTML report, the links in the top right corner also seem to expect this structure.
I am happy to create a PR for this, jut wanted to confirm first if this is an actual issue. I think the problem is that
Config.root
is overwritten in two places during the branch comparison and not reset to its initial value: here and here.While at it, I have two additional questions regarding the CI mode (happy to create separate issues if preferred):
build_details.txt
in thejson
output, so that it can be easily parsed?The text was updated successfully, but these errors were encountered: