Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

169
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda