我在我的一个节点应用程序中使用了基于非分号的编码风格,但问题是SublimeLinter记录了所有缺少的分号,并最终以“太多错误”错误停止,并停止对脚本的其余部分进行分析。
我试着添加一个ignore_match对象给默认和用户设置,但没有任何效果。 每次我尝试确认后,我也重新启动。
我甚至尝试将它添加到设置的excludes部分。
这是我使用的资源: Linter Settings
这是我得到的错误之一:
Z:\www\site\node\workers.js: line 162, col 2, Missing semicolon. (W033)这是我的设置:从用户。
{ "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 } }编辑:
在jshint选项中添加了“ ignore_match": ["Missing semicolon"] ,它变成了:
"jshint": { "@disable": false, "args": [], "excludes": [], "ignore_match": ["Missing semicolon"] },I'm using a non-semicolon based coding style in one of my node apps, but the problem is SublimeLinter is logging all the missing semicolons, and eventually stops with a "Too many errors" error, and stops linting the rest of the script.
I've tried adding an ignore_match object to both the default and user settings, but nothing works. I've also restarted after each time I've tried just to make sure.
I've even tried adding it to the excludes portion of the settings.
This is the resource I was using: Linter Settings
Here is one of the errors I'm 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 the jshint options. It became:
"jshint": { "@disable": false, "args": [], "excludes": [], "ignore_match": ["Missing semicolon"] },最满意答案
完整答案,
Full user settings json file: { "user": { "linters": { "jshint": { "@disable": false, "ignore_match": [ ".*Missing.*", ] }, } } }Complete answer,
Full user settings json file: { "user": { "linters": { "jshint": { "@disable": false, "ignore_match": [ ".*Missing.*", ] }, } } }SublimeLinter忽略缺少的分号(SublimeLinter ignore missing semicolons)我在我的一个节点应用程序中使用了基于非分号的编码风格,但问题是SublimeLinter记录了所有缺少的分号,并最终以“太多错误”错误停止,并停止对脚本的其余部分进行分析。
我试着添加一个ignore_match对象给默认和用户设置,但没有任何效果。 每次我尝试确认后,我也重新启动。
我甚至尝试将它添加到设置的excludes部分。
这是我使用的资源: Linter Settings
这是我得到的错误之一:
Z:\www\site\node\workers.js: line 162, col 2, Missing semicolon. (W033)这是我的设置:从用户。
{ "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 } }编辑:
在jshint选项中添加了“ ignore_match": ["Missing semicolon"] ,它变成了:
"jshint": { "@disable": false, "args": [], "excludes": [], "ignore_match": ["Missing semicolon"] },I'm using a non-semicolon based coding style in one of my node apps, but the problem is SublimeLinter is logging all the missing semicolons, and eventually stops with a "Too many errors" error, and stops linting the rest of the script.
I've tried adding an ignore_match object to both the default and user settings, but nothing works. I've also restarted after each time I've tried just to make sure.
I've even tried adding it to the excludes portion of the settings.
This is the resource I was using: Linter Settings
Here is one of the errors I'm 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 the jshint options. It became:
"jshint": { "@disable": false, "args": [], "excludes": [], "ignore_match": ["Missing semicolon"] },最满意答案
完整答案,
Full user settings json file: { "user": { "linters": { "jshint": { "@disable": false, "ignore_match": [ ".*Missing.*", ] }, } } }Complete answer,
Full user settings json file: { "user": { "linters": { "jshint": { "@disable": false, "ignore_match": [ ".*Missing.*", ] }, } } }
发布评论