Skip to content

Mark PluginTypeParser class as static #775

@ziagham

Description

@ziagham

What version of FlowSynx?

1.2.5

Describe the bug

File: src/FlowSynx.Application/PluginHost/Parser/PluginTypeParser.cs

The class only contains static members (or is intended to operate as a utility/parser class). However, it does not define a private constructor and is not declared as static.
This allows unintended instantiation of the class and violates best practices for utility classes.

The class PluginTypeParser is currently declared as:

public sealed class PluginTypeParser
{
    // ...
}

Proposed Fix

Mark the class as static:

public static class PluginTypeParser
{
    // static methods...
}

Benefits

  • Prevents misuse by blocking class instantiation
  • Communicates intent clearly (utility/static class)
  • Aligns with clean-code and API design conventions

Metadata

Metadata

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions