cofiem/clearly-query

View on GitHub
lib/clearly/query/compose/custom.rb

Summary

Maintainability
A
2 hrs
Test Coverage

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

      class Custom
        include Clearly::Query::Compose::Comparison
        include Clearly::Query::Compose::Core
        include Clearly::Query::Compose::Range
        include Clearly::Query::Compose::Subset
Severity: Minor
Found in lib/clearly/query/compose/custom.rb - About 2 hrs to fix

    Extra empty line detected at module body beginning.
    Open

    
          # Public class for creating custom queries.
    Severity: Minor
    Found in lib/clearly/query/compose/custom.rb by rubocop

    This cops checks if empty lines around the bodies of modules match the configuration.

    Example: EnforcedStyle: empty_lines

    # good
    
    module Foo
    
      def bar
        # ...
      end
    
    end

    Example: EnforcedStyle: emptylinesexcept_namespace

    # good
    
    module Foo
      module Bar
    
        # ...
    
      end
    end

    Example: EnforcedStyle: emptylinesspecial

    # good
    module Foo
    
      def bar; end
    
    end

    Example: EnforcedStyle: noemptylines (default)

    # good
    
    module Foo
      def bar
        # ...
      end
    end

    Extra empty line detected at class body end.
    Open

    
          end
    Severity: Minor
    Found in lib/clearly/query/compose/custom.rb by rubocop

    This cops checks if empty lines around the bodies of classes match the configuration.

    Example: EnforcedStyle: empty_lines

    # good
    
    class Foo
    
      def bar
        # ...
      end
    
    end

    Example: EnforcedStyle: emptylinesexcept_namespace

    # good
    
    class Foo
      class Bar
    
        # ...
    
      end
    end

    Example: EnforcedStyle: emptylinesspecial

    # good
    class Foo
    
      def bar; end
    
    end

    Example: EnforcedStyle: noemptylines (default)

    # good
    
    class Foo
      def bar
        # ...
      end
    end

    There are no issues that match your filters.

    Category
    Status