Skip to content

Unnecessary concatenation of string literals #110

Open
@felipebz

Description

@felipebz

It's not necessary concatenate two string literals at runtime.

Noncompliant code:

var := 'a'||'b';
var2 := concat('a', 'b');

Compliant code:

var := 'ab';
var2 := 'ab';

Activity

added this to the 2.4 milestone on Apr 27, 2019
felipebz

felipebz commented on May 3, 2019

@felipebz
OwnerAuthor

Exception: it shouldn't register an issue if the two string are on different lines:

var := 'aaaa'||
       'bbb';
modified the milestones: 2.4, 3.0 on Jan 14, 2020
removed this from the 3.0 milestone on Sep 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

      Participants

      @felipebz

      Issue actions

        Unnecessary concatenation of string literals · Issue #110 · felipebz/zpa