[meta] Remove the `eslint-disable complexity` flags from DevTools
Categories
(DevTools :: General, task, P3)
Tracking
(Not tracked)
People
(Reporter: pbro, Unassigned)
References
(Depends on 34 open bugs)
Details
(Keywords: meta)
Some of the functions in the DevTools codebase are rather long and complex.
ESLint has a special rule for warning about complex functions: https://eslint.org/docs/rules/complexity
Because some of the functions are more complex than the current complexity limit, a few eslint-disable complexity
flags have been added here and there in the code.
The current list of these places is: https://searchfox.org/mozilla-central/search?q=eslint-disable%20complexity&path=devtools
The goal of this bug is to track all of the bugs we'll need to fix to get rid of these flags.
Getting rid of them means re-writing the corresponding functions to be less complex. Often that means extracting some parts of these functions to other, smaller, functions.
Reporter | ||
Comment 1•5 years ago
|
||
I gathered all of the functions in DevTools that have a complexity higher than 20: https://docs.google.com/spreadsheets/d/1w3jl9lbDsG7EHazAYkZ0s7id5uo20sGKjZ5MeiK0hx0/edit#gid=1748770914
Updated•2 years ago
|
Description
•