Showing 74 of 184 total issues
SchemaVersionRecord
has 56 methods (exceeds 20 allowed). Consider refactoring. Open
@Generated(
value = {
"http://www.jooq.org",
"jOOQ version:3.8.6"
},
LecturerRecord
has 41 methods (exceeds 20 allowed). Consider refactoring. Open
@Generated(
value = {
"http://www.jooq.org",
"jOOQ version:3.8.6"
},
LecturerRoomRecord
has 36 methods (exceeds 20 allowed). Consider refactoring. Open
@Generated(
value = {
"http://www.jooq.org",
"jOOQ version:3.8.6"
},
Method inject
has a Cognitive Complexity of 31 (exceeds 5 allowed). Consider refactoring. Open
public void inject(ComponentMeta meta, ComponentMetaSet candidates) throws ClassNotRegisteredException {
// check switcher dependency
Class<?> clazz = meta.getType();
meta.awareDependency(candidates);
for (Field field : clazz.getDeclaredFields()) {
- Read upRead up
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
RockettyAuthClientRecord
has 30 methods (exceeds 20 allowed). Consider refactoring. Open
@Generated(
value = {
"http://www.jooq.org",
"jOOQ version:3.9.1"
},
DelegateAuthStrategy
has 30 methods (exceeds 20 allowed). Consider refactoring. Open
public class DelegateAuthStrategy<IDENTITY extends AuthIdentity> extends AbstractSessionAuthStrategy<IDENTITY> {
private ShouldHandle shouldHandle;
private ShouldPermitAnonymous shouldPermitAnonymous;
private ShouldExpire shouldExpire;
private ShouldTryAuth shouldTryAuth;
Function build
has 79 lines of code (exceeds 25 allowed). Consider refactoring. Open
function build(previousSizeMap) {
console.log('Creating an optimized production build...');
webpack(config).run((err, stats) => {
if (err) {
printErrors('Failed to compile.', [err]);
LecturerScheduleRecord
has 26 methods (exceeds 20 allowed). Consider refactoring. Open
@Generated(
value = {
"http://www.jooq.org",
"jOOQ version:3.8.6"
},
StudentRecord
has 26 methods (exceeds 20 allowed). Consider refactoring. Open
@Generated(
value = {
"http://www.jooq.org",
"jOOQ version:3.8.6"
},
File SchemaVersionRecord.java
has 291 lines of code (exceeds 250 allowed). Consider refactoring. Open
/**
* This class is generated by jOOQ
*/
package org.carbon.sample.ext.jooq.tables.records;
UserRecord
has 25 methods (exceeds 20 allowed). Consider refactoring. Open
@Generated(
value = {
"http://www.jooq.org",
"jOOQ version:3.9.1"
},
SchemaVersion
has 23 methods (exceeds 20 allowed). Consider refactoring. Open
@Generated(
value = {
"http://www.jooq.org",
"jOOQ version:3.8.6"
},
Method doResolve
has a Cognitive Complexity of 18 (exceeds 5 allowed). Consider refactoring. Open
private void doResolve(Parameter current, Iterator<Parameter> iterator, ArgumentMetas resolved, HttpServletRequest request) {
Parameter next = null;
if (iterator.hasNext()) {
next = iterator.next();
}
- Read upRead up
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 inject
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
public void inject(ComponentMeta meta, ComponentMetaSet candidates) throws ClassNotRegisteredException {
// check switcher dependency
Class<?> clazz = meta.getType();
meta.awareDependency(candidates);
for (Field field : clazz.getDeclaredFields()) {
Method resolve
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
@SuppressWarnings("unchecked")
public ComponentMetaSet resolve(ComponentMetaSet metas) {
// add default switching qualifier
metas.addQualifier(new SwitchQualifier());
ISchemaVersion
has 22 methods (exceeds 20 allowed). Consider refactoring. Open
@Generated(
value = {
"http://www.jooq.org",
"jOOQ version:3.8.6"
},
AssetRecord
has 21 methods (exceeds 20 allowed). Consider refactoring. Open
@Generated(
value = {
"http://www.jooq.org",
"jOOQ version:3.8.6"
},
UserRecord
has 21 methods (exceeds 20 allowed). Consider refactoring. Open
@Generated(
value = {
"http://www.jooq.org",
"jOOQ version:3.8.6"
},
Method walkPackage
has a Cognitive Complexity of 16 (exceeds 5 allowed). Consider refactoring. Open
private List<String> walkPackage(Package scanBasePack) throws PackageScanException {
List<String> classNames = new ArrayList<>();
String packagePath = getPath(scanBasePack);
URL url = classLoader.getResource(packagePath);
String protocol = url != null ? url.getProtocol() : null;
- Read upRead up
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 factorize
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
@SuppressWarnings("unchecked")
public ActionDefinition factorize(Object instance) {
Class<?> socketClass = instance.getClass();
Socket annotation = socketClass.getDeclaredAnnotation(Socket.class);