-
Notifications
You must be signed in to change notification settings - Fork 32
Open
Description
@PLeVasseur I think we should make another required rule which enforces that explicit validity checks are performed before any reads if we don't force that here.
It's important to enforce that anyone writing code be encouraged to write a deviation report.
@rcseacord What do you mean by "before"? And what is a validity check? These are real questions. If the logic dictates that the value is valid, do you have to perform another redundant test each time the value is "used"?
You probably mean deviation records, and they are what makes MISRA unusable. Deviation records should be required sparingly. If you have to write a deviation record for every three lines of code, people will not use your standard and for good reason.
PLeVasseur
Metadata
Metadata
Assignees
Labels
No labels