Inspectopedia Help

String style violation

Reports strings with quotation that doesn't match code style.

Example:

def hw = "Hello, world!"

After the quick-fix is applied:

def hw = 'Hello, world!'

Use the fields provided below to specify code style for different kinds of strings.

Inspection options

Option

Type

Default

Preferable Kind

Group

None

Default

Dropdown

Single-quoted string

Strings with escaping

Dropdown

Do not handle specifically

Strings with interpolation

Dropdown

Do not handle specifically

Multiline string

Dropdown

Triple-quoted string

Domain of Usage

Group

None

Inspect Gradle files

Checkbox

true

Inspection Details

Available in:

IntelliJ IDEA 2023.3, Qodana for JVM 2023.3

Plugin:

Groovy, 233.SNAPSHOT

Last modified: 13 July 2023