# \#vue

**URL:** https://community.sonarsource.com/tag/vue/345.md

[Latest](https://community.sonarsource.com/latest.md) · [Categories](https://community.sonarsource.com/categories.md) · [Tags](https://community.sonarsource.com/tags.md)

---

## [typescript:S6598 might be a false-positive for interface Emits macro in .vue files](https://community.sonarsource.com/t/typescript-s6598-might-be-a-false-positive-for-interface-emits-macro-in-vue-files/131732)

<div class="topic-metadata">

**Author:** [@rpandya](https://community.sonarsource.com/u/rpandya)\
**Replies:** 3\
**Last updated:** [February 26, 2026, 9:40am UTC](https://community.sonarsource.com/t/typescript-s6598-might-be-a-false-positive-for-interface-emits-macro-in-vue-files/131732 "2026-02-26T09:40:03Z")

</div>

What language is this for? Vue3, TypeScript Which rule? Interface has only a call signature, you should use a function type instead (typescript:S6598) Why do you believe it’s a false-positive/false-negative? I…

---

## [Vue Component: Failed to Analyze File](https://community.sonarsource.com/t/vue-component-failed-to-analyze-file/148403)

<div class="topic-metadata">

**Author:** [@huh](https://community.sonarsource.com/u/huh)\
**Replies:** 2\
**Last updated:** [September 9, 2025, 8:24am UTC](https://community.sonarsource.com/t/vue-component-failed-to-analyze-file/148403 "2025-09-09T08:24:55Z")

</div>

One of our Vue based projects has multiple files that are unable to be analyzed. We only receive this error during our pipeline builds, IDE integration seems to work fine. This may be a duplicate of this ticket which w…

---

## [Web:S6807 false-positive when aria attributes are bound](https://community.sonarsource.com/t/web-s6807-false-positive-when-aria-attributes-are-bound/145522)

<div class="topic-metadata">

**Author:** [@huh](https://community.sonarsource.com/u/huh)\
**Replies:** 2\
**Last updated:** [August 21, 2025, 10:27am UTC](https://community.sonarsource.com/t/web-s6807-false-positive-when-aria-attributes-are-bound/145522 "2025-08-21T10:27:45Z")

</div>

What language is this for? Javascript (Vue 3, Composition API, Single File Template) Which rule? Web:S6807 Why do you believe it’s a false-positive/false-negative? This rule states that “aria-checked” is required by …

---

## [False Positive Web:S6851 Exclude i18n keys](https://community.sonarsource.com/t/false-positive-web-s6851-exclude-i18n-keys/129661)

<div class="topic-metadata">

**Author:** [@wnmzzzz](https://community.sonarsource.com/u/wnmzzzz)\
**Replies:** 1\
**Last updated:** [April 15, 2025, 3:01pm UTC](https://community.sonarsource.com/t/false-positive-web-s6851-exclude-i18n-keys/129661 "2025-04-15T15:01:41Z")

</div>

What language is this for? Javascript (Vue 3, Component api) Which rule? Web:S6851 Why do you believe it’s a false-positive/false-negative? The rule states 'Images should have a non-redundant Image description, if th…

---

## [Web:S5255 does not understand Vue's v-if](https://community.sonarsource.com/t/web-s5255-does-not-understand-vues-v-if/138033)

<div class="topic-metadata">

**Author:** [@Jak-Ch-ll](https://community.sonarsource.com/u/Jak-Ch-ll)\
**Replies:** 1\
**Last updated:** [April 3, 2025, 1:08pm UTC](https://community.sonarsource.com/t/web-s5255-does-not-understand-vues-v-if/138033 "2025-04-03T13:08:33Z")

</div>

The rule Web:S5255 triggers in Vue templates for elements with the same landmark role, even if these are made mutually exclusive via control flow directives (v-if, v-else, v-else-if). This issue can be reproduced with t…

---

## [S6842 false positive for radiogroup](https://community.sonarsource.com/t/s6842-false-positive-for-radiogroup/124438)

<div class="topic-metadata">

**Author:** [@tkenbw](https://community.sonarsource.com/u/tkenbw)\
**Replies:** 2\
**Last updated:** [September 25, 2024, 9:09am UTC](https://community.sonarsource.com/t/s6842-false-positive-for-radiogroup/124438 "2024-09-25T09:09:02Z")

</div>

SonarQube Enterprise Edition v10.6 (92116) In my vue component I have a fieldset marked with the radiogroup role: \<fieldset role="radiogroup" :aria-required="props.required" :aria-invalid="v…

---

## [Analyze Vue.Js project files](https://community.sonarsource.com/t/analyze-vue-js-project-files/125346)

<div class="topic-metadata">

**Author:** [@martjarvi](https://community.sonarsource.com/u/martjarvi)\
**Replies:** 3\
**Last updated:** [September 20, 2024, 11:24am UTC](https://community.sonarsource.com/t/analyze-vue-js-project-files/125346 "2024-09-20T11:24:47Z")

</div>

SonarQube EE 10.6 We want to analyze \*.vue files with typescript/html/css analyzers but it only allows one at the time in the sonar.properties. How would you then scan these files which contains all three (vue typescri…

---

## [The import statement of the Vue file is not indicated as duplicate code](https://community.sonarsource.com/t/the-import-statement-of-the-vue-file-is-not-indicated-as-duplicate-code/116778)

<div class="topic-metadata">

**Author:** [@Ma.Ko](https://community.sonarsource.com/u/Ma.Ko)\
**Replies:** 1\
**Last updated:** [June 7, 2024, 9:30am UTC](https://community.sonarsource.com/t/the-import-statement-of-the-vue-file-is-not-indicated-as-duplicate-code/116778 "2024-06-07T09:30:59Z")

</div>

We are analyzing the index.vue file of Vue in SonarQube9.9. Duplications of analysis results pointed out import statements in .vue files as duplicate codes. When referring to the official guide(Metric definitions - Sona…

---

## [Sonarqube always show autocomplete warning Web:S6840 in Vuetify](https://community.sonarsource.com/t/sonarqube-always-show-autocomplete-warning-web-s6840-in-vuetify/115728)

<div class="topic-metadata">

**Author:** [@Sebastiano\_Manfredin](https://community.sonarsource.com/u/Sebastiano_Manfredin)\
**Replies:** 2\
**Last updated:** [May 27, 2024, 12:30pm UTC](https://community.sonarsource.com/t/sonarqube-always-show-autocomplete-warning-web-s6840-in-vuetify/115728 "2024-05-27T12:30:25Z")

</div>

Must-share information which versions are you using: 10.5.1.90531 Vue version: 2.6.12 Vuetify version: 2.3.12 how is SonarQube deployed: zip I have recently updated SonarWube from version 10.3 to 10.5 and it started t…

---

## [Vue.js analysis changes for SFC (.vue files)](https://community.sonarsource.com/t/vue-js-analysis-changes-for-sfc-vue-files/112275)

<div class="topic-metadata">

**Author:** [@gab](https://community.sonarsource.com/u/gab)\
**Replies:** 0\
**Last updated:** [March 28, 2024, 2:48pm UTC](https://community.sonarsource.com/t/vue-js-analysis-changes-for-sfc-vue-files/112275 "2024-03-28T14:48:05Z")

</div>

Hello Sonar Community and especially Vue.js devs, While analyzing Vue.js projects with Sonar, you might have experienced performance issues or even analysis failures, especially with Single File Component files (.vue). …

---

## [We've hardcoded username & Pasword in Login Component but SonarCloud didn't found Security Hotspot](https://community.sonarsource.com/t/weve-hardcoded-username-pasword-in-login-component-but-sonarcloud-didnt-found-security-hotspot/111281)

<div class="topic-metadata">

**Author:** [@Vishwa-Vxceed](https://community.sonarsource.com/u/Vishwa-Vxceed)\
**Replies:** 5\
**Last updated:** [March 22, 2024, 9:38am UTC](https://community.sonarsource.com/t/weve-hardcoded-username-pasword-in-login-component-but-sonarcloud-didnt-found-security-hotspot/111281 "2024-03-22T09:38:29Z")

</div>

We have Hardcoded The username & Pawword in the Login.Vue Component But SonarCloud found any Security HotSpots Can we know the reason ? Our code is something like below \<form class="pt-0 mt-0" @submit.prevent="login"\>…

---

## [Last analysis failed Analysis ID "AY1W\_2PRNb3BCnoNOObG"](https://community.sonarsource.com/t/last-analysis-failed-analysis-id-ay1w-2prnb3bcnonoobg/108148)

<div class="topic-metadata">

**Author:** [@tc-eric](https://community.sonarsource.com/u/tc-eric)\
**Replies:** 4\
**Last updated:** [February 26, 2024, 8:31am UTC](https://community.sonarsource.com/t/last-analysis-failed-analysis-id-ay1w-2prnb3bcnonoobg/108148 "2024-02-26T08:31:56Z")

</div>

GitHub repo runs SonarCloud analysis automatically as part of the PR review process. SonarCloud Analysis automatic code analysis checks started failing today for certain GitHub project but we didn’t change anything. Th…

---

## [Imports showing as not covered](https://community.sonarsource.com/t/imports-showing-as-not-covered/109477)

<div class="topic-metadata">

**Author:** [@tejal\_mistry](https://community.sonarsource.com/u/tejal_mistry)\
**Replies:** 8\
**Last updated:** [February 22, 2024, 12:24pm UTC](https://community.sonarsource.com/t/imports-showing-as-not-covered/109477 "2024-02-22T12:24:36Z")

</div>

I am using Sonarqube I believe version 9. I have a vue application and using an Azure pipeline to run jest tests. I am trying to understand why statemennts like these are showing as uncovered as it affects the coverage…

---

## [False positive XSS Security Hotspot using Vue?](https://community.sonarsource.com/t/false-positive-xss-security-hotspot-using-vue/107084)

<div class="topic-metadata">

**Author:** [@lserra](https://community.sonarsource.com/u/lserra)\
**Replies:** 1\
**Last updated:** [January 16, 2024, 9:39am UTC](https://community.sonarsource.com/t/false-positive-xss-security-hotspot-using-vue/107084 "2024-01-16T09:39:22Z")

</div>

“Make sure bypassing Vue built-in sanitization is safe here. Disabling Vue.js built-in escaping is security-sensitive\[typescript:S6299\]” That happens binding a constant to an anchor’s href attribute like: \<a :href="a…

---

## [SonarQube Report Shows Uncovered Conditions for Minimal Vue.js Extension File Changes](https://community.sonarsource.com/t/sonarqube-report-shows-uncovered-conditions-for-minimal-vue-js-extension-file-changes/104302)

<div class="topic-metadata">

**Author:** [@Prem142](https://community.sonarsource.com/u/Prem142)\
**Replies:** 1\
**Last updated:** [November 14, 2023, 3:15pm UTC](https://community.sonarsource.com/t/sonarqube-report-shows-uncovered-conditions-for-minimal-vue-js-extension-file-changes/104302 "2023-11-14T15:15:23Z")

</div>

I’m encountering an issue with my SonarQube report generated locally for a Vue.js extension file. Despite making only three lines of code changes, the report is indicating 22 uncovered conditions, adversely affecting my …

---

## [Nuxt 3 Project: Error: Cannot read file '/home/vsts/work/1/s/.nuxt/tsconfig.json'](https://community.sonarsource.com/t/nuxt-3-project-error-cannot-read-file-home-vsts-work-1-s-nuxt-tsconfig-json/82755)

<div class="topic-metadata">

**Author:** [@Gurvan](https://community.sonarsource.com/u/Gurvan)\
**Replies:** 7\
**Last updated:** [November 6, 2023, 5:33pm UTC](https://community.sonarsource.com/t/nuxt-3-project-error-cannot-read-file-home-vsts-work-1-s-nuxt-tsconfig-json/82755 "2023-11-06T17:33:40Z")

</div>

Must-share information (formatted with Markdown): which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension): SonarQubeAnalyze v5.10.0 what are you trying to achieve: Running the pipeline in …

---

## [SonarCloud w/ Bitbucket (VueJS)](https://community.sonarsource.com/t/sonarcloud-w-bitbucket-vuejs/97645)

<div class="topic-metadata">

**Author:** [@andre\_s\_ferreira](https://community.sonarsource.com/u/andre_s_ferreira)\
**Replies:** 8\
**Last updated:** [October 5, 2023, 11:42am UTC](https://community.sonarsource.com/t/sonarcloud-w-bitbucket-vuejs/97645 "2023-10-05T11:42:52Z")

</div>

ALM: Bitbucket Cloud CI: Bitbucket Cloud Languages: Javascript As so many others, Sensor JavaScript/TypeScript analysis \[javascript\], is taking incredibly long. It takes more than 120 minutes(timeout) on an 116 files t…

---

## [Disable Sonar analysis for JS/Vue/TS, but keep coverage](https://community.sonarsource.com/t/disable-sonar-analysis-for-js-vue-ts-but-keep-coverage/99603)

<div class="topic-metadata">

**Author:** [@judepereira](https://community.sonarsource.com/u/judepereira)\
**Replies:** 3\
**Last updated:** [September 28, 2023, 2:27pm UTC](https://community.sonarsource.com/t/disable-sonar-analysis-for-js-vue-ts-but-keep-coverage/99603 "2023-09-28T14:27:55Z")

</div>

Is there a way to disable JS analysis for a bunch of languages, but keep their coverage reporting enabled? We have no use case of letting Sonar analyse Vue/JS/TS, but would like to continue having the coverage report ena…

---

## [Unexpected duplicate "background"](https://community.sonarsource.com/t/unexpected-duplicate-background/96395)

<div class="topic-metadata">

**Author:** [@zhijie.hao](https://community.sonarsource.com/u/zhijie.hao)\
**Replies:** 2\
**Last updated:** [August 9, 2023, 12:50am UTC](https://community.sonarsource.com/t/unexpected-duplicate-background/96395 "2023-08-09T00:50:42Z")

</div>

Must-share information (formatted with Markdown): \*SonarQube 9.9.1 CI system used: GItLab Scanner command used when applicable (private details masked) Default GItLab yaml task Languages of the repository:Typescript +…

---

## [Infamous line coverage](https://community.sonarsource.com/t/infamous-line-coverage/97055)

<div class="topic-metadata">

**Author:** [@sschneider-ihre-pvs](https://community.sonarsource.com/u/sschneider-ihre-pvs)\
**Replies:** 1\
**Last updated:** [August 8, 2023, 1:15pm UTC](https://community.sonarsource.com/t/infamous-line-coverage/97055 "2023-08-08T13:15:05Z")

</div>

Since there is no easy way to ignore false positives of from coverage ignored files. Is it possible to disable the line coverage utility from SonarQube completely and only rely on provided coverage reports? And, please …

---

## [Remove this unused import of “xxx”,there seems to be something wrong with this rule](https://community.sonarsource.com/t/remove-this-unused-import-of-xxx-there-seems-to-be-something-wrong-with-this-rule/96184)

<div class="topic-metadata">

**Author:** [@zhijie.hao](https://community.sonarsource.com/u/zhijie.hao)\
**Replies:** 1\
**Last updated:** [August 4, 2023, 11:08am UTC](https://community.sonarsource.com/t/remove-this-unused-import-of-xxx-there-seems-to-be-something-wrong-with-this-rule/96184 "2023-08-04T11:08:21Z")

</div>

Must-share information (formatted with Markdown): SonarQube 9.9.1 CI system used: GItLab Scanner command used when applicable (private details masked) Default GItLab yaml task Languages of the repository:Typescript +…

---

## [VueJs Cyclomatic Complexity](https://community.sonarsource.com/t/vuejs-cyclomatic-complexity/95933)

<div class="topic-metadata">

**Author:** [@Xeyos](https://community.sonarsource.com/u/Xeyos)\
**Replies:** 17\
**Last updated:** [July 24, 2023, 9:57am UTC](https://community.sonarsource.com/t/vuejs-cyclomatic-complexity/95933 "2023-07-24T09:57:31Z")

</div>

Hello, I wanted to know if SonarQube also calculates the cyclomatic complexity for .vue files? Because in the version I use, 9.9, this metric is not present, not even for .ts files.

---

## [Inaccurate and ambiguous duplications on Vue file](https://community.sonarsource.com/t/inaccurate-and-ambiguous-duplications-on-vue-file/90342)

<div class="topic-metadata">

**Author:** [@Furkan\_YY](https://community.sonarsource.com/u/Furkan_YY)\
**Replies:** 5\
**Last updated:** [July 14, 2023, 12:14pm UTC](https://community.sonarsource.com/t/inaccurate-and-ambiguous-duplications-on-vue-file/90342 "2023-07-14T12:14:56Z")

</div>

Hello, The required informations are below: ALM: GitHub CI system: Github Actions Languages of the repository: JS, Vue When there is a change as a block, we get an indicator line left side of the code lines and th…

---

## [Cannot get code coverage analysis result for a PR](https://community.sonarsource.com/t/cannot-get-code-coverage-analysis-result-for-a-pr/94416)

<div class="topic-metadata">

**Author:** [@Furkan\_YY](https://community.sonarsource.com/u/Furkan_YY)\
**Replies:** 6\
**Last updated:** [July 10, 2023, 9:25pm UTC](https://community.sonarsource.com/t/cannot-get-code-coverage-analysis-result-for-a-pr/94416 "2023-07-10T21:25:55Z")

</div>

Hello, We have been getting coverage correctly for most of the PRs. However, we have a PR that has all analysis results except coverage. As far as I know, SonarCloud doesn’t enforce coverage conditions when there are …

---

## [SonarCloud is complaining about Vue selector :deep](https://community.sonarsource.com/t/sonarcloud-is-complaining-about-vue-selector-deep/83047)

<div class="topic-metadata">

**Author:** [@jamesalways](https://community.sonarsource.com/u/jamesalways)\
**Replies:** 3\
**Last updated:** [June 16, 2023, 7:25am UTC](https://community.sonarsource.com/t/sonarcloud-is-complaining-about-vue-selector-deep/83047 "2023-06-16T07:25:46Z")

</div>

Hello! I have a Vue component using :deep selector. And SonarCloud is complaining with the next message: Unexpected unknown pseudo-class selector “:deep” Code to reproduce the error: \<style lang="postcss" scoped\> .C…

---

## [FP S1128: False positive with Vue.js imports](https://community.sonarsource.com/t/fp-s1128-false-positive-with-vue-js-imports/91778)

<div class="topic-metadata">

**Author:** [@ferferga](https://community.sonarsource.com/u/ferferga)\
**Replies:** 4\
**Last updated:** [June 12, 2023, 10:41am UTC](https://community.sonarsource.com/t/fp-s1128-false-positive-with-vue-js-imports/91778 "2023-06-12T10:41:35Z")

</div>

Hello This is a follow-up of Fix FP S1128 (\`unused-imports\`): Vue.js imports used in templates · Issue #3484 · SonarSource/SonarJS · GitHub (the issue it’s not fully resolved for me) and what I commented beginning here …

---

## [javascript:S1128 when importing a custom directive in a Vue setup script](https://community.sonarsource.com/t/javascript-s1128-when-importing-a-custom-directive-in-a-vue-setup-script/85880)

<div class="topic-metadata">

**Author:** [@vincesp](https://community.sonarsource.com/u/vincesp)\
**Replies:** 3\
**Last updated:** [May 26, 2023, 8:47am UTC](https://community.sonarsource.com/t/javascript-s1128-when-importing-a-custom-directive-in-a-vue-setup-script/85880 "2023-05-26T08:47:56Z")

</div>

Please provide Operating system: Ubuntu 22.04.2 SonarLint plugin version: v3.15.1 Programming language you’re coding in: JavaScript, Vue Is connected mode used: Connected to SonarCloud or SonarQube (and which version)…

---

## [S1128 FP with use Vue3 directive in composition api](https://community.sonarsource.com/t/s1128-fp-with-use-vue3-directive-in-composition-api/86079)

<div class="topic-metadata">

**Author:** [@royisyoung](https://community.sonarsource.com/u/royisyoung)\
**Replies:** 1\
**Last updated:** [March 24, 2023, 12:24pm UTC](https://community.sonarsource.com/t/s1128-fp-with-use-vue3-directive-in-composition-api/86079 "2023-03-24T12:24:07Z")

</div>

sonarqube version: 9.8.0.63668 What This is a false-positive report by rule " Unnecessary imports should be removed", when i use vue3 directive in composition api; \<script lang="ts" setup\> import { vFocus } from "./…

---

## [Sonarcloud reporting Vue3's ":deep" selector](https://community.sonarsource.com/t/sonarcloud-reporting-vue3s-deep-selector/83848)

<div class="topic-metadata">

**Author:** [@rpandya](https://community.sonarsource.com/u/rpandya)\
**Replies:** 2\
**Last updated:** [February 17, 2023, 3:55pm UTC](https://community.sonarsource.com/t/sonarcloud-reporting-vue3s-deep-selector/83848 "2023-02-17T15:55:21Z")

</div>

In our Vue3 component, ":deep" is being reported as a unknown pseudo-class selector even after adding an exclusion in the Quality Profile. Rule: https://sonarcloud.io/organizations/escribe/rules?open=css%3AS4659&rule\_ke…

---

## [SonarCloud reports false unused imports in Vue3](https://community.sonarsource.com/t/sonarcloud-reports-false-unused-imports-in-vue3/74703)

<div class="topic-metadata">

**Author:** [@AdeZwart](https://community.sonarsource.com/u/AdeZwart)\
**Replies:** 8\
**Last updated:** [January 30, 2023, 11:52am UTC](https://community.sonarsource.com/t/sonarcloud-reports-false-unused-imports-in-vue3/74703 "2023-01-30T11:52:34Z")

</div>

ALM used: Azure DevOps CI system used: Azure DevOps Scanner command used when applicable (private details masked) Default Azure DevOps yaml task Languages of the repository Typescript + Vue3 Error observed Code Smell…

[Next page](https://community.sonarsource.com/tag/vue/345.md?match_all_tags=true&page=1&tags%5B%5D=vue)
