Showing 2,441 of 6,157 total issues
Function getCrossFilterDataMask
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
(value: { [key: string]: string }) => {
const isActiveFilterValue = (key: string, val: DataRecordValue) =>
!!selectedFilters && selectedFilters[key]?.includes(val);
if (!value) {
Function contextmenu
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
contextmenu: async eventParams => {
if (onContextMenu) {
eventParams.event.stop();
const { data, seriesName } = eventParams;
const drillToDetailFilters: BinaryQueryObjectFilterClause[] = [];
Function Alert
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function Alert(props: AlertProps) {
const {
type = 'info',
description,
showIcon = true,
Function renderTable
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const renderTable = (type: objectType) => {
const data = objects[type].map((o: TaggedObject) => ({
[type]: <a href={o.url}>{o.name}</a>,
modified: moment.utc(o.changed_on).fromNow(),
tags: o.tags,
File hydrate.js
has 258 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
File ScopingModal.test.tsx
has 258 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
File DatasetList.test.tsx
has 257 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
PrestoBaseEngineSpec
has 21 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class PrestoBaseEngineSpec(BaseEngineSpec, metaclass=ABCMeta):
"""
A base class that share common functions between Presto and Trino
"""
envVarConfigSetter
has 21 functions (exceeds 20 allowed). Consider refactoring. Open
Open
const envVarConfigSetter: { [envVar: string]: (val: string) => void } = {
PORT: val => (config.port = toNumber(val)),
LOG_LEVEL: val => (config.logLevel = val),
LOG_TO_FILE: val => (config.logToFile = toBoolean(val)),
LOG_FILENAME: val => (config.logFilename = val),
Function updateHistory
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async (
formData,
datasourceId,
datasourceType,
isReplace,
Function render
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
if (this.cachedProps !== this.props) {
this.cachedProps = this.props;
this.cachedBasePivotSettings = this.getBasePivotSettings();
}
Function renderPopoverContent
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
renderPopoverContent() {
return (
<div style={{ width: '300px' }}>
<PopoverSection
title={t('Longitude & Latitude columns')}
Function formatter
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
formatter: (params: any) => {
const xValue: number = richTooltip
? params[0].value[0]
: params.value[0];
const forecastValue: any[] = richTooltip ? params : [params];
Function useDatasetChartRecords
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const useDatasetChartRecords = (datasetId: string) => {
const { addDangerToast } = useToasts();
// Always filters charts by dataset
const baseFilters = useMemo(
Function renderModalFooter
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const renderModalFooter = () => {
if (db) {
// if db show back + connect
if (!hasConnectedDb || editNewDb) {
return (
Function getCrossFiltersConfiguration
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const getCrossFiltersConfiguration = (
dashboardLayout: DashboardLayout,
metadata: Pick<
DashboardInfo['metadata'],
'chart_configuration' | 'global_chart_configuration'
Function refreshHandler
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
(force = false) => {
if (!hasDataset || !formFilter?.dataset?.value) {
forceUpdate();
return;
}
Function AddDataset
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function AddDataset() {
const [dataset, setDataset] = useReducer<
Reducer<Partial<DatasetObject> | null, DSReducerActionType>
>(datasetReducer, null);
const [hasColumns, setHasColumns] = useState(false);
File update.py
has 256 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
File PopKPI.tsx
has 256 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file