Showing 2,441 of 6,157 total issues
Avoid too many return
statements within this function. Open
Open
return {
...action.payload,
masked_encrypted_extra: action.payload.masked_encrypted_extra || '',
engine: action.payload.backend || trimmedState.engine,
configuration_method: action.payload.configuration_method,
Avoid too many return
statements within this function. Open
Open
if (hasConnectedDb && !editNewDb) return hasConnectedDbHeader;
Avoid too many return
statements within this function. Open
Open
return {
...trimmedState,
[action.payload.name]: action.payload.value,
};
Avoid too many return
statements within this function. Open
Open
return {
...trimmedState,
ssh_tunnel: {
password: trimmedState?.ssh_tunnel?.password,
...ssh_tunnel,
Avoid too many return
statements within this function. Open
Open
if (db || editNewDb) return hasDbHeader;
Avoid too many return
statements within this function. Open
Open
return noDbHeader;
Avoid too many return
statements within this function. Open
Open
return {
...trimmedState,
ssh_tunnel: {
private_key: trimmedState?.ssh_tunnel?.private_key,
private_key_password:
Avoid too many return
statements within this function. Open
Open
return {
...trimmedState,
};
Avoid too many return
statements within this function. Open
Open
return {
...trimmedState,
catalog: [{ name: '', value: '' }],
};
Avoid too many return
statements within this function. Open
Open
return null;
Avoid too many return
statements within this function. Open
Open
return {
...trimmedState,
[action.payload.name]: action.payload.checked,
};
Avoid too many return
statements within this function. Open
Open
return {
...action.payload,
engine: action.payload.backend || trimmedState.engine,
configuration_method: action.payload.configuration_method,
catalog: engineRootCatalog,
Avoid too many return
statements within this function. Open
Open
return {
...trimmedState,
extra: JSON.stringify({
...extraJson,
schema_options: {
Avoid too many return
statements within this function. Open
Open
return t('Unknown value');
Avoid too many return
statements within this function. Open
Open
return {
...trimmedState,
parameters: {
...trimmedState.parameters,
[action.payload.name]: action.payload.value,
Avoid too many return
statements within this function. Open
Open
return {
...trimmedState,
catalog: catalogCopy,
parameters: {
...trimmedState.parameters,
Avoid too many return
statements within this function. Open
Open
return {
...trimmedState,
catalog: [...trimmedState.catalog, { name: '', value: '' }],
};
Avoid too many return
statements within this function. Open
Open
return;
Avoid too many return
statements within this function. Open
Open
return {
tabs: topLevelTabsInFullScope
.map(tabId => extractTabLabel(layout[tabId]))
.filter(Boolean),
charts: chartsInExcludedTabs.map(extractChartLabel).filter(Boolean),
Avoid too many return
statements within this function. Open
Open
return undefined;