Skip to content
Fraser Greenroyd edited this page Apr 21, 2020 · 3 revisions

Summary

Severity - Fail

Check method - Here

Details

The IsPublicClass check ensures that classes declared within files have the public modifier, rather than private or internal, etc.

The following class declaration would fail because it does not give the public modifier.

namespace BH.Engine.Test
{
    static partial class Query
    {
    }
}

Files contained within an Engines Objects folder are exempt from this check (e.g. files with the file path Your_Toolkit/Toolkit_Engine/Objects/Foo.cs will be exempt).

Clone this wiki locally