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
996 views Asked by Nickname0222022022 At
1
There are 1 answers
Related Questions in NODE.JS
- Using Puppeteer to scrape a public API only when the data changes
- How to request administrator rights?
- How do I link two models in mongoose?
- Variable inside a Variable, not updating
- Unable to Post Form Data to MongoDB because of picturepath
- Connection terminated unexpectedly while performing multi row insert using pg-promise
- Processing multiple forms in nodejs and postgresql
- Node.js Server + Socket.IO + Android Mobile Applicatoin XHR Polling Error...?
- How to change the Font Weight of a SelectValue component in React when a SelectItem is selected?
- My unban and ban commands arent showing when i put the slash
- how to make read only file/directory in Mac writable
- How can I outsource worker processes within a for loop?
- Get remote MKV file metadata using nodejs
- Adding google-profanity-words to web page
- Products aren't displayed after fetching data from mysql db (node.js & express)
Related Questions in TYPESCRIPT
- It doesnt always show all the books on my homepage
- S3 integration testing
- Make some of the type's field optional
- storybook 7 does not recognize module declarations
- Page in React only renders elements after refreshing
- Error Inserting into Supabase: Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member
- vscode, debug angular, first time, doesn't debug, 2nd time stops at main.js then it's ok
- Get remote MKV file metadata using nodejs
- Vue/TailwindCSS - Content is behind Sidebar
- TypeScript Error only on big type only when assigned to a variable
- pnpm firebase app "Could not find a declaration file for module 'mime'"
- TypeScript: Type checking while parsing an arbitrary JSON that is typed/
- Issue with BBCode image tag on React
- Typescript: returnType based on value 'single' prop
- Failed to resolve import, but the path is valid, and detected as such by VSCode
Related Questions in SONARQUBE
- Sonarqube not allowing me to set policy for S3 bucket
- Jacoco Coverage in Multi-Module Gradle Project Not Including Submodules
- How to solve sonarqube issue based on bug to return a copy
- Java Code Coverage with both Jacoco & SonarQube
- Sonar qube i installed is not working and it show "...... Try: Checking the connection Checking the proxy and the firewall ERR_CONNECTION_REFUSED"
- SonarLint vs code error of skipping files
- Sonar qube container cannot authenticate with token
- Is there a Sonar-Elixir plugin compatible with SonarQube 10.4.1?
- Error: LinkageError occurred while loading main class org.sonarsource.scanner.cli.Main
- SonarQube: False-Positive S100 - Method names should comply with a naming convention
- Sonarcloud - Sonar warning - Accept button - "Valid issue but won't be fixed now, it's acceptable for a while."
- What refactoring should I apply on this email validation regex?
- Flutter SonarQube: "The main branch has no lines of code."
- SonarScan not recognising python code at the source directory
- How is this passing the quality gate
Related Questions in CODE-ANALYSIS
- Are there any way to export Sonarlint report from Intellij?
- generate incoming call graph
- Find line of text in MsgBox with a string literal with VBA regex
- Don't resolve typedefs in Visual Studio 2022 tooltips
- Disable "Code analysis" in Visual Studio Code with C++
- error CS1056: Unexpected character '$' during code analysis
- Generate a 'readonly record struct' using Roslyn
- How can I see debug info about the VS Code Cpptools extension's IntelliSense and Code Analysis?
- dotnet Code Analysis ignoring certain entries in .editorconfig file
- How can you distinguish between a standard library call, a third-party library call, and an API call from the repository?
- Clarification needed: core differences between two receipt selection code snippets
- Async method's return decorated with "NotNullIfNotNull" still returns variable that may be null
- Why is Visual Studio saying this cast from System.Int32 to System.Byte is redundant?
- Generic not-null validator for CA1062 in .NET 6
- How do code analysis, AST generation and SARIF report work in MSBuild?
Related Questions in SONARCLOUD
- how to analyse a project in sonarcloud
- Sonarcloud - Sonar warning - Accept button - "Valid issue but won't be fixed now, it's acceptable for a while."
- Unable to Publish Code Coverage Report into Sonar Cloud. Use of OpenCover.Console.exe and Vstest.console.exe
- Sonar warning S6857: Correct this malformed property placeholder - is this a false positive?
- How to get the exact Operator from SonarCloud for the Conditions in QualityGate?
- Sonarcloud giving uncovered lines for interface
- SonarCloud How to fix change this code to not construct the path from user-controlled data
- Sonar scan not the scanning project after java version updated from 11 to 17
- Sonarcloud code coverage for pull request with bitrise
- In azure Devops, Run on unit Test on Multi-Agent, how to collect the code coverage file and Publish into Artifact
- How to get weekly unit test coverage report in powerbi desktop from sonar cloud
- SonarCloud shows 0.0% coverage on new code, and it's 0.0% coverage on the project as well
- using sonarcloud for junit analysis fails when the source code version is jdk1.8 but sonarcloud uses jdk17
- Publishing Javascrpt/typescript code coverage to Sonarcloud not working with Azure Pipeline
- Azure Pipeline for SonarCloud analysis using Gradle is successful but no results are published
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?
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)
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.