Skip to content
On this page

UnnecessaryStringConcat

Checks that two strings are not concatenated together; suggests using one string instead.

Scope

Generic.Strings.UnnecessaryStringConcat

Description

Strings should not be concatenated together.

Properties

Property NameTypeDefaultAvailable SinceRemoved In
allowMultilineboolfalse2.3.4
errorbooltrue-4.0.0

Usage

xml
<rule ref="Generic.Strings.UnnecessaryStringConcat">
    <properties>
        <property name="error" value="false" />
    </properties>
</rule>

Examples

No Examples Available

Please edit this page through Github to add examples.

Released under the MIT License.