Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

Ruby: flog

LCD 47 edited this page Jun 12, 2016 · 4 revisions

This file is no longer maintained

This file exists only as a historic reference. Documentation for syntastic checkers is now included in the manual, please see :help syntastic-checkers in Vim.


Maintainer: Tim Carry [email protected]

flog is a complexity checker for Ruby files. See the project's page for details.

Checker options

The following options are supported:

g:syntastic_ruby_flog_threshold_warning (number; default: 45)
threshold for warnings; functions with complexity below this number are not flagged
g:syntastic_ruby_flog_threshold_error (number; default: 90)
threshold for errors; functions with complexity above this number are flagged as errors.

Note

flog reports complexity values as floating point numbers. If your Vim is not compiled with the +float feature, both the numbers reported by flog and the two options above are rounded by syntastic towards zero (that is, 39.9 is taken as 39).

Clone this wiki locally