176 // when no placeholders are present, we need to replace the {@} with a space
177 const replaceToken = placeholders ? "{@}" : "{@} ";
178
179 let s = this.statement180 .replace(replaceToken, placeholders)181 .replace("{symbol}", this.data.getSymbol());182
183 if (this.data.config.get("prints.printToNewLine")) {
184 s = s.split(":'").join(":\\n'");
151 }
152
153 private convertLog(): string {
154 let s = this.statement.replace("{logger}", this.data.getLogger());155
156 if (this.data.config.get("logging.useRepr")) {
157 s = s.replace("{#text}", "repr({text})");
Single character variable names affect code readability and complicate code refactoring, because of the difficulty in searching and replacing single characters.
This issue will not be raised for certain special identifiers, such as i
, j
or n
. It will also not be reported for the parameters used in for
and while
loops.
var a;
const l = 90
var age;
const limit = 90;
for(let o = 2; o < 10; o++){
sum += o
}