Vuex 변환 매개 변수와 충돌하는 SonarQube 규칙을 사용하지 않도록 설정하려면 어떻게 해야 합니까?
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++
}
}
}
(https://vuex.vuejs.org/guide/modules.html)
구현이 잘못된 관행입니까?아니면 SonarQube가 Vue/Vuex를 올바르게 분석하려면 특별한 구성/플러그인이 필요합니까?
언급URL : https://stackoverflow.com/questions/57992853/how-to-disable-the-sonarqube-rule-which-conflicts-with-the-parameter-of-a-vuex-m
'source' 카테고리의 다른 글
| MySQL tc.log 파일 (0) | 2022.11.13 |
|---|---|
| mysql 선택 쿼리에서 두 날짜 사이의 날짜 목록을 가져오는 방법 (0) | 2022.11.13 |
| JavaScript 연산, 소수점 2자리 반올림 (0) | 2022.11.13 |
| Windows는 JAVA_를 무시합니다.홈: JDK를 기본값으로 설정하는 방법 (0) | 2022.11.13 |
| python 요청으로 파일을 업로드하려면 어떻게 해야 합니까? (0) | 2022.11.13 |