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 1kFaRV-00040h-Va for pgadmin-hackers@arkaria.postgresql.org; Tue, 08 Sep 2020 10:01:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kFaRU-0003zd-V2 for pgadmin-hackers@arkaria.postgresql.org; Tue, 08 Sep 2020 10:01:36 +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 1kFaRU-0003zW-LN for pgadmin-hackers@lists.postgresql.org; Tue, 08 Sep 2020 10:01:36 +0000 Received: from mail-ej1-x62f.google.com ([2a00:1450:4864:20::62f]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kFaRO-0005iu-Do for pgadmin-hackers@postgresql.org; Tue, 08 Sep 2020 10:01:35 +0000 Received: by mail-ej1-x62f.google.com with SMTP id i26so21601974ejb.12 for ; Tue, 08 Sep 2020 03:01:30 -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=xwIIns9j24m41QUwbN2qM9FUFRNQPNaX3nUyANQuLQY=; b=rUacPuoG2TA6uxV4u6Z4mPRH19Lzmn2Tbxdg9jOY21tf78YGJpXl8eEQNP9RZINDjR YTuM/AI80HwSmpFASUY0VHP4RbKesOEYgOsjQdbWeda4LemykBxbtU8rm0r6yXzPlnoN 5Nky3EyhYP0SrnfqBXyS5rqPgC2r1fSw3P0+p72e71vaAuKhuDBXvSWIAnnGZSaRjCpt wMNGlf9aNiWcqmsxpbud0qXuckXwEa6sjC8vRjddbczMnjGJu0h6cYn6JarvGapFrJuJ Ww4L6rglZGa3ZdmcC3vPz2q30wIjz5pYzHsZVW6jgJzx74p0qB9pCwhQuYvo4ALF5CNe J0HQ== 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=xwIIns9j24m41QUwbN2qM9FUFRNQPNaX3nUyANQuLQY=; b=OmotxGA3c+xNCm+wgmu1Q7YKgivCV7XaBb9rSArgTSL7YYHqd4zfMFUA+dd+heu8F+ 0hNIG4q8meZtx1UCogAC1sH6Yd91H6hGrlrO23bMZlv2J5uoezqVfbgPw7HKnwK2IyjH MyCZ6fX3idWkbsRhHNYJlFQL1vloehDFOWEdXoGREJbCSD0L8sePDCmvuSK8O6JXAgPi 2Ns4zmPZ63QOs49NZuKggWKYUwE3ft8bd8VfUnasRZr/5DMyR42HkxAoM5ZHfoQ3V/vB C792oz42wC6GOaWZc5H8S1Q7WHD8R0L4VQtbaY+QU+zu1QQFonSYTdJ7VHT3GTwGP68h DXjQ== X-Gm-Message-State: AOAM531Igw4V9KM+QYH+/wFXaCuSX/8RhLo6oVzc+GEM5fzpl/uQn9OE ADrEEMzj5EesAA3wuxky09tKtzdzwlAeHxyELdSj9+CC6EedM3WI/QKMDxrS7xJAuoNA5pjgkq4 XsjwnpS8GeoCNhWbO/P/dZXAp2tpfQ4Un9cMP2gs9lLfE/oG/rKgVhbfX3T9ottfI3OxKifjBbg /aXMNC89BAzRsafgWJKnvLLOOoCLwZ1xEGsi+nhp13T5gPnDtJL3LotRziAA== X-Google-Smtp-Source: ABdhPJzWYsKRG3VmmB+7eFZw6pSeAcMPA5qc506OdaTMuLcV0E3jUqpdOi9fB2m49Znqy+PcXdzUbOmFjsL3ovgQbmw= X-Received: by 2002:a17:907:9c3:: with SMTP id bx3mr25743083ejc.164.1599559288762; Tue, 08 Sep 2020 03:01:28 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Aditya Toshniwal Date: Tue, 8 Sep 2020 15:30:52 +0530 Message-ID: Subject: Re: Patch for SonarQube code scan fixes. To: Nikhil Mohite Cc: pgadmin-hackers Content-Type: multipart/alternative; boundary="000000000000344c2b05aeca6be5" 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 --000000000000344c2b05aeca6be5 Content-Type: text/plain; charset="UTF-8" Hi, sqlautocomplete code is mostly inherited from the pgcli project. Changing it might create trouble in updating the code with new versions. 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, Aditya Toshniwal pgAdmin hacker | Sr. Software Engineer | *edbpostgres.com* "Don't Complain about Heat, Plant a TREE" --000000000000344c2b05aeca6be5 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

sqlautocomplete=C2=A0code is mostly inherited from the= pgcli project. Changing it might create trouble in updating the code with = new versions.



--
Thanks,
Aditya Toshniwal
pgAdmin hacker=C2=A0| Sr. Softwa= re Engineer | edbpostgres.com<= /font>
"Don't Complain about Heat, Plant a TREE&qu= ot;
--000000000000344c2b05aeca6be5--