bcaudan / node-sonar-scanner Goto Github PK
View Code? Open in Web Editor NEWSonar scanner for node
Sonar scanner for node
Currently the latest version is 4.0.0.1744, while the bundled version in this library is 3.1.0.
It would be nice to use a more recent version.
Hi, I've installed sonar-scanner into a project and I'm running it from that project /Users/wilkesbe/dev/searchbox
However, when it runs it says Checking if executable exists: /Users/wilkesbe/.sonar/native-sonar-scanner/sonar-scanner-3.0.3.778-macosx/bin/sonar-scanner
And when it goes into the build pipeline it is also checking a different location to project. So every time we run it, it downloads the binaries (because we re-create the image every time)
So I'd like to be able to get it run from within the project - how can I do this?
I've tried this, but it doesn't work
yarn run sonar-scanner --define --sonar.working.directory=.
I think it might be a parameter when we do the yarn/npm install?
I wanted to publish coverage to sonar dashboard for individual branches. From bamboo I passed command line arguments which were ignored.
-Dsonar.branch.name=${bamboo.planRepository.branch}
even for development branch it gets published as master branch coverage.
It works well if I use sonar plugin enabled in bamboo setting the branch from CMD.
Hi,
If you're looking for a maintainer for this package at any point I'd be happy to do it alongside my own sonarlint one.
Cheers
Might be very basic issue, I just followed the readMe,
got the error,
'node_modules' is not recognized as an internal or external command,
operable program or batch file.
Hello,
Does it need JRE to run the analysis? I have pure javascript project and I don't want to install Java just for this purpose. What are options?
Thanks,
Kumar
The path provided in this project to SonarQube's binary downloads is returning in a 401 as of October 7, 2018:
build 08-Oct-2018 19:31:52 [00:31:52] Starting SonarQube analysis...
build 08-Oct-2018 19:31:52 [00:31:52] Getting info from "package.json" file
build 08-Oct-2018 19:31:52 [00:31:52] Checking if executable exists: /home/bamboo/.sonar/native-sonar-scanner/sonar-scanner-3.2.0.1227-linux/bin/sonar-scanner
build 08-Oct-2018 19:31:52 [00:31:52] Could not find executable in "/home/bamboo/.sonar/native-sonar-scanner".
build 08-Oct-2018 19:31:52 [00:31:52] Proceed with download of the platform binaries for SonarQube Scanner...
build 08-Oct-2018 19:31:52 [00:31:52] Creating /home/bamboo/.sonar/native-sonar-scanner
build 08-Oct-2018 19:31:52 [00:31:52] Downloading from https://sonarsource.bintray.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-3.2.0.1227-linux.zip
build 08-Oct-2018 19:31:52 [00:31:52] (executable will be saved in cache folder: /home/bamboo/.sonar/native-sonar-scanner)
error 08-Oct-2018 19:31:53 [00:31:53] ERROR: impossible to download and extract binary: Response code 401 (Unauthorized)
error 08-Oct-2018 19:31:53 [00:31:53] SonarQube Scanner binaries probably don't exist for your OS (linux).
error 08-Oct-2018 19:31:53 [00:31:53] In such situation, the best solution is to install the standard SonarQube Scanner (requires a JVM).
error 08-Oct-2018 19:31:53 [00:31:53] Check it out at https://redirect.sonarsource.com/doc/install-configure-scanner.html
Is this project necessary when there is https://github.com/SonarSource/sonar-scanner-npm ? It seems to be the official Sonar Scanner.
Is there any difference with this project?
Hi,
It would be nice to bump-up sonar scanner from 2.8 to version 3+
Hi Team,
NPM Page shows the license is MIT.
But there is no License file available on repo.
Could you please confirm?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.