I have standard company Quality Profile for NodeJS TypeScript projects in SonarCloud.
Now to create specific ruleset overwriting some or adding/removing we can use inheritance, create other profile with parent to the other one.
Question is if we can do that specific from the code repository instead of creating additional profile in UI? Like any sonar.rule in properties or any similar option?
SonarCloud and specific rules for NodeJS project within repository code
991 Views Asked by Nickname0222022022 At
1
There are 1 best solutions below
Related Questions in NODE.JS
- How to solve CERT_UNTRUSTED error in nodemailer
- Run a loop over a callback, node js
- Implementing prerender.io middleware in sails.js
- Token based authorization in nodejs/ExpressJs and Angular(Single Page Application)
- formatting path string in javascript
- One to One screensharing using WEBRTC
- Create polygon from grid (for collisions)
- Strange npm behavior when installing packages like grunt
- Convert JSON.gz to JSON in node js
- "Your npm version is outdated." but it's not. While install yo
- Why put methods on the prototype of a class instead of declaring them in the constructor?
- Node JS Async Response
- mongoose get property from nested schema after `group`
- Cannot Receive Incoming call on Twilio android Client
- How can I change a specific line in a file with node js?
Related Questions in TYPESCRIPT
- Use translateProvider.useLoader with Typescript
- Optional method in base class
- Putting Lambdas in OR statement
- Deleting namespace in Socket IO
- Angularjs+Typescript directive implementing $compile
- Typescript type inference inside for loop
- Why void functions are allowed in left part of assignment in Typescript?
- Tools for Apache Cordova - TypeScript debugger jumps to wrong line
- Typescript - is there a way to specify a global reference?
- How to angularjs app.service and $q in typescript
- include typescript file in output result build with TFS
- Mocking Angular $window in unit test cases
- Difference between `share()` and `publish().refCount()`
- TypeScript: workaround for relative reference path?
- How to define knex migrations using Typescript
Related Questions in SONARQUBE
- How to specify SonarQube rule description as a markdown/html resource file instead of using annotation?
- No 'Code Coverage' decorations in SonarQube 5.1+
- Upgrade H2 from sonarqube 4.5.1 to 5.1.1
- Logging error when executing Maven SonarQube plugin
- Analysis fails on PHP project with NullPointerException, fails on foreach($arrayOfArrays as list($item1, $item2)) {}
- Sonarqube ghost projects in issues
- Sonnar runner in Jenkins error in java project
- Reports missing on SonarQube dashboard after upgrade
- Exception in SonarQube.Msbuild.Runner
- How can I integrate ReSharper's Dotsettings File in SonarQube?
- Upgrade from SonarQube 4.3.2 to 4.5LTS (No Response)
- Properties file exclude multiple paths
- Technical debt on custom web rule in sonarqube 5.1
- sonar project.properties to ignore files containing a regular expression
- Sonarqube SVN Plugin fails with code E155007 'is not a working copy'
Related Questions in CODE-ANALYSIS
- Unknown code analysis error
- Detect if source is CSS/HTML/JavaScript
- Should nDepend's output folder be added to source control?
- Visual Studio's Rule Set Editor does not open
- Why do I get warning CA2229 (Implement serialization constructors) when inheriting from standard type
- Gradle: Setting PMD Arguments minimumPriority and shortFilenames
- nested using() and code rule CA2202
- How can i create a (design time only) nuget package that doesn't add an assembly reference when installed?
- Why is /optimize in a C# project generating more Code Analysis warnings than without this enabled?
- Code Analysis detected errors. No code analysis issues were detected
- WPF code analyze : CA2202 Do not dispose objects multiple timesObject
- WPF code analyze : CA1001 Types that own disposable fields should be disposable
- How to get better results from LLVM's MemoryDependenceAnalysis pass?
- Assembly name referred in project but same version not available
- Object 'iCrypt' can be disposed more than once
Related Questions in SONARCLOUD
- Is there any SonarCloud API that can retrieve historical trend of issue by severity?
- SonarCloud requiring code coverage for files ignored with Istanbul
- java.lang.IllegalStateException: The "build-wrapper-dump.json" file was found but 0 C/C++/Objective-C files were analyzed
- 3rd-party tool for analysis converts its report to the Generic Issues format in sonarcloud
- Merge python and javascript coverage to appear in one SonarCloud key
- The SonarCloud scan is analyzing the default master branch instead of the develop branch
- How to make this Code SonarClud Compliant
- Sonarcloud analysis report capture in the azure pipeline
- Azure Devops Run SonarCloud Analysis for .Net Project
- Problems with SonarCloud
- SonarCloud in GitHub doesn't recognise C# 12 primary constructors
- Sonar cloud does not reflect the code coverage information for maven project with Azure CICD pipeline
- Error SonarCloud with openjdk8 during pipeline gitlab-ci in java
- How to exclude test classes form Coverage Analysis using Jacoco
- SonarCloud and specific rules for NodeJS project within repository code
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
As far as i know, there is no way of maintaining a profile within the repository. But there are other options, when it comes to removing rules. Sonar* allows you to exclude rules on specific criteria, like ignoring a rule for a certain file pattern, or restrict some rules for certain file patterns. (General Settings > Analysis Scope)
This would allow to generate a global definition containing all rules, and the deactivation of those rules could be handled within the repository - if you have a mechanism for that, like
sonar-project.propertiesfor the default scanners in the project root.We are making use of it, as our rulesets are not heavily diverging, and some projects decided to deactivate some kind of rules, as they do not fit their purpose. With this we still have some comparability of our projects regarding rulesets, but if there are plenty of rules, this can end up in quiet a lot of work. Furthermore there might be issues with adding new rules, which are just applicable to a small subset of projects.