22 lines
399 B
Plaintext
22 lines
399 B
Plaintext
Shared coding conventions allow teams to collaborate effectively. This rule raises an issue when the use of spaces within a template does not conform to the configured style.
|
|
|
|
|
|
== Noncompliant Code Example
|
|
|
|
With the configured default forbidding spaces:
|
|
|
|
[source,javascript]
|
|
----
|
|
`Hello, ${world }!`; // Noncompliant
|
|
----
|
|
|
|
|
|
== Compliant Solution
|
|
|
|
[source,javascript]
|
|
----
|
|
`Hello, ${world}!`;
|
|
----
|
|
|
|
|