opal/corelib/regexp.rb

Summary

Maintainability
A
3 hrs
Test Coverage

Method union has 37 lines of code (exceeds 30 allowed). Consider refactoring.
Open

    def union(*parts)
      %x{
        var is_first_part_array, quoted_validated, part, options, each_part_options;
        if (parts.length == 0) {
          return /(?!)/;
Severity: Minor
Found in opal/corelib/regexp.rb - About 1 hr to fix

    Method match has 36 lines of code (exceeds 30 allowed). Consider refactoring.
    Open

      def match(string, pos = undefined, &block)
        %x{
          if (self.uninitialized) {
            #{::Kernel.raise ::TypeError, 'uninitialized Regexp'}
          }
    Severity: Minor
    Found in opal/corelib/regexp.rb - About 1 hr to fix

      Method inspect has 33 lines of code (exceeds 30 allowed). Consider refactoring.
      Open

        def inspect
          # Use a regexp to extract the regular expression and the optional mode modifiers from the string.
          # In the regular expression, escape any front slash (not already escaped) with a backslash.
          %x{
            var regexp_format = /^\/(.*)\/([^\/]*)$/;
      Severity: Minor
      Found in opal/corelib/regexp.rb - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status