papermario/tools/warnings_count/update_current_warnings.sh
alex d726b26287
Enforce warnings count in pull requests (#380)
* add warnings_count

Stolen from https://github.com/zeldaret/mm.

Co-authored-by: Anghelo Carvajal <angheloalf95@gmail.com>

* emit only new warnings

* add jp warnings

* fix ccache (lmao)

* slug comments about warnings

* oops

* oops again

* oops again again

* adjust message

* truncate warnings list if there are more than 100

Co-authored-by: Anghelo Carvajal <angheloalf95@gmail.com>
2021-08-24 22:30:35 +09:00

8 lines
205 B
Bash
Executable File

#!/bin/bash
set -e
# This script should only be used when we need to modify the accepted amount of warnings.
rm -rf ver/*/build/src
ninja | grep warning | sort | uniq > tools/warnings_count/warnings.txt