Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unnecessary concatenation of string literals #110

Open
felipebz opened this issue Apr 27, 2019 · 1 comment
Open

Unnecessary concatenation of string literals #110

felipebz opened this issue Apr 27, 2019 · 1 comment
Labels

Comments

@felipebz
Copy link
Owner

felipebz commented Apr 27, 2019

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';
@felipebz felipebz added this to the 2.4 milestone Apr 27, 2019
@felipebz
Copy link
Owner Author

felipebz commented May 3, 2019

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

var := 'aaaa'||
       'bbb';

@felipebz felipebz modified the milestones: 2.4, 3.0 Jan 14, 2020
@felipebz felipebz removed this from the 3.0 milestone Sep 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant