Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lint a random file #3891

Merged
merged 1 commit into from
Oct 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 12 additions & 10 deletions apps/dashboard/config/initializers/browser.rb
Original file line number Diff line number Diff line change
@@ -1,21 +1,23 @@
# frozen_string_literal: true

Browser.modern_rules.clear
Browser.modern_rules.tap do |rules|
# original:
# original:
# rules << -> (b) { b.webkit? }
# rules << -> (b) { b.firefox? && b.version.to_i >= 17 }
# rules << -> (b) { b.ie? && b.version.to_i >= 9 && !b.compatibility_view? }
# rules << -> (b) { b.edge? && !b.compatibility_view? }
# rules << -> (b) { b.opera? && b.version.to_i >= 12 }
# rules << -> (b) { b.firefox? && b.device.tablet? && b.platform.android? && b.version.to_i >= 14 } # rubocop:disable Metrics/LineLength
# rules << -> (b) { b.firefox? && b.device.tablet? && b.platform.android? && b.version.to_i >= 14 }

# for now, explicitly specify chrome and safari versions but allow
# other webkit (i.e. mobile)
rules << -> (b) { b.ie? && b.version.to_i >= 11 && !b.compatibility_view? }
rules << -> (b) { b.chrome? && b.version.to_i >= 34 }
rules << -> (b) { b.safari? && b.version.to_i >= 8 }
rules << -> (b) { b.webkit? && !b.chrome? && !b.safari? }
rules << -> (b) { b.firefox? && b.version.to_i >= 19 }
rules << -> (b) { b.edge? && !b.compatibility_view? }
rules << -> (b) { b.opera? && b.version.to_i >= 12 }
rules << -> (b) { b.firefox? && b.device.tablet? && b.platform.android? && b.version.to_i >= 14 } # rubocop:disable Metrics/LineLength
rules << ->(b) { b.ie? && b.version.to_i >= 11 && !b.compatibility_view? }
rules << ->(b) { b.chrome? && b.version.to_i >= 34 }
rules << ->(b) { b.safari? && b.version.to_i >= 8 }
rules << ->(b) { b.webkit? && !b.chrome? && !b.safari? }
rules << ->(b) { b.firefox? && b.version.to_i >= 19 }
rules << ->(b) { b.edge? && !b.compatibility_view? }
rules << ->(b) { b.opera? && b.version.to_i >= 12 }
rules << ->(b) { b.firefox? && b.device.tablet? && b.platform.android? && b.version.to_i >= 14 }
end
Loading