Modification of read-only Variables
This inspection highlights modifications of variables, which were declared as read–only.
It highlights a modification under these conditions:
- It was previously declared as read–only. For example,
readonly
anddeclare -r
declare a variable as read–only. - It’s an assignment or modification.
myVar=value
is a modification,export myVar
is not a modification.
