Showing 502 of 8,855 total issues
Function fetchOtherUserWalletBalance
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
async fetchOtherUserWalletBalance(
walletAddress: string,
token: string,
linkToken?: string,
) {
- Create a ticketCreate a ticket
Function RightActions
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
export const RightActions = (props: RightActionsProps) => {
const {jid, leaveChat, swipeRef} = props;
const jidWithoutConference = jid?.split('@')[0];
const isDefaultChat = checkIsDefaultChat(jidWithoutConference);
const {loginStore} = useStores();
- Create a ticketCreate a ticket
Function TransactionsScreen
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
const TransactionsScreen = observer(() => {
const {walletStore, loginStore} = useStores();
useEffect(() => {
walletStore.fetchOwnTransactions(
loginStore.initialData.walletAddress,
- Create a ticketCreate a ticket
Function connectData
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
const connectData = () => {
console.log('=> Running a bot on a ' + process.env.TYPE + ' server')
let data = {
botName: process.env.BOT_NAME,
botAddress: process.env.BOT_ADDRESS,
- Create a ticketCreate a ticket
Function sendThreadMessage
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
const sendThreadMessage = (button: any) => {
if (myThreadMessage.trim().length > 0) {
let userAvatar = "";
if (profile?.profileImage) {
userAvatar = profile?.profileImage;
- Create a ticketCreate a ticket
Function createPrivateChat
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
export const createPrivateChat = async (
myWalletAddress: string,
otherUserWalletAddress: string,
myFirstName: string,
otherFirstName: string,
- Create a ticketCreate a ticket
Function produceNfmtItems
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
export const produceNfmtItems = (array = []) => {
const result = [];
const rareTotal = 20;
const uniqueTotal = 1;
- Create a ticketCreate a ticket
Function onSubmit
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
onSubmit: (values) => {
setDisable(true);
loginEmail(values.email, values.password)
.then((resp) => {
const user = resp.data.user;
- Create a ticketCreate a ticket
Function onSubmit
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
onSubmit: async (values) => {
if (!file) {
setFileError("required");
return;
}
- Create a ticketCreate a ticket
Function getVcard
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
getVcard(username: string) {
if (username !== this.client.jid?.getLocal()) {
// get other vcard
const message = xml(
"iq",
- Create a ticketCreate a ticket
Function getGraph
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
const getGraph = async () => {
const sessionGraphResp = await http.httpWithAuth()({
url: `${baseUrl}/analysis/sessions-graph?startDate=${startDate}&endDate=${endDate}`,
});
// /analysis/apis-graph?startDate=${startDate}&endDate=${endDate}
- Create a ticketCreate a ticket
Function onGetCollectionPress
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
const onGetCollectionPress = async () => {
const bot = defaultBotsList.find(
defaultBot => defaultBot.name === 'Merchant Bot',
);
const {roomJid, roomName} = await createPrivateChat(
- Create a ticketCreate a ticket
Function fetchTransaction
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
async fetchTransaction(
walletAddress: string,
limit: number,
offset: number,
- Create a ticketCreate a ticket
Method initializeFlipper
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
private static void initializeFlipper(
Context context, ReactInstanceManager reactInstanceManager) {
if (BuildConfig.DEBUG) {
try {
/*
- Read upRead up
- Create a ticketCreate a ticket
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function router
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
const router = (handlerData) => {
handlerData.userStep = userSteps('getStep', handlerData.userJID);
if (messageCheck(handlerData.message, 'close') || messageCheck(handlerData.message, 'leave')) {
return leaveHandler(handlerData);
- Read upRead up
- Create a ticketCreate a ticket
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function generateMessage
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
const generateMessage = (data, message, isSystemMessage) => {
let userName;
let finalMessage;
//Getting username
- Read upRead up
- Create a ticketCreate a ticket
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function generateMessage
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
const generateMessage = (data, message, isSystemMessage) => {
let userName;
let finalMessage;
//Getting username
- Read upRead up
- Create a ticketCreate a ticket
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function generateMessage
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
const generateMessage = (data, message, isSystemMessage) => {
let userName;
let finalMessage;
//Getting username
- Read upRead up
- Create a ticketCreate a ticket
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function generateMessage
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
const generateMessage = (data, message, isSystemMessage) => {
let userName;
let finalMessage;
//Getting username
- Read upRead up
- Create a ticketCreate a ticket
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function generateMessage
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
const generateMessage = (data, message, isSystemMessage) => {
let userName;
let finalMessage;
//Getting username
- Read upRead up
- Create a ticketCreate a ticket
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"