tools icon indicating copy to clipboard operation
tools copied to clipboard

🐛 `noArrayIndexKey` ignores valid cases

Open nstepien opened this issue 3 years ago • 1 comments
trafficstars

Environment information

Rome playground

What happened?

  1. Open this playground
  2. check diagnostics, notice that the returned parts are ignored.

Expected result

return should not break the rule.

Code of Conduct

  • [X] I agree to follow Rome's Code of Conduct

nstepien avatar Nov 11 '22 13:11 nstepien

Uh, that's odd.

Issue: noArrayIndexKey ignores expressions in return statements (and potentially other statements?)

MichaReiser avatar Nov 11 '22 13:11 MichaReiser