Skip to content
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

Feature request: Support for scan a single file #73

Open
luiscla27 opened this issue Apr 26, 2019 · 0 comments
Open

Feature request: Support for scan a single file #73

luiscla27 opened this issue Apr 26, 2019 · 0 comments

Comments

@luiscla27
Copy link

Please add support to scan a single file, the old sonar-runner would implementation would look like this:

sonar-runner -Dsonar.inclusions=src/main/java/com/foo/MyClass.java

However there should be a way to do the same using the brand new sonnar scanner maybe the sonar.working.directory parameter would do the trick, the documentation says this:

sonar.working.directory Set the working directory for an analysis triggered with the SonarScanner or the SonarScanner for Ant (versions greater than 2.0). This property is not compatible with the SonarScanner for MSBuild. Path must be relative, and unique for each project.  Beware: the specified folder is deleted before each analysis. .sonar

Also maybe the narrowing focus section explains some exclusion/inclusions that may help.

The expected UI should look somethign like this:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant