lib/assets/javascripts/utils/simple-hint.js
Function simpleHint
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
CodeMirror.simpleHint = function(editor, getHints) {
// We want a single cursor position.
if (editor.somethingSelected()) return;
//don't show completion if the token is empty
var tempToken = editor.getTokenAt(editor.getCursor());
Avoid too many return
statements within this function. Open
Open
return true;