elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.74k stars 8.14k forks source link

[Automatic Import] Improve complexity in generation_modal.tsx #193947

Open bhapas opened 2 hours ago

bhapas commented 2 hours ago

Currently the useEffect arrow function has a higher complexity and there is a warning.

Async arrow function has a complexity of 23. Maximum allowed is 20

Refactor the file to seperate the useGeneration functionality.

elasticmachine commented 2 hours ago

Pinging @elastic/security-scalability (Team:Security-Scalability)