Re: [pgAdmin][SonarQube] Fixes for 13 rules.
От | Akshay Joshi |
---|---|
Тема | Re: [pgAdmin][SonarQube] Fixes for 13 rules. |
Дата | |
Msg-id | CANxoLDfyRuApCe+VjJcZQDX70DUtKfdYmJjnMBzF2NdyDGpNRg@mail.gmail.com обсуждение исходный текст |
Ответ на | [pgAdmin][SonarQube] Fixes for 13 rules. (Aditya Toshniwal <aditya.toshniwal@enterprisedb.com>) |
Список | pgadmin-hackers |
Thanks, patch applied.
On Mon, Aug 3, 2020 at 12:47 PM Aditya Toshniwal <aditya.toshniwal@enterprisedb.com> wrote:
Hi Hackers,Attached is the patch to fix around 27 SonarQube related issues raised for rules:
- Remove this assignment to the local variable, the value is never used.
- Rename local variables to match the regular expression
- Add logic to this except clause or eliminate it and rethrow the exception automatically.
- Rename fields to match the regular expression
- Extract this nested conditional expression into an independent statement.
- Change this default value to "None" and initialize this parameter inside the function/method.
- Update this function so that its implementation is not identical to __repr__
- Refactor this method to not always return the same value
- Reraise this exception to stop the application as the user expects
- Add missing parameters _w _PY3. This method overrides simplejson.decoder.JSONDecoder.decode.
- Remove this redundant continue.
- Remove this unused function declaration
- Remove this identity check; it will always be False.
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 по дате отправления: