Credo v1.1.5 Credo.Execution View Source

Every run of Credo is configured via a Execution struct, which is created and manipulated via the Credo.Execution module.

Link to this section Summary

Functions

The Execution struct is created and manipulated via the Credo.Execution module

Builds an Execution struct for the the given argv

Returns the checks that should be run for a given exec struct

Returns the assign with the given name for the given exec struct (or return the given default value)

Returns the name of the command, which should be run by the given execution

Returns all source files for the given exec struct

Returns all issues for the given exec struct

Returns issues for the given exec struct that relate to the given filename

Returns the result with the given name for the given exec struct (or return the given default value)

Returns all source files for the given exec struct

Returns all valid command names

Halts further execution of the process

Puts the given value with the given name as assign into the given exec struct

Puts the given value with the given name as result into the given exec struct

Puts the given source_files into the given exec struct

Sets the issues in the given exec struct

Sets the exec values which strict implies (if applicable)

Link to this section Types

Link to this section Functions

Link to this function %Credo.Execution{} View Source (struct)

The Execution struct is created and manipulated via the Credo.Execution module.

Builds an Execution struct for the the given argv.

Returns the checks that should be run for a given exec struct.

Takes all checks from the checks: field of the exec, matches those against any patterns to include or exclude certain checks given via the command line.

Link to this function get_assign(exec, name, default \\ nil) View Source

Returns the assign with the given name for the given exec struct (or return the given default value).

Returns the name of the command, which should be run by the given execution.

Returns all source files for the given exec struct.

Link to this function get_given_cli_switch(exec, switch_name) View Source

Returns all issues for the given exec struct.

Link to this function get_issues(exec, filename) View Source

Returns issues for the given exec struct that relate to the given filename.

Link to this function get_plugin_param(exec, plugin_mod, param_name) View Source
Link to this function get_result(exec, name, default \\ nil) View Source

Returns the result with the given name for the given exec struct (or return the given default value).

Returns all source files for the given exec struct.

Link to this function get_valid_command_names(exec) View Source

Returns all valid command names.

Halts further execution of the process.

Link to this function put_assign(exec, name, value) View Source

Puts the given value with the given name as assign into the given exec struct.

Link to this function put_plugin_param(exec, plugin_mod, param_name, param_value) View Source
Link to this function put_result(exec, name, value) View Source

Puts the given value with the given name as result into the given exec struct.

Link to this function put_source_files(exec, source_files) View Source

Puts the given source_files into the given exec struct.

Link to this function set_issues(exec, issues) View Source

Sets the issues in the given exec struct.

Sets the exec values which strict implies (if applicable).