RSPEC-3453 has the same code for compliant and noncompliant examples

Just a little error in the documentation:

Both examples show

Public Class [MyClass]
    Private Sub New()
        ' ...
    End Sub
End Class

but the first one is marked as as // Noncompliant.

My guess is that the second example should either have additional constructors or one that is not private.


Hello @CrushaKRool

Thanks for reporting this issue with our documentation. I can confirm that the constructor in the compliant code example should be Public. I have opened a PR to fix this mistake in our documentation.

All the best,

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.