MichaReiser/speedy.js

View on GitHub
packages/compiler/src/transform/log-unknown-transform-visitor.ts

Summary

Maintainability
F
1 wk
Test Coverage

LogUnknownTransformVisitor has 46 functions (exceeds 20 allowed). Consider refactoring.
Open

export class LogUnknownTransformVisitor implements TransformVisitor {
    visitSourceFile(sourceFile: ts.SourceFile, context: TransformVisitorContext): ts.SourceFile {
        return context.visitEachChild(sourceFile);
    }

Severity: Minor
Found in packages/compiler/src/transform/log-unknown-transform-visitor.ts - About 6 hrs to fix

    Similar blocks of code found in 4 locations. Consider refactoring.
    Open

        visitNumberKeyword(keyword: ts.Token<ts.SyntaxKind.NumberKeyword>, context: TransformVisitorContext): ts.Token<ts.SyntaxKind.NumberKeyword> {
            return context.visitEachChild(keyword);
        }
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 19..21
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 43..45
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 55..58

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 75.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 4 locations. Consider refactoring.
    Open

        visitStringLiteral(stringLiteral: ts.Token<ts.SyntaxKind.StringLiteral>, context: TransformVisitorContext): ts.Token<ts.SyntaxKind.StringLiteral> {
            return context.visitEachChild(stringLiteral);
        }
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 19..21
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 31..33
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 55..58

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 75.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 4 locations. Consider refactoring.
    Open

        visitExportKeyword(exportKeyword: ts.Token<ts.SyntaxKind.ExportKeyword>, context: TransformVisitorContext): ts.Token<ts.SyntaxKind.ExportKeyword> {
            return context.visitEachChild(exportKeyword);
        }
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 31..33
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 43..45
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 55..58

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 75.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 4 locations. Consider refactoring.
    Open

        visitFirstLiteralToken(firstLiteralToken: ts.Token<ts.SyntaxKind.FirstLiteralToken>,
                               context: TransformVisitorContext): ts.Token<ts.SyntaxKind.FirstLiteralToken> {
            return context.visitEachChild(firstLiteralToken);
        }
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 19..21
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 31..33
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 43..45

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 75.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 8 locations. Consider refactoring.
    Open

        visitThisKeyword?(thisKeyword: ts.Token<ts.SyntaxKind.ThisKeyword>, context: TransformVisitorContext): ts.VisitResult<ts.Node> {
            return context.visitEachChild(thisKeyword);
        }
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 68..70
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 72..74
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 100..102
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 108..110
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 124..126
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 140..142
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 168..170

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 71.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 8 locations. Consider refactoring.
    Open

        visitPublicKeyword?(publicKeyword: ts.Token<ts.SyntaxKind.PublicKeyword>, context: TransformVisitorContext): ts.VisitResult<ts.Node> {
            return context.visitEachChild(publicKeyword);
        }
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 68..70
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 72..74
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 100..102
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 108..110
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 124..126
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 132..134
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 140..142

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 71.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 8 locations. Consider refactoring.
    Open

        visitAsyncKeyword(asyncKeyword: ts.Token<ts.SyntaxKind.AsyncKeyword>, context: TransformVisitorContext): ts.VisitResult<ts.Node> {
            return context.visitEachChild(asyncKeyword);
        }
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 72..74
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 100..102
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 108..110
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 124..126
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 132..134
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 140..142
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 168..170

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 71.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 8 locations. Consider refactoring.
    Open

        visitPrivateKeyword?(privateKeyword: ts.Token<ts.SyntaxKind.PrivateKeyword>, context: TransformVisitorContext): ts.VisitResult<ts.Node> {
            return context.visitEachChild(privateKeyword);
        }
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 68..70
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 72..74
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 100..102
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 108..110
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 124..126
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 132..134
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 168..170

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 71.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 8 locations. Consider refactoring.
    Open

        visitBooleanKeyword(booleanKeyword: ts.Token<ts.SyntaxKind.BooleanKeyword>, context: TransformVisitorContext): ts.VisitResult<ts.Node> {
            return context.visitEachChild(booleanKeyword);
        }
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 68..70
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 72..74
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 108..110
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 124..126
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 132..134
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 140..142
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 168..170

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 71.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 8 locations. Consider refactoring.
    Open

