Comments (6)
@alean79
I had an indentation problem inside sonar-project.properties
file.
This blocked the report for SwiftLint.
sonar.swift.swiftlint.report=reports/*swiftlint.txtsonar...
Yes, if you want anything reported inside SonarQube, you have to run the tools described in the Readme.
@venkatesh-pv
Sorry, I thought you can change the main rules category but it seems that it's not possible.
If it helps, you can change the rule category for a particular issue reported in an analysis.
- Go to SonarQube dashboard ->
Issues
tab in the top bar
from sonar-swift.
I have a similar problem. Is this plugin still working with sonar server v.8.7.1 and sonar-scanner v.4.6 runned on Linux ? I ommit building the project and running unittests in run-sonar-swift.sh
- I don't need it here. Sanning completes, I can see a new CE execution finished, but I get zero issues in the dashboard for the last execution, even if the sensors report issues.
13:52:53.453 INFO: Processing Tailor report <hidden>
...
13:52:53.453 DEBUG: record issue Analyzed 50 files, skipped 2 files, and detected 2060 violations (0 errors, 2060 warnings).
13:52:54.128 INFO: Sensor Tailor [backelitesonarswiftplugin] (done) | time=1190ms
...
13:52:55.031 INFO: Processing complexity report: <hidden>
13:52:55.046 INFO: Sensor Lizard [backelitesonarswiftplugin] (done) | time=14ms
...
15:59:02.572 INFO: Analysis report generated in <hidden>
...
15:59:02.768 INFO: Analysis report uploaded in 196ms
from sonar-swift.
Tested on 2 machines. First machine reports the code smells but the second machine does not. Still investigating what happens with the second machine.
Configuration: MacOS (sonarqube v8.7.1, sonar-scanner v4.6, blakelite-sonar-swift-0.4.6 plugin)
In the Swift Quality Profile, the rules are only reported as code smells. I guess you can change the category for some rules and consider them as "Bugs".
from sonar-swift.
@andrei-chis-zynk
Have you investigated why in one of your machines, the scanner reports 0 issues of any type? I'm having the exact same issue. Using SonarQube 8.8 Community, with this plugin 0.4.6, and running sonar-scanner from shell.
from sonar-swift.
@andrei-chis-zynk
How can i change the category for rules
from sonar-swift.
I resolved this issue...
The plugin doesn't detect anything for itself, but only find and upload previously generated reports (for example, running SwiftLint). It's necessary to run SwiftLint and any other tools that you want, in order to this plugin upload meaningful data to SonarQube.
from sonar-swift.
Related Issues (20)
- Sonar run command is failing HOT 1
- ERROR: Failed to parse SwiftLint report file
- Cannot make script 'run-sonar-swift' works
- Can I use this plugin in Sonar Community Version? HOT 1
- Processing SureFire report TestReport.xml - Unable to locate Swift test source file for classname
- 0 bugs, 0 vulnerability, security hotspot 0 ,code smell 0, duplication 0 HOT 3
- Unable to upgrade sonarqube to community 7.9.6 edition due to sonarswift plugin HOT 1
- Sonar 9 can't start with this plugin HOT 10
- sonarqube 9 library update HOT 5
- ERROR - Command 'oclint-json-compilation-database $args' failed with error code: 247 HOT 4
- sonarqube-9.1.0.47736 backelite-sonar-swift-plugin-0.4.6.jar HOT 6
- Web Process failed HOT 1
- ERROR - Command oclint-json-compilation-database failed with error code: 250 HOT 1
- [ObjectiveC] ERROR - Command oclint-json-compilation-database failed with error code: 6 HOT 1
- Wrapper is stopped due to jdk error. HOT 6
- when I add backelite-sonar-swift-plugin-0.4.3.jar in plugin in sonar it stop the server and says "The connection to SonarQube is lost. Please contact your system administrator." HOT 4
- Sonar-swift fail with error oclint-json-compilation-database
- SonarQube dashboard always showing "The main branch has no lines of code." (and run-sonar-swift.sh always exclude *.swift files)
- Remove backticks (`) from "protocol" and rename it.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sonar-swift.