Skip to content

Instantly share code, notes, and snippets.

@mitchkramez
Created February 21, 2014 22:01
Show Gist options
  • Save mitchkramez/9144426 to your computer and use it in GitHub Desktop.
Save mitchkramez/9144426 to your computer and use it in GitHub Desktop.
SublimeLinter - PHPLint Configuration
{
"user": {
"debug": true,
"delay": 1,
"error_color": "D02000",
"gutter_theme": "Packages/SublimeLinter/gutter-themes/Default/Default.gutter-theme",
"gutter_theme_excludes": [],
"lint_mode": "background",
"linters": {
"php": {
"@disable": true,
"args": [],
"excludes": []
},
"phplint": {
"@disable": false,
"args": [
"--no-print-notices",
"--no-print-warnings",
"--no-report-unused"
],
"excludes": [],
"ignore_match": [
"'if\\(EXPR\\)':",
"'while\\(EXPR\\)': expected expression",
"embedded variable in string",
"found EXPR of type mixed, expected a string",
"expected number or array but found mixed",
"the method.*?does not exist",
"method.*?with signature",
"invalid argument of type",
"'EXPR . ...",
"'... . EXPR",
"invalid array index",
"undefined class",
"unknown class",
"undefined type for argument",
"'->' operator applied to a value of type mixed",
"method .*?: expected return type boolean, found expression of type",
"undeclared constant 'MYSQL_ASSOC'",
"cannot assign a value of type string to a variable of type",
"using unassigned variable",
"comparing \\(string",
"'...\\? EXPR1 : EXPR2': type mismatch",
"variable .*? might not have been",
".*?too many arguments",
"invalid PHPLint",
".*?requires more arguments",
"variable .*? has not been assigned",
"undeclared parent class",
"property .*? does not exist",
"unknown line tag",
"invalid scope for documentation",
"undeclared constant",
"undefined type for property",
"invalid parameter name",
"invalid DocBlock",
"missing statement terminator",
"invalid variable-name function",
".*? requires arguments",
"EXPR ? ...:...: expected expression of the type boolean",
"'\\+\\+' applied to mixed",
"unknown type/class",
"'foreach\\(EXPR",
"'->' operator applied"
]
}
},
"mark_style": "solid underline",
"no_column_highlights_line": 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
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment