Statically prohibit missing format parameters in Druid's exception classes
See original GitHub issuehttps://youtrack.jetbrains.com/issue/IDEA-175327 doesn’t allow to prevent bugs like fixed in #8331 using IntelliJ’s “Malformed format string” inspection. However, there is a simple workaround: make constructors in all Druid’s exception classes like RE
, ISE
, IAE
, etc. private, expose static factory methods (e. g. RE.of()
), and put them into the MalformedFormatString inspection config.
This would be a follow-up of #4474.
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Statically prohibit missing format parameters in ... - GitHub
However, there is a simple workaround: make constructors in all Druid's exception classes like RE , ISE , IAE , etc. private, expose...
Read more >Make t() return a TranslationWrapper object to remove ...
Problem/Motivation. t() is one of the last places (other than SafeMarkup::format() ) where we still use the safe list.
Read more >MOTIF Frequently Asked Questions
SUN READERS *** The Motif FAQ is now included in a different HTML format with Java ... 105) How can I stop the...
Read more >review_comments.txt - GitHub
Use static final instead of hard-coded values There are no direct tests, ... Might now want to change the formatting :-) same as...
Read more >homebrew-core - Homebrew Formulae
a2ps 4.14 Any‑to‑PostScript filter
aacgain 1.8 AAC‑supporting version of mp3gain
aalib 1.4rc5 Portable ASCII art graphics library
aamath 0.3 Renders mathematical expressions as ASCII art
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@ccaominh thanks for note, I’ve opened https://issues.apache.org/jira/browse/INFRA-18899
At least one apache project seems to have enabled lgtm github integration: https://issues.apache.org/jira/browse/INFRA-17226
lgtm github integration in action on apache geode: