- Enable the DScanner check
In the .dscanner.ini
, set the immutable check to enable
:
could_be_immutable_check="enabled"
- Generate a file with all Dscanner warnings
make -f posix style | tail -n+16
Instead of tail
you can also manually cut of the lines in the beginning)
- Fix the warnings
rdmd --compiler=../dmd/src/dmd <path-to-replacement-script>
- Reset the replacements
With git
, it's as simple as:
git checkout std