Class StringTimestampFieldRule
- Namespace
- Kuestenlogik.Bowire.Linting.Rules
- Assembly
- Kuestenlogik.Bowire.dll
Flags a field that names a point in time (created_at, updatedAt,
timestamp, *_time) but is typed as a bare string. A string time
value loses its shape: it can't be validated, compared or formatted without
out-of-band knowledge. Prefer a typed timestamp / date. Low severity — a
modelling nit, not a defect.
public sealed class StringTimestampFieldRule : IBowireLintRule
- Inheritance
-
StringTimestampFieldRule
- Implements
- Inherited Members
Constructors
StringTimestampFieldRule()
public StringTimestampFieldRule()
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