Class MixedMethodNamingRule

Namespace
Kuestenlogik.Bowire.Linting.Rules
Assembly
Kuestenlogik.Bowire.dll

Flags a method whose name follows a different convention than the rest of its service — GetOrder, ListOrders, cancelOrder. Consistency, not a style: which convention is right is the service's own majority, so gRPC's PascalCase and REST's camelCase are both fine as long as a service sticks to one (#583). Info — a nit, until somebody generates a client from it.

public sealed class MixedMethodNamingRule : IBowireLintRule
Inheritance
MixedMethodNamingRule
Implements
Inherited Members

Constructors

MixedMethodNamingRule()

public MixedMethodNamingRule()

Properties

Id

Stable machine id, e.g. BWR-LINT-MISSING-PAGINATION.

public string Id { get; }

Property Value

string

Severity

The severity every finding from this rule carries.

public BowireLintSeverity Severity { get; }

Property Value

BowireLintSeverity

Title

One-line human title for reports.

public string Title { get; }

Property Value

string

Methods

Inspect(BowireServiceInfo)

Inspect one service and yield any findings.

public IEnumerable<BowireLintFinding> Inspect(BowireServiceInfo service)

Parameters

service BowireServiceInfo

Returns

IEnumerable<BowireLintFinding>