| # frozen_string_literal: true | |
| target :lib do | |
| signature 'sig', '.gem_rbs_collection/rubyzip' # Signature directory | |
| check 'lib' # Directory name | |
| # Total amount of errors ignore 64 in 29 files | |
| ignore( | |
| # Ignore all hand-written files in the bidi directory while we update the implementation | |
| 'lib/selenium/webdriver/bidi/network/**/*.rb', | |
| 'lib/selenium/webdriver/bidi/browser.rb', | |
| 'lib/selenium/webdriver/bidi/browsing_context.rb', | |
| 'lib/selenium/webdriver/bidi/log_handler.rb', | |
| 'lib/selenium/webdriver/bidi/network.rb', | |
| 'lib/selenium/webdriver/bidi/session.rb', | |
| 'lib/selenium/webdriver/bidi/struct.rb', | |
| # The generator + its up-to-date checker are build tooling, not typed runtime code | |
| 'lib/selenium/webdriver/bidi/support/**/*.rb', | |
| # Local development tooling; the Gem::BasicSpecification RBS lacks version and full_gem_path | |
| 'lib/selenium/webdriver/local_dev.rb', | |
| # Ignore all spec files | |
| 'spec/**/*.rb', | |
| # Ignore line 166 due to UDP RBS issue | |
| 'lib/selenium/webdriver/common/platform.rb', | |
| # Ignore due to webmock gem not having RBS signatures | |
| 'lib/selenium/webdriver/remote/http/curb.rb', | |
| # Ignore due to line 71, there is one last error where RBS thinks backtrace is nil | |
| 'lib/selenium/webdriver/remote/response.rb', | |
| # Ignore due to Errno::EACCES error | |
| 'lib/selenium/webdriver/support/color.rb', | |
| 'lib/selenium/webdriver/common/port_prober.rb', | |
| # Ignore due to error overloading | |
| 'lib/selenium/webdriver/common/socket_poller.rb', | |
| # Ignore due to Parser on line 611 | |
| 'lib/selenium/webdriver/remote/bridge.rb', | |
| # Ignore due to error on line 101 with block | |
| 'lib/selenium/webdriver/devtools/network_interceptor.rb', | |
| # Ignore due to error on line 21 with overloading issues | |
| 'lib/selenium/webdriver/common/virtual_authenticator/credential.rb', | |
| # Ignore due to error with the Zipper RBS | |
| 'lib/selenium/webdriver/common/zipper.rb', | |
| # Ignore due to error on line 117 with the debug? method | |
| 'lib/selenium/webdriver/common/selenium_manager.rb', | |
| # Ignore due to line 230 with the overloading issues | |
| 'lib/selenium/webdriver/common/action_builder.rb', | |
| # Ignore due to CAPABILITIES not able to be found on line 55 | |
| 'lib/selenium/webdriver/common/options.rb', | |
| # Ignore due to strftime error in RBS on line 188 | |
| 'lib/selenium/webdriver/common/logger.rb', | |
| # Ignore due to error with Process | |
| 'lib/selenium/webdriver/common/child_process.rb', | |
| # Ignore due to Net::HTTP not being found on line 49 | |
| 'lib/selenium/webdriver/chromium/driver.rb', | |
| # Ignore due to positional argument error with TCPServer rescue on line 69 | |
| 'lib/selenium/webdriver/common/socket_lock.rb', | |
| # Ignore due to is_a? bot error on line 70 | |
| 'lib/selenium/webdriver/remote/driver.rb', | |
| # Ignore due to line 118 causing an error with URI & Net::HTTP | |
| 'lib/selenium/server.rb', | |
| # Ignore due to overloading issue on line 84 | |
| 'lib/selenium/webdriver/chromium/features.rb', | |
| # Ignore due to line 59 with the same URI & Net::HTTP issue | |
| 'lib/selenium/webdriver/firefox/driver.rb', | |
| # Ignore due to line 89 with overloading issue | |
| 'lib/selenium/webdriver.rb', | |
| # Ignore due to line 37 with overloading issue | |
| 'lib/selenium/webdriver/common/interactions/wheel_input.rb', | |
| # Cannot override last error on line 71 | |
| 'lib/selenium/webdriver/common/wait.rb', | |
| # Kwargs issue on line 74 | |
| 'lib/selenium/webdriver/common/driver.rb', | |
| # Ignore due to Regexp.last_match(1) possibly returning nil on lines 57-59 | |
| 'lib/selenium/webdriver/firefox/profiles_ini.rb', | |
| # Ignored due to error on line 100 of response being nillable | |
| 'lib/selenium/webdriver/remote/http/default.rb', | |
| # Ignore due to Hash.new block type inference issues | |
| 'lib/selenium/webdriver/common/file_reaper.rb', | |
| # Ignore due to complex nil handling with && operator | |
| 'lib/selenium/webdriver/common/manager.rb', | |
| # Ignore due to def_delegators not being understood by Steep | |
| 'lib/selenium/webdriver/common/network.rb' | |
| ) | |
| # Standard libraries used in the project | |
| library( | |
| 'base64', | |
| 'date', | |
| 'erb', | |
| 'find', | |
| 'forwardable', | |
| 'ipaddr', | |
| 'net-http', | |
| 'openssl', | |
| 'tmpdir', | |
| 'securerandom', | |
| 'uri', | |
| 'zlib' | |
| ) | |
| end |