pgAdmin 4 commit: Fixed following SonarQube issues:

From: Akshay Joshi <akshay(dot)joshi(at)enterprisedb(dot)com>
To: pgadmin-hackers(at)lists(dot)postgresql(dot)org
Subject: pgAdmin 4 commit: Fixed following SonarQube issues:
Date: 2020-07-30 08:36:03
Message-ID: E1k142l-0007ud-D5@gothos.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Fixed following SonarQube issues:
- Refactor functions to not always return the same value.
- Rename "cls" to "self" or add the missing "self" parameter.
- Remove useless assignment to variables.

Branch
------
master

Details
-------
https://git.postgresql.org/gitweb?p=pgadmin4.git;a=commitdiff;h=56cf64ad221d63c200d39ab2b9fcddcc22c0c1c5
Author: Aditya Toshniwal <aditya(dot)toshniwal(at)enterprisedb(dot)com>

Modified Files
--------------
web/pgadmin/authenticate/registry.py | 6 +-
.../static/js/fts_configuration.js | 59 +--
.../check_constraint/static/js/check_constraint.js | 44 +-
.../static/js/exclusion_constraint.js | 56 +-
.../foreign_key/static/js/foreign_key.js | 82 ++-
.../servers/databases/static/js/database.js | 98 ++--
.../servers/pgagent/static/js/pga_job.js | 27 +-
.../server_groups/servers/static/js/server.js | 572 ++++++++++-----------
web/pgadmin/browser/static/js/browser.js | 1 -
web/pgadmin/browser/static/js/datamodel.js | 244 ++++-----
web/pgadmin/preferences/static/js/preferences.js | 6 +-
.../tools/import_export/static/js/import_export.js | 1 -
web/pgadmin/tools/sqleditor/command.py | 6 +-
.../user_management/static/js/user_management.js | 27 +-
web/pgadmin/utils/driver/psycopg2/__init__.py | 4 +-
web/pgadmin/utils/driver/registry.py | 6 +-
web/pgadmin/utils/route.py | 8 +-
17 files changed, 604 insertions(+), 643 deletions(-)

Browse pgadmin-hackers by date

  From Date Subject
Next Message Akshay Joshi 2020-07-30 08:36:36 Re: [pgAdmin][SonarQube] Function returns same value
Previous Message Dave Page 2020-07-30 08:24:09 Re: WIP: SQL Formatter