        visitIntKeyword(intKeyword: ts.Token<ts.SyntaxKind.IntKeyword>, context: TransformVisitorContext): ts.VisitResult<ts.Node> {
            return context.visitEachChild(intKeyword);
        }
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 68..70
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 100..102
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 108..110
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 124..126
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 132..134
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 140..142
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 168..170

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 71.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 8 locations. Consider refactoring.
    Open

        visitTrueKeyword(trueKeyword: ts.Token<ts.SyntaxKind.TrueKeyword>, context: TransformVisitorContext): ts.VisitResult<ts.Node> {
            return context.visitEachChild(trueKeyword);
        }
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 68..70
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 72..74
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 100..102
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 124..126
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 132..134
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 140..142
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 168..170

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 71.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 8 locations. Consider refactoring.
    Open

        visitFalseKeyword(falseKeyword: ts.Token<ts.SyntaxKind.FalseKeyword>, context: TransformVisitorContext): ts.VisitResult<ts.Node> {
            return context.visitEachChild(falseKeyword);
        }
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 68..70
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 72..74
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 100..102
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 108..110
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 132..134
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 140..142
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 168..170

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 71.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 22 locations. Consider refactoring.
    Open

        visitArrayType?(arrayType: ts.ArrayTypeNode, context: TransformVisitorContext): ts.VisitResult<ts.Node> {
            return context.visitEachChild(arrayType);
        }
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 76..78
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 80..82
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 84..86
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 88..90
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 92..94
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 96..98
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 104..106
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 112..114
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 116..118
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 120..122
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 128..130
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 136..138
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 144..146
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 148..150
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 152..154
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 156..158
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 160..162
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 164..166
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 176..178
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 180..182
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 184..186

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 57.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 22 locations. Consider refactoring.
    Open

        visitAsExpression?(asExpression: ts.AsExpression, context: TransformVisitorContext): ts.VisitResult<ts.Node> {
            return context.visitEachChild(asExpression);
        }
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 76..78
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 80..82
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 84..86
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 88..90
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 92..94
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 96..98
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 104..106
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 112..114
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 116..118
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 120..122
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 128..130
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 136..138
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 144..146
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 148..150
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 152..154
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 156..158
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 160..162
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 164..166
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 172..174
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 180..182
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 184..186

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 57.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 22 locations. Consider refactoring.
    Open

        visitTypeReference(typeReference: ts.TypeReferenceNode, context: TransformVisitorContext): ts.VisitResult<ts.Node> {
            return context.visitEachChild(typeReference);
        }
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 80..82
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 84..86
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 88..90
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 92..94
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 96..98
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 104..106
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 112..114
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 116..118
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 120..122
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 128..130
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 136..138
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 144..146
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 148..150
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 152..154
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 156..158
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 160..162
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 164..166
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 172..174
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 176..178
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 180..182
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 184..186

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 57.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 22 locations. Consider refactoring.
    Open

        visitPrefixUnaryExpression(prefixUnaryExpression: ts.PrefixUnaryExpression, context: TransformVisitorContext): ts.VisitResult<ts.Node> {
            return context.visitEachChild(prefixUnaryExpression);
        }
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 76..78
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 80..82
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 84..86
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 88..90
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 92..94
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 96..98
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 104..106
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 112..114
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 120..122
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 128..130
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 136..138
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 144..146
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 148..150
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 152..154
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 156..158
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 160..162
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 164..166
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 172..174
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 176..178
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 180..182
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 184..186

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 57.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 22 locations. Consider refactoring.
    Open

        visitClassDeclaration?(classDeclaration: ts.ClassDeclaration, context: TransformVisitorContext): ts.VisitResult<ts.Node> {
            return context.visitEachChild(classDeclaration);
        }
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 76..78
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 80..82
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 84..86
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 88..90
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 92..94
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 96..98
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 104..106
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 112..114
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 116..118
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 120..122
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 128..130
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 136..138
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 144..146
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 148..150
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 156..158
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 160..162
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 164..166
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 172..174
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 176..178
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 180..182
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 184..186

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 57.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 22 locations. Consider refactoring.
    Open

        visitArrayLiteralExpression(arrayLiteralExpression: ts.ArrayLiteralExpression, context: TransformVisitorContext): ts.VisitResult<ts.Node> {
            return context.visitEachChild(arrayLiteralExpression);
        }
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 76..78
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 80..82
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 84..86
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 88..90
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 92..94
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 96..98
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 104..106
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 112..114
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 116..118
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 120..122
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 128..130
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 136..138
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 144..146
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 152..154
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 156..158
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 160..162
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 164..166
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 172..174
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 176..178
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 180..182
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 184..186

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 57.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 22 locations. Consider refactoring.
    Open

        visitWhileStatement?(whileStatement: ts.WhileStatement, context: TransformVisitorContext): ts.VisitResult<ts.Node> {
            return context.visitEachChild(whileStatement);
        }
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 76..78
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 80..82
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 84..86
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 88..90
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 92..94
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 96..98
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 104..106
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 112..114
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 116..118
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 120..122
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 128..130
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 136..138
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 144..146
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 148..150
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 152..154
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 156..158
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 164..166
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 172..174
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 176..178
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 180..182
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 184..186

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 57.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 22 locations. Consider refactoring.
    Open

        visitContinueStatement?(continueStatement: ts.ContinueStatement, context: TransformVisitorContext): ts.VisitResult<ts.Node> {
            return context.visitEachChild(continueStatement);
        }
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 76..78
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 80..82
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 84..86
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 88..90
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 92..94
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 96..98
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 104..106
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 112..114
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 116..118
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 120..122
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 128..130
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 136..138
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 144..146
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 148..150
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 152..154
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 156..158
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 160..162
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 164..166
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 172..174
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 176..178
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 180..182

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 57.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 22 locations. Consider refactoring.
    Open

        visitMethodDeclaration(methodDeclaration: ts.MethodDeclaration, context: TransformVisitorContext): ts.VisitResult<ts.Node> {
            return context.visitEachChild(methodDeclaration);
        }
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 76..78
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 80..82
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 84..86
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 88..90
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 92..94
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 96..98
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 104..106
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 112..114
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 116..118
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 120..122
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 128..130
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 136..138
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 144..146
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 148..150
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 152..154
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 160..162
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 164..166
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 172..174
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 176..178
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 180..182
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 184..186

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 57.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 22 locations. Consider refactoring.
    Open

        visitAwaitExpression(awaitExpression: ts.AwaitExpression, context: TransformVisitorContext): ts.VisitResult<ts.Node> {
            return context.visitEachChild(awaitExpression);
        }
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 76..78
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 84..86
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 88..90
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 92..94
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 96..98
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 104..106
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 112..114
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 116..118
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 120..122
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 128..130
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 136..138
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 144..146
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 148..150
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 152..154
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 156..158
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 160..162
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 164..166
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 172..174
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 176..178
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 180..182
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 184..186

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 57.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 22 locations. Consider refactoring.
    Open

        visitVariableDeclaration(variableDeclaration: ts.VariableDeclaration, context: TransformVisitorContext): ts.VisitResult<ts.Node> {
            return context.visitEachChild(variableDeclaration);
        }
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 76..78
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 80..82
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 88..90
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 92..94
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 96..98
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 104..106
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 112..114
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 116..118
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 120..122
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 128..130
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 136..138
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 144..146
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 148..150
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 152..154
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 156..158
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 160..162
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 164..166
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 172..174
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 176..178
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 180..182
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 184..186

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 57.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 22 locations. Consider refactoring.
    Open

        visitConditionalExpression?(conditionalExpression: ts.ConditionalExpression, context: TransformVisitorContext): ts.VisitResult<ts.Node> {
            return context.visitEachChild(conditionalExpression);
        }
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 76..78
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 80..82
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 84..86
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 88..90
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 92..94
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 96..98
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 104..106
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 112..114
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 116..118
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 120..122
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 128..130
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 136..138
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 144..146
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 148..150
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 152..154
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 156..158
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 160..162
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 164..166
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 172..174
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 176..178
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 184..186

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 57.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 22 locations. Consider refactoring.
    Open

        visitForStatement(forStatement: ts.ForStatement, context: TransformVisitorContext): ts.VisitResult<ts.Node> {
            return context.visitEachChild(forStatement);
        }
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 76..78
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 80..82
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 84..86
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 88..90
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 92..94
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 96..98
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 104..106
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 116..118
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 120..122
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 128..130
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 136..138
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 144..146
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 148..150
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 152..154
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 156..158
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 160..162
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 164..166
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 172..174
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 176..178
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 180..182
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 184..186

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 57.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 22 locations. Consider refactoring.
    Open

        visitVariableDeclarationList(variableDeclarationList: ts.VariableDeclarationList, context: TransformVisitorContext): ts.VisitResult<ts.Node> {
            return context.visitEachChild(variableDeclarationList);
        }
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 76..78
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 80..82
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 84..86
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 92..94
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 96..98
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 104..106
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 112..114
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 116..118
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 120..122
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 128..130
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 136..138
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 144..146
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 148..150
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 152..154
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 156..158
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 160..162
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 164..166
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 172..174
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 176..178
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 180..182
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 184..186

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 57.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 22 locations. Consider refactoring.
    Open

        visitElementAccessExpression(elementAccessExpression: ts.ElementAccessExpression, context: TransformVisitorContext): ts.VisitResult<ts.Node> {
            return context.visitEachChild(elementAccessExpression);
        }
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 76..78
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 80..82
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 84..86
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 88..90
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 92..94
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 96..98
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 104..106
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 112..114
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 116..118
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 128..130
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 136..138
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 144..146
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 148..150
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 152..154
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 156..158
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 160..162
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 164..166
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 172..174
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 176..178
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 180..182
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 184..186

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 57.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 22 locations. Consider refactoring.
    Open

        visitPropertyAccessExpression(propertyAccessExpression: ts.PropertyAccessExpression, context: TransformVisitorContext): ts.VisitResult<ts.Node> {
            return context.visitEachChild(propertyAccessExpression);
        }
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 76..78
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 80..82
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 84..86
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 88..90
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 92..94
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 96..98
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 112..114
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 116..118
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 120..122
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 128..130
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 136..138
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 144..146
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 148..150
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 152..154
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 156..158
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 160..162
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 164..166
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 172..174
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 176..178
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 180..182
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 184..186

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 57.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 22 locations. Consider refactoring.
    Open

        visitVariableStatement(variableStatement: ts.VariableStatement, context: TransformVisitorContext): ts.VisitResult<ts.Node> {
            return context.visitEachChild(variableStatement);
        }
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 76..78
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 80..82
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 84..86
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 88..90
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 96..98
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 104..106
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 112..114
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 116..118
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 120..122
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 128..130
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 136..138
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 144..146
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 148..150
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 152..154
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 156..158
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 160..162
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 164..166
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 172..174
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 176..178
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 180..182
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 184..186

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 57.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 22 locations. Consider refactoring.
    Open

        visitConstructor?(constructor: ts.ConstructorDeclaration, context: TransformVisitorContext): ts.VisitResult<ts.Node> {
            return context.visitEachChild(constructor);
        }
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 76..78
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 80..82
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 84..86
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 88..90
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 92..94
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 96..98
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 104..106
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 112..114
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 116..118
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 120..122
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 128..130
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 136..138
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 148..150
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 152..154
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 156..158
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 160..162
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 164..166
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 172..174
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 176..178
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 180..182
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 184..186

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 57.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 22 locations. Consider refactoring.
    Open

        visitNewExpression(newExpression: ts.NewExpression, context: TransformVisitorContext): ts.VisitResult<ts.Node> {
            return context.visitEachChild(newExpression);
        }
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 76..78
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 80..82
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 84..86
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 88..90
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 92..94
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 104..106
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 112..114
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 116..118
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 120..122
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 128..130
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 136..138
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 144..146
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 148..150
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 152..154
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 156..158
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 160..162
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 164..166
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 172..174
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 176..178
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 180..182
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 184..186

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 57.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 22 locations. Consider refactoring.
    Open

        visitParenthesizedExpression(parenthesizedExpression: ts.ParenthesizedExpression, context: TransformVisitorContext): ts.VisitResult<ts.Node> {
            return context.visitEachChild(parenthesizedExpression);
        }
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 76..78
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 80..82
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 84..86
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 88..90
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 92..94
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 96..98
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 104..106
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 112..114
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 116..118
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 120..122
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 136..138
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 144..146
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 148..150
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 152..154
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 156..158
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 160..162
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 164..166
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 172..174
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 176..178
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 180..182
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 184..186

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 57.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 22 locations. Consider refactoring.
    Open

        visitPropertyDeclaration?(propertyDeclaration: ts.PropertyDeclaration, context: TransformVisitorContext): ts.VisitResult<ts.Node> {
            return context.visitEachChild(propertyDeclaration);
        }
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 76..78
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 80..82
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 84..86
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 88..90
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 92..94
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 96..98
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 104..106
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 112..114
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 116..118
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 120..122
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 128..130
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 144..146
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 148..150
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 152..154
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 156..158
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 160..162
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 164..166
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 172..174
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 176..178
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 180..182
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 184..186

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 57.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 22 locations. Consider refactoring.
    Open

