module Analyzer::Python::Helper

Overview

Shared path helpers for the Python framework analyzers. Kept framework-agnostic so each analyzer can opt in without duplicating the slash-collapse / leading-slash conventions.

Extended Modules

Defined in:

analyzer/analyzers/python/python_helper.cr

Instance Method Summary

Instance Method Detail

def join_paths(prefix : String, path : String) : String #

[View source]
def normalize_path(path : String) : String #

Collapse repeated slashes and ensure a single leading slash.


[View source]