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 1lN8bJ-0006IO-OM for pgadmin-hackers@arkaria.postgresql.org; Fri, 19 Mar 2021 06:27:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lN8bI-0007wM-MM for pgadmin-hackers@arkaria.postgresql.org; Fri, 19 Mar 2021 06:27:12 +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 1lN8bI-0007wF-H9 for pgadmin-hackers@lists.postgresql.org; Fri, 19 Mar 2021 06:27:12 +0000 Received: from mail-il1-x12f.google.com ([2607:f8b0:4864:20::12f]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lN8bG-0007Lv-10 for pgadmin-hackers@postgresql.org; Fri, 19 Mar 2021 06:27:11 +0000 Received: by mail-il1-x12f.google.com with SMTP id t18so7089722iln.3 for ; Thu, 18 Mar 2021 23:27:09 -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=ke8ot+ZryBSv4nqmsbpDn0oSgszHliPs3WW2PR0MoEU=; b=K3VXk+lzmgPjpc14jI5aW1F5Ec9AudXQol/2p/gkH2nyaYLpvIauNNla7pw6VpAzhD hHiq64GvkGCMcUdy+gkFD55GFNt0AIhA9l5mxqode4B0Hpn8jVkjSkbifquZgym0ljNM 7heKlz8QxhoiNxunsRtNtCsQv9kE7AkO/8prYJu65ar7Hs8U+D2YzPOAOGBVIH6ciobT VE2To0h8xFFCC3CyyYun/mNjXmWSKq9m8VmynsLwK1SId0xINxG/+ex+EL9gY9tv6sYi YEX3o5l9H6iAYEcoODotsPqH5H91ZF+Aa4Zdbec2ZDqQ0prJ+tfAf+Ltj2YuRWzdFlJp c6rA== 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=ke8ot+ZryBSv4nqmsbpDn0oSgszHliPs3WW2PR0MoEU=; b=OjV8Fp8jMPg7gNSibmTs5E4pL7KHs4Ljr/DwkKXCzI8NLsKUdx4Rn0QZb1jBX3LxN/ nnLsoIMHNIpvWV4C3fOVtuu0joHbNDGfjbcX6j4SfAYcDc7Q2b6SqFoxPtUs7WZ6kGym +JTNHkVieaAa7UozEB/zPbgXK44QrIoCuJ6sfo5yefIQs13y6MYf/gAS5uu06W+3ymjS gftajd6d66B6TTB30Im+7Pe62U/uTyf0LfpByDVuO53fnO8zR2TuyQOHIsp5NA4WpNhr oaDSJKlTP9byI5Esb49Ues67Ra1bzs8S4KhN/SSXXnLKULb2LDn6m2L15jgb+OEEOz+f kCuA== X-Gm-Message-State: AOAM532zK4yQ9UfiRCVd0WJaN35mQO+vgj71MNtdck9ubp90R/TAR0DO YkDPSDBPTgqYNuw+bEQsS5rMddb6SFM/4cPsSmIWlOFFN15UQWKLlWo6P7fXMmZTT13wRzT1RuO PKguYznTchDy38XmbKSe5pXMcfRAwE5UQ9ExEU1In6JZqab0/fyUb3GBKh2Pefq2xA/Noa4gzZ6 nqbeFrIOtp5y8Skpm2KQ1gZDmjBzCU+VrKg2GOo/1j1d0t3qh2/3z/0BRp2A== X-Google-Smtp-Source: ABdhPJzEvjr8ykx7b3mQYgVA7SsP2UGutPzJEsNrn3Jd4PJkpEn2s5VPTBDFovSsupPYYAoF66en8m2YKd0Ez445RQQ= X-Received: by 2002:a92:d906:: with SMTP id s6mr1614791iln.121.1616135229285; Thu, 18 Mar 2021 23:27:09 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Akshay Joshi Date: Fri, 19 Mar 2021 11:56:58 +0530 Message-ID: Subject: Re: SonarQube Fixes #5 Roles & Functions To: Rahul Shirsat Cc: pgadmin-hackers Content-Type: multipart/alternative; boundary="0000000000004050e505bdddceae" 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: Archived-At: Precedence: bulk --0000000000004050e505bdddceae Content-Type: text/plain; charset="UTF-8" Thanks, patch applied. On Wed, Mar 17, 2021 at 4:50 PM Rahul Shirsat < rahul.shirsat@enterprisedb.com> wrote: > Hi Hackers, > > Please find the patch which resolves below sonar qube issues: > > For Roles: > Refactor this function to reduce its Cognitive Complexity from 21 to the > 15 allowed > Refactor this function to reduce its Cognitive Complexity from 16 to the > 15 allowed > > For Functions: > Refactor this function to reduce its Cognitive Complexity from 17 to the > 15 allowed > > -- > *Rahul Shirsat* > Senior Software Engineer | EnterpriseDB Corporation. > -- *Thanks & Regards* *Akshay Joshi* *pgAdmin Hacker | Principal Software Architect* *EDB Postgres * *Mobile: +91 976-788-8246* --0000000000004050e505bdddceae Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks, patch applied.

On Wed, Mar 17, 2021 at 4:50 PM = Rahul Shirsat <rahul.s= hirsat@enterprisedb.com> wrote:
Hi Hackers,

Plea= se find the patch which resolves below sonar qube issues:

For Roles:
Refactor this function to red= uce its Cognitive Complexity from 21 to the 15 allowed
Refactor this function to reduce its Cognitive Complexity fro= m 16 to the 15 allowed

For Functions:
Refactor this function t= o reduce its Cognitive Complexity from 17 to the 15 allowed

--
=
Rahul Shirsat
Senior Software Engineer=C2=A0|=C2=A0EnterpriseDB=C2=A0Corpor= ation.


--
Thanks & Regards
Akshay Joshi
pgAdmi= n Hacker | Principal Software Architect
EDB Postgres
Mobile: +91 976-788-8246

--0000000000004050e505bdddceae--