Add Exceptions for String Constant Overuse
See original GitHub issueRule request
I feel it would be good to be able to declare exceptions for WPS226
Thesis / Reasoning
In a file on a current project, I tend to use " ".join(iterable)
a lot.
It feels unnatural to declare a CONSTANT for that.
Also, I don’t think it is good in this case to disable WPS226 for the entire file as there could be other common string constants.
Alternative: Excluse " "
, ""
, "\n"
& friends from this by default.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Java constant string too long Exception - Runtime
add a catch clause with the specific exception that is thrown during the runtime, and inside the clause the handling code for it....
Read more >Top 15 C++ Exception handling mistakes and how to avoid ...
MEASURE for yourself and then make a call. Think about what you're losing out by not using exceptions. If you hit a performance...
Read more >What is wrong with magic strings?
What typically distinguishes acceptable "constants" from "magic values" is some violation of one or more of these rules. Used well, constants ...
Read more >How to create user-defined exceptions with localized ...
Create a serializable class that inherits from Exception. The class name should end in "Exception": C# Copy · Add the default constructors: C#...
Read more >How To Use Python Raw String | DigitalOcean
You can create a raw string in Python by prefixing a string literal with r or R . Python raw string treats the...
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 FreeTop 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
Top GitHub Comments
Can I take this over?
Hi, @sumeshpradhan! Thanks a lot!