- 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 "./directives"; // Remove this unused import of 'vFocus'.
</script>
<template>
<input v-focus />
</template>
Achieve
The rule is working go on, but the vue3 directive in composition be scanning through