de.bund.bfr.knime.js/js-lib/codemirror-5.49.2/mode/asciiarmor/asciiarmor.js
Function token
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
token: function(stream, state) {
var m;
if (state.state == "top") {
if (stream.sol() && (m = stream.match(/^-----BEGIN (.*)?-----\s*$/))) {
state.state = "headers";
- Create a ticketCreate a ticket
Avoid deeply nested control flow statements. Open
Open
if (stream.eatWhile(/[A-Za-z0-9+\/=]/)) {
return null;
} else {
stream.next();
return "error";
- Create a ticketCreate a ticket
Avoid deeply nested control flow statements. Open
Open
if (m[1] != state.type) return "error";
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
Open
if (m[1] != state.type) return "error";
- 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
return "tag";
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
Open
return errorIfNotEmpty(stream);
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
Open
return "error";
- Create a ticketCreate a ticket
Avoid too many return
statements within this function. Open
Open
return "string";
- Create a ticketCreate a ticket