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
Severity
The severity every finding from this rule carries.
public BowireLintSeverity Severity { get; }
Property Value
Title
One-line human title for reports.
public string Title { get; }
Property Value
Methods
Inspect(BowireServiceInfo)
Inspect one service and yield any findings.
public IEnumerable<BowireLintFinding> Inspect(BowireServiceInfo service)
Parameters
serviceBowireServiceInfo