jeremyjh / dialyxir

Mix tasks to simplify use of Dialyzer in Elixir projects.
Apache License 2.0
1.68k stars 142 forks source link

Allow analyzing individual files and directories #494

Open Nezteb opened 1 year ago

Nezteb commented 1 year ago

One of the arguments dialyzer accepts is files_or_dirs:

dialyzer [--add_to_plt] [--apps applications] [--build_plt]
         [--check_plt] [-Ddefine]* [-Dname]* [--dump_callgraph file]
         [--error_location flag] [files_or_dirs] [--fullpath]
         [--get_warnings] [--gui] [--help] [-I include_dir]*
         [--no_check_plt] [--no_indentation] [-o outfile]
         [--output_plt file] [-pa dir]* [--plt plt] [--plt_info]
         [--plts plt*] [--quiet] [-r dirs] [--raw] [--remove_from_plt]
         [--shell] [--src] [--statistics] [--verbose] [--version]
         [-Wwarn]*

files_or_dirs Use Dialyzer from the command line to detect defects in the specified files or directories containing .erl or .beam files, depending on the type of the analysis.

It'd be nice if we could use that functionality to analyze individual files and directories.

jeremyjh commented 1 year ago

I assume you know about the paths setting in the project config, and are requesting a feature to specify it as a CLI arg that would override the default or configured path setting?

Nezteb commented 1 year ago

I assume you know about the paths setting in the project config, and are requesting a feature to specify it as a CLI arg that would override the default or configured path setting?

@jeremyjh Correct!