engura/himawari

View on GitHub

Showing 1 of 2 total issues

Consider simplifying this complex logical expression.
Open

      unless %i[full top mid low].include?(focus) && %i[live day].include?(mode) &&
             [2, 4, 8, 16, 20].include?(resolution) && blacklist_wifi.is_a?(Array) &&
             (!destination_path || (destination_path && File.directory?(destination_path) && destination_path != '/'))
        puts 'Invalid params. Please double check them.'
        return false
Severity: Critical
Found in lib/himawari/base.rb - About 1 hr to fix
    Severity
    Category
    Status
    Source
    Language