SONARJS-256 Rule: "Avoid definition of functions inside loops"