Skip to content

icnagy/SublimeLinter-contrib-flog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SublimeLinter-contrib-flog

Build Status

This linter plugin for SublimeLinter provides an interface to flog. It will be used with files that have the “ruby” syntax.

Installation

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.

Settings

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}",
      }
    ]
  },