HOWEVER, using the documentation in the first link provided in this answer, we can use --mode=check-all for a specific set of files in the package Prove using Proof_Switches as that is documented to be equivalent to Skip_Flow_And_Proof.
package Prove is
for Proof_Switches ("gpr-err-scanner.adb") use ("--mode=check-all");
end Prove;
But unfortunately gnatprove errors with unrecognized option '--mode=check-all'. I tried creating a separate project file without the imports to get gnatprove to run, but it can’t get far without the imports.
What version of GNATProve are you using? The documentation is about the latest available version, so an older version may not have this feature. I generally recommend people to always use the latest version of GNATProve as it comes with several enhancements.
Otherwise, you can always use with SPARK_Mode => Off wherever you are calling a function that uses that external file.
I appreciate the help on this - I tried upgrading to the latest available with Alire. Now it’s complaining that the file in question is not part of the project… In this case it’s not even a function I’m calling directly, this is a dependency further upstream so it’s difficult to isolate.
So it seems to be an easy to reproduce bug… What version of GNATColl are you using? If it is not the latest, could you try updating it to see if it has been fixed?