de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/mbox/mbox.js
Function readToken
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function readToken(stream, state) {
if (stream.sol()) {
// From last line
state.inSeparator = false;
if (state.inHeader && stream.match(whitespace)) {
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
Open
return style;
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
Open
return null;
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
Open
if (stream.match(untilBracketedEmail)) return style;
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
Open
if (stream.match(untilEmail)) return "atom";
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
Open
if (stream.match(bracketedEmail)) return style + " link";
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
Open
if (stream.match(email)) return "link";
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
Open
return "atom";
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
Open
return null;
- Create a ticketCreate a ticket