Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lintcmd: print TOML error on invalid config #1547

Closed
wants to merge 1 commit into from

Commits on Jun 1, 2024

  1. lintcmd: print TOML error on invalid config

    Previously the error message would get lost:
    
        % staticcheck
        staticcheck.conf:5:0:  (last key parsed: "dot_import_whitelist") (compile)
    
    This is actually my bug; the ParseError.Message wasn't always set; fixed
    with: BurntSushi/toml#411
    
    Now it prints the expected:
    
        % staticcheck
        staticcheck.conf:2:32: expected a comma (',') or array terminator (']'), but got end of file (last key parsed: "checks") (config)
    arp242 committed Jun 1, 2024
    Configuration menu
    Copy the full SHA
    c69de30 View commit details
    Browse the repository at this point in the history