Efficient Hill Climbers

Severity

Blocker 0
Critical 1
Major 674
Minor 618
Info 22

Rule

Standard outputs should not be used directly to log anything 137
Local variable and method parameter names should comply with a naming convention 121
Control structures should use curly braces 63
Generic exceptions should never be thrown 43
Branches should have sufficient coverage by unit tests 42
Strings literals should be placed on the left side when checking for equality 36
Sections of code should not be "commented out" 34
Methods should not be too complex 30
Class variable fields should not have public accessibility 24
Source files should not have any duplicated blocks 24
Empty statements should be removed 10
Field names should comply with a naming convention 10
Method parameters, caught exceptions and foreach variables should not be reassigned 9
Utility classes should not have public constructors 8
Lambdas and anonymous classes should not have too many lines 8
Statements should be on separate lines 7
Local variables should not shadow class fields 7
Exception handlers should preserve the original exceptions 7
Assignments should not be made from within sub-expressions 6
Collection.isEmpty() should be used to test for emptiness 6
Try-catch blocks should not be nested 6
Useless parentheses around expressions should be removed to prevent any misunderstanding 5
"switch case" clauses should not have too many lines 4
Generic wildcard types should not be used in return parameters 4
Unused local variables should be removed 4
Close curly brace and the next "else", "catch" and "finally" keywords should be located on the same line 3
Loops should not contain more than a single "break" or "continue" statement 2
Declarations should use Java collection interfaces such as "List" rather than specific implementation classes such as "LinkedList" 2
"switch" statements should end with "default" clauses 2
Empty arrays and collections should be returned instead of null 2
Synchronized classes Vector, Hashtable, Stack and StringBuffer should not be used 2
Collapsible "if" statements should be merged 2
The default unnamed package should not be used 1
Unused method parameters should be removed 1
Only static class initializers should be used 1
Public methods should throw at most one checked exception 1
  PXScoresAlgorithm2Experiment.java 33
  EfficientHillClimberTest.java 33
  MaxsatResultsParser.java 30
  Driver.java 30
  MAXSAT.java 28
  LocalOptimaExperiment.java 28
  Driver.java 24
  NKLandscapes.java 22
  MaxSATHpInitExperiment.java 22
  RBallEfficientHillClimberForInstanceOf.java 22
  NKVsMaxkSATExperiment.java 21
  MaxSATExperiment.java 21
  TimeExperiment.java 20
  MAXkSAT.java 20
  PartitionCrossoverParser.java 19
  NKLandscapesCircularDynProgBigDecimal.java 17
  RBallQualityResultsKnownOptimumParser.java 17
  ExactSolutionNKExperiment.java 16
  RBallQualityResultsTimeParser.java 16
  NKLandscapesCircularDynProg.java 16
  WeightedGraphColoring.java 16
  QualityExperiment.java 14
  PartitionCrossoverWithScoresExperiment.java 14
  RBallQualityResultsParser.java 13
  ClassesDiscovery.java 11
  EfficientHillClimber.java 11
  PBSolution.java 9
  NKLandscapesCircularDynProgBigDecimalTest.java 8
  UtilityMethods.java 8
  RBallEfficientHillClimber.java 8
  PXParameters.java 8
  MinSATExperiment.java 7
  RBallEfficientHillClimberSnapshot.java 7
  PartitionCrossover.java 6
  ProcessManager.java 6
  RootedTreeGenerator.java 5
  SetOfVars.java 5
  GrayCodeBitFlipIterable.java 5
  RBall4MAXSATSnapshot.java 5
  EmbeddedLandscape.java 4
  PartitionCrossoverResultsIntoLaTeX.java 4
  SingleThreadCPUTimer.java 4
  WGCMove.java 3
  RBallPBMove.java 3
  MaxNKStatistics.java 3
  AveragedSample.java 2
  HillClimberSnapshot.java 2
  TabularData.java 2
  ExactSolutionMethod.java 2
  Sample.java 2
  IteratorFromArray.java 2
  ExactSolutionNK.java 2
  CompleteEnumerationBigDecimal.java 2
  DoubleLinkedList.java 2
  RBall4MAXSATForInstanceOf.java 1
  Seeds.java 1
  WGCSolution.java 1
  ParseResults.java 1
  HillClimber.java 1
  RBall4MAXSAT.java 1
  TinosFormatTest.java 1
  PartitionCrossoverForRBallHillClimber.java 1
  NaiveHillClimberSnapshot.java 1
  NaiveHillClimberForInstanceOf.java 1
  Experiments.java 1
  TwoStatesISArrayImpl.java 1
  NKLandscapesTinosReader.java 1
  CompleteEnumeration.java 1