RomainMarecat/slate

View on GitHub
src/shared/util/string.service.ts

Summary

Maintainability
A
35 mins
Test Coverage

Showing 1 of 1 total issue

Function replaceDiacritics has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
Open

static replaceDiacritics(str: string) {
let returnStr = '';
if (str) {
// tslint:disable-next-line:prefer-for-of
for (let i = 0; i < str.length; i++) {
Severity: Minor
Found in src/shared/util/string.service.ts - About 35 mins to fix

There are no issues that match your filters.

Category
Status