csfieldguide/static/js/codemirror-mode-regex.js
Function tokenBase
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var tokenBase = function(stream) {
var ch = stream.next();
if (ch == "\\" && stream.match(/./, false)) {
if (stream.match(/u\w{4}/)) return "a";
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
Open
return "b";
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
Open
if(g-1 < 0) return "err";
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
Open
return "a";
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
Open
if (stream.match(/./)) return "a";
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
Open
return "g" + (g-- % 5);
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
Open
return "a";
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
Open
if (stream.match(/(\d|\d,\d?)\}/)) return "a";
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
Open
return "g" + g;
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
Open
return "g" + (++g % 5);
- Create a ticketCreate a ticket