cppcheck icon indicating copy to clipboard operation
cppcheck copied to clipboard

CI-unixish.yml: fail `build` step if unversioned files exist at the end

Open firewave opened this issue 1 year ago • 2 comments

firewave avatar Sep 09 '24 10:09 firewave

This is to expose tests (or other commands) which generate (and leave) files in the source tree. Files which are being ignored should not fail this.

This should primarily be fixed by using temporary folders. In case this can't be done we need to make sure they are cleaned up - and in some cases we might also need to clean previously existing files beforehand.

firewave avatar Sep 09 '24 10:09 firewave

Okay, it succeeding was unexpected. Maybe these stray files are (incorrectly) covered by .gitignore - will investigate.

firewave avatar Sep 09 '24 15:09 firewave

HEAD detached at pull/6787/merge
Untracked files:
  (use "git add <file>..." to include in what will be committed)
	.ccache/
	addons/test/cppcheck-addon-ctu-file-list
	cmake.output.signal/
	cppcheck-addon-ctu-file-list
	test-signalhandler
	test-stacktrace
	test/cli/cppcheck-addon-ctu-file-list
	test/cli/helloworld/cppcheck-addon-ctu-file-list
	test/cli/helloworld/test.cppcheck
	test/cli/proj2/test.cppcheck
	test/cli/test.cppcheck
nothing added to commit but untracked files present (use "git add" to track)

firewave avatar Oct 30 '24 13:10 firewave