All rules

P002 TodoStubs

Applies to
Pull requests, through the GitHub App
Severity
Warning (fails the check under fail-on-warnings)
Summary
A change adds a stub or a TODO where the implementation belongs.
Flags
Added "throw new NotImplementedException(", "raise NotImplementedError", "todo!()", "unimplemented!()", and TODO or FIXME comments in code files. Generated files (<auto-generated in the first 10 lines) are skipped.

Before

public decimal Total() => throw new NotImplementedException();

After

public decimal Total() => Lines.Sum(line => line.Amount);

Fix