IntelliJ Idea 设置 Dialyzer
(金庆的专栏)
Erlang开发使用IDEA IDE可以设置外部工具Dialyzer, 然后就可以直接
Tools->External Tools -> dialyzer 调用进行代码分析。
配置方法为:
File | Settings | Tools | External Tools
需要添加参数 -r $ProjectFileDir$/ebin
输出示例:
dialyzer -r D:\ServerSix/ebin
Checking whether the PLT C:\dailyzer_plt is up-to-date... yes
Proceeding with analysis...
b_pb.erl:81: Guard test is_list(Records::tuple()) can never succeed
b_pb.erl:85: Guard test is_list(Records::tuple()) can never succeed
b_pb.erl:90: Guard test is_list(Records::tuple()) can never succeed
因为dialyzer输出有许多警告,我会将输出存为 dialyzer_output.txt, 加入SVN,
每次分析与上次分析仅需查看差异。