SublimeLinter ignores missing semicolons

I'm using non-season based coding style in one of my node apps, but the problem is that SublimeLinter logs all missing semicolons and ends up stopping with Too Many Errors and stopping the listing of the rest of the script.

I tried to add the object ignore_match

to default and user settings but nothing works. I also restarted after every time I tried to just be sure.

I even tried adding it to the parameters part excludes

.

This is the resource I used: Linter Settings

Here is one of the errors I am getting:

Z:\www\site\node\workers.js: line 162, col 2, Missing semicolon. (W033)

      

Here's my settings: from user.

{
    "user": {
        "debug": true,
        "delay": 0.25,
        "error_color": "D02000",
        "gutter_theme": "Packages/SublimeLinter/gutter-themes/Default/Default.gutter-theme",
        "gutter_theme_excludes": [],
        "ignore_match": [
            "Missing semicolon."
        ],
        "lint_mode": "background",
        "linters": {
            "annotations": {
                "@disable": false,
                "args": [],
                "errors": [
                    "FIXME"
                ],
                "excludes": ["Missing semicolon"],
                "warnings": [
                    "TODO",
                    "README"
                ]
            },
            "jshint": {
                "@disable": false,
                "args": [],
                "excludes": ["Missing semicolon"]
            },
            "php": {
                "@disable": false,
                "args": [],
                "excludes": []
            }
        },
        "mark_style": "outline",
        "no_column_highlights_line": false,
        "passive_warnings": false,
        "paths": {
            "linux": [],
            "osx": [],
            "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
    }
}

      

EDIT:

Added ignore_match": ["Missing semicolon"]

to jshint options. It has become:

    "jshint": {
        "@disable": false,
        "args": [],
        "excludes": [],
        "ignore_match": ["Missing semicolon"]
    },

      

+3


source to share


2 answers


Full answer,



Full user settings json file:


{
    "user": {
        "linters": {
            "jshint": {
                "@disable": false,
                "ignore_match": [
                    ".*Missing.*",
                ]
            },
        }
    }
}

      

+8


source


Simple answer:

Add ignore_match": ["Missing semicolon"]

jshint to options.



"jshint": {
        "@disable": false,
        "args": [],
        "excludes": [],
        "ignore_match": ["Missing semicolon"]
    },

      

+1


source







All Articles