Files
ubicloud/model/load_balancer_vm_port.rb
Enes Cakir 292973d9ac Update rubocop and standard versions
rubocop-erb extension supports plugin, specify `plugins: rubocop-erb` instead of `require: rubocop-erb` in /Users/enescakir/dev/ubicloud/ubicloud/.rubocop.yml.
    For more information, see https://docs.rubocop.org/rubocop/plugin_migration_guide.html.

    Offenses:

    lib/invoice_generator.rb:59:25: C: [Correctable] Style/RedundantParentheses: Don't use parentheses around a logical expression.
              vat_info = if ((tax_id = project_content[:billing_info]["tax_id"]) && !tax_id.empty?) && country.alpha2 != "NL"
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    model/load_balancer_vm_port.rb:64:54: C: [Correctable] Style/RedundantParentheses: Don't use parentheses around a logical expression.
        if state == "up" && pulse[:reading] == "down" && (pulse[:reading_rpt] > load_balancer.health_check_down_threshold && time_passed_health_check_interval) && !load_balancer.reload.update_load_balancer_set?
                                                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    model/load_balancer_vm_port.rb:69:54: C: [Correctable] Style/RedundantParentheses: Don't use parentheses around a logical expression.
        if state == "down" && pulse[:reading] == "up" && (pulse[:reading_rpt] > load_balancer.health_check_up_threshold && time_passed_health_check_interval) && !load_balancer.reload.update_load_balancer_set?
                                                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    prog/vnet/update_firewall_rules.rb:224:9: C: [Correctable] Style/RedundantParentheses: Don't use parentheses around a logical expression.
            (ip4_rules.none? { |r| ...
            ^^^^^^^^^^^^^^^^^^^^^^

    986 files inspected, 4 offenses detected, 4 offenses autocorrectable
2025-04-18 14:49:00 -07:00

3.5 KiB