        visitBreakStatement?(breakStatement: ts.BreakStatement, context: TransformVisitorContext): ts.VisitResult<ts.Node> {
            return context.visitEachChild(breakStatement);
        }
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 76..78
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 80..82
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 84..86
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 88..90
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 92..94
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 96..98
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 104..106
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 112..114
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 116..118
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 120..122
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 128..130
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 136..138
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 144..146
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 148..150
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 152..154
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 156..158
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 160..162
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 172..174
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 176..178
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 180..182
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 184..186

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 57.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 10 locations. Consider refactoring.
    Open

        visitSourceFile(sourceFile: ts.SourceFile, context: TransformVisitorContext): ts.SourceFile {
            return context.visitEachChild(sourceFile);
        }
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 15..17
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 23..25
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 27..29
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 35..37
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 39..41
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 47..49
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 51..53
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 60..62
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 64..66

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 47.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 10 locations. Consider refactoring.
    Open

        visitParameter(parameter: ts.ParameterDeclaration, context: TransformVisitorContext): ts.ParameterDeclaration {
            return context.visitEachChild(parameter);
        }
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 11..13
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 15..17
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 23..25
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 35..37
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 39..41
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 47..49
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 51..53
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 60..62
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 64..66

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 47.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 10 locations. Consider refactoring.
    Open

        visitExpressionStatement(expressionStatement: ts.ExpressionStatement, context: TransformVisitorContext): ts.ExpressionStatement {
            return context.visitEachChild(expressionStatement);
        }
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 11..13
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 15..17
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 23..25
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 27..29
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 35..37
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 47..49
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 51..53
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 60..62
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 64..66

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 47.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 10 locations. Consider refactoring.
    Open

        visitFunctionDeclaration(functionDeclaration: ts.FunctionDeclaration, context: TransformVisitorContext): ts.FunctionDeclaration {
            return context.visitEachChild(functionDeclaration);
        }
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 11..13
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 23..25
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 27..29
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 35..37
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 39..41
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 47..49
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 51..53
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 60..62
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 64..66

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 47.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 10 locations. Consider refactoring.
    Open

        visitIdentifier(identifier: ts.Identifier, context: TransformVisitorContext): ts.Identifier {
            return context.visitEachChild(identifier);
        }
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 11..13
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 15..17
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 27..29
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 35..37
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 39..41
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 47..49
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 51..53
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 60..62
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 64..66

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 47.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 10 locations. Consider refactoring.
    Open

        visitCallExpression(callExpression: ts.CallExpression, context: TransformVisitorContext): ts.CallExpression {
            return context.visitEachChild(callExpression);
        }
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 11..13
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 15..17
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 23..25
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 27..29
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 35..37
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 39..41
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 47..49
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 51..53
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 60..62

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 47.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 10 locations. Consider refactoring.
    Open

        visitIfStatement(ifStatement: ts.IfStatement, context: TransformVisitorContext): ts.IfStatement {
            return context.visitEachChild(ifStatement);
        }
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 11..13
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 15..17
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 23..25
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 27..29
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 35..37
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 39..41
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 51..53
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 60..62
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 64..66

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 47.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 10 locations. Consider refactoring.
    Open

        visitBlock(block: ts.Block, context: TransformVisitorContext): ts.Block {
            return context.visitEachChild(block);
        }
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 11..13
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 15..17
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 23..25
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 27..29
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 39..41
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 47..49
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 51..53
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 60..62
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 64..66

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 47.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 10 locations. Consider refactoring.
    Open

        visitReturnStatement(returnStatement: ts.ReturnStatement, context: TransformVisitorContext): ts.ReturnStatement {
            return context.visitEachChild(returnStatement);
        }
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 11..13
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 15..17
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 23..25
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 27..29
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 35..37
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 39..41
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 47..49
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 51..53
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 64..66

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 47.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 10 locations. Consider refactoring.
    Open

        visitBinaryExpression(binaryExpression: ts.BinaryExpression, context: TransformVisitorContext): ts.BinaryExpression {
            return context.visitEachChild(binaryExpression);
        }
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 11..13
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 15..17
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 23..25
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 27..29
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 35..37
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 39..41
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 47..49
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 60..62
    packages/compiler/src/transform/log-unknown-transform-visitor.ts on lines 64..66

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 47.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    There are no issues that match your filters.

    Category
    Status