question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Silence warnings based on line content

See original GitHub issue

This would be particularly useful in order to silence “unused import” warnings (#30) based on what’s being imported, e.g. with regex-based compiler option like:

-P:silencer:lineContentFilters=import scala\.collection\.compat\._

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
tjarvstrandcommented, Feb 20, 2020

We mostly get them in code related to pureconfig’s automatic derivation which I think uses macros so maybe the problem is in there somewhere

0reactions
som-snyttcommented, Feb 20, 2020

@tjarvstrand thanks for the feedback.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Suppress code analysis warnings - .NET
This article covers the various ways you can suppress warnings from code analysis when you build your .NET app. You can suppress code ......
Read more >
How to get rid of specific warning messages in python ...
If Scipy is using the warnings module, then you can suppress specific warnings. Try this at the beginning of your program:
Read more >
Warning control — Python 3.11.1 documentation
The warnings filter controls whether warnings are ignored, displayed, or turned into errors (raising an exception). Conceptually, the warnings filter maintains ...
Read more >
Suppress Warnings - MATLAB & Simulink
MATLAB only displays warning messages that have state: 'on' and a warning identifier. Using the lastwarn function, you can retrieve the last warning...
Read more >
Suppressing Lint Warnings - Android Studio Project Site
In recent versions of lint, you can also use a special line comment on the line above the error to suppress a warning....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found