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 1l1P8n-0005j5-AL for pgadmin-hackers@arkaria.postgresql.org; Mon, 18 Jan 2021 07:39:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1l1P8m-0004zv-8B for pgadmin-hackers@arkaria.postgresql.org; Mon, 18 Jan 2021 07:39:56 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l1P8m-0004zo-2o for pgadmin-hackers@lists.postgresql.org; Mon, 18 Jan 2021 07:39:56 +0000 Received: from mail-io1-xd2d.google.com ([2607:f8b0:4864:20::d2d]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1l1P8k-0007eY-B1 for pgadmin-hackers@postgresql.org; Mon, 18 Jan 2021 07:39:55 +0000 Received: by mail-io1-xd2d.google.com with SMTP id z22so4368980ioh.9 for ; Sun, 17 Jan 2021 23:39:53 -0800 (PST) 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=lTzkQ4gysVoTb1XnPtFJMMycowVlBrCGt++xGLxsVdg=; b=aIdcqxDVW3dEqIx4oXxDxTANBGDAaLM9iiM/+sFaDNrtqWT89zX4J/f4yXKTA7pq8V ROBbq8E2VDeD+F3SpndAdEzY2AesEW6HEM4EjTtSwucB64H6B91mQ6uf/7T2jYUHIjx5 zDaBrkJLnvr8UzDVqUSiMyhYK9Y4v7klhDzG0nnUOLtZxcpi+1ZUFN8WXGEqr+Zb2Uw/ nSLdHU6UIfmoXQnzC746aL1F6Ep6+BXfXZKfxJUZ2WX64CCI5ulkjT7JgpK3sByDvGFQ +xZSnFCF21YZ12NRaUjtSTaI5ZJ/GIaUo0dTaBNGgA5j5lWaGaSWkwPyYXLOAn1W8W5b h3uw== 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=lTzkQ4gysVoTb1XnPtFJMMycowVlBrCGt++xGLxsVdg=; b=fuZIAjCmmTQqA0rOcSYJ1u4HAcXw92MkkftYYYVAxDTNouxOAfaVpIJ7DiRV3gdjR6 1Eags5Ds1LOCDiqcxJcIBk+3+dU2zhE8VclSUyptXg+gaAZlkZL9VJYDzdDArB6mm0tB m3bMen/sWWmxQXBpkU5P6FakcQMaJx9N1s6gvvyhTOzbJ2yA94qinlDW+btaYT/z2gYb W6t/WIQXLBu+azvR6HFuRRfmFbscJ4/tbEcG77mqUnKfMIg6MxVtoCdkHTuIQnDOvPWY SThhQhIhsEvWVl/eFKuvW7vpRhpM9kc36LV227O55aHky5ZxHbann8WWwiT/Gtd1qtru AbpQ== X-Gm-Message-State: AOAM530nboPxCpKduQ0pk8KS/K42z5xksRgH2RZ+1yErVMx+B0qG7WVw zVj+pcZkRJmQ37whGfejR42sDfNtW6ilhYxaBu0VmSUG2Jx+P3WQWTps2Wx3enkP2V2k2QSUKgW K9pWO2MalT7cuCL8LZzjYQBwUnu2s3eV302nG6QP7FDE+Fc5fwoZJ0zEEprHFWgsnU5wFPCiGtG BpehEr3H3ZrdrJoLEn/BDvj5sM7jgdAB17zIRwITI1LmLjXadq1K+QsRszNg== X-Google-Smtp-Source: ABdhPJx53j3bW2CMszSWeV6BM8d3EIXgg4EIr0/h0h4ttrSIuHQAlQprkEwySqlJBv86t0a6qKBMBQK4qtDiv8cnwls= X-Received: by 2002:a02:ec5:: with SMTP id 188mr19327797jae.20.1610955592416; Sun, 17 Jan 2021 23:39:52 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Akshay Joshi Date: Mon, 18 Jan 2021 13:09:41 +0530 Message-ID: Subject: Re: Patch for SonarQube fixes. To: Nikhil Mohite Cc: pgadmin-hackers Content-Type: multipart/alternative; boundary="000000000000d5e1fd05b927d301" 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 --000000000000d5e1fd05b927d301 Content-Type: text/plain; charset="UTF-8" Thanks, patch applied. On Mon, Jan 18, 2021 at 11:15 AM Nikhil Mohite < nikhil.mohite@enterprisedb.com> wrote: > Hi Team, > > I have fixed a few sonarQube issues, PFA patch > Details as follows: > > 1. Preferences: > > - Refactor this function to reduce its Cognitive Complexity from 18 to > the 15 allowed. > - Merge this if statement with the enclosing one. > - Define a constant instead of duplicating this literal 'tab settings' > 5 times. > > 2. Connection: > > - Remove this unneeded "pass". > > 3. Sqleditor: > > - Remove this useless assignment to variable "msgDiv". > > 4. Debugger: > > - Review this useless assignment: "index" already holds the assigned > value along all execution paths. > - 'label' is already declared in the upper scope. > - 'label' is already declared in the upper scope. > - 'browser_preferences' is already declared in the upper scope. > > 5. FileManager: > > - 'path' is already declared in the upper scope. > > > -- > *Thanks & Regards,* > *Nikhil Mohite* > *Software Engineer.* > *EDB Postgres* > *Mob.No: +91-7798364578.* > -- *Thanks & Regards* *Akshay Joshi* *pgAdmin Hacker | Principal Software Architect* *EDB Postgres * *Mobile: +91 976-788-8246* --000000000000d5e1fd05b927d301 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks, patch applied.

On Mon, Jan 18, 2021 at 11:15 AM Nik= hil Mohite <nikhil.moh= ite@enterprisedb.com> wrote:
Hi Team,

I have fix= ed a few sonarQube issues, PFA patch
Details as follows:

1. Preferences:
  • Refactor this function to red= uce its Cognitive Complexity from 18 to the 15 allowed.
  • Merge this = if statement with the enclosing one.
  • Define a constant instead of d= uplicating this literal 'tab settings' 5 times.
= 2. Connection:
  • Remove this unneeded "pass".
  • 3. Sqleditor:
    • Remove this useless assignment to variable= "msgDiv".
    4. Debugger:
    • Review this us= eless assignment: "index" already holds the assigned value along = all execution paths.
    • 'label' is already declared in the upp= er scope.
    • 'label' is already declared in the upper scope.
    • 'browser_preferences' is already declared in the upper scope= .
    5. FileManager:
    • 'path' is already decl= ared in the upper scope.

    --=
    = Software Engineer.
    Mob.No: +91= -7798364578.


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

--000000000000d5e1fd05b927d301--