Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

170
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!