Search code examples
elixirelixir-mixdialyzer

Is there a way to make Dialyzer watch code changes?


I'm using dialyxir which appends a dialyzer task to Mix. But it doesn't seem to have any --watch option that would rerun the type checking on file changes.

Is there a CLI way to achieve that?


Solution

  • Why do you expect the static code analysis tool to be watching the filesystem? There is an explicit tool for that, named fswatch.

    You might execute whatever you want, including mix dialyzer as shown in usage section.