SONARPLUGINS-2490 : Rule: Avoid too complex anonymous functions
fix violations
Merge branch 'master' of github.com-SonarCommunity:SonarCommunity/sonar-erlang
update test