Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Dialyxir and fix all warnings #27

Merged
merged 15 commits into from
Dec 9, 2022

Conversation

rkallos
Copy link
Contributor

@rkallos rkallos commented Nov 30, 2022

Thank you very much for Mint.WebSocket!

This PR adds :dialyxir to the project and runs it in CI.

When I added :dialyxir to this project, I saw there were warnings, so I fixed them in the best way(s) I knew how. I also cleaned some things up where I saw the opportunity to, such as in TestServer.

@coveralls
Copy link

coveralls commented Nov 30, 2022

Pull Request Test Coverage Report for Build 6d394f37eac7c2ce759e5f26480af700f023a93f-PR-27

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 14 of 16 (87.5%) changed or added relevant lines in 3 files are covered.
  • 13 unchanged lines in 1 file lost coverage.
  • Overall coverage increased (+0.2%) to 89.174%

Changes Missing Coverage Covered Lines Changed/Added Lines %
lib/mint/web_socket.ex 6 7 85.71%
lib/mint/web_socket/frame.ex 3 4 75.0%
Files with Coverage Reduction New Missed Lines %
lib/mint/web_socket/frame.ex 13 87.16%
Totals Coverage Status
Change from base Build 4fbd3f5caf48d71875b2596b57eac80fa12b327b: 0.2%
Covered Lines: 313
Relevant Lines: 351

💛 - Coveralls

Copy link
Collaborator

@the-mikedavis the-mikedavis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for working on this, this is looking good! 😀

I left some minor comments

lib/mint/web_socket/upgrade_failure_error.ex Outdated Show resolved Hide resolved
lib/mint/web_socket.ex Show resolved Hide resolved
lib/mint/web_socket/frame.ex Outdated Show resolved Hide resolved
lib/mint/web_socket.ex Show resolved Hide resolved
lib/mint/web_socket/frame.ex Outdated Show resolved Hide resolved
@the-mikedavis the-mikedavis merged commit e76205e into elixir-mint:main Dec 9, 2022
@the-mikedavis
Copy link
Collaborator

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants