Sha256: 8be321074891d7f6e8f91e363e9c60b5eda9a5ffc92558260ff0b6dc9b81ed8f
Contents?: true
Size: 1.3 KB
Versions: 1
Compression:
Stored size: 1.3 KB
Contents
require "fileutils" D = Steep::Diagnostic FileUtils.mkpath("tmp") tmp_rbs_dir = Pathname("tmp/rbs-sig") definition = Bundler::Definition.build(Pathname("Gemfile"), Pathname("Gemfile.lock"), nil) rbs_dep = definition.dependencies.find {|dep| dep.name == "rbs" } if (source = rbs_dep&.source).is_a?(Bundler::Source::Path) unless tmp_rbs_dir.directory? FileUtils.ln_s(Pathname.pwd + source.path + "sig", tmp_rbs_dir.to_s, force: true) end else FileUtils.rm_f(tmp_rbs_dir) library "rbs" end target :app do collection_config "rbs_collection.steep.yaml" check "lib" ignore "lib/steep/shims" signature "sig" ignore_signature "sig/test" implicitly_returns_nil! configure_code_diagnostics(D::Ruby.strict) do |hash| end if tmp_rbs_dir.directory? signature tmp_rbs_dir.to_s else library "rbs" end end target :test do collection_config "rbs_collection.steep.yaml" unreferenced! implicitly_returns_nil! check "test" signature "sig/test" configure_code_diagnostics(D::Ruby.lenient) if tmp_rbs_dir.directory? signature tmp_rbs_dir.to_s else library "rbs" end end target :bin do unreferenced! implicitly_returns_nil! collection_config "rbs_collection.steep.yaml" check "bin/generate-diagnostics-docs.rb" signature "tmp/rbs-inline/bin" library "rbs" end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
steep-1.9.3 | Steepfile |