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 1k2qcr-0006B6-4s for pgadmin-hackers@arkaria.postgresql.org; Tue, 04 Aug 2020 06:40:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1k2qco-0001ph-3O for pgadmin-hackers@arkaria.postgresql.org; Tue, 04 Aug 2020 06:40:38 +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 1k2qcn-0001o6-O1 for pgadmin-hackers@lists.postgresql.org; Tue, 04 Aug 2020 06:40:37 +0000 Received: from mail-io1-xd33.google.com ([2607:f8b0:4864:20::d33]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1k2qcg-0002eH-De for pgadmin-hackers@postgresql.org; Tue, 04 Aug 2020 06:40:36 +0000 Received: by mail-io1-xd33.google.com with SMTP id z6so41139998iow.6 for ; Mon, 03 Aug 2020 23:40: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=MUiJF4pFOFh6PduB7ugiS8F0uf/IxgatZYYKPB7gcb8=; b=CXuLkC6mua4XLwmVBYhXiXjRE5/n4LVFRE80IA6Upf/Zo7TBEWrh9+3YIV8EshxZi+ DX0s7Z1cZQjBQfQSJl7Qx0SC6HXNnYSqqh7VkhUPadawnR+OgtWK8OM0TM3363KD90BE lJxpIKtqAxkPoh48/TWEDHRw0ZV/c7mVCUS8SkdTtZhRDhy1tt1q5i8VzIZmzNjfKn1s bD7IWwZDI/mQi2hgpWswCNxj1DBsdsBMJkooo45rxVJzWIpI9RbetYZKqRs6b4SRSwae RhKB671zEjp5hazXQldrYtSgV2sCczFLE4WHrluwtFpvAS+dogriF3ww4eawR5ggImC1 mUPQ== 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=MUiJF4pFOFh6PduB7ugiS8F0uf/IxgatZYYKPB7gcb8=; b=SmtXZsgA80JHEtxoLFTtYG43E6/3Gu8PlbkLpYUW8ACVDWuNVMUvKSYKNLWqmvLbqv D9tylIUOe4ptjwUMlgFnzTtMqSQmF+ESWnMEHnyssbGAXBObXaUQInPlr6N4GIgceJwc YAvNtgU+8pCTA0YAuEbFIPkRcf7zpo/YBkgJtpVQ2EsnMnwknoaNldKksnFJahxk7Qwm vwa8eQYHxQEbODs36iIqFx1wudey0HRWVasjlCx7Hh1OpTXmWBWahHH04E2oejWCrAO7 YtdkxFVho0hFS2MrRAnayQD5lEsRPAEbJWdMlNugPn+yBU9n2hbKFwGP+o3UujiDcn8C fgnw== X-Gm-Message-State: AOAM5312+RZSVAzP5ncdWTLai8HbhRpyVpIu6LtvWZSg4PfCiAfIIMZt lAGJ0AU95QryisIbuUyQ5p6nbRPc0olX85tBi8TzFYX8Gr6qVvH1NtX6gSsxDMZzns/OlRusOt3 ofNBXfHp4E4Lyttwgsk07tnPad+ybPW2AlKH41DzjtJhMj68bFPj26svoQMowhkFSq56DDrVcih SHI8P2VIp8dQEOTFx2yQv9xR4bu9UVRUBQVwKtjSrcR6SFwS9pr9NhuOsTBCPE X-Google-Smtp-Source: ABdhPJxkZGxclCuCn534lAQvvFadyfDqBVYStkRvCK29hthn6xe7Ls1YWasfZvf37kdJUlitZ7O4cpp8eXhTJjzKD1A= X-Received: by 2002:a05:6638:2493:: with SMTP id x19mr4168275jat.53.1596523228889; Mon, 03 Aug 2020 23:40:28 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Akshay Joshi Date: Tue, 4 Aug 2020 12:10:17 +0530 Message-ID: Subject: Re: [pgAdmin4][Patch] - SonarQube Fixes To: Khushboo Vashi Cc: pgadmin-hackers Content-Type: multipart/alternative; boundary="000000000000ef1ba705ac0787f8" 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 --000000000000ef1ba705ac0787f8 Content-Type: text/plain; charset="UTF-8" Hi Khushboo As per offline discussion, multiple developers declaring the constant for the same string and error messages. To avoid that only one developer should work on this task. Suggestions: - We should have a common class for Constants (which are not module specific). - For module specific constants we should not declare them as Global variables if possible declare them as the Class variable. - For common error messages(if any) we can define functions in PGChildNodeView. Please incorporate the changes send by Yogesh. On Mon, Aug 3, 2020 at 1:36 PM Khushboo Vashi < khushboo.vashi@enterprisedb.com> wrote: > Hi, > > Please find the attached patch to fix the sonarqube code smells having the > rule "String literals should not be duplicated". > > Thanks, > Khushboo > -- *Thanks & Regards* *Akshay Joshi* *pgAdmin Hacker | Sr. Software Architect* *EDB Postgres * *Mobile: +91 976-788-8246* --000000000000ef1ba705ac0787f8 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi=C2=A0Khushboo

As per offline discuss= ion, multiple developers declaring the constant for the same string and err= or messages. To avoid that only one developer should work on this task.
Suggestions:
  • We should have a=C2=A0common=C2=A0cla= ss for Constants (which are not module specific).
  • For module specif= ic constants we should not declare them as Global variables if possible dec= lare them as the Class variable.
  • For common error messages(if any) = we can define functions in PGChildNodeView.
Please inco= rporate the changes send by Yogesh.=C2=A0 =C2=A0

On Mon, Aug 3, 2020 = at 1:36 PM Khushboo Vashi <khushboo.vashi@enterprisedb.com> wrote:
<= /div>
Hi,

<= font face=3D"arial, sans-serif" color=3D"#000000" style=3D"background-color= :rgb(255,255,255)">Please find the attached patch to fix the sonarqube code= smells having the rule "String literals should not be duplicat= ed".

Thanks,
Khushboo


--
Thank= s & Regards
Akshay Joshi
pgAdmin Hacker | Sr. Software Ar= chitect
EDB Postgres=
Mobile: +91 976-788-8246

--000000000000ef1ba705ac0787f8--