sonar-delphi
sonar-delphi copied to clipboard
Add check for array iterations where the high bound is out of range
Fixes #95. I haven't added this to the Sonar way quality profile, but it probably could be added depending on how noisy it is. I'll run some tests and see.
I'd definitely lean towards the default quality profile since this is a common bug pattern.
- Added to the default quality profile, and
- Added a test that
Pred(X.Count)does not add an issue
Updated to only flag cases where low = 0.