Lines Matching refs:checkbadSource

391 checkbadSource:  target
393 -@${RM} -f checkbadSource.out
394 -@touch checkbadSource.out
395 …nt/check_header_guard.py --action=check --kind=pragma_once -- ./src ./include >> checkbadSource.out
396 -@echo "----- Double blank lines in file -----------------------------------" >> checkbadSource.out
398 …THON} ${PETSC_DIR}/lib/petsc/bin/maint/doublelinecheck.py doublelinecheck.out >> checkbadSource.out
400 -@echo "----- Tabs in file -------------------------------------------------" >> checkbadSource.out
401 -@git --no-pager grep -n -P '\t' -- ${GITSRC} >> checkbadSource.out;true
402 -@echo "----- Tabs in makefiles --------------------------------------------" >> checkbadSource.out
403 …-@git --no-pager grep -n -P '[ ]*[#A-Za-z0-9][ :=_A-Za-z0-9]*\t' -- makefile >> checkbadSource.ou…
404 -@echo "----- White space at end of line -----------------------------------" >> checkbadSource.out
405 -@git --no-pager grep -n -P ' $$' -- ${GITSRC} >> checkbadSource.out;true
406 -@echo "----- Two ;; -------------------------------------------------------" >> checkbadSource.out
407 -@git --no-pager grep -n -P -e ';;' -- ${GITSRC} | grep -v ' for (' >> checkbadSource.out;true
408 -@echo "----- PetscCall for an MPI error code ------------------------------" >> checkbadSource.out
409 …-e 'PetscCall\(MPI[U]*_\w*\(.*\)\);' -- ${GITSRC} | grep -Ev 'MPIU_File' >> checkbadSource.out;true
410 -@echo "----- DOS file (with DOS newlines) ---------------------------------" >> checkbadSource.out
411 -@git --no-pager grep -n -P '\r' -- ${GITSRC} >> checkbadSource.out;true
412 -@echo "----- { before SETERRQ ---------------------------------------------" >> checkbadSource.out
413 -@git --no-pager grep -n -P '{SETERRQ' -- ${GITSRC} >> checkbadSource.out;true
414 -@echo "----- PetscCall following SETERRQ ----------------------------------" >> checkbadSource.out
415 -@git --no-pager grep -n -P 'SETERRQ' -- ${GITSRC} | grep ";PetscCall" >> checkbadSource.out;true
416 -@echo "----- SETERRQ() without defined error code -------------------------" >> checkbadSource.out
417 …| grep " if " | grep -v "__VA_ARGS__" | grep -v "then;" | grep -v flow.c >> checkbadSource.out;true
418 -@echo "----- SETERRQ() with trailing newline ------------------------------" >> checkbadSource.out
419 -@git --no-pager grep -n -P "SETERRQ[1-9]?.*\\\n\"" -- ${GITSRC} >> checkbadSource.out;true
420 -@echo "----- Using if (condition) SETERRQ(...) instead of PetscCheck() ----" >> checkbadSource.out
421 …bug' | grep -v 'petscerror.h' | grep -v "then;" | grep -v "__VA_ARGS__" >> checkbadSource.out;true
422 …ing if (PetscUnlikelyDebug(condition)) SETERRQ(...) instead of PetscAssert()" >> checkbadSource.out
423 … +\(PetscUnlikelyDebug.*\) *SETERRQ' -- ${GITSRC} | grep -v petscerror.h >> checkbadSource.out;true
424 -@echo "----- Using PetscFunctionReturn(ierr) ------------------------------" >> checkbadSource.out
425 -@git --no-pager grep -n -P 'PetscFunctionReturn(ierr)' -- ${GITSRC} >> checkbadSource.out;true
426 -@echo "----- Defining a returning macro without PetscMacroReturns() -------" >> checkbadSource.out
427 …ateBegin|PetscOptionsBegin|PetscObjectOptionsBegin|PetscOptionsHeadEnd)' >> checkbadSource.out;true
428 -@echo "----- Defining an error checking macro using CHKERR style ----------" >> checkbadSource.out
429 …-@git --no-pager grep -n -P 'define\s+CHKERR\w*\(.*\)\s*do\s+{' -- ${GITSRC} >> checkbadSource.out…
430 -@echo "----- Using Petsc[Array|Mem]cpy() for ops instead of assignment ----" >> checkbadSource.out
431 -@git --no-pager grep -n -P 'cpy\(.*(.|->)ops, .*\)' -- ${GITSRC} >> checkbadSource.out;true
432 -@echo "----- Using PetscInfo() without carriage return --------------------" >> checkbadSource.out
433 …o-pager grep -n -P 'PetscCall\(PetscInfo\(' -- ${GITSRC} | grep -v '\\n' >> checkbadSource.out;true
434 -@echo "----- Using Petsc(Assert|Check)() with carriage return -------------" >> checkbadSource.out
435 …-@git --no-pager grep -n -P -E 'Petsc(Assert|Check)\(.*[^\]\\\n' -- ${GITSRC} >> checkbadSource.ou…
436 …-@echo "----- Extra \"\" after format specifier ending a string --------------" >> checkbadSource.…
437 -@git --no-pager grep -n -P -E '_FMT \"\",' -- ${GITSRC} >> checkbadSource.out;true
438 -@echo "----- First blank line ---------------------------------------------" >> checkbadSource.out
439 -@git --no-pager grep -n -P \^\$$ -- ${GITSRC} | grep ':1:' >> checkbadSource.out;true
440 -@echo "----- Blank line after PetscFunctionBegin and derivatives ----------" >> checkbadSource.out
441 …(User|Hot){0,1};' -- ${GITSRC} | grep -E '\-[0-9]+-$$' | grep -v '^--$$' >> checkbadSource.out;true
442 -@echo "----- Blank line before PetscFunctionReturn ------------------------" >> checkbadSource.out
443 …scFunctionReturn' -- ${GITSRC} | grep -E '\-[0-9]+-$$' | grep -v '^--$$' >> checkbadSource.out;true
444 -@echo "----- No blank line before PetscFunctionBegin and derivatives ------" >> checkbadSource.out