de.bund.bfr.knime.fsklab.nodes/js-src/de/bund/bfr/knime/fsklab/v2.0/editor/editor.js
File editor.js
has 385 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
fskeditorjs = function () {
const view = { version: "1.0.0" };
view.name = "Javascript FSK Editor";
- Create a ticketCreate a ticket
Function initResourcesTab
has 127 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function initResourcesTab(){
if (window.location.protocol != '' && window.location.host != '') {
// send AJAX request to acquire the JWT for the currently logged in
// user. Subsequent requests need to carry the token in the
// “Authorization” header
- Create a ticketCreate a ticket
Function extractAndCreateUI
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async function extractAndCreateUI(modelMetaData, modelscript, visualization){
if (!modelMetaData || modelMetaData == "null" || modelMetaData == "") {
_metadata.generalInformation = {};
_metadata.generalInformation.modelCategory = {};
_metadata.scope = {};
- Create a ticketCreate a ticket
Function createUI
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async function createUI(modelscript, visualization) {
$('#modelScriptArea').val(modelscript || _val.modelScript);
$('#visualizationScriptArea').val(visualization || _val.visualizationScript);
$('#readmeArea').val(_val.readme);
- Create a ticketCreate a ticket
Function getComponentValue
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
view.getComponentValue = () => {
_metadata = _modalDetails._modelHandler.metaData;
delete _metadata['simulation'];
delete _metadata['modelscript'];
delete _metadata['visualization'];
- Create a ticketCreate a ticket
Function resolve
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function resolve(mainSchema, key,modeTypeKey, currentSchemaElement, resolvedValue){
if(currentSchemaElement.hasOwnProperty('$ref') ){
let schemaKey = currentSchemaElement['$ref'].replace('#/definitions/','');
resolvedKey = schemaKey.charAt(0).toUpperCase() + schemaKey.slice(1);
- Create a ticketCreate a ticket
Avoid deeply nested control flow statements. Open
Open
if (Percentage >= 100) {
// process
// completed
}
- Create a ticketCreate a ticket
Function resolve
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function resolve(mainSchema, key,modeTypeKey, currentSchemaElement, resolvedValue){
- Create a ticketCreate a ticket