Showing 2,441 of 6,157 total issues
Function setTables
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function setTables(tableSchemas) {
const tables = tableSchemas
.filter(tableSchema => tableSchema.description !== null)
.map(tableSchema => {
const {
Function actions.MERGE_TABLE
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[actions.MERGE_TABLE]() {
const at = { ...action.table };
let existingTable;
state.tables.forEach(xt => {
if (
Function periodicRender
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const periodicRender = () => {
const { fetchCharts, logEvent, charts, dashboardInfo } = this.props;
const { metadata } = dashboardInfo;
const immune = metadata.timed_refresh_immune_slices || [];
const affectedCharts = Object.values(charts)
Function render
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const {
component,
depth,
parentComponent,
Function mapDispatchToProps
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function mapDispatchToProps(dispatch) {
return bindActionCreators(
{
addSuccessToast,
addDangerToast,
Function handleContextMenu
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
? (
value: D,
cellPoint: {
key: string;
value: DataRecordValue;
Function constructor
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
constructor() {
super({
buildQuery,
controlPanel,
loadChart: () => import('./EchartsRadar'),
Function useSticky
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function useSticky<D extends object>(hooks: Hooks<D>) {
hooks.useInstance.push(useInstance);
hooks.stateReducers.push((newState, action_, prevState) => {
const action = action_ as ReducerAction<
ReducerActions,
Function buildQuery
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function buildQuery(formData: BoxPlotQueryFormData) {
return buildQueryContext(formData, baseQueryObject => [
{
...baseQueryObject,
columns: [
Function constructor
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
constructor() {
super({
buildQuery,
controlPanel,
loadChart: () => import('./EchartsTreemap'),
Function constructor
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
constructor() {
super({
buildQuery,
controlPanel,
loadChart: () => import('./EchartsFunnel'),
Function queryContexts
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
buildQueryContext(fd, baseQueryObject => {
const queryObject = {
...baseQueryObject,
columns: [
...(isXAxisSet(formData)
Function queryContextA
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const queryContextA = buildQueryContext(formData, baseQueryObject => {
const postProcessing: PostProcessingRule[] = [];
postProcessing.push(timeCompareOperator(formData, baseQueryObject));
const nonCustomNorInheritShifts = ensureIsArray(
Function renderKicker
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
renderKicker(maxHeight: number) {
const { timestamp, showTimestamp, formatTime, width } = this.props;
if (
!formatTime ||
!showTimestamp ||
Function adhocFilter
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const adhocFilter = useMemo(() => {
if (isSavedMetric(droppedItem)) {
return new AdhocFilter({
expressionType: ExpressionTypes.Sql,
clause: Clauses.Having,
Function toggleFilter
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
(
e: MouseEvent,
value: string,
filters: FilterType,
pivotData: Record<string, any>,
Function fetchAdvancedDataTypeValueCallback
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
(
comp: string | string[],
advancedDataTypesState: AdvancedDataTypesState,
subjectAdvancedDataType?: string,
) => {
Function refreshComparatorSuggestions
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const refreshComparatorSuggestions = () => {
const { datasource } = props;
const col = props.adhocFilter.subject;
const having = props.adhocFilter.clause === Clauses.Having;
Function constructor
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
constructor(sourceFormData: QueryFormData) {
/*
* Support form_data for smooth switching between different viz
* */
const formData = Object.freeze(sourceFormData);
Function loadDatasetOverwriteOptions
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async (input = '') => {
const { userId } = user;
const queryParams = rison.encode({
filters: [
{