Skip to main content

Command Palette

Search for a command to run...

SonarLint : Array designators "[]" should be on the type, not the variable (squid:S1197)

Published
1 min read
S

I love learning about technology and sharing that with others

The array designator is on type it will improve the readability and maintainability other whoever is reading your code needs to look at both the type as well as the name of the variable .

Non Compliant Code

screenshot_08.png

Compliant Code

screenshot_09.png

43 views

More from this blog

H

hashcodehub

271 posts

Consistent, Passionate and Organized :)