Skip to content

Filter by Geo spatial rectangle #58

Filter by Geo spatial rectangle

Filter by Geo spatial rectangle #58

GitHub Actions / rubocop failed Jan 16, 2024 in 1s

reviewdog [rubocop] report

reported by reviewdog 🐶

Findings (2)

lib/solr/query/request/geofilt.rb|10 col 121| Layout/LineLength: Line is too long. [122/120]
spec/query/request/filter_spec.rb|29 col 121| Layout/LineLength: Line is too long. [224/120]

Filtered Findings (0)

Annotations

Check failure on line 10 in lib/solr/query/request/geofilt.rb

See this annotation in the file changed.

@github-actions github-actions / rubocop

[rubocop] lib/solr/query/request/geofilt.rb#L10

Layout/LineLength: Line is too long. [122/120]
Raw output
lib/solr/query/request/geofilt.rb:10:121: C: Layout/LineLength: Line is too long. [122/120]
          raise ArgumentError, 'spatial_point must be a Solr::SpatialPoint' unless spatial_point.is_a?(Solr::SpatialPoint)
                                                                                                                        ^^

Check failure on line 29 in spec/query/request/filter_spec.rb

See this annotation in the file changed.

@github-actions github-actions / rubocop

[rubocop] spec/query/request/filter_spec.rb#L29

Layout/LineLength: Line is too long. [224/120]
Raw output
spec/query/request/filter_spec.rb:29:121: C: Layout/LineLength: Line is too long. [224/120]
      subject { described_class.new(type: :equal, field: :field, value: Solr::SpatialRectangle.new(upper_right: Solr::SpatialPoint.new(lat: 1.0, lng: 2.0), lower_left: Solr::SpatialPoint.new(lat: 3.0, lng: 4.0))).to_solr_s }
                                                                                                                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^