Sim*_*iel 5 sonarqube vue.js vuex vuejs2
在将突变作为 Vuex 存储模块的一部分实现时,我遇到以下 SonarQube 冲突:
"state" hides or potentially hides a variable declared in an outer scope at line X
该代码看起来与 Vuex 文档中的代码片段类似:
const moduleA = {
state: { count: 0 },
mutations: {
increment (state) {
// `state` is the local module state
state.count++
}
}
}
Run Code Online (Sandbox Code Playgroud)
(https://vuex.vuejs.org/guide/modules.html)
实施是不好的做法吗?或者我是否需要一个特殊的配置/插件来让 SonarQube 正确分析 Vue / Vuex?