Skip to content

explicit validity check rule #343

@rcseacord

Description

@rcseacord

@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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions