The SonarTsPlugin report is coming back clean with no issues found in the Typescript files

In my current project, I am attempting to analyze an Angular application using SonarQube. This particular project consists of a mix of JavaScript and TypeScript files.

During the Sonar analysis process, I have noticed that while issues are being generated for the .js files, there are no issues showing up for any of the .ts files.

The tools and plugins I am utilizing include:

  • Sonarqube - version 6.2
  • Sonar Scanner- version 3.0.3.778
  • Jenkins for building the SonarQube report
  • SonarTsPlugin plugin for generating the report

Here is a snippet of the configuration in my sonar-project.properties file:

# Project identification
sonar.projectKey=Sonar-Test
sonar.projectVersion=2.0
sonar.projectName=Sonar-Test
sonar.sourceEncoding=UTF-8
sonar.sources=/jenkins/workspace/Sonar-test-PA-Web/src
sonar.ts.tslint.projectPath=/jenkins/workspace/Sonar-test/tsconfig.json
sonar.exclusions=/jenkins/workspace/Sonar-test/node_modules/**
sonar.ts.tslint.path=/jenkins/workspace/Sonar-test/node_modules/tslint/bin/tslint
sonar.ts.tslint.configPath=/jenkins/workspace/Sonar-test/tslint.json
sonar.ts.tslint.rulesDir=/jenkins/workspace/Sonar-test/node_modules/codelyzer

Despite following all the steps outlined in the official documentation, I have encountered a situation where no issues are being detected for my .ts files.

Answer №1

Successfully resolved the problem by reverting back to an older version of the SonarTS plugin.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Can you explain the concept of static in Typescript?

Exploring the distinctions between the static and instance sides of classes is addressed in the Typescript documentation on this page. The static and instance sides of classes: understanding the difference In object-oriented programming languages like ...

Referencing other styled-components in Typescript and React code bases

I'm attempting to replicate this code snippet found on https://styled-components.com/docs/advanced using TypeScript. const Link = styled.a` display: flex; align-items: center; padding: 5px 10px; background: papayawhip; color: palevioletred; ...

Instance of exported class declared in Typescript

Currently, I am in the process of developing my initial declaration file for a foreign library known as react-native-background-timer. Within this library, there exists a default export that I am uncertain about how to declare within the index.d.ts file. ...

The index signature for strings appears to be duplicated in this TypeScript file, causing an

I am attempting to create a type with an index signature in TypeScript. Here is the code snippet: export interface LoginState { account: { [userName: string]: string; [password: string]: string; }; } However, I ...

Material 2's portal host fails to display the specified template portal

Check out the Demo Plunker here: https://plnkr.co/edit/Ye8MAUmrMEQKnPt93TjT?p=preview I'm following the guidance from Material 2 documentation in order to establish a template portal that will be displayed within a nearby host (although my ultimate g ...

Using .on('mouseover', d => ..) does not yield the same `d` value as using .attr('foo', d => ..) in D3.js

I'm facing an issue with a mouseover tooltip in Observable that seems to fail when I transfer it to a Grafana plugin using React, D3, and Typescript. The technique I followed can be found in this article: Link to Article To simplify the code and deb ...

Error in TypeScript React: 'Display' property is not compatible with index signature

My design page in React with TypeScript template is using Material UI, with custom styles implemented using the sx prop of Material UI. To customize the styling, I have created a separate object for the properties related to the sx props: const myStyles = ...

Adjusting a variable's value based on the changes of another variable

In the process of developing an application feature for managing favorites, I am integrating data from two different sources. One source is a const file that I am exporting as an observer (observerA$), while the other source is a database containing only t ...

Resolving conflicts between AbortSignal in node_modules/@types/node/globals.d.ts and node_modules/typescript/lib/lib.dom.d.ts within an Angular project

An issue occurred in the file node_modules/@types/node/globals.d.ts at line 72. The error message is TS2403: Subsequent variable declarations must have the same type. Variable 'AbortSignal' should be of type '{ new (): AbortSignal; prototype ...

p-calendar validator necessitated

Currently, there is no built-in validator for the p-calendar control in PrimeNG: <p-calendar formControlName="startDateControl" [minDate]="today" showIcon="true"></p-calendar> Are there any alternative solutions available? ...

Tips for conducting a worldwide search in Angular 2?

I'm currently navigating my way through angular2 development and I am aiming to conduct a comprehensive search within an array of JSON objects. To illustrate, consider this sample array: invoiceList = [ { invoiceNumber: 1234, invo ...

Is there a way to adjust the dimensions of my Angular npm slider?

This snippet shows the Angular code I came across this npm slider on npm.js Struggling to adjust the margin of the images as they are sticking, also unsure about modifying the size and other elements using https://www.npmjs.com/package/ng-image-slider. A ...

Do not display large numbers within an HTML card

I have this card here and displaying dynamic data inside it. The number is quite large, so I would like it to appear as 0.600000+. If a user hovers over the number, a tooltip should display the full number. How can I achieve this? Below is the HTML code ...

Changes made in the Firestore console do not automatically activate the snapshotChanges subscription

I'm facing an issue with subscribing to a document in Firestore using AngularFire. Even after making changes to the document through the Firestore console, I don't see any updates reflected in the pulled data, even after refreshing locally. The D ...

Nested Angular click events triggering within each other

In my page layout, I have set up the following configuration. https://i.stack.imgur.com/t7Mx4.png When I select the main box of a division, it becomes highlighted, and the related department and teams are updated in the tabs on the right. However, I also ...

How can I combine Angular's material drag and drop feature with virtual scrolling?

I've been attempting to combine Angular material's virtual scrolling with drag and drop functionality, but I'm encountering an issue where the items are reverting back and the dragging and dropping doesn't seem to work as expected. Bel ...

How to showcase MongoDB data directly on the homepage

Looking for advice on how to display MongoDB database records on the front end of my website using Express. Each record has a category, and I want to organize and display them accordingly. As a beginner, any tips or suggestions would be greatly appreciat ...

Is it possible to observe and retrieve sub-documents in Firestore instead of the entire document? Specifically for time series data

My database setup involves a Firebase Firestore where each document represents hourly time buckets for storing IoT sensor data. Each document includes: The latest humidity reading The latest temperature reading An array containing all humidity and temper ...

Expanding IntelliSense and helpful tooltips in VSCode for JavaScript and TypeScript by utilizing Node.js for a deeper understanding

As a beginner in programming, specifically in JS/TS, I've been experimenting with node.js and have encountered a puzzling issue with the IntelliSense or 'helptext' feature in VSCode. For instance, when attempting to use fs.open(), I receive ...

Incorporating traditional Javascript classes for modeling in React development

Can traditional JavaScript classes be utilized in models within the MVC framework while using React, as opposed to relying on Redux or contexts & reducers which may impact reusability? If this approach is feasible, how can we efficiently 'subscribe&ap ...