-
Notifications
You must be signed in to change notification settings - Fork 49
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
CLI flag --check-only
#264
Comments
Hi Benedikt, nice idea – what kind of reporting of findings would you expect? Currently, there are options for summarized output …
… but I wonder whether you would also want a list of concrete findings, e.g. "[<source file><TAB>]<line number><TAB><to-be-used rule>"? This would then be a bit like the output of ATC (and possibly get longer than the actual code ;-)
Kind regards, |
Hi Jörg-Michael, the flag requested here should only have an effect on whether or not the analyzed files are being changed. With the flag active, the checked files should only be analyzed and not be changed (read-only). The result should be returned to stdout in both cases (not sure if an additional flag makes sense to log the result additionally to a file, as this could be easily achieved by redirecting the output). Cheers, |
Hi Benedikt, I now added the flag
I liked "simulate" better than "check-only", because ABAP cleaner is more about changing code than checking code – it's rather the user who might then check whether the output of Kind regards, |
Hi Jörg-Michael, this is a great addition and will greatly simplify the usage within CI pipelines. Cheers, |
Hi Benedikt, the new Kind regards, |
Currently the CLI tool only allows to change the source files directly based on the given rules.
For code review purposes I propose a
--check-only
CLI flag, that only reports the findings without changing the checked files.The text was updated successfully, but these errors were encountered: