pgAdmin 4 commit: Fixed the following code smells: - Mailing list pgadmin-hackers

From Akshay Joshi
Subject pgAdmin 4 commit: Fixed the following code smells:
Date
Msg-id E1oWwF7-00013m-E7@gothos.postgresql.org
Whole thread Raw
List pgadmin-hackers
Fixed the following code smells:
1. Use concise character class syntax
2. Add a "break" statement or remove this "else" clause.
3. Replace this generic exception class with a more specific one.
4. Use a regular expression literal instead of the 'RegExp' constructor.
5. Use the opposite operator ("not in") instead.

Branch
------
master

Details
-------
https://git.postgresql.org/gitweb?p=pgadmin4.git;a=commitdiff;h=cbf58864309db9ed935401f6b2bd7132b5524ea0
Author: Yogesh Mahajan <yogesh.mahajan@enterprisedb.com>

Modified Files
--------------
.../server_groups/servers/pgagent/__init__.py      |  2 +-
.../servers/pgagent/steps/__init__.py              |  2 +-
.../server_groups/servers/roles/__init__.py        | 15 ++++--------
web/pgadmin/browser/static/js/datamodel.js         |  6 ++---
web/pgadmin/static/js/components/CodeMirror.jsx    |  3 +--
web/pgadmin/static/js/pgadmin.js                   |  2 +-
web/pgadmin/static/js/validators.js                |  6 ++---
.../search_objects/static/js/SearchObjects.jsx     |  2 +-
.../utils/sqlautocomplete/parseutils/ctes.py       |  2 +-
.../utils/sqlautocomplete/parseutils/tables.py     |  2 +-
.../feature_tests/pg_datatype_validation_test.py   |  6 -----
.../feature_tests/query_tool_journey_test.py       |  2 +-
web/regression/feature_utils/pgadmin_page.py       | 27 ++--------------------
13 files changed, 19 insertions(+), 58 deletions(-)


pgadmin-hackers by date:

Previous
From: Aditya Toshniwal
Date:
Subject: [pgAdmin][patch] Sonarqube bug fixes
Next
From: Akshay Joshi
Date:
Subject: Re: [pgAdmin4][Patch]: Remove Backgrid & Backform