Using SonarLint in VSCode, I disabled certain rules to get a local java program to run. However when checked in to the GIT project, the CI build failed. How can I turn the SonarLint rules back on so I can get the benefit of the linting again?
Open View > Command Palette... (Mac: Cmd+Shift+P)
Select Preferences: Open Settings (JSON)
In the settings.json file, the disabled SonarLint rules are listed:
"sonarlint.rules": {
"java:S2095": {
"level": "off"
},
"java:S1192": {
"level": "off"
}
}
Delete the rules you wish to reactivate, save the settings
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.