Singleton Class Instance Creation without Proper Locking or Synchronization
0
Variant
-
The product implements a Singleton design pattern but does not use appropriate locking or other synchronization mechanism to ensure that the singleton class is only instantiated once.
The product's code, documentation, or other artifacts do not
consistently use the same naming conventions for variables, callables, groups of
related callables, I/O capabilities, data types, file names, or similar types of
elements.
Insufficient Encapsulation of Machine-Dependent Functionality
0
Base
-
The product or code uses machine-dependent functionality, but
it does not sufficiently encapsulate or isolate this functionality from
the rest of the code.
The code contains a callable, block, or other code element in
which the same variable is used to control more than one unique task or store
more than one instance of data.
The product's design documentation does not adequately describe
control flow, data flow, system initialization, relationships between tasks,
components, rationales, or other important aspects of the
design.
The source code contains elements such as source files
that do not consistently provide a prologue or header that has been
standardized for the project.
The code contains a function or method whose signature and/or associated
inline documentation does not sufficiently describe the callable's inputs, outputs,
side effects, assumptions, or return codes.