Query module MissedReadonlyOpportunity

name
Missed ‘readonly’ opportunity
description
A private field where all assignments occur as part of the declaration or in a constructor in the same class can be ‘readonly’.
kind
problem
problem.severity
recommendation
precision
high
id
cs/missed-readonly-modifier
tags
maintainability language-features

Imports

csharp

The default C# QL library.

Predicates