Showing 3 of 4 files from the diff.

@@ -41,9 +41,9 @@
Loading
41 41
    lines::Vector{Tuple{Int,Int}}
42 42
end
43 43
44 -
function format(original_text::AbstractString, formatopts::FormatOptions = FormatOptions())
44 +
function format(original_text::AbstractString, formatopts::FormatOptions=FormatOptions())
45 45
    text = deepcopy(original_text)
46 -
    original_ast = CSTParser.remlineinfo!(Meta.parse(string("begin\n", text, "\nend"), raise = false))
46 +
    original_ast = CSTParser.remlineinfo!(Meta.parse(string("begin\n", text, "\nend"), raise=false))
47 47
    if original_ast.head == :error
48 48
        @warn ("There was an error in the original ast, original text returned.")
49 49
        return text
@@ -84,7 +84,7 @@
Loading
84 84
    if formatopts.lineends
85 85
        lineends_pass(text, x, state)
86 86
    end
87 -
    sort!(state.edits, lt = (a, b)->first(a.loc) < first(b.loc), rev = true)
87 +
    sort!(state.edits, lt=(a, b) -> first(a.loc) < first(b.loc), rev=true)
88 88
89 89
    for i = 1:length(state.edits)
90 90
        text = apply(text, state.edits[i])
@@ -92,7 +92,7 @@
Loading
92 92
    if formatopts.indents
93 93
        text = indents(text, state.opts)
94 94
    end
95 -
    new_ast = CSTParser.remlineinfo!(Meta.parse(string("begin\n", text, "\nend"), raise = false))
95 +
    new_ast = CSTParser.remlineinfo!(Meta.parse(string("begin\n", text, "\nend"), raise=false))
96 96
    if new_ast.head == :error
97 97
        @warn ("There was an error in the formatted text, original returned.")
98 98
        return original_text
@@ -104,7 +104,7 @@
Loading
104 104
    return text
105 105
end
106 106
107 -
function format(path::AbstractPath, formatopts::FormatOptions = FormatOptions())
107 +
function format(path::AbstractPath, formatopts::FormatOptions=FormatOptions())
108 108
    if isfile(path)
109 109
        extension(path) != "jl" && error("Only .jl files can be formatted.")
110 110
@@ -124,14 +124,14 @@
Loading
124 124
    return nothing
125 125
end
126 126
127 -
function isformatted(text::AbstractString, formatopts::FormatOptions = FormatOptions())
127 +
function isformatted(text::AbstractString, formatopts::FormatOptions=FormatOptions())
128 128
    original_text = text
129 129
    new_text = format(text, formatopts)
130 130
131 131
    return original_text == new_text
132 132
end
133 133
134 -
function isformatted(path::AbstractPath, formatopts::FormatOptions = FormatOptions())
134 +
function isformatted(path::AbstractPath, formatopts::FormatOptions=FormatOptions())
135 135
    if isfile(path)
136 136
        extension(path) != "jl" && error("Only .jl files can be formatted.")
137 137
@@ -156,7 +156,7 @@
Loading
156 156
    return nothing
157 157
end
158 158
159 -
function pass(x, state, f = (x, state)->nothing)
159 +
function pass(x, state, f=(x, state) -> nothing)
160 160
    f(x, state)
161 161
    if x.args isa Vector{EXPR}
162 162
        for a in x.args

@@ -40,7 +40,7 @@
Loading
40 40
    line_of(offset1, lines) == line_of(offset2, lines)
41 41
end
42 42
43 -
function get_expr(x, offset, pos = 0)
43 +
function get_expr(x, offset, pos=0)
44 44
    if pos > offset
45 45
        return nothing
46 46
    end

@@ -244,7 +244,7 @@
Loading
244 244
245 245
    state = indent_pass(x, State(0, IndentState(0, []), opts, text, get_lines(text)))
246 246
247 -
    sort!(state.edits.edits, lt = (a, b)->a[1] < b[1], rev = true)
247 +
    sort!(state.edits.edits, lt=(a, b) -> a[1] < b[1], rev=true)
248 248
    for (l, d) in state.edits.edits
249 249
        if d > 0
250 250
            text = string(text[1:l], " "^d, text[l + 1:end])
Files Coverage
src 73.50%
Project Totals (4 files) 73.50%
codecov-umbrella
Build #219880187 -
unittests
codecov-umbrella
Build #219880187 -
unittests
codecov-umbrella
Build #219880187 -
unittests
codecov-umbrella
Build #219880187 -
unittests
codecov-umbrella
Build #219880187 -
unittests
codecov-umbrella
Build #219880187 -
unittests
codecov-umbrella
Build #219880187 -
unittests
codecov-umbrella
Build #219880187 -
unittests
codecov-umbrella
Build #219880187 -
unittests
codecov-umbrella
Build #219880187 -
unittests
codecov-umbrella
Build #219880187 -
unittests
codecov-umbrella
Build #219880187 -
unittests
codecov-umbrella
Build #219880187 -
unittests
codecov-umbrella
Build #219880187 -
unittests
codecov-umbrella
Build #219880187 -
unittests
codecov-umbrella
Build #219880187 -
unittests
codecov-umbrella
Build #219880187 -
unittests
codecov-umbrella
Build #219880187 -
unittests
codecov-umbrella
Build #219880187 -
unittests
codecov-umbrella
Build #219880187 -
unittests
codecov-umbrella
Build #219880187 -
unittests
codecov-umbrella
Build #219880187 -
unittests
codecov-umbrella
Build #219880187 -
unittests
codecov-umbrella
Build #219880187 -
unittests
codecov-umbrella
Build #219880187 -
unittests
codecov-umbrella
Build #219880187 -
unittests
codecov-umbrella
Build #219880187 -
unittests
codecov-umbrella
Build #219880187 -
unittests
codecov-umbrella
Build #219880187 -
unittests
codecov-umbrella
Build #219880187 -
unittests

No yaml found.

Create your codecov.yml to customize your Codecov experience

Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading