-
-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
resolve code duplicate issue #807
Conversation
|
✅ Deploy Preview for asyncapi-studio-design-system ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for modest-rosalind-098b67 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
@fmvilas 👁️ 🙏 |
); | ||
}; | ||
|
||
const V3OperationsNavigation: React.FunctionComponent<NavigationSectionProps> = ({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@KhudaDad414 we will have more and more duplicated code as we are in the transition period to V3.
We should just add an exception in SonarCloud, and clean after ending support for V2.
Not sure if there is an other clean way to do it.
); | ||
}; | ||
|
||
const V3OperationsNavigation: React.FunctionComponent<NavigationSectionProps> = ({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Naming suggestion, I find OperationNavigationV3
more readable than V3OperationsNavigation
#821 resolves the issue. |
Description
SonarClould check fails for the duplicate code in the open PRs: