Kruhlmann / gatekeeper

Fight club CAPTCHA bot
GNU General Public License v3.0
1 stars 4 forks source link

Fix "method_complexity" issue in captchas.ts #16

Closed Kruhlmann closed 4 years ago

Kruhlmann commented 4 years ago

Function hit_cap_generator has a Cognitive Complexity of 22 (exceeds 5 allowed). Consider refactoring.

https://codeclimate.com/github/Kruhlmann/gatekeeper/captchas.ts#issue_5ddc46913e16b60001000018

Kruhlmann commented 4 years ago

https://codeclimate.com/github/Kruhlmann/gatekeeper/issues?category=duplication&engine_name%5B%5D=structure&engine_name%5B%5D=duplication