Skip to content

[QUESTION] Correct, warn, or both? #3

Open
@myrne

Description

@myrne

Some of original code gave warnings but did not fix. For example, the various typos that were defined.

Other parts corrects things silently. For example (from original).

function bugsTypoWarn (file, data) {
                var b = data.bugs
                if (!b || typeof b !== "object") return
                Object.keys(b).forEach(function (k) {
                                if (bugsTypos[k]) {
                                                b[bugsTypos[k]] = b[k]
                                                delete b[k]
                                }
                })
}

scriptTyposWarn on the other hand, warns but does not correct.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions