Issues showing up in SonarQube but not in SonarLint

I’m facing an issue where the SonarQube reports an error but in Webstorm with the SonarLint extension it doesn’t show up.

It appears to be related with the format of the file. I’m writing tests in TS. When it’s a class declaration, it works well.

describe('Test', () => {
  it('Test with code smell', () => {
    // code smell
  });
});

In SonarQube I can see the error, but when i’m developing not…

I’m with SonarQube 8.9.1 and SonarLint 6.4.3.42541

Hello @babalubas090 and welcome to the community!

Can you share what rule exactly you expect to get reported by SonarLint and did you connect your SonarLint to SonarQube?

Hello @Kirill_Knize! Thanks for the quick response!

Yeah! I’m with the SonarLint connected with SonarQube. It works properly in all other files that doesn’t have this structure. (describe, it).

It happens with all rules. It doesn’t scan the file at all.

But I first noticed with these rules:
Code Smell: Define a constant instead of duplicating this literal X times. [typescript:S1192]
Code Smell: Refactor this function to use “return” consistently. typescript:S3801

When I run the SonarLint over an file with this structure, it doesn’t process at all, it quickly shows that the file has no errors.

Hello @babalubas090
By the version of SonarLint you provided I assume it’s last version for IntelliJ. Here you can find information how to enable detailed logging. Can you please provide the logs output for the file you having problems with? You will need to clean logs output close file and reopen it in order to get logs specifically for one file.

Hello @Kirill_Knize!

Yeah, I’m on the latest WS version…

The logs you requested:

Trigger: EDITOR_OPEN
[Editor open] 1 file(s) submitted
Using connection 'SonarQube' for project 'front-core'
Analysing 'test.test.ts'...
Starting analysis with configuration:
[
  projectKey: front-core
  baseDir: C:\dev\front-core
  extraProperties: {}
  moduleKey: Module: 'Front Core'
  inputFiles: [
    file:///C:/dev/front-core/tests/test.test.ts (UTF-8) [test]
  ]
]

  * scala: 'AXWU6HenycFGyMhOQGbI' (28 active rules)
  * web: 'AXWU6IBgycFGyMhOQHcv' (27 active rules)
  * xml: 'AXWU6IEtycFGyMhOQHfu' (6 active rules)
  * kotlin: 'AXWU6HhNycFGyMhOQGcv' (29 active rules)
  * js: 'AXWU6Hp3ycFGyMhOQGoI' (169 active rules)
Rule jssecurity:S5696 is enabled on the server, but not available in SonarLint
Rule jssecurity:S6105 is enabled on the server, but not available in SonarLint
Rule jssecurity:S5334 is enabled on the server, but not available in SonarLint
Rule jssecurity:S3649 is enabled on the server, but not available in SonarLint
Rule jssecurity:S6096 is enabled on the server, but not available in SonarLint
Rule jssecurity:S2631 is enabled on the server, but not available in SonarLint
Rule jssecurity:S5883 is enabled on the server, but not available in SonarLint
Rule jssecurity:S5146 is enabled on the server, but not available in SonarLint
Rule jssecurity:S2076 is enabled on the server, but not available in SonarLint
Rule jssecurity:S5147 is enabled on the server, but not available in SonarLint
Rule jssecurity:S5131 is enabled on the server, but not available in SonarLint
Rule jssecurity:S5144 is enabled on the server, but not available in SonarLint
Rule jssecurity:S2083 is enabled on the server, but not available in SonarLint
Rule common-js:DuplicatedBlocks is enabled on the server, but not available in SonarLint
  * php: 'AXWU6IGuycFGyMhOQHj6' (126 active rules)
