HabitatMap/AirCasting

View on GitHub
app/repositories/sessions_repository.rb

Summary

Maintainability
A
1 hr
Test Coverage

Method fixed_active_government_sessions has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  def fixed_active_government_sessions(sensor_name:, west:, east:, north:, south:)
    sensor_name = ActiveRecord::Base.connection.quote(sensor_name)

    sql = <<-SQL
      WITH recent_sessions AS (
Severity: Minor
Found in app/repositories/sessions_repository.rb - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status