Skip to content

Latest commit

 

History

History
40 lines (33 loc) · 1.11 KB

README.md

File metadata and controls

40 lines (33 loc) · 1.11 KB

JustEnoughInspections: flexible inspection suppression

An IntelliJ IDE plugin that provides more flexible inspection suppression features.

Suppression sections

  • Suppresses all inspections of types in a section of code
  • Supports nesting sections
# begin: noinspection PyUnresolvedReferences

print(b) # suppressed

def test():
    print(a) # suppressed
    print(nope="hello") # not suppressed

# begin: noinspection ALL
print(nope="hello") # suppressed
# end: noinspection

# end: noinspection
  • Details:
    • end: noinspections can be omitted, if so, the section ends at the end of file. This makes it easy to suppress inspections for the whole file.
    • The prefixes are case-insensitive on the word level, there can also be extra whitespaces around the colon. Here's a few examples of possible end comments:
      • End: noinspection
      • END :noinspection
      • End : noinspection

Language Support

  • Python
  • Cython
  • Kotlin
  • Java

Known Issues

Sometimes inspections won't automatically update when inspection comments are changed.
Try reopening files or editing the code to force an refresh.