nsiqcppstyle.sh 1.3 KB

123456789101112131415161718192021222324252627282930313233
  1. #!/usr/bin/env bash
  2. export LOGFILE=nsiqcppstyle.log
  3. source ./tools/ci/scripts/init.sh
  4. rm -rf nsiqcppstyle.git
  5. ./tools/ci/scripts/retry.sh git clone https://gitlab.com/4144/nsiqcppstyle nsiqcppstyle.git
  6. ./nsiqcppstyle.git/nsiqcppstyle --ci --show-url src \
  7. | grep -v "catch.hpp" \
  8. | grep -v "doctest.h" \
  9. | grep -v "sdl2gfx" \
  10. | grep -v "/debug/" \
  11. >logs/nsiqcppstyle1.log
  12. cat logs/nsiqcppstyle1.log \
  13. | grep -v -E "gamemodifiers[.]cpp(.+): Incorrect align on long parameter list in front of '(N_|{|})'" \
  14. | grep -v -E "graphics_calcImageRect[.]hpp(.+): function [(]calcTileVertexesInline[)] has non named parameter" \
  15. | grep -v -E "dye[.]cpp(.+): Do not use goto keyword" \
  16. | grep -v -E "item/item[.]cpp(.+): function [(]dragDrop[)] has non named parameter" \
  17. | grep -v -E "windowmenu[.]cpp(.+): function [(]addButton[)] has non named parameter" \
  18. | grep -v -E "windowmenu[.]cpp(.+): Incorrect align on long parameter list in front of '(.|Visible_true)', it should be aligen in column 15" \
  19. | grep -v -E "channeltab[.]h(.+): Incorrect align on long parameter list in front of 'const'" \
  20. | grep -v -E "/enums/simpletypes/(.+): function [(]defIntEnum[)] has non named parameter" \
  21. >${ERRFILE}
  22. export data=$(cat ${ERRFILE})
  23. if [ "$DATA" != "" ]; then
  24. echo "Warnings detected"
  25. cat ${ERRFILE}
  26. fi