Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kFt7c-0004AH-TX for pgadmin-hackers@arkaria.postgresql.org; Wed, 09 Sep 2020 05:58:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kFt7b-0006ge-Od for pgadmin-hackers@arkaria.postgresql.org; Wed, 09 Sep 2020 05:58:19 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kFt7b-0006gX-Jf for pgadmin-hackers@lists.postgresql.org; Wed, 09 Sep 2020 05:58:19 +0000 Received: from mail-il1-x142.google.com ([2607:f8b0:4864:20::142]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kFt7Z-0007hy-3t for pgadmin-hackers@postgresql.org; Wed, 09 Sep 2020 05:58:18 +0000 Received: by mail-il1-x142.google.com with SMTP id h11so1186780ilj.11 for ; Tue, 08 Sep 2020 22:58:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=k8FvVzOd2u7rfP09QzsDSiVXX8/duTHSZmi8uLcqZCA=; b=JLgO3apRnylHrC6+uSXYWaFkzJ02jJHCcFbUj01o4hXinfCm9yZEtiv1H5BstMn8D3 BbUcSt3L+tatiMusFfwNGeu8zwwmWdwl6u2ZNcYtbmZBdve+06UQHfxDF4keRmj9cMWW l+THaFRv//gavhDt5CT3Ohy+f31rUqGJGBWaZkt5Gmae+YWArEtwk5IPQv7rCw+hxEcU v420rUT4bRNwIhv2NT5uej7Qs2JXnloFVTmoOwBR9IwTdTHF+qB60fng6apSSuFWD26V g7SnAbwfy86Q+xn18ceCRRgPqiNceDp6MjLJf+rADZ1N7qQuLp7oCP7igVDoqsIO8T/d CCtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=k8FvVzOd2u7rfP09QzsDSiVXX8/duTHSZmi8uLcqZCA=; b=fVAy9CSagVtHilQi2wgJDCdABs5emVEYhjY1joeOXior0mcHu3aacBlaSF6Cgoqgac GB9r+KqIPhsBrIheBOhYrg+FPHC65d1qZHcc5ucI5jHphJNa/oj3shG9NFGOtl3fVo+N Uu0KobqFUfnQqx2e1aEM43FAs/6MdAALCN2Xz1UG4G8mTGv2s7fwoFmAjbpc5X0PX9S5 LiAFEs5CWR1P8ybkducP/hb9XyhTJdgsgnxIOp/jiDUb+nE/3W0bQFZwQ3UlGCf/anP7 tul6Rmg/EoRDYFvALKOrWpDds7KBewivhy0pNUVGy2YRndyQXnZB3sGR+5mCf+ZA6LLb nTIQ== X-Gm-Message-State: AOAM532A2XDPBlO6oQCBPWlqTmmrj2uQOF9OGiNSQR2e4RLLRG+34GI2 g7MM3qJcPzX3OnhfWE0+2KkFmnxarqgPBjq9twsCxs/T3xETrgzoVrUYDB389Rp5g5AO6fioTgO /Pl1+MM/HwRquyavtCraFvMi1xEH3JYZ8G1PRKqx3gTLJ9TzE8OLTedGtC4fh2LJia1hVF1LPWw UHG6QzCQuKjw6KiRsWiift3nk2y60L/nNvoAS7gBnewHXj1Qa8Fm4xnRVoXw== X-Google-Smtp-Source: ABdhPJw+X6kxq98QhWapLaza3IYtEJ75htI+ojBfbKwD7A1XSFA6tYCdhZxvfPTjrfhZXc+1Zr4plkdHWNXwzth9Gwo= X-Received: by 2002:a92:5b84:: with SMTP id c4mr2293626ilg.257.1599631096175; Tue, 08 Sep 2020 22:58:16 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Akshay Joshi Date: Wed, 9 Sep 2020 11:28:05 +0530 Message-ID: Subject: Re: Patch for SonarQube code scan fixes. To: Nikhil Mohite Cc: pgadmin-hackers Content-Type: multipart/alternative; boundary="00000000000042782c05aedb23f6" X-CLOUD-SEC-AV-Info: enterprisedb,google_mail,monitor X-CLOUD-SEC-AV-Sent: true X-Gm-Spam: 0 X-Gm-Phishy: 0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --00000000000042782c05aedb23f6 Content-Type: text/plain; charset="UTF-8" Thanks, patch applied. I haven't committed changes for "sqlautocomplete/parseutils", as Dave suggested send the patch to pgcli. On Tue, Sep 8, 2020 at 2:59 PM Nikhil Mohite wrote: > Hi Team, > > I have fixed some code smell issues in the SonarQube scan, PFA patch. > Details as follows: > > 1. psycopg2/connection: > > - Refactor this function to reduce its Cognitive Complexity from 32 to > the 15 allowed. > - Refactor this function to reduce its Cognitive Complexity from 17 to > the 15 allowed. > > 2. psycopg2/server_manager: > > - Refactor this function to reduce its Cognitive Complexity from 20 to > the 15 allowed. > - Refactor this function to reduce its Cognitive Complexity from 33 to > the 15 allowed. > - Refactor this function to reduce its Cognitive Complexity from 26 to > the 15 allowed. > > 3. sqlautocomplete/parseutils: > > - Refactor this function to reduce its Cognitive Complexity from 23 to > the 15 allowed. > > > > -- > *Thanks & Regards,* > *Nikhil Mohite* > *Software Engineer.* > *EDB Postgres* > *Mob.No: +91-7798364578.* > -- *Thanks & Regards* *Akshay Joshi* *pgAdmin Hacker | Sr. Software Architect* *EDB Postgres * *Mobile: +91 976-788-8246* --00000000000042782c05aedb23f6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks, patch applied. I haven't committed changes for= "sqlautocomplete/parseutils", as Dave suggested send the patch t= o pgcli.

On Tue, Sep 8, 2020 at 2:59 PM Nikhil Mohite <nikhil.mohite@enterprisedb.com> = wrote:
Hi Team,

I have fixed some code smell issu= es in the SonarQube scan, PFA patch.
Details as=C2=A0follows:

1.=C2=A0psycopg2/connection:
  • Refactor th= is function to reduce its Cognitive Complexity from 32 to the 15 allowed.
  • Refactor this function to reduce its Cognitive Complexity from 17 to= the 15 allowed.
2. psycopg2/server_manager:
  • Refactor= this function to reduce its Cognitive Complexity from 20 to the 15 allowed= .
  • Refactor this function to reduce its Cognitive Complexity from 33= to the 15 allowed.
  • Refactor this function to reduce its Cognitive = Complexity from 26 to the 15 allowed.
3. sqlautocomplete/parseutil= s:
  • Refactor this function to reduce its Cognitive Complexity fr= om 23 to the 15 allowed.


--
Th= anks & Regards,
Ni= khil Mohite
Soft= ware Engineer.
Mob.No: +91-779= 8364578.


--
Thanks & Regards
Akshay Joshi
<= div>pgAdmin Hacker | = Sr. Software Architect
EDB Postgres
Mobile: +91 976-788-8246

<= /div>
--00000000000042782c05aedb23f6--