It’s not possible to create a custom rule and add it to your Quality Profile – but if you craft some tool to detect issues and put the results in the format of Generic Issue Data, you can import the issues into SonarCloud.
And, if there’s a rule you think would benefit many users you’d like to suggest, you can do so here:
As per our requirement, we need to analyze multiple java files without a build with Sonar Cloud.
The same requirement can be achieved for a single java file using the Command prompt with sonar commands, but is failing for multiple java files as its throwing an error for build required.
The error is as following - "ERROR: Error during SonarScanner execution org.sonar.java.AnalysisException: Your project contains .java files, please provide compiled classes with sonar.java.binaries property, or exclude them from the analysis with sonar.exclusions property."
Can you please tell us a way in which we can analyze multiple java files simultaneously without having a build.