Rule phpsecurity:S2631 is enabled on the server, but not available in SonarLint
Rule phpsecurity:S2078 is enabled on the server, but not available in SonarLint
Rule phpsecurity:S5145 is enabled on the server, but not available in SonarLint
Rule phpsecurity:S2076 is enabled on the server, but not available in SonarLint
Rule phpsecurity:S3649 is enabled on the server, but not available in SonarLint
Rule phpsecurity:S5144 is enabled on the server, but not available in SonarLint
Rule phpsecurity:S2091 is enabled on the server, but not available in SonarLint
Rule phpsecurity:S5135 is enabled on the server, but not available in SonarLint
Rule phpsecurity:S5146 is enabled on the server, but not available in SonarLint
Rule phpsecurity:S5167 is enabled on the server, but not available in SonarLint
Rule phpsecurity:S5335 is enabled on the server, but not available in SonarLint
Rule phpsecurity:S5334 is enabled on the server, but not available in SonarLint
Rule phpsecurity:S5131 is enabled on the server, but not available in SonarLint
Rule phpsecurity:S2083 is enabled on the server, but not available in SonarLint
Rule common-php:DuplicatedBlocks is enabled on the server, but not available in SonarLint
  * py: 'AXWU6HsvycFGyMhOQGvE' (128 active rules)
Rule pythonsecurity:S2631 is enabled on the server, but not available in SonarLint
Rule pythonsecurity:S2078 is enabled on the server, but not available in SonarLint
Rule pythonsecurity:S5146 is enabled on the server, but not available in SonarLint
Rule pythonsecurity:S5145 is enabled on the server, but not available in SonarLint
Rule pythonsecurity:S3649 is enabled on the server, but not available in SonarLint
Rule pythonsecurity:S5144 is enabled on the server, but not available in SonarLint
Rule pythonsecurity:S2091 is enabled on the server, but not available in SonarLint
Rule pythonsecurity:S2076 is enabled on the server, but not available in SonarLint
Rule pythonsecurity:S5135 is enabled on the server, but not available in SonarLint
Rule pythonsecurity:S5167 is enabled on the server, but not available in SonarLint
Rule pythonsecurity:S5334 is enabled on the server, but not available in SonarLint
Rule pythonsecurity:S5131 is enabled on the server, but not available in SonarLint
Rule pythonsecurity:S2083 is enabled on the server, but not available in SonarLint
  * ruby: 'AXWU6HxfycFGyMhOQG1H' (28 active rules)
  * swift: 'AXWU6IaOycFGyMhOQIF3' (60 active rules)
Rule common-swift:DuplicatedBlocks is enabled on the server, but not available in SonarLint
  * ts: 'AXlmqBWRfgGDIJVjQqyy' (171 active rules)
Rule tssecurity:S5696 is enabled on the server, but not available in SonarLint
Rule tssecurity:S6105 is enabled on the server, but not available in SonarLint
Rule tssecurity:S5334 is enabled on the server, but not available in SonarLint
Rule tssecurity:S3649 is enabled on the server, but not available in SonarLint
Rule tssecurity:S6096 is enabled on the server, but not available in SonarLint
Rule tssecurity:S2631 is enabled on the server, but not available in SonarLint
Rule tssecurity:S5146 is enabled on the server, but not available in SonarLint
Rule tssecurity:S5883 is enabled on the server, but not available in SonarLint
Rule tssecurity:S2076 is enabled on the server, but not available in SonarLint
Rule tssecurity:S5147 is enabled on the server, but not available in SonarLint
Rule tssecurity:S5131 is enabled on the server, but not available in SonarLint
Rule tssecurity:S5144 is enabled on the server, but not available in SonarLint
Rule tssecurity:S2083 is enabled on the server, but not available in SonarLint
Rule common-ts:DuplicatedBlocks is enabled on the server, but not available in SonarLint
Start analysis
Index files
Language of file 'file:///C:/dev/front-core/tests/test.test.ts' is detected to be 'TypeScript'
1 file indexed
Execute Sensor: Sonar Secrets Detection Sensor
'HTML' skipped because there is no related files in the current project
'JavaScript analysis' skipped because there is no related files in the current project
'TypeScript analysis' skipped because there is no related files in the current project
'PHP sensor' skipped because there is no related files in the current project
'Analyzer for "php.ini" files' skipped because there is no related files in the current project
'Swift Code Quality and Security' skipped because there is no related files in the current project
'Ruby Sensor' skipped because there is no related files in the current project
'XML Sensor' skipped because there is no related files in the current project
'Kotlin Sensor' skipped because there is no related files in the current project
'Python Sensor' skipped because there is no related files in the current project
'Scala Sensor' skipped because there is no related files in the current project
Done in 46ms

