I have create a lot different source file exclusions, but all does not seem to work for a Pull Request to start with. So the screendumps below. The first one with the exclude path settings:
The file “20240606113815_AddTableFunctionResult.cs” is a automatic generated file and should not be scanned by SonarCloud. In fact all the files in the folder Migrations should not be scanned by SonarCloud.
Probably this can be simplified to **/Migrations/** then.
In any case, it’s probably time to check your scanner logs to make sure the expected values are being considered for analysis, and not being overridden (if you have sonar.exclusions set at the command line or in another local settings file, they’ll override whatever is in the UI).