PropWise.Config (PropWise v0.3.2)

View Source

Handles configuration loading from .propwise.exs file.

Security note: Configuration is loaded via Code.eval_file/1, which executes arbitrary Elixir code. Only analyze projects you trust, or review the .propwise.exs file before running PropWise on untrusted codebases.

Summary

Functions

Returns the paths to analyze for a given project.

Returns the property-based testing library to use for suggestions. Supported values: :stream_data, :proper

Loads configuration from .propwise.exs in the project root. Falls back to default configuration if file doesn't exist.

Functions

analyze_paths(project_path)

@spec analyze_paths(String.t()) :: [String.t()]

Returns the paths to analyze for a given project.

library(project_path)

@spec library(String.t()) :: :stream_data | :proper

Returns the property-based testing library to use for suggestions. Supported values: :stream_data, :proper

load(project_path)

@spec load(String.t()) :: map()

Loads configuration from .propwise.exs in the project root. Falls back to default configuration if file doesn't exist.