Showing 812 of 823 total issues
Function renameUseTableQueryResult
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const renameUseTableQueryResult = (
j: JSCodeshift,
source: Collection,
) => {
const renameProperties = (prop) => {
Function basicToRelation
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const basicToRelation: FieldTransformer = (
fields,
resources,
resource,
record,
Function imageFields
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const imageFields = (field: InferField) => {
if (field.type === "image") {
if (field.multiple) {
const val = accessor("item", undefined, field.accessor);
return jsx`
Function addOrUpdateImports
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const addOrUpdateImports = (
j: JSCodeshift,
source: Collection,
importPath: string,
importIdentifierNames: string[],
Function urlFields
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const urlFields = (field: InferField) => {
if (field.type === "url") {
imports.push(["UrlField", "@refinedev/mui"]);
if (field.multiple) {
Function numberFields
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const numberFields = (field: InferField) => {
if (field.type === "number") {
imports.push(["NumberField", "@refinedev/mui"]);
if (field.multiple) {
Function booleanFields
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const booleanFields = (field: InferField) => {
if (field.type === "boolean") {
imports.push(["BooleanField", "@refinedev/mui"]);
if (field.multiple) {
Function emailFields
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const emailFields = (field: InferField) => {
if (field.type === "email") {
imports.push(["EmailField", "@refinedev/mui"]);
if (field.multiple) {
Function liveProvider
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const liveProvider = (client: Ably.Realtime): LiveProvider => {
return {
subscribe: ({ channel, types, params, callback }) => {
const channelInstance = client.channels.get(channel);
Function getInstalledRefinePackagesFromNodeModules
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const getInstalledRefinePackagesFromNodeModules = async () => {
const REFINE_PACKAGES = ["core"];
try {
const packagesFromGlobbySearch = await globby("node_modules/@refinedev/*", {
Function emailFields
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const emailFields = (field: InferField) => {
if (field.type === "email") {
imports.push(["EmailField", "@refinedev/mantine"]);
if (field.multiple) {
Function urlFields
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const urlFields = (field: InferField) => {
if (field.type === "url") {
imports.push(["UrlField", "@refinedev/mantine"]);
if (field.multiple) {
Function numberFields
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const numberFields = (field: InferField) => {
if (field.type === "number") {
imports.push(["NumberField", "@refinedev/mantine"]);
if (field.multiple) {
Function booleanFields
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const booleanFields = (field: InferField) => {
if (field.type === "boolean") {
imports.push(["BooleanField", "@refinedev/mantine"]);
if (field.multiple) {
Function relationHooksCode
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
.map((field) => {
if (field?.relation && !field.fieldable && field.resource) {
imports.push(["useMany", "@refinedev/core"]);
let idsString = "";
Function numberFields
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const numberFields = (field: InferField) => {
if (field.type === "number") {
imports.push(["NumberInput", "@mantine/core"]);
initialValues = {
Function relationHooksCode
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
.map((field) => {
if (field?.relation && !field.fieldable && field.resource) {
imports.push(["useSelect", "@refinedev/mantine"]);
let val = accessor(recordName, field.key, field.accessor, false);
Function inferMultipleRecords
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const inferMultipleRecords = (records: Record<string, unknown>[]) => {
// infer each record
// get the most common one for each field
// also get the first occurence of the each most common field/key and construct a fresh record from them.
// return the fresh record and the inferred fields
Function relationHooksCode
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
.map((field) => {
if (field?.relation && !field.fieldable && field.resource) {
imports.push(["useMany", "@refinedev/core"]);
let idsString = "";
Function textFields
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const textFields = (field: InferField) => {
if (field.type === "text") {
imports.push(["TextFieldComponent as TextField", "@refinedev/mui"]);
if (field.multiple) {