luke-j/switch

View on GitHub
src/syntax/ApacheSyntax.js

Summary

Maintainability
F
3 days
Test Coverage

File ApacheSyntax.js has 620 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/**
 * @license
 *
 * Copyright 2016- Luke Jones (https://github.com/luke-j)
 *
Severity: Major
Found in src/syntax/ApacheSyntax.js - About 1 day to fix

    Function fastcgi has 103 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        fastcgi() {
            const expression = {
                expressions: []
            };
    
    
    Severity: Major
    Found in src/syntax/ApacheSyntax.js - About 4 hrs to fix

      Function proxy has 68 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          proxy() {
              const expression = {
                  expressions: []
              };
      
      
      Severity: Major
      Found in src/syntax/ApacheSyntax.js - About 2 hrs to fix

        Function auth has 52 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            auth() {
                const expression = {
                    expressions: []
                };
        
        
        Severity: Major
        Found in src/syntax/ApacheSyntax.js - About 2 hrs to fix

          Function headers has 46 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              headers() {
                  const expression = {
                      expressions: []
                  };
          
          
          Severity: Minor
          Found in src/syntax/ApacheSyntax.js - About 1 hr to fix

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

                caching() {
                    const expression = {
                        expressions: []
                    };
            
            
            Severity: Minor
            Found in src/syntax/ApacheSyntax.js - About 1 hr to fix

              Function compress has 42 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  compress() {
                      const expression = {
                          expressions: []
                      };
              
              
              Severity: Minor
              Found in src/syntax/ApacheSyntax.js - About 1 hr to fix

                Function ssl has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    ssl() {
                        const expression = {
                            expressions: []
                        };
                
                
                Severity: Minor
                Found in src/syntax/ApacheSyntax.js - About 1 hr to fix

                  Function listDirectories has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      listDirectories() {
                          return {
                              expressions: [
                                  {
                                      type: 'LocationBlock',
                  Severity: Minor
                  Found in src/syntax/ApacheSyntax.js - About 1 hr to fix

                    Function redirect has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        redirect() {
                            const expression = {
                                expressions: []
                            };
                    
                    
                    Severity: Minor
                    Found in src/syntax/ApacheSyntax.js - About 1 hr to fix

                      There are no issues that match your filters.

                      Category
                      Status