Skip to content

HasSingleNamespace

Summary

Severity - Fail

Check method - Here

Details

The HasSingleNamespace check makes sure only one namespace is declared in a given file.

For example, the file below would fail because it is declaring two namespaces within the file.

namespace BH.Engine.Test
{
}

namespace BH.Engine.Environment
{
}