ChFlick/firecode

View on GitHub
src/providers/FirestoreFormattingProvider.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function provideDocumentFormattingEdits has 43 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    async provideDocumentFormattingEdits(document: TextDocument, options: FormattingOptions): Promise<TextEdit[]> {
        if (workspace.getConfiguration("firestorerules").get("usePrettierFormatter") || false) {
            const text = document.getText();

            const formattedText = prettier.format(text, {
Severity: Minor
Found in src/providers/FirestoreFormattingProvider.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status