remove() may lead to race conditions
I'd use the function remove() in order to delete a file in my project.
I tried also with unlink() but I have the same violation:
Usage of functions prone to race is not allowed (SECURITY-19-2)
This file removal is in the main thread, so I can suppress that rule, but it will be nicer if I will found an alternative.
Does anyone knows if there exist a function for deleting a file that will not lead to race conditions?