build.d: Add checkwhitespace#10499
Conversation
|
Thanks for your pull request and interest in making D better, @MoonlightSentinel! We are looking forward to reviewing it, and you should be hearing from a maintainer soon.
Please see CONTRIBUTING.md for more information. If you have addressed all reviews or aren't sure how to proceed, don't hesitate to ping us with a simple comment. Bugzilla referencesYour PR doesn't reference any Bugzilla issue. If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog. Testing this PR locallyIf you don't have a local development environment setup, you can use Digger to test this PR: dub fetch digger
dub run digger -- build "master + dmd#10499" |
Why not fix these files with a separate commit and then directly enable it? |
@wilzbach I was not sure wether these files were excluded on purpose but based your reply this seems to be an inconsistency between I will add another commit but it should probably be merged in another pr(?) |
|
I don't think there are only files purposely excluded (though there could be a file in the testsuite which exists solely for checking compatibility with Windows line endings). It's really fine to do it in this PR. Besides, this way it's better to check that the new check is working. |
wilzbach
left a comment
There was a problem hiding this comment.
You don't always need to do a 1:1 translation of the historic Makefile. D gives us more power and flexibility.
ceda259 to
b4164a8
Compare
73a1291 to
7b99797
Compare
7b99797 to
b227ff1
Compare
|
What's up with druntime? |
|
I've already created a PR for this here: #10448 |
|
I've modified my PR to use glob matching to find all the source files to check whitespace on. #10448 |
Move
checkwhitespacefrom win32.mak / posix.mak into build.dTODO: With this patchcheckwhitespaceapparently considers some additional files which contain windows line ending and fail the check. The last commit temporarily disables this check until this issue is resolved.