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

configuration example #24

Open
donpdonp opened this issue Jun 8, 2016 · 4 comments
Open

configuration example #24

donpdonp opened this issue Jun 8, 2016 · 4 comments

Comments

@donpdonp
Copy link

donpdonp commented Jun 8, 2016

It'd be helpful to provide an example .sublimelinterrc

For example, I'm not sure what word to use in the js object for "linters". I've tried "standard" with no success. thanks.

@jpaulin
Copy link

jpaulin commented Aug 26, 2016

Do you still have the problem above?

I have currently working settings, with 'standard' running as the linter in Sublime Text 3.

What I noticed is that the .sublimelinterrc file doesn't have anything related to 'standard' linter.

The settings seem to be instead in the User-specific settings file, under
~/.config/sublime-text-3/Packages/User/SublimeLinter.sublime-settings

(I have Ubuntu so the path's beginning parts might vary a bit depending on what OS is used)

'standard' should be fine for the Standard linter - just make sure you got it already in the system, as a global package (ie, in shell, you've done a npm install -g standard)

Any help?
SublimeLinter.sublime-settings.txt

@bcomnes
Copy link
Collaborator

bcomnes commented Aug 26, 2016

here is my config

{
    "user":
    {
        "debug": true,
        "delay": 0.25,
        "error_color": "D02000",
        "gutter_theme": "Packages/SublimeLinter/gutter-themes/Default/Default.gutter-theme",
        "gutter_theme_excludes":
        [
        ],
        "lint_mode": "background",
        "linters":
        {
            "annotations":
            {
                "@disable": false,
                "args":
                [
                ],
                "errors":
                [
                    "FIXME"
                ],
                "excludes":
                [
                ],
                "warnings":
                [
                    "TODO",
                    "README"
                ]
            },
            "clang":
            {
                "@disable": false,
                "args":
                [
                ],
                "excludes":
                [
                ],
                "extra_flags": "",
                "include_dirs":
                [
                ]
            },
            "eslint":
            {
                "@disable": false,
                "args":
                [
                ],
                "excludes":
                [
                ]
            },
            "flake8":
            {
                "@disable": false,
                "args":
                [
                ],
                "builtins": "",
                "excludes":
                [
                ],
                "ignore": "",
                "jobs": "1",
                "max-complexity": -1,
                "max-line-length": null,
                "select": "",
                "show-code": false
            },
            "gometalinter":
            {
                "@disable": false,
                "args":
                [
                    "--linter=vet:go tool vet -printfuncs=Infof,Debugf,Warningf,Errorf,Criticalf {path}/*.go:PATH:LINE:MESSAGE",
                    "--disable=dupl",
                    "--tests",
                    "--cyclo-over=15",
                    "--fast"
                ],
                "excludes":
                [
                ],
                "ignore_match":
                [
                    ".*possible formatting directive in debug call.*",
                    ".*exported function (Test|Bench).*should have comment.*",
                    ".*error return value not checked.*(Close|Infof|Debugf|Warningf|Errorf).*",
                    ".*possible formatting directive in Error call.*",
                    ".*comment on exported.*",
                    ".*uses unkeyed fields.*",
                    ".*should have comment.*",
                    ".*bad syntax for struct tag pair.*",
                    ".*bad syntax for struct tag key.*",
                    "*can't find import:*/vendor/*"
                ]
            },
            "jshint":
            {
                "@disable": false,
                "args":
                [
                ],
                "excludes":
                [
                ]
            },
            "json":
            {
                "@disable": false,
                "args":
                [
                ],
                "excludes":
                [
                ],
                "strict": true
            },
            "pylint":
            {
                "@disable": true,
                "@python": 3,
                "args":
                [
                ],
                "disable": "",
                "enable": "",
                "excludes":
                [
                ],
                "paths":
                [
                ],
                "rcfile": "",
                "show-codes": false
            },
            "rst":
            {
                "@disable": false,
                "args":
                [
                ],
                "excludes":
                [
                ]
            },
            "shellcheck":
            {
                "@disable": false,
                "args":
                [
                ],
                "exclude": "",
                "excludes":
                [
                ]
            },
            "standard":
            {
                "@disable": true,
                "args":
                [
                ],
                "excludes":
                [
                ]
            }
        },
        "mark_style": "outline",
        "no_column_highlights_line": false,
        "passive_warnings": false,
        "paths":
        {
            "linux":
            [
                "~/go/bin"
            ],
            "osx":
            [
                "~/go/bin"
            ],
            "windows":
            [
            ]
        },
        "python_paths":
        {
            "linux":
            [
            ],
            "osx":
            [
            ],
            "windows":
            [
            ]
        },
        "rc_search_limit": 3,
        "shell_timeout": 10,
        "show_errors_on_save": false,
        "show_marks_in_minimap": true,
        "syntax_map":
        {
            "html (django)": "html",
            "html (rails)": "html",
            "html 5": "html",
            "php": "html",
            "python django": "python"
        },
        "warning_color": "DDB700",
        "wrap_find": true
    }
}

@bcomnes
Copy link
Collaborator

bcomnes commented Aug 26, 2016

Having standard installed globally, or even better, not installed globally and installed locally to the project as a devDependency is enough for the linter to find it.

@bcomnes
Copy link
Collaborator

bcomnes commented Aug 26, 2016

iirc most of that config was generated automatically.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants