lib/roo/excelx.rb

Summary

Maintainability
D
1 day
Test Coverage

Class Excelx has 41 methods (exceeds 20 allowed). Consider refactoring.
Open

  class Excelx < Roo::Base
    extend Roo::Tempdir
    extend Forwardable

    ERROR_VALUES = %w(#N/A #REF! #NAME? #DIV/0! #NULL! #VALUE! #NUM!).to_set
Severity: Minor
Found in lib/roo/excelx.rb - About 5 hrs to fix

    File excelx.rb has 294 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    require 'nokogiri'
    require 'zip/filesystem'
    require 'roo/link'
    require 'roo/tempdir'
    require 'roo/utils'
    Severity: Minor
    Found in lib/roo/excelx.rb - About 3 hrs to fix

      Method initialize has a Cognitive Complexity of 16 (exceeds 5 allowed). Consider refactoring.
      Open

          def initialize(filename_or_stream, options = {})
            packed = options[:packed]
            file_warning = options.fetch(:file_warning, :error)
            cell_max = options.delete(:cell_max)
            sheet_options = {}
      Severity: Minor
      Found in lib/roo/excelx.rb - About 2 hrs to fix

      Cognitive Complexity

      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

      A method's cognitive complexity is based on a few simple rules:

      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
      • Code is considered more complex for each "break in the linear flow of the code"
      • Code is considered more complex when "flow breaking structures are nested"

      Further reading

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

          def initialize(filename_or_stream, options = {})
            packed = options[:packed]
            file_warning = options.fetch(:file_warning, :error)
            cell_max = options.delete(:cell_max)
            sheet_options = {}
      Severity: Minor
      Found in lib/roo/excelx.rb - About 1 hr to fix

        Method process_zipfile_entries has 27 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            def process_zipfile_entries(entries)
              # NOTE: When Google or Numbers 3.1 exports to xlsx, the worksheet filenames
              #       are not in order. With Numbers 3.1, the first sheet is always
              #       sheet.xml, not sheet1.xml. With Google, the order of the worksheets is
              #       independent of a worksheet's filename (i.e. sheet6.xml can be the
        Severity: Minor
        Found in lib/roo/excelx.rb - About 1 hr to fix

          FIXME found
          Open

                    # FIXME: Ignore richData as parsing is not implemented yet and can cause
          Severity: Minor
          Found in lib/roo/excelx.rb by fixme

          FIXME found
          Open

                    # FIXME: Most of the time, The order of the comment files are the same
          Severity: Minor
          Found in lib/roo/excelx.rb by fixme

          FIXME found
          Open

                    # FIXME: Roo seems to use sheet[\d].xml.rels for hyperlinks only, but
          Severity: Minor
          Found in lib/roo/excelx.rb by fixme

          Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
          Open

          require 'forwardable'
          Severity: Minor
          Found in lib/roo/excelx.rb by rubocop

          Checks if uses of quotes match the configured preference.

          Example: EnforcedStyle: single_quotes (default)

          # bad
          "No special symbols"
          "No string interpolation"
          "Just text"
          
          # good
          'No special symbols'
          'No string interpolation'
          'Just text'
          "Wait! What's #{this}!"

          Example: EnforcedStyle: double_quotes

          # bad
          'Just some text'
          'No special chars or interpolation'
          
          # good
          "Just some text"
          "No special chars or interpolation"
          "Every string in #{project} uses double_quotes"

          Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
          Open

          require 'roo/tempdir'
          Severity: Minor
          Found in lib/roo/excelx.rb by rubocop

          Checks if uses of quotes match the configured preference.

          Example: EnforcedStyle: single_quotes (default)

          # bad
          "No special symbols"
          "No string interpolation"
          "Just text"
          
          # good
          'No special symbols'
          'No string interpolation'
          'Just text'
          "Wait! What's #{this}!"

          Example: EnforcedStyle: double_quotes

          # bad
          'Just some text'
          'No special chars or interpolation'
          
          # good
          "Just some text"
          "No special chars or interpolation"
          "Every string in #{project} uses double_quotes"

          Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
          Open

          require 'set'
          Severity: Minor
          Found in lib/roo/excelx.rb by rubocop

          Checks if uses of quotes match the configured preference.

          Example: EnforcedStyle: single_quotes (default)

          # bad
          "No special symbols"
          "No string interpolation"
          "Just text"
          
          # good
          'No special symbols'
          'No string interpolation'
          'Just text'
          "Wait! What's #{this}!"

          Example: EnforcedStyle: double_quotes

          # bad
          'Just some text'
          'No special chars or interpolation'
          
          # good
          "Just some text"
          "No special chars or interpolation"
          "Every string in #{project} uses double_quotes"

          Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
          Open

                fail ArgumentError 'missing required workbook file' if wb.nil?
          Severity: Minor
          Found in lib/roo/excelx.rb by rubocop

          Checks if uses of quotes match the configured preference.

          Example: EnforcedStyle: single_quotes (default)

          # bad
          "No special symbols"
          "No string interpolation"
          "Just text"
          
          # good
          'No special symbols'
          'No string interpolation'
          'Just text'
          "Wait! What's #{this}!"

          Example: EnforcedStyle: double_quotes

          # bad
          'Just some text'
          'No special chars or interpolation'
          
          # good
          "Just some text"
          "No special chars or interpolation"
          "Every string in #{project} uses double_quotes"

          Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
          Open

                fail ArgumentError 'missing required workbook file' if wb_rels.nil?
          Severity: Minor
          Found in lib/roo/excelx.rb by rubocop

          Checks if uses of quotes match the configured preference.

          Example: EnforcedStyle: single_quotes (default)

          # bad
          "No special symbols"
          "No string interpolation"
          "Just text"
          
          # good
          'No special symbols'
          'No string interpolation'
          'Just text'
          "Wait! What's #{this}!"

          Example: EnforcedStyle: double_quotes

          # bad
          'Just some text'
          'No special chars or interpolation'
          
          # good
          "Just some text"
          "No special chars or interpolation"
          "Every string in #{project} uses double_quotes"

          Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
          Open

                  file_type_check(filename_or_stream, %w[.xlsx .xlsm], 'an Excel 2007', file_warning, packed)
          Severity: Minor
          Found in lib/roo/excelx.rb by rubocop

          Checks if uses of quotes match the configured preference.

          Example: EnforcedStyle: single_quotes (default)

          # bad
          "No special symbols"
          "No string interpolation"
          "Just text"
          
          # good
          'No special symbols'
          'No string interpolation'
          'Just text'
          "Wait! What's #{this}!"

          Example: EnforcedStyle: double_quotes

          # bad
          'Just some text'
          'No special chars or interpolation'
          
          # good
          "Just some text"
          "No special chars or interpolation"
          "Every string in #{project} uses double_quotes"

          Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
          Open

                  hash[relationship['Id']] = relationship['Target']
          Severity: Minor
          Found in lib/roo/excelx.rb by rubocop

          Checks if uses of quotes match the configured preference.

          Example: EnforcedStyle: single_quotes (default)

          # bad
          "No special symbols"
          "No string interpolation"
          "Just text"
          
          # good
          'No special symbols'
          'No string interpolation'
          'Just text'
          "Wait! What's #{this}!"

          Example: EnforcedStyle: double_quotes

          # bad
          'Just some text'
          'No special chars or interpolation'
          
          # good
          "Just some text"
          "No special chars or interpolation"
          "Every string in #{project} uses double_quotes"

          Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
          Open

                  next if options[:only_visible_sheets] && sheet['state'] == 'hidden'
          Severity: Minor
          Found in lib/roo/excelx.rb by rubocop

          Checks if uses of quotes match the configured preference.

          Example: EnforcedStyle: single_quotes (default)

          # bad
          "No special symbols"
          "No string interpolation"
          "Just text"
          
          # good
          'No special symbols'
          'No string interpolation'
          'Just text'
          "Wait! What's #{this}!"

          Example: EnforcedStyle: double_quotes

          # bad
          'Just some text'
          'No special chars or interpolation'
          
          # good
          "Just some text"
          "No special chars or interpolation"
          "Every string in #{project} uses double_quotes"

          Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
          Open

              require 'roo/excelx/workbook'
          Severity: Minor
          Found in lib/roo/excelx.rb by rubocop

          Checks if uses of quotes match the configured preference.

          Example: EnforcedStyle: single_quotes (default)

          # bad
          "No special symbols"
          "No string interpolation"
          "Just text"
          
          # good
          'No special symbols'
          'No string interpolation'
          'Just text'
          "Wait! What's #{this}!"

          Example: EnforcedStyle: double_quotes

          # bad
          'Just some text'
          'No special chars or interpolation'
          
          # good
          "Just some text"
          "No special chars or interpolation"
          "Every string in #{project} uses double_quotes"

          Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
          Open

              require 'roo/excelx/sheet_doc'
          Severity: Minor
          Found in lib/roo/excelx.rb by rubocop

          Checks if uses of quotes match the configured preference.

          Example: EnforcedStyle: single_quotes (default)

          # bad
          "No special symbols"
          "No string interpolation"
          "Just text"
          
          # good
          'No special symbols'
          'No string interpolation'
          'Just text'
          "Wait! What's #{this}!"

          Example: EnforcedStyle: double_quotes

          # bad
          'Just some text'
          'No special chars or interpolation'
          
          # good
          "Just some text"
          "No special chars or interpolation"
          "Every string in #{project} uses double_quotes"

          Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
          Open

                  'http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet' # OOXML Strict
          Severity: Minor
          Found in lib/roo/excelx.rb by rubocop

          Checks if uses of quotes match the configured preference.

          Example: EnforcedStyle: single_quotes (default)

          # bad
          "No special symbols"
          "No string interpolation"
          "Just text"
          
          # good
          'No special symbols'
          'No string interpolation'
          'Just text'
          "Wait! What's #{this}!"

          Example: EnforcedStyle: double_quotes

          # bad
          'Just some text'
          'No special chars or interpolation'
          
          # good
          "Just some text"
          "No special chars or interpolation"
          "Every string in #{project} uses double_quotes"

          Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
          Open

          require 'nokogiri'
          Severity: Minor
          Found in lib/roo/excelx.rb by rubocop

          Checks if uses of quotes match the configured preference.

          Example: EnforcedStyle: single_quotes (default)

          # bad
          "No special symbols"
          "No string interpolation"
          "Just text"
          
          # good
          'No special symbols'
          'No string interpolation'
          'Just text'
          "Wait! What's #{this}!"

          Example: EnforcedStyle: double_quotes

          # bad
          'Just some text'
          'No special chars or interpolation'
          
          # good
          "Just some text"
          "No special chars or interpolation"
          "Every string in #{project} uses double_quotes"

          Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
          Open

          require 'roo/link'
          Severity: Minor
          Found in lib/roo/excelx.rb by rubocop

          Checks if uses of quotes match the configured preference.

          Example: EnforcedStyle: single_quotes (default)

          # bad
          "No special symbols"
          "No string interpolation"
          "Just text"
          
          # good
          'No special symbols'
          'No string interpolation'
          'Just text'
          "Wait! What's #{this}!"

          Example: EnforcedStyle: double_quotes

          # bad
          'Just some text'
          'No special chars or interpolation'
          
          # good
          "Just some text"
          "No special chars or interpolation"
          "Every string in #{project} uses double_quotes"

          Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
          Open

              require 'roo/excelx/comments'
          Severity: Minor
          Found in lib/roo/excelx.rb by rubocop

          Checks if uses of quotes match the configured preference.

          Example: EnforcedStyle: single_quotes (default)

          # bad
          "No special symbols"
          "No string interpolation"
          "Just text"
          
          # good
          'No special symbols'
          'No string interpolation'
          'Just text'
          "Wait! What's #{this}!"

          Example: EnforcedStyle: double_quotes

          # bad
          'Just some text'
          'No special chars or interpolation'
          
          # good
          "Just some text"
          "No special chars or interpolation"
          "Every string in #{project} uses double_quotes"

          Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
          Open

              require 'roo/excelx/coordinate'
          Severity: Minor
          Found in lib/roo/excelx.rb by rubocop

          Checks if uses of quotes match the configured preference.

          Example: EnforcedStyle: single_quotes (default)

          # bad
          "No special symbols"
          "No string interpolation"
          "Just text"
          
          # good
          'No special symbols'
          'No string interpolation'
          'Just text'
          "Wait! What's #{this}!"

          Example: EnforcedStyle: double_quotes

          # bad
          'Just some text'
          'No special chars or interpolation'
          
          # good
          "Just some text"
          "No special chars or interpolation"
          "Every string in #{project} uses double_quotes"

          Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
          Open

                workbook_doc.xpath('//sheet').map { |s| s['id'] }
          Severity: Minor
          Found in lib/roo/excelx.rb by rubocop

          Checks if uses of quotes match the configured preference.

          Example: EnforcedStyle: single_quotes (default)

          # bad
          "No special symbols"
          "No string interpolation"
          "Just text"
          
          # good
          'No special symbols'
          'No string interpolation'
          'Just text'
          "Wait! What's #{this}!"

          Example: EnforcedStyle: double_quotes

          # bad
          'Just some text'
          'No special chars or interpolation'
          
          # good
          "Just some text"
          "No special chars or interpolation"
          "Every string in #{project} uses double_quotes"

          Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
          Open

          require 'zip/filesystem'
          Severity: Minor
          Found in lib/roo/excelx.rb by rubocop

          Checks if uses of quotes match the configured preference.

          Example: EnforcedStyle: single_quotes (default)

          # bad
          "No special symbols"
          "No string interpolation"
          "Just text"
          
          # good
          'No special symbols'
          'No string interpolation'
          'Just text'
          "Wait! What's #{this}!"

          Example: EnforcedStyle: double_quotes

          # bad
          'Just some text'
          'No special chars or interpolation'
          
          # good
          "Just some text"
          "No special chars or interpolation"
          "Every string in #{project} uses double_quotes"

          Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
          Open

                  worksheet_types.include? relationship['Type']
          Severity: Minor
          Found in lib/roo/excelx.rb by rubocop

          Checks if uses of quotes match the configured preference.

          Example: EnforcedStyle: single_quotes (default)

          # bad
          "No special symbols"
          "No string interpolation"
          "Just text"
          
          # good
          'No special symbols'
          'No string interpolation'
          'Just text'
          "Wait! What's #{this}!"

          Example: EnforcedStyle: double_quotes

          # bad
          'Just some text'
          'No special chars or interpolation'
          
          # good
          "Just some text"
          "No special chars or interpolation"
          "Every string in #{project} uses double_quotes"

          Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
          Open

                  'http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet', # OOXML Transitional
          Severity: Minor
          Found in lib/roo/excelx.rb by rubocop

          Checks if uses of quotes match the configured preference.

          Example: EnforcedStyle: single_quotes (default)

          # bad
          "No special symbols"
          "No string interpolation"
          "Just text"
          
          # good
          'No special symbols'
          'No string interpolation'
          'Just text'
          "Wait! What's #{this}!"

          Example: EnforcedStyle: double_quotes

          # bad
          'Just some text'
          'No special chars or interpolation'
          
          # good
          "Just some text"
          "No special chars or interpolation"
          "Every string in #{project} uses double_quotes"

          Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
          Open

              require 'roo/excelx/images'
          Severity: Minor
          Found in lib/roo/excelx.rb by rubocop

          Checks if uses of quotes match the configured preference.

          Example: EnforcedStyle: single_quotes (default)

          # bad
          "No special symbols"
          "No string interpolation"
          "Just text"
          
          # good
          'No special symbols'
          'No string interpolation'
          'Just text'
          "Wait! What's #{this}!"

          Example: EnforcedStyle: double_quotes

          # bad
          'Just some text'
          'No special chars or interpolation'
          
          # good
          "Just some text"
          "No special chars or interpolation"
          "Every string in #{project} uses double_quotes"

          Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
          Open

                relationships = rels_doc.xpath('//Relationship').select do |relationship|
          Severity: Minor
          Found in lib/roo/excelx.rb by rubocop

          Checks if uses of quotes match the configured preference.

          Example: EnforcedStyle: single_quotes (default)

          # bad
          "No special symbols"
          "No string interpolation"
          "Just text"
          
          # good
          'No special symbols'
          'No string interpolation'
          'Just text'
          "Wait! What's #{this}!"

          Example: EnforcedStyle: double_quotes

          # bad
          'Just some text'
          'No special chars or interpolation'
          
          # good
          "Just some text"
          "No special chars or interpolation"
          "Every string in #{project} uses double_quotes"

          Missing magic comment # frozen_string_literal: true.
          Open

          require 'nokogiri'
          Severity: Minor
          Found in lib/roo/excelx.rb by rubocop

          This cop is designed to help upgrade to Ruby 3.0. It will add the comment # frozen_string_literal: true to the top of files to enable frozen string literals. Frozen string literals may be default in Ruby 3.0. The comment will be added below a shebang and encoding comment. The frozen string literal comment is only valid in Ruby 2.3+.

          Example: EnforcedStyle: when_needed (default)

          # The `when_needed` style will add the frozen string literal comment
          # to files only when the `TargetRubyVersion` is set to 2.3+.
          # bad
          module Foo
            # ...
          end
          
          # good
          # frozen_string_literal: true
          
          module Foo
            # ...
          end

          Example: EnforcedStyle: always

          # The `always` style will always add the frozen string literal comment
          # to a file, regardless of the Ruby version or if `freeze` or `<<` are
          # called on a string literal.
          # bad
          module Bar
            # ...
          end
          
          # good
          # frozen_string_literal: true
          
          module Bar
            # ...
          end

          Example: EnforcedStyle: never

          # The `never` will enforce that the frozen string literal comment does
          # not exist in a file.
          # bad
          # frozen_string_literal: true
          
          module Baz
            # ...
          end
          
          # good
          module Baz
            # ...
          end

          Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
          Open

              require 'roo/excelx/styles'
          Severity: Minor
          Found in lib/roo/excelx.rb by rubocop

          Checks if uses of quotes match the configured preference.

          Example: EnforcedStyle: single_quotes (default)

          # bad
          "No special symbols"
          "No string interpolation"
          "Just text"
          
          # good
          'No special symbols'
          'No string interpolation'
          'Just text'
          "Wait! What's #{this}!"

          Example: EnforcedStyle: double_quotes

          # bad
          'Just some text'
          'No special chars or interpolation'
          
          # good
          "Just some text"
          "No special chars or interpolation"
          "Every string in #{project} uses double_quotes"

          Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
          Open

              require 'roo/excelx/cell'
          Severity: Minor
          Found in lib/roo/excelx.rb by rubocop

          Checks if uses of quotes match the configured preference.

          Example: EnforcedStyle: single_quotes (default)

          # bad
          "No special symbols"
          "No string interpolation"
          "Just text"
          
          # good
          'No special symbols'
          'No string interpolation'
          'Just text'
          "Wait! What's #{this}!"

          Example: EnforcedStyle: double_quotes

          # bad
          'Just some text'
          'No special chars or interpolation'
          
          # good
          "Just some text"
          "No special chars or interpolation"
          "Every string in #{project} uses double_quotes"

          Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
          Open

              require 'roo/excelx/relationships'
          Severity: Minor
          Found in lib/roo/excelx.rb by rubocop

          Checks if uses of quotes match the configured preference.

          Example: EnforcedStyle: single_quotes (default)

          # bad
          "No special symbols"
          "No string interpolation"
          "Just text"
          
          # good
          'No special symbols'
          'No string interpolation'
          'Just text'
          "Wait! What's #{this}!"

          Example: EnforcedStyle: double_quotes

          # bad
          'Just some text'
          'No special chars or interpolation'
          
          # good
          "Just some text"
          "No special chars or interpolation"
          "Every string in #{project} uses double_quotes"

          Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
          Open

              require 'roo/excelx/format'
          Severity: Minor
          Found in lib/roo/excelx.rb by rubocop

          Checks if uses of quotes match the configured preference.

          Example: EnforcedStyle: single_quotes (default)

          # bad
          "No special symbols"
          "No string interpolation"
          "Just text"
          
          # good
          'No special symbols'
          'No string interpolation'
          'Just text'
          "Wait! What's #{this}!"

          Example: EnforcedStyle: double_quotes

          # bad
          'Just some text'
          'No special chars or interpolation'
          
          # good
          "Just some text"
          "No special chars or interpolation"
          "Every string in #{project} uses double_quotes"

          Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
          Open

                  sheet_name = sheet['name']
          Severity: Minor
          Found in lib/roo/excelx.rb by rubocop

          Checks if uses of quotes match the configured preference.

          Example: EnforcedStyle: single_quotes (default)

          # bad
          "No special symbols"
          "No string interpolation"
          "Just text"
          
          # good
          'No special symbols'
          'No string interpolation'
          'Just text'
          "Wait! What's #{this}!"

          Example: EnforcedStyle: double_quotes

          # bad
          'Just some text'
          'No special chars or interpolation'
          
          # good
          "Just some text"
          "No special chars or interpolation"
          "Every string in #{project} uses double_quotes"

          Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
          Open

              require 'roo/excelx/shared_strings'
          Severity: Minor
          Found in lib/roo/excelx.rb by rubocop

          Checks if uses of quotes match the configured preference.

          Example: EnforcedStyle: single_quotes (default)

          # bad
          "No special symbols"
          "No string interpolation"
          "Just text"
          
          # good
          'No special symbols'
          'No string interpolation'
          'Just text'
          "Wait! What's #{this}!"

          Example: EnforcedStyle: double_quotes

          # bad
          'Just some text'
          'No special chars or interpolation'
          
          # good
          "Just some text"
          "No special chars or interpolation"
          "Every string in #{project} uses double_quotes"

          Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
          Open

              require 'roo/excelx/sheet'
          Severity: Minor
          Found in lib/roo/excelx.rb by rubocop

          Checks if uses of quotes match the configured preference.

          Example: EnforcedStyle: single_quotes (default)

          # bad
          "No special symbols"
          "No string interpolation"
          "Just text"
          
          # good
          'No special symbols'
          'No string interpolation'
          'Just text'
          "Wait! What's #{this}!"

          Example: EnforcedStyle: double_quotes

          # bad
          'Just some text'
          'No special chars or interpolation'
          
          # good
          "Just some text"
          "No special chars or interpolation"
          "Every string in #{project} uses double_quotes"

          Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
          Open

                  next if options[:only_visible_sheets] && sheet['state'] == 'hidden'
          Severity: Minor
          Found in lib/roo/excelx.rb by rubocop

          Checks if uses of quotes match the configured preference.

          Example: EnforcedStyle: single_quotes (default)

          # bad
          "No special symbols"
          "No string interpolation"
          "Just text"
          
          # good
          'No special symbols'
          'No string interpolation'
          'Just text'
          "Wait! What's #{this}!"

          Example: EnforcedStyle: double_quotes

          # bad
          'Just some text'
          'No special chars or interpolation'
          
          # good
          "Just some text"
          "No special chars or interpolation"
          "Every string in #{project} uses double_quotes"

          Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
          Open

                workbook_doc.xpath('//sheet').map { |s| s['id'] }
          Severity: Minor
          Found in lib/roo/excelx.rb by rubocop

          Checks if uses of quotes match the configured preference.

          Example: EnforcedStyle: single_quotes (default)

          # bad
          "No special symbols"
          "No string interpolation"
          "Just text"
          
          # good
          'No special symbols'
          'No string interpolation'
          'Just text'
          "Wait! What's #{this}!"

          Example: EnforcedStyle: double_quotes

          # bad
          'Just some text'
          'No special chars or interpolation'
          
          # good
          "Just some text"
          "No special chars or interpolation"
          "Every string in #{project} uses double_quotes"

          Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
          Open

          require 'roo/utils'
          Severity: Minor
          Found in lib/roo/excelx.rb by rubocop

          Checks if uses of quotes match the configured preference.

          Example: EnforcedStyle: single_quotes (default)

          # bad
          "No special symbols"
          "No string interpolation"
          "Just text"
          
          # good
          'No special symbols'
          'No string interpolation'
          'Just text'
          "Wait! What's #{this}!"

          Example: EnforcedStyle: double_quotes

          # bad
          'Just some text'
          'No special chars or interpolation'
          
          # good
          "Just some text"
          "No special chars or interpolation"
          "Every string in #{project} uses double_quotes"

          Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
          Open

              require 'roo/excelx/shared'
          Severity: Minor
          Found in lib/roo/excelx.rb by rubocop

          Checks if uses of quotes match the configured preference.

          Example: EnforcedStyle: single_quotes (default)

          # bad
          "No special symbols"
          "No string interpolation"
          "Just text"
          
          # good
          'No special symbols'
          'No string interpolation'
          'Just text'
          "Wait! What's #{this}!"

          Example: EnforcedStyle: double_quotes

          # bad
          'Just some text'
          'No special chars or interpolation'
          
          # good
          "Just some text"
          "No special chars or interpolation"
          "Every string in #{project} uses double_quotes"

          Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
          Open

                  hash[relationship['Id']] = relationship['Target']
          Severity: Minor
          Found in lib/roo/excelx.rb by rubocop

          Checks if uses of quotes match the configured preference.

          Example: EnforcedStyle: single_quotes (default)

          # bad
          "No special symbols"
          "No string interpolation"
          "Just text"
          
          # good
          'No special symbols'
          'No string interpolation'
          'Just text'
          "Wait! What's #{this}!"

          Example: EnforcedStyle: double_quotes

          # bad
          'Just some text'
          'No special chars or interpolation'
          
          # good
          "Just some text"
          "No special chars or interpolation"
          "Every string in #{project} uses double_quotes"

          There are no issues that match your filters.

          Category
          Status