htdocs/assets/js/views/searches/syntax/ecl.js
Function tokenBase
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function tokenBase(stream, state) {
if (stream.eatSpace()) return null;
var sol = stream.sol();
var ch = stream.next();
Avoid too many return
statements within this function. Open
Open
return 'attribute';
Avoid too many return
statements within this function. Open
Open
return words.hasOwnProperty(cur) ? words[cur] : null;
Avoid too many return
statements within this function. Open
Open
return 'number';
Avoid too many return
statements within this function. Open
Open
if (stream.peek() === '=' && /\w+/.test(cur)) return 'def';
Avoid too many return
statements within this function. Open
Open
return 'operator';
Avoid too many return
statements within this function. Open
Open
return tokenize(stream, state);