palantir / python-language-server

An implementation of the Language Server Protocol for Python
MIT License
2.61k stars 285 forks source link

How to disable pylint pylint warning C0326 - bad whitespace? #629

Open evandrocoan opened 5 years ago

evandrocoan commented 5 years ago

Start up log: lsp-debug.txt.zip

I have set the settings:

{
    "clients":
    {
        "pyls":
        {
            "command":
            [
                "/home/evandro/.local/bin/pyls",
                "-vvv",
                "--log-file",
                "/home/evandro/log/lsp-debug.txt"
            ],
            "enabled": true,
            "env":
            {
                "PYTHONPATH":
                [
                    "${sublime_libs}",
                    "${sublime_path}",
                    "${packages}",
                    "${project_path}"
                ]
            },
            "enabled": true,
            "settings":
            {
                "pyls":
                {
                    "plugins":
                    {
                        "pycodestyle":
                        {
                            "enabled": false,
                        },
                        "pylint":
                        {
                            "enabled": true,
                            "ignore":
                            [
                                "C0326",
                            ],
                        },
                        "pydocstyle":
                        {
                            "enabled": false,
                            "ignore":
                            [
                                "D200",
                                "D202",
                                "D204",
                                "D205",
                                "D208",
                                "D400",
                                "D401",
                            ]
                        },
                        "rope":
                        {
                            "ropeFolder": null,
                        },
                    },
                },
            },
            "syntaxes":
            [
                "Packages/Python/Python.sublime-syntax"
            ],
        },
    },
    "log_debug": true,
    "log_file": "/home/evandro/log/lsp-debug.txt",
    "log_payloads": true,
    "log_server": true,
}
youben11 commented 5 years ago

pylint is somehow a special case, you should pass the arguments you use when you usually run the pylint command line tool. Example:

"pylint":
{ 
  "args": ["--help"]
}