AEM | Anyone have the updated version of RTE Color Picker JS ? | Community
Skip to main content
VeenaVikraman
Community Advisor
Community Advisor
July 4, 2024

AEM | Anyone have the updated version of RTE Color Picker JS ?

  • July 4, 2024
  • 2 replies
  • 1476 views

Hi team,

 

We've been using the color picker plugin from https://experience-aem.blogspot.com/2017/06/aem-63-touch-ui-rte-rich-text-editor-color-picker-plugin-inplace-dialog-edit.html  on our project. However, our pipeline is failing because the JavaScript for this plugin is being flagged for Code Smell in Sonar. It has a Cognitive Complexity of 149, and Sonar flags anything above 15. Does anyone have a modified version of this color picker plugin that we could use? Any help would be greatly appreciated.

 

Thanks

Veena

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

arunpatidar
Community Advisor
Community Advisor
July 4, 2024

Hi @veenavikraman 
You need to check which function/class showing the complexity in sonar? Can you try to modify code via yourself and try if that works or not.

 

You can get help from ChatGpt 😉

 

Arun Patidar
VeenaVikraman
Community Advisor
Community Advisor
July 4, 2024

It is showing it for the entire file. That is the issue. The complete file needs a refactoring @arunpatidar 

aanchal-sikka
Community Advisor
Community Advisor
July 5, 2024
kautuk_sahni
Community Manager
Community Manager
July 8, 2024

@veenavikraman Did you find the suggestion helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you've discovered a solution yourself, we would appreciate it if you could share it with the community. Thank you! 

Kautuk Sahni