Processed 0 issues
Found 0 issues

Here are the plugins that my SonarQube is using:

{
  "plugins": [
    {
      "key": "abap",
      "name": "ABAP Code Quality and Security",
      "description": "Enable analysis and reporting on ABAP projects",
      "version": "3.9.1 (build 3127)",
      "license": "SonarSource",
      "organizationName": "SonarSource",
      "organizationUrl": "http://www.sonarsource.com",
      "editionBundled": true,
      "homepageUrl": "http://redirect.sonarsource.com/plugins/abap.html",
      "issueTrackerUrl": "http://jira.sonarsource.com/browse/ABAP",
      "implementationBuild": "a62ddf6ddd7379d398a58d32c9931a2feef61e24",
      "filename": "sonar-abap-plugin-3.9.1.3127.jar",
      "hash": "61629c9145135481af87ec406b44d1cc",
      "sonarLintSupported": true,
      "documentationPath": "static/documentation.md",
      "updatedAt": 1623188059180
    },
    {
      "key": "csharp",
      "name": "C# Code Quality and Security",
      "description": "Code Analyzer for C#",
      "version": "8.22 (build 31243)",
      "license": "GNU LGPL 3",
      "organizationName": "SonarSource",
      "organizationUrl": "http://www.sonarsource.com",
      "editionBundled": false,
      "homepageUrl": "http://redirect.sonarsource.com/plugins/csharp.html",
      "issueTrackerUrl": "https://github.com/SonarSource/sonar-dotnet/issues",
      "implementationBuild": "e3cee7838d992e31dcdd90cf4f7406bb20535e8e",
      "filename": "sonar-csharp-plugin-8.22.0.31243.jar",
      "hash": "0d22f364153c9590ba683bd31145c310",
      "sonarLintSupported": false,
      "documentationPath": "static/documentation.md",
      "updatedAt": 1623188059180
    },
    {
      "key": "cpp",
      "name": "CFamily Code Quality and Security",
      "description": "Code Quality and Security for C, C++, Objective-C",
      "version": "6.20.1 (build 32841)",
      "license": "SonarSource",
      "organizationName": "SonarSource",
      "organizationUrl": "https://www.sonarsource.com",
      "editionBundled": true,
      "homepageUrl": "https://redirect.sonarsource.com/plugins/cpp.html",
      "issueTrackerUrl": "https://jira.sonarsource.com/browse/CPP",
      "implementationBuild": "cfe20794a83197d63a97c7310114b0bf8ba0a548",
      "filename": "sonar-cfamily-plugin-6.20.1.32841.jar",
      "hash": "bad2a2ea84e6d1a04fe1ca31ad16b438",
      "sonarLintSupported": true,
      "documentationPath": "static/documentation.md",
      "updatedAt": 1623707311103
    },
    {
      "key": "cssfamily",
      "name": "CSS Code Quality and Security",
      "description": "Code Analyzer for CSS",
      "version": "1.4.2 (build 2002)",
      "license": "GNU LGPL 3",
      "organizationName": "SonarSource",
      "organizationUrl": "http://www.sonarsource.com",
      "editionBundled": false,
      "homepageUrl": "http://redirect.sonarsource.com/plugins/css.html",
      "issueTrackerUrl": "https://github.com/SonarSource/sonar-css/issues",
      "implementationBuild": "faa7d4f1407df67df7ada53caf677ab783721173",
      "filename": "sonar-css-plugin-1.4.2.2002.jar",
      "hash": "ab11b76ad899a6ad17c72a1dfc926cc3",
      "sonarLintSupported": false,
      "documentationPath": "static/documentation.md",
      "updatedAt": 1623188059180
    },
    {
      "key": "flex",
      "name": "Flex Code Quality and Security",
      "description": "Code Quality and Security for Flex / ActionScript",
      "version": "2.6.1 (build 2564)",
      "license": "GNU LGPL 3",
      "organizationName": "SonarSource",
      "organizationUrl": "http://www.sonarsource.com",
      "editionBundled": false,
      "homepageUrl": "http://redirect.sonarsource.com/plugins/flex.html",
      "issueTrackerUrl": "http://jira.sonarsource.com/browse/SONARFLEX",
      "implementationBuild": "bb723840701bda72510b7a47742811d20daad331",
      "filename": "sonar-flex-plugin-2.6.1.2564.jar",
      "hash": "e7beea3ca08b745ee4c1398a6f7575b7",
      "sonarLintSupported": false,
      "documentationPath": "static/documentation.md",
      "updatedAt": 1623188059180
    },
    {
      "key": "go",
      "name": "Go Code Quality and Security",
      "description": "Code Analyzer for Go",
      "version": "1.8.3 (build 2219)",
      "license": "GNU LGPL 3",
      "organizationName": "SonarSource",
      "organizationUrl": "http://www.sonarsource.com",
      "editionBundled": false,
      "homepageUrl": "http://redirect.sonarsource.com/plugins/go.html",
      "issueTrackerUrl": "https://jira.sonarsource.com/browse/SONARSLANG",
      "implementationBuild": "d6ad7a5a47fc4785d2e80918fb7424be46e38a7f",
      "filename": "sonar-go-plugin-1.8.3.2219.jar",
      "hash": "a32346d2972fa84fc6b3d40737243092",
      "sonarLintSupported": false,
      "documentationPath": "static/documentation.md",
      "updatedAt": 1623188059180
    },
    {
      "key": "web",
      "name": "HTML Code Quality and Security",
      "description": "Code analyzer for HTML",
      "version": "3.4 (build 2754)",
      "license": "The Apache Software License, Version 2.0",
      "organizationName": "SonarSource and Matthijs Galesloot",
      "editionBundled": false,
      "homepageUrl": "http://redirect.sonarsource.com/plugins/web.html",
      "issueTrackerUrl": "https://jira.sonarsource.com/browse/SONARHTML",
      "implementationBuild": "38f7ff864ae15152c9f1efc3014594f7e7ca7b6e",
      "filename": "sonar-html-plugin-3.4.0.2754.jar",
      "hash": "16aa0f649cd407d844968bcf80a8be6e",
      "sonarLintSupported": true,
      "documentationPath": "static/documentation.md",
      "updatedAt": 1623188059180
    },
    {
      "key": "jacoco",
      "name": "JaCoCo",
      "description": "JaCoCo XML report importer",
      "version": "1.1.1 (build 1157)",
      "license": "GNU LGPL 3",
      "organizationName": "SonarSource",
      "organizationUrl": "http://www.sonarsource.com",
      "editionBundled": false,
      "issueTrackerUrl": "https://jira.sonarsource.com/browse/JACOCO",
      "implementationBuild": "83478572b9f23efac29de15e30c7758bbb0c0e47",
      "filename": "sonar-jacoco-plugin-1.1.1.1157.jar",
      "hash": "c3b0852dcc82e97e572ca0812c0afd7d",
      "sonarLintSupported": false,
      "updatedAt": 1623188059180
    },
    {
      "key": "java",
      "name": "Java Code Quality and Security",
      "description": "Code Analyzer for Java",
      "version": "6.15.1 (build 26025)",
      "license": "GNU LGPL 3",
      "organizationName": "SonarSource",
      "organizationUrl": "http://www.sonarsource.com",
      "editionBundled": false,
      "homepageUrl": "http://redirect.sonarsource.com/plugins/java.html",
      "issueTrackerUrl": "https://jira.sonarsource.com/browse/SONARJAVA",
      "implementationBuild": "1b1e96715bfa9f6a4ae24e95cc5b91f0edce609f",
      "filename": "sonar-java-plugin-6.15.1.26025.jar",
      "hash": "83d77354b8e64b0eaa0b596388567b0f",
      "sonarLintSupported": true,
      "documentationPath": "static/documentation.md",
      "updatedAt": 1623188059180
    },
    {
      "key": "javascript",
      "name": "JavaScript/TypeScript Code Quality and Security",
      "description": "Code Analyzer for JavaScript",
      "version": "7.4.4 (build 15624)",
      "license": "GNU LGPL 3",
      "organizationName": "SonarSource and Eriks Nukis",
      "editionBundled": false,
      "homepageUrl": "http://redirect.sonarsource.com/plugins/javascript.html",
      "issueTrackerUrl": "https://github.com/SonarSource/sonar-javascript/issues",
      "implementationBuild": "481b2e69339b016b5d7d1eb27f0abf20dd6bd961",
      "filename": "sonar-javascript-plugin-7.4.4.15624.jar",
      "hash": "2bce33eab1a1748692281ea330119a58",
      "sonarLintSupported": true,
      "documentationPath": "static/documentation.md",
      "updatedAt": 1623707311103
    },
    {
      "key": "kotlin",
      "name": "Kotlin Code Quality and Security",
      "description": "Code Analyzer for Kotlin",
      "version": "1.8.3 (build 2219)",
      "license": "GNU LGPL 3",
      "organizationName": "SonarSource",
      "organizationUrl": "http://www.sonarsource.com",
      "editionBundled": false,
      "homepageUrl": "http://redirect.sonarsource.com/plugins/kotlin.html",
      "issueTrackerUrl": "https://jira.sonarsource.com/browse/SONARSLANG",
      "implementationBuild": "d6ad7a5a47fc4785d2e80918fb7424be46e38a7f",
      "filename": "sonar-kotlin-plugin-1.8.3.2219.jar",
      "hash": "6af73ab27cd9b8fc45a8cfea864efe69",
      "sonarLintSupported": true,
      "documentationPath": "static/documentation.md",
      "updatedAt": 1623188059180
    },
    {
      "key": "license",
      "name": "License for SonarLint",
      "description": "Virtual SonarSource License Plugin to provide backward compatibility for SonarLint",
      "version": "8.9.1 (build 44547)",
      "organizationName": "SonarSource",
      "organizationUrl": "https://www.sonarsource.com",
      "editionBundled": false,
      "implementationBuild": "d46c8de9adbb223e48c5bca3a7d1de7875d7ec12",
      "filename": "sonarlint-license-plugin-8.9.1.44547-all.jar",
      "hash": "b45e61a288b71a69ce57d2b54382a775",
      "sonarLintSupported": true,
      "updatedAt": 1623707311103
    },
    {
      "key": "php",
      "name": "PHP Code Quality and Security",
      "description": "Code Analyzer for PHP",
      "version": "3.17.0.7439",
      "license": "GNU LGPL v3",
      "organizationName": "SonarSource and Akram Ben Aissi",
      "editionBundled": false,
      "homepageUrl": "http://redirect.sonarsource.com/plugins/php.html",
      "issueTrackerUrl": "https://jira.sonarsource.com/projects/SONARPHP",
      "implementationBuild": "44c7760147080c157fa0ff579772f92d3c8e1ebf",
      "filename": "sonar-php-plugin-3.17.0.7439.jar",
      "hash": "923b2b386d99f0d11284144676f71782",
      "sonarLintSupported": true,
      "documentationPath": "static/documentation.md",
      "updatedAt": 1623188059180
    },
    {
      "key": "plsql",
      "name": "PL/SQL Code Quality and Security",
      "description": "Code Analyzer for PL/SQL",
      "version": "3.6.1 (build 3873)",
      "license": "SonarSource",
      "organizationName": "SonarSource",
      "organizationUrl": "https://www.sonarsource.com",
      "editionBundled": true,
      "homepageUrl": "http://redirect.sonarsource.com/plugins/plsql.html",
      "issueTrackerUrl": "https://jira.sonarsource.com/browse/SONARPLSQL",
      "implementationBuild": "342f7fcf17ecb7fbf827a2aacf630be1f4157625",
      "filename": "sonar-plsql-plugin-3.6.1.3873.jar",
      "hash": "862a9c891d969710157e9acb9ec4ca66",
      "sonarLintSupported": true,
      "documentationPath": "static/documentation.md",
      "updatedAt": 1623188059180
    },
    {
      "key": "python",
      "name": "Python Code Quality and Security",
      "description": "Code Analyzer for Python",
      "version": "3.4.1 (build 8066)",
      "license": "GNU LGPL 3",
      "organizationName": "SonarSource and Waleri Enns",
      "editionBundled": false,
      "homepageUrl": "http://redirect.sonarsource.com/plugins/python.html",
      "issueTrackerUrl": "https://jira.sonarsource.com/browse/SONARPY",
      "implementationBuild": "22139ec73fb2f32044f66477ea52734415683668",
      "filename": "sonar-python-plugin-3.4.1.8066.jar",
      "hash": "5fb8bce478336005cbb874226ab0e928",
      "sonarLintSupported": true,
      "documentationPath": "static/documentation.md",
      "updatedAt": 1623188059180
    },
    {
      "key": "ruby",
      "name": "Ruby Code Quality and Security",
      "description": "Code Analyzer for Ruby",
      "version": "1.8.3 (build 2219)",
      "license": "GNU LGPL 3",
      "organizationName": "SonarSource",
      "organizationUrl": "http://www.sonarsource.com",
      "editionBundled": false,
      "homepageUrl": "http://redirect.sonarsource.com/plugins/ruby.html",
      "issueTrackerUrl": "https://jira.sonarsource.com/browse/SONARSLANG",
      "implementationBuild": "d6ad7a5a47fc4785d2e80918fb7424be46e38a7f",
      "filename": "sonar-ruby-plugin-1.8.3.2219.jar",
      "hash": "5c0f057d63cc62a7e933a379439fe94e",
      "sonarLintSupported": true,
      "documentationPath": "static/documentation.md",
      "updatedAt": 1623188059180
    },
    {
      "key": "sonarscala",
      "name": "Scala Code Quality and Security",
      "description": "Code Analyzer for Scala",
      "version": "1.8.3 (build 2219)",
      "license": "GNU LGPL 3",
      "organizationName": "SonarSource",
      "organizationUrl": "http://www.sonarsource.com",
      "editionBundled": false,
      "homepageUrl": "http://redirect.sonarsource.com/plugins/scala.html",
      "issueTrackerUrl": "https://jira.sonarsource.com/browse/SONARSLANG",
      "implementationBuild": "d6ad7a5a47fc4785d2e80918fb7424be46e38a7f",
      "filename": "sonar-scala-plugin-1.8.3.2219.jar",
      "hash": "7c6964005890277d5931b223aadbf539",
      "sonarLintSupported": true,
      "documentationPath": "static/documentation.md",
      "updatedAt": 1623188059180
    },
    {
      "key": "swift",
      "name": "Swift Code Quality and Security",
      "description": "Code Analyzer for Swift",
      "version": "4.3.1 (build 4892)",
      "license": "SonarSource",
      "organizationName": "SonarSource",
      "organizationUrl": "https://www.sonarsource.com",
      "editionBundled": true,
      "homepageUrl": "http://redirect.sonarsource.com/plugins/swift.html",
      "issueTrackerUrl": "http://jira.sonarsource.com/browse/SONARSWIFT",
      "implementationBuild": "2b249272bc4430519bdab769886b12c9a82084b5",
      "filename": "sonar-swift-plugin-4.3.1.4892.jar",
      "hash": "477c521e5b6637ebdc37c871d4181489",
      "sonarLintSupported": true,
      "documentationPath": "static/documentation.md",
      "updatedAt": 1623188059180
    },
    {
      "key": "tsql",
      "name": "T-SQL Code Quality and Security",
      "description": "Code Analyzer for T-SQL",
      "version": "1.5.1 (build 4340)",
      "license": "SonarSource",
      "organizationName": "SonarSource",
      "organizationUrl": "http://www.sonarsource.com",
      "editionBundled": true,
      "homepageUrl": "http://redirect.sonarsource.com/plugins/tsql.html",
      "issueTrackerUrl": "https://jira.sonarsource.com/browse/SONARTSQL",
      "implementationBuild": "11f3de5739b539749d6c2848bda8fc90135d91b6",
      "filename": "sonar-tsql-plugin-1.5.1.4340.jar",
      "hash": "e536fa1a6951618e898dff2906872b68",
      "sonarLintSupported": true,
      "documentationPath": "static/documentation.md",
      "updatedAt": 1623188059180
    },
    {
      "key": "vbnet",
      "name": "VB.NET Code Quality and Security",
      "description": "Code Analyzer for VB.NET",
      "version": "8.22 (build 31243)",
      "license": "GNU LGPL 3",
      "organizationName": "SonarSource",
      "organizationUrl": "http://www.sonarsource.com",
      "editionBundled": false,
      "homepageUrl": "http://redirect.sonarsource.com/plugins/vbnet.html",
      "issueTrackerUrl": "https://github.com/SonarSource/sonar-dotnet/issues",
      "implementationBuild": "e3cee7838d992e31dcdd90cf4f7406bb20535e8e",
      "filename": "sonar-vbnet-plugin-8.22.0.31243.jar",
      "hash": "9b10819ca7b29beefcd0432aa2cb653e",
      "sonarLintSupported": false,
      "documentationPath": "static/documentation.md",
      "updatedAt": 1623188059180
    },
    {
      "key": "security",
      "name": "Vulnerability Analysis",
      "description": "Vulnerability Analysis",
      "version": "8.9 (build 11439)",
      "license": "SonarSource",
      "organizationName": "SonarSource",
      "organizationUrl": "http://www.sonarsource.com",
      "editionBundled": true,
      "homepageUrl": "https://redirect.sonarsource.com/editions/editions.html",
      "issueTrackerUrl": "https://jira.sonarsource.com/browse/SONARSEC",
      "implementationBuild": "04498e7b336a73db9508145d1e8cc44b9330528d",
      "filename": "sonar-security-plugin-8.9.0.11439.jar",
      "hash": "01a4fe045bb62ab393a267d51724ad87",
      "sonarLintSupported": false,
      "updatedAt": 1623188059180
    },
    {
      "key": "securitycsharpfrontend",
      "name": "Vulnerability Rules for C#",
      "description": "C# Rules for Vulnerability Analysis",
      "version": "8.9 (build 11439)",
      "license": "SonarSource",
      "organizationName": "SonarSource",
      "organizationUrl": "http://www.sonarsource.com",
      "editionBundled": true,
      "homepageUrl": "https://redirect.sonarsource.com/editions/editions.html",
      "issueTrackerUrl": "https://jira.sonarsource.com/browse/SONARSEC",
      "implementationBuild": "04498e7b336a73db9508145d1e8cc44b9330528d",
      "filename": "sonar-security-csharp-frontend-plugin-8.9.0.11439.jar",
      "hash": "91152396c1fec18d8e503b4362b6ce88",
      "sonarLintSupported": false,
      "updatedAt": 1623188059180
    },
    {
      "key": "securityjsfrontend",
      "name": "Vulnerability Rules for JS",
      "description": "JS Rules for Vulnerability Analysis",
      "version": "8.9 (build 11439)",
      "license": "SonarSource",
      "organizationName": "SonarSource",
      "organizationUrl": "http://www.sonarsource.com",
      "editionBundled": true,
      "homepageUrl": "https://redirect.sonarsource.com/editions/editions.html",
      "issueTrackerUrl": "https://jira.sonarsource.com/browse/SONARSEC",
      "implementationBuild": "04498e7b336a73db9508145d1e8cc44b9330528d",
      "filename": "sonar-security-js-frontend-plugin-8.9.0.11439.jar",
      "hash": "1c0d0d6d358b2ff25a27998c60079e2e",
      "sonarLintSupported": false,
      "updatedAt": 1623188059180
    },
    {
      "key": "securityjavafrontend",
      "name": "Vulnerability Rules for Java",
      "description": "Java Rules for Vulnerability Analysis",
      "version": "8.9 (build 11439)",
      "license": "SonarSource",
      "organizationName": "SonarSource",
      "organizationUrl": "http://www.sonarsource.com",
      "editionBundled": true,
      "homepageUrl": "https://redirect.sonarsource.com/editions/editions.html",
      "issueTrackerUrl": "https://jira.sonarsource.com/browse/SONARSEC",
      "implementationBuild": "04498e7b336a73db9508145d1e8cc44b9330528d",
      "filename": "sonar-security-java-frontend-plugin-8.9.0.11439.jar",
      "hash": "a27140af3714609e609ab25253aece7d",
      "sonarLintSupported": false,
      "updatedAt": 1623188059180
    },
    {
      "key": "securityphpfrontend",
      "name": "Vulnerability Rules for PHP",
      "description": "PHP Rules for Vulnerability Analysis",
      "version": "8.9 (build 11439)",
      "license": "SonarSource",
      "organizationName": "SonarSource",
      "organizationUrl": "http://www.sonarsource.com",
      "editionBundled": true,
      "homepageUrl": "https://redirect.sonarsource.com/editions/editions.html",
      "issueTrackerUrl": "https://jira.sonarsource.com/browse/SONARSEC",
      "implementationBuild": "04498e7b336a73db9508145d1e8cc44b9330528d",
      "filename": "sonar-security-php-frontend-plugin-8.9.0.11439.jar",
      "hash": "96bc982bf5e146ae7aef9ed1c97463b5",
      "sonarLintSupported": false,
      "updatedAt": 1623188059180
    },
    {
      "key": "securitypythonfrontend",
      "name": "Vulnerability Rules for Python",
      "description": "Python Rules for Vulnerability Analysis",
      "version": "8.9 (build 11439)",
      "license": "SonarSource",
      "organizationName": "SonarSource",
      "organizationUrl": "http://www.sonarsource.com",
      "editionBundled": true,
      "homepageUrl": "https://redirect.sonarsource.com/editions/editions.html",
      "issueTrackerUrl": "https://jira.sonarsource.com/browse/SONARSEC",
      "implementationBuild": "04498e7b336a73db9508145d1e8cc44b9330528d",
      "filename": "sonar-security-python-frontend-plugin-8.9.0.11439.jar",
      "hash": "e4a97198cfc4a6f23631242a00b290af",
      "sonarLintSupported": false,
      "updatedAt": 1623188059180
    },
    {
      "key": "xml",
      "name": "XML Code Quality and Security",
      "description": "Code Analyzer for XML",
      "version": "2.2 (build 2973)",
      "license": "GNU LGPL 3",
      "organizationName": "SonarSource",
      "organizationUrl": "http://www.sonarsource.com",
      "editionBundled": false,
      "homepageUrl": "http://redirect.sonarsource.com/plugins/xml.html",
      "issueTrackerUrl": "https://jira.sonarsource.com/browse/SONARXML",
      "implementationBuild": "16002945f0725643a7b42f090572795dd8b72a0f",
      "filename": "sonar-xml-plugin-2.2.0.2973.jar",
      "hash": "f2bd15c0bb7e310b06ae2e487960dddb",
      "sonarLintSupported": true,
      "documentationPath": "static/documentation.md",
      "updatedAt": 1623188059180
    }
  ]
}

Hello @Kirill_Knize, can you help me?

Hello @babalubas090 , sorry answer took so long.
This issues are raised only in production code and not in tests. SonarLint uses IDE knowledge what is test files and what is production code. SonarQube has no access to this information from IDE, so it relies on configuration. Apparently in your configuration of SonarQube you don’t specified that mentioned file is test.
That’s the reason of difference in analysis results.
Hope it helps.