Showing 6,856 of 14,752 total issues
Method createTable
has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring. Open
public void createTable() {
String fieldDefs = DBKernel.delimitL("ID") + " INTEGER GENERATED BY DEFAULT AS IDENTITY (START WITH 1) PRIMARY KEY";
if (tableName.equals("ChangeLog")) {
fieldDefs = DBKernel.delimitL("ID") + " INTEGER GENERATED BY DEFAULT AS SEQUENCE " + DBKernel.delimitL("ChangeLogSEQ") + " PRIMARY KEY";
}
- Read upRead up
- Create a ticketCreate a ticket
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Method updateEstModel
has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring. Open
private void updateEstModel(final int estModelId, String name, final int condId, final int modelId, final double rms, final double rsquared, final double aic,
final double bic, final int responseId, Integer qualityScore, Boolean isChecked, Integer workflowID, String comment) {
try {
PreparedStatement ps = conn.prepareStatement("UPDATE \"GeschaetzteModelle\" SET \"Name\"=?, \"Versuchsbedingung\"=?, \"Modell\"=?, \"RMS\"=?, \"Rsquared\"=?, \"AIC\"=?, \"BIC\"=?, \"Response\"=?, \"Guetescore\"=?, \"Geprueft\"=?, \"Kommentar\"=?, \"PMMLabWF\"=? WHERE \"ID\"=?");
if (name == null) {
- Read upRead up
- Create a ticketCreate a ticket
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Method applyJoinRelation
has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring. Open
public void applyJoinRelation(FskPortObject fskObj, List<JoinRelationAdvanced> joinRelationList,
String suffix) throws Exception {
// figure out which parameters from JoinRelations belong to which model to avoid loading
// a json file twice
- Read upRead up
- Create a ticketCreate a ticket
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Method revertFormula
has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring. Open
public String revertFormula() {
String result = formula;
if (depXml != null && !depXml.name.equals(depXml.origName)) {
result = MathUtilities.replaceVariable(result, depXml.name, depXml.origName);
}
- Read upRead up
- Create a ticketCreate a ticket
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Method actionPerformed
has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring. Open
@Override
public void actionPerformed(ActionEvent e) {
if (e.getSource() == okButton) {
approved = true;
selection = new ArrayList<>();
- Read upRead up
- Create a ticketCreate a ticket
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Method setValue
has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring. Open
private void setValue(final int i, final Object obj) throws PmmException {
if (obj == null)
cell[i] = CellIO.createMissingCell();
else
switch (schema.getType(i)) {
- Read upRead up
- Create a ticketCreate a ticket
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Method checkUnits
has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring. Open
private static void checkUnits(Object[] toksT, Object[] toksLu) {
try {
if (toksLu != null && toksLu.length > 0) {
String unit = toksLu[0].toString();
int i=1;
- Read upRead up
- Create a ticketCreate a ticket
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function _getModelHandler
has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring. Open
async _getModelHandler ( modelMetadata, modelId ) {
let O = this;
_log( 'MODAL DETAILS / _getModelHandler' );
let modelHandler = null;
- Read upRead up
- Create a ticketCreate a ticket
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Method retrieveGeneralInformation
has 85 lines of code (exceeds 25 allowed). Consider refactoring. Open
public OtherModelGeneralInformation retrieveGeneralInformation(Sheet sheet) {
OtherModelGeneralInformation information = new OtherModelGeneralInformation();
Cell nameCell = sheet.getRow(GENERAL_INFORMATION__NAME).getCell(J);
- Create a ticketCreate a ticket
Method retrieveGeneralInformation
has 85 lines of code (exceeds 25 allowed). Consider refactoring. Open
public PredictiveModelGeneralInformation retrieveGeneralInformation(Sheet sheet) {
PredictiveModelGeneralInformation information = new PredictiveModelGeneralInformation();
Cell nameCell = sheet.getRow(GENERAL_INFORMATION__NAME).getCell(J);
- Create a ticketCreate a ticket
Method retrieveGeneralInformation
has 85 lines of code (exceeds 25 allowed). Consider refactoring. Open
public PredictiveModelGeneralInformation retrieveGeneralInformation(Sheet sheet) {
PredictiveModelGeneralInformation information = new PredictiveModelGeneralInformation();
Cell nameCell = sheet.getRow(GENERAL_INFORMATION__NAME).getCell(J);
- Create a ticketCreate a ticket
Method retrieveGeneralInformation
has 85 lines of code (exceeds 25 allowed). Consider refactoring. Open
public GenericModelGeneralInformation retrieveGeneralInformation(Sheet sheet) {
GenericModelGeneralInformation information = new GenericModelGeneralInformation();
Cell nameCell = sheet.getRow(GENERAL_INFORMATION__NAME).getCell(I);
- Create a ticketCreate a ticket
Method retrieveGeneralInformation
has 85 lines of code (exceeds 25 allowed). Consider refactoring. Open
public PredictiveModelGeneralInformation retrieveGeneralInformation(Sheet sheet) {
PredictiveModelGeneralInformation information = new PredictiveModelGeneralInformation();
Cell nameCell = sheet.getRow(GENERAL_INFORMATION__NAME).getCell(J);
- Create a ticketCreate a ticket
Method retrieveGeneralInformation
has 85 lines of code (exceeds 25 allowed). Consider refactoring. Open
public PredictiveModelGeneralInformation retrieveGeneralInformation(Sheet sheet) {
PredictiveModelGeneralInformation information = new PredictiveModelGeneralInformation();
- Create a ticketCreate a ticket
Method retrieveGeneralInformation
has 85 lines of code (exceeds 25 allowed). Consider refactoring. Open
public DoseResponseModelGeneralInformation retrieveGeneralInformation(Sheet sheet) {
DoseResponseModelGeneralInformation information = new DoseResponseModelGeneralInformation();
Cell nameCell = sheet.getRow(GENERAL_INFORMATION__NAME).getCell(I);
- Create a ticketCreate a ticket
Method retrieveGeneralInformation
has 85 lines of code (exceeds 25 allowed). Consider refactoring. Open
public PredictiveModelGeneralInformation retrieveGeneralInformation(Sheet sheet) {
PredictiveModelGeneralInformation information = new PredictiveModelGeneralInformation();
Cell nameCell = sheet.getRow(GENERAL_INFORMATION__NAME).getCell(J);
- Create a ticketCreate a ticket
Method retrieveGeneralInformation
has 85 lines of code (exceeds 25 allowed). Consider refactoring. Open
public PredictiveModelGeneralInformation retrieveGeneralInformation(Sheet sheet) {
PredictiveModelGeneralInformation information = new PredictiveModelGeneralInformation();
Cell nameCell = sheet.getRow(GENERAL_INFORMATION__NAME).getCell(I);
- Create a ticketCreate a ticket
Method retrieveGeneralInformation
has 85 lines of code (exceeds 25 allowed). Consider refactoring. Open
public PredictiveModelGeneralInformation retrieveGeneralInformation(Sheet sheet) {
PredictiveModelGeneralInformation information = new PredictiveModelGeneralInformation();
Cell nameCell = sheet.getRow(GENERAL_INFORMATION__NAME).getCell(I);
- Create a ticketCreate a ticket
Method retrieveGeneralInformation
has 85 lines of code (exceeds 25 allowed). Consider refactoring. Open
private PredictiveModelGeneralInformation retrieveGeneralInformation(Sheet sheet) {
PredictiveModelGeneralInformation information = new PredictiveModelGeneralInformation();
Cell nameCell = sheet.getRow(GENERAL_INFORMATION__NAME).getCell(J);
- Create a ticketCreate a ticket
Method retrieveGeneralInformation
has 85 lines of code (exceeds 25 allowed). Consider refactoring. Open
private PredictiveModelGeneralInformation retrieveGeneralInformation(Sheet sheet) {
PredictiveModelGeneralInformation information = new PredictiveModelGeneralInformation();
Cell nameCell = sheet.getRow(GENERAL_INFORMATION__NAME).getCell(J);
- Create a ticketCreate a ticket