Skip to content

Commit c7def8e

Browse files
committed
Destroy some formatting
1 parent 3688186 commit c7def8e

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

docs/make.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
using Documenter, Aqua
22

33
makedocs(;
4-
modules = [Aqua],
4+
modules = [Aqua ],
55
pages = ["Home" => "index.md"],
66
sitename = "Aqua.jl",
77
format = Documenter.HTML(; repolink = "https://github.com/JuliaTesting/Aqua.jl"),
88
authors = "Takafumi Arakaki",
9-
warnonly = true,
9+
warnonly = true
1010
)
1111

12-
deploydocs(; repo = "github.com/JuliaTesting/Aqua.jl", push_preview = true)
12+
deploydocs(repo = "github.com/JuliaTesting/Aqua.jl", push_preview = true)

src/ambiguities.jl

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ ispackage(m::Module) =
4848
if m in (Base, Core)
4949
true
5050
else
51-
parentmodule(m) == m
51+
parentmodule(m)==m
5252
end
5353

5454
strnameof(x) = string(x)
@@ -71,7 +71,8 @@ function getobj((pkgid, name)::ExcludeSpec)
7171
end
7272

7373
function normalize_and_check_exclude(exclude::AbstractVector)
74-
exspecs = mapfoldl(normalize_exclude, push!, exclude, init = ExcludeSpec[])
74+
exspecs = mapfoldl(normalize_exclude, push!, exclude, init =
75+
ExcludeSpec[])
7576
for (spec, obj) in zip(exspecs, exclude)
7677
if getobj(spec) !== obj
7778
error("Name `$(spec[2])` is resolved to a different object.")
@@ -81,17 +82,16 @@ function normalize_and_check_exclude(exclude::AbstractVector)
8182
end
8283

8384
function reprexclude(exspecs::Vector{ExcludeSpec})
84-
itemreprs = map(exspecs) do (pkgid, name)
85-
string("(", reprpkgid(pkgid), " => ", repr(name), ")")
86-
end
87-
return string("Aqua.ExcludeSpec[", join(itemreprs, ", "), "]")
85+
itemreprs = map(exspecs) do (pkgid, name)
86+
string("(", reprpkgid(pkgid), " => ", repr(name), ")")
87+
end
88+
return string("Aqua.ExcludeSpec[", join(itemreprs, ", "), "]")
8889
end
8990

9091
function _test_ambiguities(packages::Vector{PkgId}; broken::Bool = false, kwargs...)
9192
num_ambiguities, strout, strerr = _find_ambiguities(packages; kwargs...)
9293

93-
print(stderr, strerr)
94-
print(stdout, strout)
94+
print(stderr,strerr); print(stdout, strout)
9595

9696
if broken
9797
@test_broken num_ambiguities == 0

test/test_ambiguities.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ include("preamble.jl")
55
using PkgWithAmbiguities
66

77
@testset begin
8-
function check_testcase(exclude, num_ambiguities::Int; broken::Bool = false)
9-
pkgids = Aqua.aspkgids([PkgWithAmbiguities, Core]) # include Core to find constructor ambiguities
8+
function check_testcase(exclude, num_ambiguities::Int; broken::Bool = false)
9+
pkgids = Aqua.aspkgids([PkgWithAmbiguities, Core]) # include Core to find constructor ambiguities
1010
num_ambiguities_, strout, strerr = Aqua._find_ambiguities(pkgids; exclude = exclude)
1111
if broken
1212
@test_broken num_ambiguities_ == num_ambiguities
1313
else
1414
@test num_ambiguities_ == num_ambiguities
1515
end
16-
@test isempty(strerr)
16+
@test isempty( strerr )
1717
end
1818

1919
@static if VERSION >= v"1.3-"
@@ -22,7 +22,7 @@ using PkgWithAmbiguities
2222
total = 8
2323
end
2424

25-
check_testcase([], total)
25+
check_testcase([ ], total)
2626

2727
# exclude just anything irrelevant, see #49
2828
check_testcase([convert], total)

0 commit comments

Comments
 (0)