cleanup [python]: Add warning to empty catch clause.

This is almost always a bug

GitOrigin-RevId: 41efba805a7ac3fe91341090d0a2f72f807b23bf
This commit is contained in:
Ilya.Kazakevich
2026-02-13 01:01:32 +00:00
committed by intellij-monorepo-bot
parent 41e3009702
commit dd70705bfb
+6
View File
@@ -2085,6 +2085,12 @@
<searchConfiguration name="Catch is too broad" uuid="a8f5f167-f44f-3964-a6c9-98dee827110c" text="runCatching" recursive="true" caseInsensitive="true" type="Kotlin" pattern_context="default">
<constraint name="__context__" within="" contains="" />
</searchConfiguration>
<searchConfiguration name="Catch is too broad" uuid="a8f5f167-f44f-3964-a6c9-98dee827110c" text="try {&#10; $TryStatement$&#10;} catch($Exception$ : $Class$) {&#10;}" recursive="true" caseInsensitive="true" type="Kotlin" pattern_context="default">
<constraint name="__context__" within="" contains="" />
<constraint name="TryStatement" maxCount="2147483647" within="" contains="" />
<constraint name="Exception" within="" contains="" />
<constraint name="Class" regexp="(Exception|Throwable|RuntimeException)" within="" contains="" />
</searchConfiguration>
<searchConfiguration name="CefMessageRouter.create" description="Instances of CefMessagerRouter created directly are not supported on the backend in remote development. Use JBCefApp.createMessageRouter or migrate to JBCefJSQuery. " problemDescriptor="Use JBCefApp.createMessageRouter or migrate to JBCefJSQuery." text="$Instance$.$MethodCall$($Parameter$)" recursive="true" caseInsensitive="true" type="JAVA" pattern_context="default">
<constraint name="__context__" within="" contains="" />
<constraint name="Instance" regexp="CefMessageRouter" within="" contains="" />