learningtapestry/lcms-engine

View on GitHub
lib/doc_template/document.rb

Summary

Maintainability
B
4 hrs
Test Coverage
F
59%

Avoid too many return statements within this method.
Open

      return false if g2_u6 && %w(6 11 12 13).include?(@opts[:metadata]['lesson'])
Severity: Major
Found in lib/doc_template/document.rb - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

          return false if g2_u10 && %w(11 13 5 12).include?(@opts[:metadata]['lesson'])
    Severity: Major
    Found in lib/doc_template/document.rb - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

            return false if g2_u11 && %w(14 12 7 13).include?(@opts[:metadata]['lesson'])
      Severity: Major
      Found in lib/doc_template/document.rb - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

              return false if g2_u5 && %w(5 10 11 12).include?(@opts[:metadata]['lesson'])
        Severity: Major
        Found in lib/doc_template/document.rb - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                return false if g2_u8 && %w(5 12 11 10).include?(@opts[:metadata]['lesson'])
          Severity: Major
          Found in lib/doc_template/document.rb - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                  return false if g2_u7 && %w(6 11 12 13).include?(@opts[:metadata]['lesson'])
            Severity: Major
            Found in lib/doc_template/document.rb - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                    return false if g2_u4 && %w(8 13 14 15).include?(@opts[:metadata]['lesson'])
              Severity: Major
              Found in lib/doc_template/document.rb - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

                      return false if g2_u9 && %w(15 14 13 6).include?(@opts[:metadata]['lesson'])
                Severity: Major
                Found in lib/doc_template/document.rb - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                        return false if g2_u12 && %w(12 13 6 11).include?(@opts[:metadata]['lesson'])
                  Severity: Major
                  Found in lib/doc_template/document.rb - About 30 mins to fix

                    There are no issues that match your filters.

                    Category
                    Status