Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

171
Vistas
Is it possible to globally disable inspection on a specific, often-used function property name in WebStorm?

I'm hoping to find a way globally disable inspection for specific names that get referenced frequently by external functions. It's hard to explain the issue exactly, so hopefully the picture helps demonstrate it, followed by more details below.

Example

The code on the left is a function that has a property GetDataForKey, and the function on the right will be instantiated by the function on the left and will look for that property name. Specifically, when the function on the left instantiates the function on the right, it passes itself (this) in as the first param (binder). The function on the right then checks for the existence of the GetDataForKey property of binder by checking this.binder.GetDataForKey. Since the function on the left never uses GetDataForKey, WebStorm flags it with Unused definition GetDataForKey. There are plenty of other functions like the one on the left that have this same issue.

Is there a way to set a specific string to never be inspected? In this case, GetDataForKey, though there are other names as well. Or is there some other way to remedy this case? Since this is a common case, and since I'm the only one on the project using JetBrains products, I can't add individual noInspection comments to disable each individual case. I also can't simply disable unused definition inspections, because that would obviously hide other valid inspections that I want to be made aware of.

I've dug through all of WebStorm's settings (v2020.2), Google, JetBrains docs/forums, and SO, and can't find anything for this specific case. It's definitely not crucial, but I'm obsessed with resolving all inspections in my code, so this is tough to leave alone. Thanks in advance!

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda