-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
false positive in style checker, checking casts #781
Comments
|
I just built D-Scanner from source and ran it on that code snippet with all checks enabled. The only message that I got was |
|
No. The snippet is taken from Phobos, currently line 4542. When I run make -f posix.mak style I get the following message: Enforce space after cast(...) I asked, where to report this bug and was first pointed to bugzilla, and there someone said, I should post it here... But maybe it's still the wrong place... |
|
That line of the makefile isn't even calling |
|
Hi @berni44 I hope I haven't confused you. The only line of code that needs fixing is the grep regex here: |
|
@PetarKirov So it should actually be a phobos bugreport? (I don't know, how to fix that line.) @Hackerpilot Seb pointed me here: https://issues.dlang.org/show_bug.cgi?id=20343 |
|
Yes. I guess Seb didn't see the error message and assumed that the error was coming from DScanner, while it's just the grep line from the |
The following unittest (in std.format) was rejected by the style checker:
The problem is the
cast(A)10inside the string.The text was updated successfully, but these errors were encountered: