-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Basepath option to show relative path names in report output #470
Comments
How come, that you generate report on one machine and use it on another machine? |
As mentioned i use jenkins. I set up the test environment using vagrant-aws and also generate all the reports on the "vagrant" machine and then just syncronize the reports back to the host. This way i dont have to install any dependencies on jenkins and can keep my whole development/test environment boxed. |
There is no base path setting. Have you tried just passing a relative path to phpcs?
|
Oh sorry, I think I misunderstood what you are asking. If you mean: can the report output contain a relative path instead of an absolute path to the files The answer is: no Your best option right now is to generate the file and then run a command over it to replace the |
i figured as much. Would be great to generate it relative or absolute or with an own base path. Thanks for the quick reply though |
Thanks for clarifying for me. Seems like a good feature request. |
Maybe instead you need to have some kind of report file transformation script that would fix paths as needed by machine that reads the report. |
I've added this option in. You can use A handy settings is: |
@gsherwood Would it be possible to add this to the 2.x branch? |
It is possible, but I don't have the time to backport features from 3.x. I'm trying to move towards a 3.0 version ASAP and stabilise 2.x so it can stay around for a while during the migration. |
…eference-add-tests-with-dnf-types IsReferenceTest: add extra tests with intersection/DNF types
I am currently running php_codesniffer on jenkins with a vagrant-aws plugin.
When i run phpcs on the vagrant box and generate the report i get a fullpath starting at /vagrant/src/...
Once i copy this back to jenkins however the path doesnt match anymore.
Is there a way to generate reports with a base path or relative path?
The text was updated successfully, but these errors were encountered: