IT博客汇
  • 首页
  • 精华
  • 技术
  • 设计
  • 资讯
  • 扯淡
  • 权利声明
  • 登录 注册

    IntelliJ Idea 设置 Dialyzer

    金庆发表于 2015-11-12 03:03:00
    love 0
    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,
    每次分析与上次分析仅需查看差异。


    金庆 2015-11-12 11:03 发表评论


沪ICP备19023445号-2号
友情链接