-
Notifications
You must be signed in to change notification settings - Fork 8
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 GitHub CI #12
base: master
Are you sure you want to change the base?
Add GitHub CI #12
Conversation
List of changes: - code format to Elixir 1.17 - remove unused deps - resolve issue with Erlang OTP 27
@@ -34,15 +34,16 @@ defmodule Sizeable do | |||
filesize(parsed, options) | |||
end | |||
|
|||
def filesize(0.0, options) do | |||
def filesize(+0.0, options) do | |||
spacer = Keyword.get(options, :spacer, " ") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: pattern matching on 0.0 is equivalent to matching only on +0.0 from Erlang/OTP 27+. Instead you must match on +0.0 or -0.0
└─ lib/sizeable.ex: Sizeable.filesize/2
] | ||
end | ||
|
||
defp deps do | ||
[ | ||
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false}, | ||
{:inch_ex, only: :docs} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we're not using Inch, remove this.
matrix: | ||
include: | ||
- pair: | ||
elixir: 1.11.x |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I still retain the support of Elixir 1.11.x, not sure if we want to bump to 1.13, which is the minimal version that still have security support.,
List of changes: