We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d3f1e6b + 8a8c2fa commit 39e4279Copy full SHA for 39e4279
.github/workflows/ci.yml
@@ -49,6 +49,9 @@ jobs:
49
run: mix deps.compile
50
- name: Compile
51
run: mix compile --warnings-as-errors
52
+ - name: Check formatting
53
+ run: mix format --check-formatted
54
+ if: startsWith(matrix.elixir, '1.15')
55
- name: Run Tests
56
run: mix test
57
- name: Run credo
lib/scenic/assets/static.ex
@@ -583,7 +583,10 @@ defmodule Scenic.Assets.Static do
583
assign(lib, :aliases, new_alias, hash)
584
585
_ ->
586
- Logger.warning("Attempted to alias #{inspect(new_alias)} to unknown asset: #{inspect(to)}")
+ Logger.warning(
587
+ "Attempted to alias #{inspect(new_alias)} to unknown asset: #{inspect(to)}"
588
+ )
589
+
590
lib
591
end
592
lib/scenic/assets/stream/bitmap.ex
@@ -78,7 +78,7 @@ defmodule Scenic.Assets.Stream.Bitmap do
78
:ok =
79
@app
80
|> :code.priv_dir()
81
- |> :filename.join('bitmap')
+ |> :filename.join(~c"bitmap")
82
|> :erlang.load_nif(0)
83
84
lib/scenic/component/input/checkbox.ex
@@ -102,7 +102,7 @@ defmodule Scenic.Component.Input.Checkbox do
102
{:ok, {Static.Font, fm}} = Static.meta(@default_font)
103
ascent = FontMetrics.ascent(@default_font_size, fm)
104
fm_width = FontMetrics.width(text, @default_font_size, fm)
105
- space_width = FontMetrics.width(' ', @default_font_size, fm)
+ space_width = FontMetrics.width(~c" ", @default_font_size, fm)
106
# box_width = fm_width + ascent + space_width * 2 + @border_width
107
108
box_height = ascent
@@ -174,7 +174,7 @@ defmodule Scenic.Component.Input.Checkbox do
174
175
descent = FontMetrics.descent(@default_font_size, fm)
176
177
178
box_width = fm_width + ascent + space_width + @border_width
179
{0, 0, box_width, ascent - descent}
180
lib/scenic/component/input/radio_button.ex
@@ -77,7 +77,7 @@ defmodule Scenic.Component.Input.RadioButton do
77
outer_radius = ascent * 0.5
inner_radius = ascent * 0.3125
@@ -140,7 +140,7 @@ defmodule Scenic.Component.Input.RadioButton do
140
141
142
143
144
145
146
lib/scenic/component/input/radio_group.ex
@@ -224,7 +224,7 @@ defmodule Scenic.Component.Input.RadioGroup do
224
225
end)
226
227
228
229
{0, 0, box_width, @line_height * Enum.count(items)}
230
lib/scenic/component/input/text_field.ex
@@ -110,7 +110,7 @@ defmodule Scenic.Component.Input.TextField do
110
111
@input_capture [:cursor_button, :codepoint, :key]
112
113
- @password_char '*'
+ @password_char ~c"*"
114
115
# --------------------------------------------------------
116
@impl Scenic.Component
lib/scenic/math/line.ex
@@ -28,7 +28,7 @@ defmodule Scenic.Math.Line do
28
29
30
31
- |> :filename.join('line')
+ |> :filename.join(~c"line")
32
33
34
lib/scenic/math/matrix.ex
@@ -34,7 +34,7 @@ defmodule Scenic.Math.Matrix do
35
36
37
- |> :filename.join('matrix')
+ |> :filename.join(~c"matrix")
38
39
40
test/scenic/scene_test.exs
@@ -398,7 +398,8 @@ defmodule Scenic.SceneTest do
398
399
:ok = Scene.request_input(scene, :cursor_pos)
400
401
- assert Scene.fetch_requests(scene) ~> {:ok, sorted_list([:cursor_pos, :cursor_button, :codepoint])}
+ assert Scene.fetch_requests(scene)
402
+ ~> {:ok, sorted_list([:cursor_pos, :cursor_button, :codepoint])}
403
404
405
test "unrequest_input works", %{scene: scene} do
0 commit comments