Giter Site home page Giter Site logo

Comments (8)

marco-carvalho avatar marco-carvalho commented on June 14, 2024 1

Hi @ericmorand-sonarsource. Iā€™m using SonarQube 10.4.

from sonarjs.

marco-carvalho avatar marco-carvalho commented on June 14, 2024 1

@ericmorand-sonarsource I'm gonna give a real example in our codebase.

I have this class with this state object:
image

And inside state I have this reprocessar:
image

And It throw some errors like this:
image

from sonarjs.

Wohops avatar Wohops commented on June 14, 2024 1

Hey @marco-carvalho, nop, sorry, not yet.
We are migrating our issue tracking to Jira instead of Github issue. I just did the initial import and didn't add links from GH to Jira yet.

Here is the link to the corresponding Jira issue: JS-17

from sonarjs.

ericmorand-sonarsource avatar ericmorand-sonarsource commented on June 14, 2024 1

@marco-carvalho for your information, we confirmed the issue: S6757 triggers a false positive when this is used inside a functional React component that is declared inside a class React component. The Jira issue that has been mentioned by @Wohops will be used to track the changes required to fix the issue, but I will also keep this GitHub issue updated for your convenience.

from sonarjs.

ericmorand-sonarsource avatar ericmorand-sonarsource commented on June 14, 2024

Hi, @marco-carvalho, thank you for the report.

You are right; the rule should not trigger this case.

Did you encounter this problem using SonarQube or SonarLint? And, regardless of the tool, would you happen to know the version that triggers the error?

from sonarjs.

ericmorand-sonarsource avatar ericmorand-sonarsource commented on June 14, 2024

@marco-carvalho , I was not able to reproduce the issue with SonarQube 10.4, with the provided code sample. Is this the full code sample or an excerpt of it? Also, do you also have S6774 triggered at lines 9 and 12?

from sonarjs.

marco-carvalho avatar marco-carvalho commented on June 14, 2024

@Wohops, hi! This was fixed?

from sonarjs.

marco-carvalho avatar marco-carvalho commented on June 14, 2024

@ericmorand-sonarsource thank you!

from sonarjs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. šŸ“ŠšŸ“ˆšŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.