#111 Use kwspacing name for options

Closed David Anthoff davidanthoff
Coverage Reach
indents.jl passes.jl DocumentFormat.jl utils.jl

Flags

Flags have been temporarily removed from this view while the flagging feature is refactored for better performance and user experience.

You can still use flags when viewing individual files. Flag-level thresholds will also remain on pull and merge requests in your repository provider.

More information can be found in our documentation.

Showing 2 of 2 files from the diff.

@@ -19,7 +19,7 @@
Loading
19 19
    docs::Bool
20 20
    lineends::Bool
21 21
    keywords::Bool
22 -
    kwarg::String # Options arg-> "none", "single", "off"
22 +
    kwspacing::String # Options arg-> "none", "single", "off"
23 23
end
24 24
FormatOptions() = FormatOptions(default_options...)
25 25

@@ -86,10 +86,10 @@
Loading
86 86
            # space holder for splitting calls across lines
87 87
        end
88 88
    elseif typof(x) === CSTParser.Kw
89 -
        if state.opts.kwarg === "none"
89 +
        if state.opts.kwspacing === "none"
90 90
            ensure_no_space_after(x.args[1], state, state.offset)
91 91
            ensure_no_space_after(x.args[2], state, state.offset + x.args[1].fullspan)
92 -
        elseif state.opts.kwarg === "single"
92 +
        elseif state.opts.kwspacing === "single"
93 93
            ensure_exactly_single_space_after(x.args[1], state, state.offset)
94 94
            ensure_exactly_single_space_after(x.args[2], state, state.offset + x.args[1].fullspan)
95 95
        end
@@ -143,11 +143,11 @@
Loading
143 143
    return
144 144
    if typof(x) === CSTParser.MacroCall && typof(x.args[1]) === CSTParser.GlobalRefDoc
145 145
        # Align global docstring to:
146 -
        #
146 +
        # 
147 147
        # """
148 148
        # doc
149 149
        # """
150 -
        #
150 +
        # 
151 151
        # If the doc is single quoted i.e. "doc", they will be replaced with triple quotes.
152 152
        offset = state.offset + x.args[1].fullspan
153 153
        doc = x.args[2]

Everything is accounted for!

No changes detected that need to be reviewed.
What changes does Codecov check for?
Lines, not adjusted in diff, that have changed coverage data.
Files that introduced coverage data that had none before.
Files that have missing coverage data that once were tracked.
Files Coverage
src 73.49%
Project Totals (4 files) 73.49%
Loading