Improve flycheck for erlang