Skip to content

Commit 3beae56

Browse files
committed
Fixed dialyzer errors, integration tests
1 parent 2b61ec5 commit 3beae56

File tree

4 files changed

+27
-3
lines changed

4 files changed

+27
-3
lines changed

apps/common/lib/lexical.ex

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
defmodule Lexical do
2+
@moduledoc """
3+
Common data structures and utilities for the Lexical Language Server.
4+
5+
If you're building a plugin, You're probably going to want to look at the documentation
6+
for core data structures like
7+
8+
`Lexical.Project` - The lexical project structure
9+
10+
`Lexical.Document` - A text document, given to you by the language server
11+
12+
`Lexical.Document.Position` - A position inside a document
13+
14+
`Lexical.Document.Range` - A range of text inside a document
15+
"""
16+
@typedoc "A string representation of a uri"
17+
@type uri :: String.t()
18+
19+
@typedoc "A string representation of a path on the filesystem"
20+
@type path :: String.t()
21+
22+
def fun() do
23+
:ok
24+
end
25+
end

apps/lexical_credo/mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ defmodule LexicalCredo.MixProject do
3131
defp deps do
3232
[
3333
{:common, in_umbrella: true},
34-
{:credo, "> 0.0.0", optional: true},
34+
{:credo, "> 0.0.0", only: [:dev, :test]},
3535
{:jason, "> 0.0.0", optional: true},
3636
{:ex_doc, "~> 0.34", optional: true, only: [:dev, :hex]}
3737
]

integration/Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ RUN integration/boot/set_up_asdf.sh
3232

3333
COPY apps apps
3434
COPY config config
35-
COPY projects projects
3635
COPY mix* .
3736

3837
RUN mix local.hex --force

mix_dialyzer.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ defmodule Mix.Dialyzer do
88
plt_core_path: absolute_path("priv/plts"),
99
plt_file: {:no_warn, absolute_path("priv/plts/#{name}.plt")},
1010
plt_add_deps: :apps_direct,
11-
plt_add_apps: [:wx, :mix, :ex_unit, :compiler],
11+
plt_add_apps: [:wx, :mix, :ex_unit, :compiler, :jason],
1212
ignore_warnings: absolute_path("dialyzer.ignore-warnings")
1313
]
1414
end

0 commit comments

Comments
 (0)