Discussion regarding code smell in react-redux application

Hi, I am using Sonarqube Enterprise Edition.
My project is developed using React and Redux.

There is a code smell shown below

import { actionName } from '../../store/actions/reduxactions'

 newfunction= el=> {
        const {  actionName } = this.props  // line 20
...
...
}

code smell at line 20: 'actionName ’ is already declared in the upper scope on line 9.

Question: I am using standard Es6 destructuring why Sonarqube showing it as code smell.

Hi,

Can you share your SonarQube version?

 
Thx,
Ann