Showing 2,441 of 6,157 total issues
Function df_to_sql
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def df_to_sql( # pylint: disable=too-many-locals
Function where_latest_partition
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def where_latest_partition( # pylint: disable=unused-argument
Function CSV_TO_HIVE_UPLOAD_DIRECTORY_FUNC
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def CSV_TO_HIVE_UPLOAD_DIRECTORY_FUNC( # pylint: disable=invalid-name
Function dataset_macro
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def dataset_macro(
Function _get_data_response
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _get_data_response(
Function _update_vm_datasources_access
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _update_vm_datasources_access( # pylint: disable=too-many-locals
Function get_time_filter
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def get_time_filter(
Function import_datasource
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def import_datasource(
Function compute_thumbnails
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def compute_thumbnails(
Function sortAndFilterSeries
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
rows: DataRecord[],
xAxis: string,
extraMetricLabels: any[],
sortSeriesType?: SortSeriesType,
sortSeriesAscending?: boolean,
Function getMinAndMaxFromBounds
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
axisType: AxisType,
truncateAxis: boolean,
min?: number,
max?: number,
seriesType?: EchartsTimeseriesSeriesType,
Function sortRows
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
rows: DataRecord[],
totalStackedValues: number[],
xAxis: string,
xAxisSortSeries: SortSeriesType,
xAxisSortSeriesAscending: boolean,
Function _update_dataset_catalog_schema_perm
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def _update_dataset_catalog_schema_perm(
Function get_datasources_accessible_by_user
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def get_datasources_accessible_by_user( # pylint: disable=invalid-name
Function getChartPadding
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
show: boolean,
orientation: LegendOrientation,
margin?: string | number | null,
padding?: { top?: number; bottom?: number; left?: number; right?: number },
isHorizontal?: boolean,
Function createNewSlice
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
can_add: boolean,
can_download: boolean,
can_overwrite: boolean,
slice: Slice,
form_data: QueryFormData,
Function getLayer
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
formData: QueryFormData,
payload: JsonObject,
onAddFilter: () => void,
setTooltip: (tooltip: TooltipProps['tooltip']) => void,
datasource: Datasource,
Function alterInArr
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
state: Record<string, any>,
arrKey: string,
obj: Record<string, any>,
alterations: Record<string, any>,
idKey = 'id',
Function fillNativeFilters
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
filterConfig: FilterConfiguration,
mergedDataMask: DataMaskStateWithId,
draftDataMask: DataMaskStateWithId,
initialDataMask?: DataMaskStateWithId,
currentFilters?: Filters,
Function sendBeacon
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
Open
const sendBeacon = events => {
if (events.length <= 0) {
return;
}
- 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"