Skip to content
| Marketplace
Sign in
Visual Studio Code
>
Other
>
po-js-complexity
New to Visual Studio Code?
Get it now.
po-js-complexity
liuchuanyu666
|
24 installs
|
(
0
)
|
Free
A VSCode extension to check cyclomatic complexity in JavaScript files
Installation
Launch VS Code Quick Open (
Ctrl+P
), paste the following command, and press enter.
Copy
Copied to clipboard
More Info
Overview
Version History
Q & A
Rating & Review
描述当前页面的方法是否过于复杂 目前是6
优化方式
减少if else 重复
一个大方法应该根据业务逻辑拆分成多个小方法
避免使用双重for循环
避免一个方法的长度过长
不影响提交