Showing 2,441 of 6,157 total issues
Function convertFilters
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function convertFilters(fts: InternalFilter[]): FilterValue[] {
return fts
.filter(
f =>
!(
Function onFinish
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const onFinish = () => {
const fields = form.getFieldsValue();
delete fields.database;
fields.schema = currentSchema;
const mergedValues = { ...defaultUploadInfo, ...fields };
Function setFilterConfiguration
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async (dispatch: Dispatch, getState: () => any) => {
if (isFilterChangesEmpty(filterChanges)) {
return;
}
Function loadDatasetOptions
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const loadDatasetOptions = async (
search: string,
page: number,
pageSize: number,
) => {
Function setupApp
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function setupApp() {
$(document).ready(function () {
$(':checkbox[data-checkbox-api-prefix]').change(function (
this: HTMLElement,
) {
Function handleDashboardData
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
dashboardData => {
const {
id,
dashboard_title,
slug,
Function CrossFilterChartTitle
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const CrossFilterChartTitle = (props: {
title: string;
orientation: FilterBarOrientation;
onHighlightFilterSource: () => void;
}) => {
Function defaultConfig
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function defaultConfig(): ConfigType {
return {
port: 8080,
logLevel: 'info',
logToFile: false,
Function handleContextMenu
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const handleContextMenu = source => {
const pointerEvent = d3.event;
pointerEvent.preventDefault();
const key = source.id || source.country;
const val =
Function sortAs
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const sortAs = function (order) {
const mapping = {};
// sort lowercased keys similarly
const lMapping = {};
Function drawText
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
drawText(ctx, pixel, options = {}) {
const IS_DARK_THRESHOLD = 110;
const {
fontHeight = 0,
label = '',
Function innerGetOptions
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const innerGetOptions = props => {
const { choices, optionRenderer, valueKey } = props;
let options = [];
if (props.options) {
options = props.options.map(o => ({
Function v1ChartDataRequest
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const v1ChartDataRequest = async (
formData,
resultFormat,
resultType,
force,
Function execute_sql_statements
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def execute_sql_statements(
# pylint: disable=too-many-arguments, too-many-locals, too-many-statements, too-many-branches
query_id: int,
rendered_query: str,
return_results: bool,
Function __init__
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def __init__( # pylint: disable=too-many-locals, too-many-arguments
self,
*,
annotation_layers: list[dict[str, Any]] | None = None,
applied_time_extras: dict[str, str] | None = None,
Function allEventHandlers
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const allEventHandlers = (
transformedProps: BaseTransformedProps<any> & CrossFilterTransformedProps,
) => {
const {
groupby,
Function constructor
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
constructor() {
super({
buildQuery,
controlPanel,
loadChart: () => import('./EchartsGauge'),
Function StyleControl
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const StyleControl = (props: CustomControlConfig<StyleCustomControlProps>) => {
const theme = useTheme();
const defaultValue = props?.value
? undefined
Function getPadding
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function getPadding(
showLegend: boolean,
legendOrientation: LegendOrientation,
addYAxisTitleOffset: boolean,
zoomable: boolean,
Function InteractiveCronPicker
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const InteractiveCronPicker = (props: CronProps) => {
// @ts-ignore
const inputRef = useRef<Input>(null);
const [value, setValue] = useState(props.value);
const customSetValue = useCallback(