Skip to content

Declare class as static in Program.cs provided with NUnitLite NuGet #3107

@ahoisl

Description

@ahoisl

The default Program class provided with the NUnitLite Nuget package 3.11.0 is not static.
This causes warnings/errors on some static code analysis like SonarQube (classes only containing static members should be declared static).

As the file is always replaced/recreated when installing the Nuget package, you cannot simple fix the problem.

BTW, the documentation in the Wiki is correctly creating a static class:
https://github.com/nunit/docs/wiki/NUnitLite-Runner

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions