This linter plugin for SublimeLinter provides an interface to flog. It will be used with files that have the “ruby” syntax.
SublimeLinter must be installed in order to use this plugin.
Please use Package Control to install the linter plugin.
Before installing this plugin, you must ensure that flog
is installed on your system.
In order for flog
to be executed by SublimeLinter, you must ensure that its path is available to SublimeLinter. The docs cover troubleshooting PATH configuration.
- SublimeLinter settings: http://sublimelinter.readthedocs.org/en/latest/settings.html
- Linter settings: http://sublimelinter.readthedocs.org/en/latest/linter_settings.html
Additional SublimeLinter-contrib-flog settings:
Setting | Description |
---|---|
threshold | (float) Limit above which a method is marked with error. |
Example:
"flog": {
"disable": false,
"threshold": 12.0,
"styles": [
{
"scope": "region.redish markup.warning.sublime_linter",
"types": ["error"]
},
{
"scope": "region.yellowish markup.warning.sublime_linter",
"types": ["warning"]
},
{
"priority": 1,
"icon": "triangle",
"mark_style": "fill",
"annotation": "{linter}:{msg}",
}
]
},