Re: [pgAdmin][SonarQube] Cognitive complexity
От | Akshay Joshi |
---|---|
Тема | Re: [pgAdmin][SonarQube] Cognitive complexity |
Дата | |
Msg-id | CANxoLDcBtu73xUc7q7=JQizfps2RhYgTae8aXpYpnhEc6+P6+w@mail.gmail.com обсуждение исходный текст |
Ответ на | [pgAdmin][SonarQube] Cognitive complexity (Aditya Toshniwal <aditya.toshniwal@enterprisedb.com>) |
Ответы |
Re: [pgAdmin][SonarQube] Cognitive complexity
|
Список | pgadmin-hackers |
Hi Aditya
Please fix the following issues:
- Add docstrings to the newly created functions.
- Fix PEP8 issue.
On Mon, Aug 24, 2020 at 5:02 PM Aditya Toshniwal <aditya.toshniwal@enterprisedb.com> wrote:
Hi Hackers,
Attached patch reduces the cognitive complexity of functions for below:
web/.../schemas/packages/edbfuncs/__init__.py 21 to 15
web/.../databases/schemas/types/__init__.py 39 to 15; 80 to 15
web/.../server_groups/servers/pgagent/__init__.py 39 to 15
web/pgadmin/misc/bgprocess/process_executor.py 19 to 15
web/pgadmin/tools/backup/__init__.py 54 to 15
Please review.--Thanks,Aditya ToshniwalpgAdmin hacker | Sr. Software Engineer | edbpostgres.com"Don't Complain about Heat, Plant a TREE"
--
Thanks & Regards
Akshay Joshi
pgAdmin Hacker | Sr. Software Architect
EDB PostgresMobile: +91 976-788-8246
В списке pgadmin-hackers по дате отправления: