Suppress any warning for specific files
Answered
Does IDEA support it?
For example, I want to disable/suppress all warnings for gradlew, gradlew.bat files.
Please sign in to leave a comment.
Please attach a warning sample that you would like to turn off.
For disabling Gradle warnings you may create
gradle.propertiesfile in the project root directory and addorg.gradle.warning.mode=noneto it. See the official Gradle documentation for more details.I also recommend you check the following discussion.
Thanks. One moment, I want to disable warnings on Analyze -> Inspect Code...
So, I want to disable Typo (Proofreading) and ShellCheck (Shell script) warnings, but only for 2 gradle files here.
Thanks for the clarification!
You can try to create a custom scope with excluded files.
(Settings / Preferences -> Appearance & Behavior -> Scopes)The created scope should be specified in
(Analyze -> Inspect Code...)settings: https://prnt.sc/sf4wrb