The access level defaults to internal
if left unspecified. Since that doesn’t make sense for most top-level declarations, access
levels should always be specified explicitly, even when internal
is what’s intended.
This rule raises an issue when the access level is not specified on any top-level declaration.
Noncompliant code example
class Foo { // Noncompliant
// ...
}
Compliant solution
public class Foo {
// ...
}