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.

0
3 comments

Please attach a warning sample that you would like to turn off.

For disabling Gradle warnings you may create gradle.properties file in the project root directory and add org.gradle.warning.mode=none to it. See the official Gradle documentation for more details.

I also recommend you check the following discussion.

0
Avatar
Permanently deleted user

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.

0

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

0

Please sign in to leave a comment.