Skip to content
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
6 changes: 4 additions & 2 deletions rakelib/lex.rake
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# frozen_string_literal: true
# typed: ignore

require "ripper"

module Prism
# This class is responsible for lexing files with both prism and
# ripper and ensuring they match up. It keeps track of the files which
Expand Down Expand Up @@ -150,6 +148,7 @@ TARGETS.each do |name, target|
task "lex:#{name}" => [dirpath, :compile] do
$:.unshift(File.expand_path("../lib", __dir__))
require "prism"
require "ripper"

plain_text = ENV.fetch("CI", false)
warn_failing = ENV.fetch("VERBOSE", false)
Expand Down Expand Up @@ -192,6 +191,7 @@ desc "Lex files and compare with lex_compat"
task lex: :compile do
$:.unshift(File.expand_path("../lib", __dir__))
require "prism"
require "ripper"

plain_text = ENV.fetch("CI", false)
warn_failing = ENV.fetch("VERBOSE", false)
Expand Down Expand Up @@ -225,6 +225,7 @@ task "lex:rubygems": [:compile, "tmp/failing"] do
require "rubygems/package"
require "tmpdir"
require "prism"
require "ripper"

items = []
Gem::SpecFetcher.new.available_specs(:latest).first.each do |source, gems|
Expand Down Expand Up @@ -366,6 +367,7 @@ task "lex:topgems": ["download:topgems", :compile] do
require "rubygems/package"
require "tmpdir"
require "prism"
require "ripper"

gem_names = YAML.safe_load_file(TOP_100_GEM_FILENAME)
failing_files = {}
Expand Down