#!/usr/bin/env bash export LOGFILE=nsiqcppstyle.log source ./tools/ci/scripts/init.sh rm -rf nsiqcppstyle.git ./tools/ci/scripts/retry.sh git clone https://gitlab.com/4144/nsiqcppstyle nsiqcppstyle.git ./nsiqcppstyle.git/nsiqcppstyle --ci --show-url src \ | grep -v -e "catch.hpp" \ -e "doctest.h" \ -e "sdl2gfx" \ -e "/debug/" \ > logs/nsiqcppstyle1.log grep -v -E \ -e "gamemodifiers[.]cpp(.+): Incorrect align on long parameter list in front of '(N_|{|})'" \ -e "graphics_calcImageRect[.]hpp(.+): function [(]calcTileVertexesInline[)] has non named parameter" \ -e "dye[.]cpp(.+): Do not use goto keyword" \ -e "item/item[.]cpp(.+): function [(]dragDrop[)] has non named parameter" \ -e "windowmenu[.]cpp(.+): function [(]addButton[)] has non named parameter" \ -e "windowmenu[.]cpp(.+): Incorrect align on long parameter list in front of '(.|Visible_true)', it should be aligen in column 15" \ -e "channeltab[.]h(.+): Incorrect align on long parameter list in front of 'const'" \ -e "/enums/simpletypes/(.+): function [(]defIntEnum[)] has non named parameter" \ logs/nsiqcppstyle1.log > "${ERRFILE}" if [[ -s "${ERRFILE}" ]]; then echo "Warnings detected" cat ${ERRFILE} fi