Arie/serveme

View on GitHub
app/services/rcon_autocomplete.rb

Summary

Maintainability
C
7 hrs
Test Coverage

Method league_configs has 72 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  def self.league_configs
    %w[
      etf2l
      etf2l_6v6
      etf2l_6v6_5cp
Severity: Major
Found in app/services/rcon_autocomplete.rb - About 2 hrs to fix

    Method commands_to_suggest has 60 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      def self.commands_to_suggest
        [
          { command: 'ban', description: 'Ban a player' },
          { command: 'banid', description: 'Ban a player by ID' },
          { command: 'banip', description: 'Ban an IP address' },
    Severity: Major
    Found in app/services/rcon_autocomplete.rb - About 2 hrs to fix

      File rcon_autocomplete.rb has 259 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      class RconAutocomplete
        attr_accessor :query, :reservation
      
        def initialize(reservation = nil)
          @reservation = reservation
      Severity: Minor
      Found in app/services/rcon_autocomplete.rb - About 2 hrs to fix

        There are no issues that match your filters.

        Category
        Status