Brunomm/br_boleto

View on GitHub

Showing 55 of 92 total issues

Class Sicredi has 23 methods (exceeds 20 allowed). Consider refactoring.
Open

        class Sicredi < BrBoleto::Conta::Base

            # MODALIDADE CARTEIRA:
            #      _______________________________________________
            #     | Carteira | Descrição                         |
Severity: Minor
Found in lib/br_boleto/conta/sicredi.rb - About 2 hrs to fix

    Method equivalent_codigo_movimento_retorno_240 has 61 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

                    def equivalent_codigo_movimento_retorno_240
                        super.merge(
                            #  Padrão    Código para  
                            {# do Banco    a GEM
                                '08'   =>   '101',  # LIQUIDAÇÃO EM CARTÓRIO
    Severity: Major
    Found in lib/br_boleto/conta/itau.rb - About 2 hrs to fix

      Class BancoBrasil has 22 methods (exceeds 20 allowed). Consider refactoring.
      Open

              class BancoBrasil < BrBoleto::Conta::Base
      
                  # MODALIDADE CARTEIRA:
                  #      _________________________________________________________________
                  #     | Carteira  | Descrição                                          |
      Severity: Minor
      Found in lib/br_boleto/conta/banco_brasil.rb - About 2 hrs to fix

        Class Bradesco has 22 methods (exceeds 20 allowed). Consider refactoring.
        Open

                class Bradesco < BrBoleto::Conta::Base
        
                    # MODALIDADE CARTEIRA:
                    #      _______________________________________________
                    #     | Carteira | Descrição                         |
        Severity: Minor
        Found in lib/br_boleto/conta/bradesco.rb - About 2 hrs to fix

          File bradesco.rb has 260 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          module BrBoleto
              module Conta
                  class Bradesco < BrBoleto::Conta::Base
          
                      # MODALIDADE CARTEIRA:
          Severity: Minor
          Found in lib/br_boleto/conta/bradesco.rb - About 2 hrs to fix

            File santander.rb has 260 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            module BrBoleto
                module Conta
                    class Santander < BrBoleto::Conta::Base
            
                        # MODALIDADE CARTEIRA:
            Severity: Minor
            Found in lib/br_boleto/conta/santander.rb - About 2 hrs to fix

              Class Sicredi has 21 methods (exceeds 20 allowed). Consider refactoring.
              Open

                          class Sicredi < BrBoleto::Remessa::Cnab240::Base
                              def conta_class
                                  BrBoleto::Conta::Sicredi
                              end
              
              
              Severity: Minor
              Found in lib/br_boleto/remessa/cnab240/sicredi.rb - About 2 hrs to fix

                Method equivalent_codigo_motivo_ocorrencia_A_240 has 49 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                                def equivalent_codigo_motivo_ocorrencia_A_240 codigo_movimento_gem
                                    case codigo_movimento_gem
                                    when '03'
                                        super.merge(
                                            #  Padrão    Código para  
                Severity: Minor
                Found in lib/br_boleto/conta/itau.rb - About 1 hr to fix

                  Method equivalent_codigo_motivo_ocorrencia_A_400 has 48 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                                  def equivalent_codigo_motivo_ocorrencia_A_400 codigo_movimento_gem
                                      super.merge(
                                          #  Padrão    Código para
                                          {# do Banco    a GEM
                                              '01'   =>   'A01',     # Código do banco inválido
                  Severity: Minor
                  Found in lib/br_boleto/conta/sicredi.rb - About 1 hr to fix

                    Method equivalent_codigo_movimento_remessa_240 has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                                    def equivalent_codigo_movimento_remessa_240
                                        #  Padrão    Código para    Descrição 
                                        {# da GEM     o Banco
                                            '01'   =>   '01' ,     # Entrada de Títulos
                                            '02'   =>   '02' ,     # Pedido de Baixa
                    Severity: Minor
                    Found in lib/br_boleto/helper/default_codes.rb - About 1 hr to fix

                      Method monta_segmento_p has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                                          def monta_segmento_p(pagamento, nr_lote, sequencial)
                                              # campos com * na frente nao foram implementados
                                              #                                                      # DESCRICAO                             TAMANHO
                                              segmento_p =  ''
                                              segmento_p <<  segmento_p_posicao_001_a_003             # codigo banco                          3
                      Severity: Minor
                      Found in lib/br_boleto/remessa/cnab240/helper/segmento_p.rb - About 1 hr to fix

                        Method equivalent_codigo_motivo_ocorrencia_A_240 has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                        def equivalent_codigo_motivo_ocorrencia_A_240 codigo_movimento_gem
                                            super.merge(
                                            #  Padrão    Código para  
                                            {# do Banco    a GEM
                                                '11'   =>   'A115', # Data de Geração Inválida 
                        Severity: Minor
                        Found in lib/br_boleto/conta/caixa.rb - About 1 hr to fix

                          Method equivalent_especie_titulo_240 has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                          def equivalent_especie_titulo_240
                                              super.merge(
                                                  #  Padrão    Código para
                                                  {# da GEM     o Banco
                                                      '01'  => '99',  # CH   –  Cheque
                          Severity: Minor
                          Found in lib/br_boleto/conta/sicredi.rb - About 1 hr to fix

                            Method equivalent_codigo_ocorrencia_pagador_240 has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                            def equivalent_codigo_ocorrencia_pagador_240
                                                super.merge(
                                                    #  Padrão    Código para  
                                                    {# do Banco    a GEM
                                                        '1313' => '0302',  # SOLICITA A PRORROGAÇÃO DO VENCIMENTO PARA:
                            Severity: Minor
                            Found in lib/br_boleto/conta/itau.rb - About 1 hr to fix

                              Method equivalent_especie_titulo_240 has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                              def equivalent_especie_titulo_240
                                                  {
                                                      '01'  => '01',  # CH   –  Cheque
                                                      '02'  => '02',  # DM   –  Duplicata Mercantil
                                                      '03'  => '03',  # DMI  –  Duplicata Mercantil p/ Indicação
                              Severity: Minor
                              Found in lib/br_boleto/helper/default_codes.rb - About 1 hr to fix

                                Method detalhe_fields has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                                def detalhe_fields #:doc:
                                                    { #    ATRIBUTO               POSIÇÃO DA LINHA
                                
                                                        sacado_documento:              4..17,
                                                        carteira:                      23..24,
                                Severity: Minor
                                Found in lib/br_boleto/retorno/cnab400/bradesco.rb - About 1 hr to fix

                                  Method detalhe_fields has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                                  def detalhe_fields #:doc:
                                                      { #    ATRIBUTO                             POSIÇÃO DA LINHA
                                  
                                                          sacado_documento:                             4..17,
                                                          agencia_sem_dv:                               18..21,
                                  Severity: Minor
                                  Found in lib/br_boleto/retorno/cnab400/itau.rb - About 1 hr to fix

                                    Method detalhe_fields has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                                    def detalhe_fields #:doc:
                                                        { #    ATRIBUTO                 POSIÇÃO DA LINHA
                                    
                                                            agencia_sem_dv:                18..21,
                                                            agencia_com_dv:                18..22,
                                    Severity: Minor
                                    Found in lib/br_boleto/retorno/cnab400/banco_brasil.rb - About 1 hr to fix

                                      Method detalhe_fields has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                                      def detalhe_fields #:doc:
                                                          { #    ATRIBUTO                             POSIÇÃO DA LINHA
                                      
                                                              sacado_documento:                             4..17,
                                                              agencia_sem_dv:                               18..21,
                                      Severity: Minor
                                      Found in lib/br_boleto/retorno/cnab400/santander.rb - About 1 hr to fix

                                        Method detalhe_fields has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                                        def detalhe_fields #:doc:
                                                            { #    ATRIBUTO               POSIÇÃO DA LINHA
                                                                agencia_sem_dv:                18..21,
                                                                agencia_com_dv:                18..22,
                                                                numero_conta_sem_dv:           23..30,
                                        Severity: Minor
                                        Found in lib/br_boleto/retorno/cnab400/sicoob.rb - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language