You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
NET-3367 Fix S4830 AD0001: CertificateValidationCheck Syntax node is not within syntax tree #9795
When getting the certificate validation callback from a static method of a static class in a separate file which in turn calls another static method, the CertificateValidationCheck analyzer crashes with a System.ArgumentException: Syntax node is not within syntax tree (presumably because it can't find the method).
Workaround: Putting the validation class in the same file as it is used in, no error occurs.
changed the title [-]Fix AD0001: CertificateValidationCheck Syntax node is not within syntax tree[/-][+]NET-3367 Fix AD0001: CertificateValidationCheck Syntax node is not within syntax tree[/+]on Mar 11, 2026
changed the title [-]NET-3367 Fix AD0001: CertificateValidationCheck Syntax node is not within syntax tree[/-][+]NET-3367 Fix S4830 AD0001: CertificateValidationCheck Syntax node is not within syntax tree[/+]on Mar 11, 2026
alex-meseldzija-sonarsource commented on Mar 11, 2026
We have fixed this in the latest release of our analyzers. It is available now on SonarQube Cloud and will be available in the next SonarQube Server release.
Activity
[-]Fix AD0001: CertificateValidationCheck Syntax node is not within syntax tree[/-][+]NET-3367 Fix AD0001: CertificateValidationCheck Syntax node is not within syntax tree[/+]github-actions commentedon Mar 11, 2026
Internal ticket NET-3367
[-]NET-3367 Fix AD0001: CertificateValidationCheck Syntax node is not within syntax tree[/-][+]NET-3367 Fix S4830 AD0001: CertificateValidationCheck Syntax node is not within syntax tree[/+]alex-meseldzija-sonarsource commentedon Mar 11, 2026
Hi @patrick-achtbytes , thanks for the report!
I can confirm that this is an AD0001, we will try to fix this soon.
alex-meseldzija-sonarsource commentedon Mar 17, 2026
Hi @patrick-achtbytes,
We have fixed this in the latest release of our analyzers. It is available now on SonarQube Cloud and will be available in the next SonarQube Server release.