polkadot-js/apps

View on GitHub

Showing 2,080 of 2,080 total issues

Function getFiltered has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

function getFiltered (isOwn: boolean, stakingOverview: DeriveStakingOverview | undefined, favorites: string[], next?: string[], ownStashIds?: string[]): Filtered {
Severity: Minor
Found in packages/page-staking-legacy/src/Validators/CurrentList.tsx - About 35 mins to fix

    Function setAdditionalFieldData has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    function setAdditionalFieldData (api: ApiPromise, info: IdentityInfo, key: string, setActive: null | ((isActive: boolean) => void), setVal: (val: string) => void): Data {
    Severity: Minor
    Found in packages/page-accounts/src/modals/IdentityMain.tsx - About 35 mins to fix

      Function sortAccounts has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

      export function sortAccounts (accountsList: SortedAccount[], accountsMap: Record<string, SortedAccount>, balances: Record<string, AccountBalance>, by: SortCategory, fromMax: boolean): SortedAccount[] {
      Severity: Minor
      Found in packages/page-accounts/src/util.tsx - About 35 mins to fix

        Function getMapMembers has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

        function getMapMembers (members: DeriveSocietyMember[], skeptics: string[], voters: string[], { defender, founder, hasDefender, head }: DeriveSociety, warnStrikes: BN): [MapMember[], BN] {
        Severity: Minor
        Found in packages/page-society/src/index.tsx - About 35 mins to fix

          Function canary has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

          function canary (ctx: CanvasRenderingContext2D, w: number, h: number, s: number, f: (ctx: CanvasRenderingContext2D, path: Path2D) => void): void {
          Severity: Minor
          Found in packages/page-society/src/draw/canary.ts - About 35 mins to fix

            Function extractRewards has 5 arguments (exceeds 4 allowed). Consider refactoring.
            Open

            function extractRewards (labels: string[], erasRewards: DeriveEraRewards[], ownSlashes: DeriveOwnSlashes[], allPoints: DeriveStakerPoints[], divisor: BN): LineData {
            Severity: Minor
            Found in packages/page-staking-legacy/src/Query/ChartRewards.tsx - About 35 mins to fix

              Function isFundUpdated has 5 arguments (exceeds 4 allowed). Consider refactoring.
              Open

              function isFundUpdated (bestNumber: BlockNumber, minContribution: BN, { info: { cap, end, raised }, paraId }: Campaign, leased: ParaId[], allPrev: Campaigns): boolean {
              Severity: Minor
              Found in packages/page-parachains/src/useFunds.ts - About 35 mins to fix

                Function getChartResult has 5 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                function getChartResult (totalEligible: BN, isConvictionVote: boolean, info: PalletReferendaReferendumInfoConvictionVotingTally | PalletReferendaReferendumInfoRankedCollectiveTally, track: PalletReferendaTrackInfo, trackGraph: CurveGraph): ChartResultExt[] | null {
                Severity: Minor
                Found in packages/page-referenda/src/Referenda/Referendum.tsx - About 35 mins to fix

                  Function getTrackInfo has 5 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                  export function getTrackInfo (api: ApiPromise, specName: string, palletReferenda: string, tracks: TrackDescription[], trackId?: number): TrackInfoExt | undefined {
                  Severity: Minor
                  Found in packages/page-referenda/src/util.ts - About 35 mins to fix

                    Function extractRewards has 5 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                    function extractRewards (labels: string[], erasRewards: DeriveEraRewards[], ownSlashes: DeriveOwnSlashes[], allPoints: DeriveStakerPoints[], divisor: BN): LineData {
                    Severity: Minor
                    Found in packages/page-staking/src/Query/ChartRewards.tsx - About 35 mins to fix

                      Function createResult has 5 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                      function createResult (bestNumber: BlockNumber, minContribution: BN, funds: Campaign[], leased: ParaId[], prev: Campaigns): Campaigns {
                      Severity: Minor
                      Found in packages/page-parachains/src/useFunds.ts - About 35 mins to fix

                        Function getFiltered has 5 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                        function getFiltered (isOwn: boolean, stakingOverview: DeriveStakingOverview | undefined, favorites: string[], next?: string[], ownStashIds?: string[]): Filtered {
                        Severity: Minor
                        Found in packages/page-staking/src/Validators/CurrentList.tsx - About 35 mins to fix

                          Function applyFilter has 5 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                          function applyFilter (validators: ValidatorInfo[], medianComm: number, allIdentity: Record<string, DeriveHasIdentity>, { daysPayout, isBabe, maxPaid, withElected, withGroup, withIdentity, withPayout, withoutComm, withoutOver }: Flags, nominatedBy?: NominatedByMap): ValidatorInfo[] {
                          Severity: Minor
                          Found in packages/page-staking/src/Targets/index.tsx - About 35 mins to fix

                            Function mergeCurrent has 5 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                            function mergeCurrent (ranges: [number, number][], auctionInfo: AuctionInfo, prev: Winning[] | undefined, optCurrent: Option<WinningData>, blockOffset: BN): Winning[] | undefined {
                            Severity: Minor
                            Found in packages/page-parachains/src/useWinningData.ts - About 35 mins to fix

                              Function extractParams has 5 arguments (exceeds 4 allowed). Consider refactoring.
                              Open

                              async function extractParams (api: ApiPromise, address: string, options: Partial<SignerOptions>, getLedger: () => LedgerGeneric | Ledger, setQrState: (state: QrState) => void): Promise<['qr' | 'signing', string, Partial<SignerOptions>, boolean]> {
                              Severity: Minor
                              Found in packages/react-signer/src/TxSigned.tsx - About 35 mins to fix

                                Function getStatus has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                Open

                                function getStatus (api: ApiPromise, bestNumber: BlockNumber, votes: Votes, numMembers: number, section: CollectiveType): State {
                                Severity: Minor
                                Found in packages/react-hooks/src/useVotingStatus.ts - About 35 mins to fix

                                  Function checkVisible has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

                                  function checkVisible ({ api, isApiConnected, isApiReady, isDevelopment: isApiDevelopment }: ApiProps, allowTeleport: boolean, hasAccounts: boolean, hasSudo: boolean, { isDevelopment, isHidden, needsAccounts, needsApi, needsApiCheck, needsApiInstances, needsSudo, needsTeleport }: Route['display']): boolean {
                                  Severity: Minor
                                  Found in packages/apps/src/Menu/index.tsx - About 35 mins to fix

                                    Function fitsInView has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                    Open

                                    function fitsInView (positionY: VerticalPosition, trigger: ElementPosition, popupWindowHeight: number, windowSize: WindowSize, scrollY: number): boolean {
                                    Severity: Minor
                                    Found in packages/react-components/src/Popup/utils.ts - About 35 mins to fix

                                      Function checkVisibility has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                      Open

                                      export function checkVisibility (api: ApiPromise, address: string, accountInfo: DeriveAccountInfo, filterName = '', onlyNamed = false): boolean {
                                      Severity: Minor
                                      Found in packages/react-components/src/util/checkVisibility.tsx - About 35 mins to fix

                                        Function createHdr has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                        Open

                                        function createHdr (bn: string, hash: string, parent: string, author: string | null, isEmpty = false): LinkHeader {
                                        Severity: Minor
                                        Found in packages/page-explorer/src/Forks.tsx - About 35 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language