dappros/ethora

View on GitHub
client-reactnative/src/navigation/HomeStack.tsx

Summary

Maintainability
F
4 days
Test Coverage

Function HomeStackScreen has 272 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const HomeStackScreen = observer(() => {
  const {chatStore, loginStore, walletStore, apiStore} = useStores();
  const {initialData} = loginStore;
  const {xmppPassword, xmppUsername, walletAddress} = initialData;
  const navigation = useNavigation<HomeStackNavigationProp>();
Severity: Major
Found in client-reactnative/src/navigation/HomeStack.tsx - About 1 day to fix

File HomeStack.tsx has 310 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import {createNativeStackNavigator} from '@react-navigation/native-stack';
import {observer} from 'mobx-react-lite';
import React, {useEffect} from 'react';
import {appLinkingUrl} from '../../docs/config';
import {MainHeader} from '../components/MainHeader/MainHeader';
Severity: Minor
Found in client-reactnative/src/navigation/HomeStack.tsx - About 3 hrs to fix

Function removeListener has 37 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    const removeListener = Linking.addEventListener('url', data => {
      if (data.url) {
        if (data.url.includes('profileLink')) {
          const params = data.url.split(appLinkingUrl)[1];
          const queryParams = new URLSearchParams(params);
Severity: Minor
Found in client-reactnative/src/navigation/HomeStack.tsx - About 1 hr to fix

Similar blocks of code found in 2 locations. Consider refactoring.
Open

      <HomeStack.Screen
        name={'OtherUserProfileScreen'}
        //@ts-ignore
        component={OtherUserProfileScreen}
        options={() => ({
Severity: Major
Found in client-reactnative/src/navigation/HomeStack.tsx and 1 other location - About 1 hr to fix
client-reactnative/src/navigation/HomeStack.tsx on lines 294..301

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 56.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 2 locations. Consider refactoring.
Open

      <HomeStack.Screen
        name={'DocumentHistoryScreen'}
        //@ts-ignore
        component={DocumentHistoryScreen}
        options={() => ({
Severity: Major
Found in client-reactnative/src/navigation/HomeStack.tsx and 1 other location - About 1 hr to fix
client-reactnative/src/navigation/HomeStack.tsx on lines 214..221

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 56.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 2 locations. Consider refactoring.
Open

            setTimeout(() => {
              retrieveOtherUserVcard(
                initialData.xmppUsername,
                xmppId,
                chatStore.xmpp,
Severity: Minor
Found in client-reactnative/src/navigation/HomeStack.tsx and 1 other location - About 55 mins to fix
client-reactnative/src/navigation/HomeStack.tsx on lines 152..165

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 53.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 2 locations. Consider refactoring.
Open

          } else {
            retrieveOtherUserVcard(
              initialData.xmppUsername,
              xmppId,
              chatStore.xmpp,
Severity: Minor
Found in client-reactnative/src/navigation/HomeStack.tsx and 1 other location - About 55 mins to fix
client-reactnative/src/navigation/HomeStack.tsx on lines 102..115

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 53.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 15 locations. Consider refactoring.
Open

      <HomeStack.Screen
        name={'DebugScreen'}
        component={DebugScreen}
        options={() => ({
          header: ({}) => <MainHeader />,
Severity: Major
Found in client-reactnative/src/navigation/HomeStack.tsx and 14 other locations - About 50 mins to fix
client-reactnative/src/navigation/HomeStack.tsx on lines 186..192
client-reactnative/src/navigation/HomeStack.tsx on lines 193..199
client-reactnative/src/navigation/HomeStack.tsx on lines 200..206
client-reactnative/src/navigation/HomeStack.tsx on lines 207..213
client-reactnative/src/navigation/HomeStack.tsx on lines 222..228
client-reactnative/src/navigation/HomeStack.tsx on lines 229..235
client-reactnative/src/navigation/HomeStack.tsx on lines 236..242
client-reactnative/src/navigation/HomeStack.tsx on lines 250..256
client-reactnative/src/navigation/HomeStack.tsx on lines 257..263
client-reactnative/src/navigation/HomeStack.tsx on lines 264..270
client-reactnative/src/navigation/HomeStack.tsx on lines 271..277
client-reactnative/src/navigation/HomeStack.tsx on lines 278..284
client-reactnative/src/navigation/HomeStack.tsx on lines 318..324
client-reactnative/src/navigation/HomeStack.tsx on lines 325..331

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 52.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 15 locations. Consider refactoring.
Open

      <HomeStack.Screen
        name={'NewChatScreen'}
        component={NewChatScreen}
        options={() => ({
          header: ({}) => <MainHeader />,
Severity: Major
Found in client-reactnative/src/navigation/HomeStack.tsx and 14 other locations - About 50 mins to fix
client-reactnative/src/navigation/HomeStack.tsx on lines 186..192
client-reactnative/src/navigation/HomeStack.tsx on lines 193..199
client-reactnative/src/navigation/HomeStack.tsx on lines 200..206
client-reactnative/src/navigation/HomeStack.tsx on lines 207..213
client-reactnative/src/navigation/HomeStack.tsx on lines 229..235
client-reactnative/src/navigation/HomeStack.tsx on lines 236..242
client-reactnative/src/navigation/HomeStack.tsx on lines 243..249
client-reactnative/src/navigation/HomeStack.tsx on lines 250..256
client-reactnative/src/navigation/HomeStack.tsx on lines 257..263
client-reactnative/src/navigation/HomeStack.tsx on lines 264..270
client-reactnative/src/navigation/HomeStack.tsx on lines 271..277
client-reactnative/src/navigation/HomeStack.tsx on lines 278..284
client-reactnative/src/navigation/HomeStack.tsx on lines 318..324
client-reactnative/src/navigation/HomeStack.tsx on lines 325..331

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 52.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 15 locations. Consider refactoring.
Open

      <HomeStack.Screen
        name={'ChatScreen'}
        component={ChatScreen}
        options={() => ({
          header: ({}) => <MainHeader />,
Severity: Major
Found in client-reactnative/src/navigation/HomeStack.tsx and 14 other locations - About 50 mins to fix
client-reactnative/src/navigation/HomeStack.tsx on lines 186..192
client-reactnative/src/navigation/HomeStack.tsx on lines 200..206
client-reactnative/src/navigation/HomeStack.tsx on lines 207..213
client-reactnative/src/navigation/HomeStack.tsx on lines 222..228
client-reactnative/src/navigation/HomeStack.tsx on lines 229..235
client-reactnative/src/navigation/HomeStack.tsx on lines 236..242
client-reactnative/src/navigation/HomeStack.tsx on lines 243..249
client-reactnative/src/navigation/HomeStack.tsx on lines 250..256
client-reactnative/src/navigation/HomeStack.tsx on lines 257..263
client-reactnative/src/navigation/HomeStack.tsx on lines 264..270
client-reactnative/src/navigation/HomeStack.tsx on lines 271..277
client-reactnative/src/navigation/HomeStack.tsx on lines 278..284
client-reactnative/src/navigation/HomeStack.tsx on lines 318..324
client-reactnative/src/navigation/HomeStack.tsx on lines 325..331

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 52.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 15 locations. Consider refactoring.
Open

      <HomeStack.Screen
        name={'TransactionsScreen'}
        component={TransactionsScreen}
        options={() => ({
          header: ({}) => <MainHeader />,
Severity: Major
Found in client-reactnative/src/navigation/HomeStack.tsx and 14 other locations - About 50 mins to fix
client-reactnative/src/navigation/HomeStack.tsx on lines 186..192
client-reactnative/src/navigation/HomeStack.tsx on lines 193..199
client-reactnative/src/navigation/HomeStack.tsx on lines 200..206
client-reactnative/src/navigation/HomeStack.tsx on lines 222..228
client-reactnative/src/navigation/HomeStack.tsx on lines 229..235
client-reactnative/src/navigation/HomeStack.tsx on lines 236..242
client-reactnative/src/navigation/HomeStack.tsx on lines 243..249
client-reactnative/src/navigation/HomeStack.tsx on lines 250..256
client-reactnative/src/navigation/HomeStack.tsx on lines 257..263
client-reactnative/src/navigation/HomeStack.tsx on lines 264..270
client-reactnative/src/navigation/HomeStack.tsx on lines 271..277
client-reactnative/src/navigation/HomeStack.tsx on lines 278..284
client-reactnative/src/navigation/HomeStack.tsx on lines 318..324
client-reactnative/src/navigation/HomeStack.tsx on lines 325..331

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 52.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 15 locations. Consider refactoring.
Open

      <HomeStack.Screen
        name={'AccountScreen'}
        component={AccountScreen}
        options={() => ({
          header: ({}) => <MainHeader />,
Severity: Major
Found in client-reactnative/src/navigation/HomeStack.tsx and 14 other locations - About 50 mins to fix
client-reactnative/src/navigation/HomeStack.tsx on lines 186..192
client-reactnative/src/navigation/HomeStack.tsx on lines 193..199
client-reactnative/src/navigation/HomeStack.tsx on lines 200..206
client-reactnative/src/navigation/HomeStack.tsx on lines 207..213
client-reactnative/src/navigation/HomeStack.tsx on lines 222..228
client-reactnative/src/navigation/HomeStack.tsx on lines 229..235
client-reactnative/src/navigation/HomeStack.tsx on lines 243..249
client-reactnative/src/navigation/HomeStack.tsx on lines 250..256
client-reactnative/src/navigation/HomeStack.tsx on lines 257..263
client-reactnative/src/navigation/HomeStack.tsx on lines 264..270
client-reactnative/src/navigation/HomeStack.tsx on lines 271..277
client-reactnative/src/navigation/HomeStack.tsx on lines 278..284
client-reactnative/src/navigation/HomeStack.tsx on lines 318..324
client-reactnative/src/navigation/HomeStack.tsx on lines 325..331

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 52.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 15 locations. Consider refactoring.
Open

      <HomeStack.Screen
        name={'CoinPurchaseScreen'}
        component={CoinPurchaseScreen}
        options={() => ({
          header: ({}) => <MainHeader />,
Severity: Major
Found in client-reactnative/src/navigation/HomeStack.tsx and 14 other locations - About 50 mins to fix
client-reactnative/src/navigation/HomeStack.tsx on lines 186..192
client-reactnative/src/navigation/HomeStack.tsx on lines 193..199
client-reactnative/src/navigation/HomeStack.tsx on lines 200..206
client-reactnative/src/navigation/HomeStack.tsx on lines 207..213
client-reactnative/src/navigation/HomeStack.tsx on lines 222..228
client-reactnative/src/navigation/HomeStack.tsx on lines 229..235
client-reactnative/src/navigation/HomeStack.tsx on lines 236..242
client-reactnative/src/navigation/HomeStack.tsx on lines 243..249
client-reactnative/src/navigation/HomeStack.tsx on lines 250..256
client-reactnative/src/navigation/HomeStack.tsx on lines 257..263
client-reactnative/src/navigation/HomeStack.tsx on lines 264..270
client-reactnative/src/navigation/HomeStack.tsx on lines 271..277
client-reactnative/src/navigation/HomeStack.tsx on lines 278..284
client-reactnative/src/navigation/HomeStack.tsx on lines 325..331

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 52.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 15 locations. Consider refactoring.
Open

      <HomeStack.Screen
        name={'AuthenticationScreen'}
        component={AuthenticationScreen}
        options={() => ({
          header: ({}) => <MainHeader />,
Severity: Major
Found in client-reactnative/src/navigation/HomeStack.tsx and 14 other locations - About 50 mins to fix
client-reactnative/src/navigation/HomeStack.tsx on lines 186..192
client-reactnative/src/navigation/HomeStack.tsx on lines 193..199
client-reactnative/src/navigation/HomeStack.tsx on lines 200..206
client-reactnative/src/navigation/HomeStack.tsx on lines 207..213
client-reactnative/src/navigation/HomeStack.tsx on lines 222..228
client-reactnative/src/navigation/HomeStack.tsx on lines 229..235
client-reactnative/src/navigation/HomeStack.tsx on lines 236..242
client-reactnative/src/navigation/HomeStack.tsx on lines 243..249
client-reactnative/src/navigation/HomeStack.tsx on lines 250..256
client-reactnative/src/navigation/HomeStack.tsx on lines 257..263
client-reactnative/src/navigation/HomeStack.tsx on lines 264..270
client-reactnative/src/navigation/HomeStack.tsx on lines 271..277
client-reactnative/src/navigation/HomeStack.tsx on lines 278..284
client-reactnative/src/navigation/HomeStack.tsx on lines 318..324

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 52.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 15 locations. Consider refactoring.
Open

      <HomeStack.Screen
        name={'MintScreen'}
        component={MintScreen}
        options={() => ({
          header: ({}) => <MainHeader />,
Severity: Major
Found in client-reactnative/src/navigation/HomeStack.tsx and 14 other locations - About 50 mins to fix
client-reactnative/src/navigation/HomeStack.tsx on lines 186..192
client-reactnative/src/navigation/HomeStack.tsx on lines 193..199
client-reactnative/src/navigation/HomeStack.tsx on lines 200..206
client-reactnative/src/navigation/HomeStack.tsx on lines 207..213
client-reactnative/src/navigation/HomeStack.tsx on lines 222..228
client-reactnative/src/navigation/HomeStack.tsx on lines 229..235
client-reactnative/src/navigation/HomeStack.tsx on lines 236..242
client-reactnative/src/navigation/HomeStack.tsx on lines 243..249
client-reactnative/src/navigation/HomeStack.tsx on lines 257..263
client-reactnative/src/navigation/HomeStack.tsx on lines 264..270
client-reactnative/src/navigation/HomeStack.tsx on lines 271..277
client-reactnative/src/navigation/HomeStack.tsx on lines 278..284
client-reactnative/src/navigation/HomeStack.tsx on lines 318..324
client-reactnative/src/navigation/HomeStack.tsx on lines 325..331

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 52.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 15 locations. Consider refactoring.
Open

      <HomeStack.Screen
        name={'PrivacyAndDataScreen'}
        component={PrivacyAndDataScreen}
        options={() => ({
          header: ({}) => <MainHeader />,
Severity: Major
Found in client-reactnative/src/navigation/HomeStack.tsx and 14 other locations - About 50 mins to fix
client-reactnative/src/navigation/HomeStack.tsx on lines 186..192
client-reactnative/src/navigation/HomeStack.tsx on lines 193..199
client-reactnative/src/navigation/HomeStack.tsx on lines 200..206
client-reactnative/src/navigation/HomeStack.tsx on lines 207..213
client-reactnative/src/navigation/HomeStack.tsx on lines 222..228
client-reactnative/src/navigation/HomeStack.tsx on lines 229..235
client-reactnative/src/navigation/HomeStack.tsx on lines 236..242
client-reactnative/src/navigation/HomeStack.tsx on lines 243..249
client-reactnative/src/navigation/HomeStack.tsx on lines 250..256
client-reactnative/src/navigation/HomeStack.tsx on lines 257..263
client-reactnative/src/navigation/HomeStack.tsx on lines 264..270
client-reactnative/src/navigation/HomeStack.tsx on lines 271..277
client-reactnative/src/navigation/HomeStack.tsx on lines 318..324
client-reactnative/src/navigation/HomeStack.tsx on lines 325..331

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 52.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 15 locations. Consider refactoring.
Open

      <HomeStack.Screen
        name={'RoomsListScreem'}
        component={RoomListScreen}
        options={() => ({
          header: ({}) => <MainHeader />,
Severity: Major
Found in client-reactnative/src/navigation/HomeStack.tsx and 14 other locations - About 50 mins to fix
client-reactnative/src/navigation/HomeStack.tsx on lines 193..199
client-reactnative/src/navigation/HomeStack.tsx on lines 200..206
client-reactnative/src/navigation/HomeStack.tsx on lines 207..213
client-reactnative/src/navigation/HomeStack.tsx on lines 222..228
client-reactnative/src/navigation/HomeStack.tsx on lines 229..235
client-reactnative/src/navigation/HomeStack.tsx on lines 236..242
client-reactnative/src/navigation/HomeStack.tsx on lines 243..249
client-reactnative/src/navigation/HomeStack.tsx on lines 250..256
client-reactnative/src/navigation/HomeStack.tsx on lines 257..263
client-reactnative/src/navigation/HomeStack.tsx on lines 264..270
client-reactnative/src/navigation/HomeStack.tsx on lines 271..277
client-reactnative/src/navigation/HomeStack.tsx on lines 278..284
client-reactnative/src/navigation/HomeStack.tsx on lines 318..324
client-reactnative/src/navigation/HomeStack.tsx on lines 325..331

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 52.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 15 locations. Consider refactoring.
Open

      <HomeStack.Screen
        name={'ScanScreen'}
        component={ScanScreen}
        options={() => ({
          header: ({}) => <MainHeader />,
Severity: Major
Found in client-reactnative/src/navigation/HomeStack.tsx and 14 other locations - About 50 mins to fix
client-reactnative/src/navigation/HomeStack.tsx on lines 186..192
client-reactnative/src/navigation/HomeStack.tsx on lines 193..199
client-reactnative/src/navigation/HomeStack.tsx on lines 200..206
client-reactnative/src/navigation/HomeStack.tsx on lines 207..213
client-reactnative/src/navigation/HomeStack.tsx on lines 222..228
client-reactnative/src/navigation/HomeStack.tsx on lines 236..242
client-reactnative/src/navigation/HomeStack.tsx on lines 243..249
client-reactnative/src/navigation/HomeStack.tsx on lines 250..256
client-reactnative/src/navigation/HomeStack.tsx on lines 257..263
client-reactnative/src/navigation/HomeStack.tsx on lines 264..270
client-reactnative/src/navigation/HomeStack.tsx on lines 271..277
client-reactnative/src/navigation/HomeStack.tsx on lines 278..284
client-reactnative/src/navigation/HomeStack.tsx on lines 318..324
client-reactnative/src/navigation/HomeStack.tsx on lines 325..331

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 52.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 15 locations. Consider refactoring.
Open

      <HomeStack.Screen
        name={'UploadDocumentsScreen'}
        component={UploadDocumentsScreen}
        options={() => ({
          header: ({}) => <MainHeader />,
Severity: Major
Found in client-reactnative/src/navigation/HomeStack.tsx and 14 other locations - About 50 mins to fix
client-reactnative/src/navigation/HomeStack.tsx on lines 186..192
client-reactnative/src/navigation/HomeStack.tsx on lines 193..199
client-reactnative/src/navigation/HomeStack.tsx on lines 200..206
client-reactnative/src/navigation/HomeStack.tsx on lines 207..213
client-reactnative/src/navigation/HomeStack.tsx on lines 222..228
client-reactnative/src/navigation/HomeStack.tsx on lines 229..235
client-reactnative/src/navigation/HomeStack.tsx on lines 236..242
client-reactnative/src/navigation/HomeStack.tsx on lines 243..249
client-reactnative/src/navigation/HomeStack.tsx on lines 250..256
client-reactnative/src/navigation/HomeStack.tsx on lines 264..270
client-reactnative/src/navigation/HomeStack.tsx on lines 271..277
client-reactnative/src/navigation/HomeStack.tsx on lines 278..284
client-reactnative/src/navigation/HomeStack.tsx on lines 318..324
client-reactnative/src/navigation/HomeStack.tsx on lines 325..331

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 52.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 15 locations. Consider refactoring.
Open

      <HomeStack.Screen
        name={'NftItemHistory'}
        component={NftItemHistoryScreen}
        options={() => ({
          header: ({}) => <MainHeader />,
Severity: Major
Found in client-reactnative/src/navigation/HomeStack.tsx and 14 other locations - About 50 mins to fix
client-reactnative/src/navigation/HomeStack.tsx on lines 186..192
client-reactnative/src/navigation/HomeStack.tsx on lines 193..199
client-reactnative/src/navigation/HomeStack.tsx on lines 200..206
client-reactnative/src/navigation/HomeStack.tsx on lines 207..213
client-reactnative/src/navigation/HomeStack.tsx on lines 222..228
client-reactnative/src/navigation/HomeStack.tsx on lines 229..235
client-reactnative/src/navigation/HomeStack.tsx on lines 236..242
client-reactnative/src/navigation/HomeStack.tsx on lines 243..249
client-reactnative/src/navigation/HomeStack.tsx on lines 250..256
client-reactnative/src/navigation/HomeStack.tsx on lines 257..263
client-reactnative/src/navigation/HomeStack.tsx on lines 271..277
client-reactnative/src/navigation/HomeStack.tsx on lines 278..284
client-reactnative/src/navigation/HomeStack.tsx on lines 318..324
client-reactnative/src/navigation/HomeStack.tsx on lines 325..331

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 52.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 15 locations. Consider refactoring.
Open

      <HomeStack.Screen
        name={'InviteFriendsScreen'}
        component={InviteFriendsScreen}
        options={() => ({
          header: ({}) => <MainHeader />,
Severity: Major
Found in client-reactnative/src/navigation/HomeStack.tsx and 14 other locations - About 50 mins to fix
client-reactnative/src/navigation/HomeStack.tsx on lines 186..192
client-reactnative/src/navigation/HomeStack.tsx on lines 193..199
client-reactnative/src/navigation/HomeStack.tsx on lines 200..206
client-reactnative/src/navigation/HomeStack.tsx on lines 207..213
client-reactnative/src/navigation/HomeStack.tsx on lines 222..228
client-reactnative/src/navigation/HomeStack.tsx on lines 229..235
client-reactnative/src/navigation/HomeStack.tsx on lines 236..242
client-reactnative/src/navigation/HomeStack.tsx on lines 243..249
client-reactnative/src/navigation/HomeStack.tsx on lines 250..256
client-reactnative/src/navigation/HomeStack.tsx on lines 257..263
client-reactnative/src/navigation/HomeStack.tsx on lines 264..270
client-reactnative/src/navigation/HomeStack.tsx on lines 278..284
client-reactnative/src/navigation/HomeStack.tsx on lines 318..324
client-reactnative/src/navigation/HomeStack.tsx on lines 325..331

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 52.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 15 locations. Consider refactoring.
Open

      <HomeStack.Screen
        name={'ProfileScreen'}
        component={ProfileScreen}
        options={() => ({
          header: ({}) => <MainHeader />,
Severity: Major
Found in client-reactnative/src/navigation/HomeStack.tsx and 14 other locations - About 50 mins to fix
client-reactnative/src/navigation/HomeStack.tsx on lines 186..192
client-reactnative/src/navigation/HomeStack.tsx on lines 193..199
client-reactnative/src/navigation/HomeStack.tsx on lines 207..213
client-reactnative/src/navigation/HomeStack.tsx on lines 222..228
client-reactnative/src/navigation/HomeStack.tsx on lines 229..235
client-reactnative/src/navigation/HomeStack.tsx on lines 236..242
client-reactnative/src/navigation/HomeStack.tsx on lines 243..249
client-reactnative/src/navigation/HomeStack.tsx on lines 250..256
client-reactnative/src/navigation/HomeStack.tsx on lines 257..263
client-reactnative/src/navigation/HomeStack.tsx on lines 264..270
client-reactnative/src/navigation/HomeStack.tsx on lines 271..277
client-reactnative/src/navigation/HomeStack.tsx on lines 278..284
client-reactnative/src/navigation/HomeStack.tsx on lines 318..324
client-reactnative/src/navigation/HomeStack.tsx on lines 325..331

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 52.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Expected property shorthand in object literal ('{linkToken}').
Open

              linkToken: linkToken,

Rule: object-literal-shorthand

Enforces/disallows use of ES6 object literal shorthand.

Notes
  • Has Fix

Config

"always" assumed to be default option, thus with no options provided the rule enforces object literal methods and properties shorthands. With "never" option provided, any shorthand object literal syntax causes an error.

The rule can be configured in a more granular way. With {"property": "never"} provided (which is equivalent to {"property": "never", "method": "always"}), the rule only flags property shorthand assignments, and respectively with {"method": "never"} (equivalent to {"property": "always", "method": "never"}), the rule fails only on method shorthands.

Examples
"object-literal-shorthand": true
"object-literal-shorthand": true,never
"object-literal-shorthand": true,[object Object]
Schema
{
  "oneOf": [
    {
      "type": "string",
      "enum": [
        "never"
      ]
    },
    {
      "type": "object",
      "properties": {
        "property": {
          "type": "string",
          "enum": [
            "never"
          ]
        },
        "method": {
          "type": "string",
          "enum": [
            "never"
          ]
        }
      },
      "minProperties": 1,
      "maxProperties": 2
    }
  ]
}

For more information see this page.

comment must start with a space
Open

            //@ts-ignore

Rule: comment-format

Enforces formatting rules for single-line comments.

Rationale

Helps maintain a consistent, readable style in your codebase.

Notes
  • Has Fix

Config

Four arguments may be optionally provided:

  • "check-space" requires that all single-line comments must begin with a space, as in // comment
    • note that for comments starting with multiple slashes, e.g. ///, leading slashes are ignored
    • TypeScript reference comments are ignored completely
  • "check-lowercase" requires that the first non-whitespace character of a comment must be lowercase, if applicable.
  • "check-uppercase" requires that the first non-whitespace character of a comment must be uppercase, if applicable.
  • "allow-trailing-lowercase" allows that only the first comment of a series of comments needs to be uppercase.
    • requires "check-uppercase"
    • comments must start at the same position

Exceptions to "check-lowercase" or "check-uppercase" can be managed with object that may be passed as last argument.

One of two options can be provided in this object:

  • "ignore-words" - array of strings - words that will be ignored at the beginning of the comment.
  • "ignore-pattern" - string - RegExp pattern that will be ignored at the beginning of the comment.
Examples
"comment-format": true,check-space,check-uppercase,allow-trailing-lowercase
"comment-format": true,check-lowercase,[object Object]
"comment-format": true,check-lowercase,[object Object]
Schema
{
  "type": "array",
  "items": {
    "anyOf": [
      {
        "type": "string",
        "enum": [
          "check-space",
          "check-lowercase",
          "check-uppercase",
          "allow-trailing-lowercase"
        ]
      },
      {
        "type": "object",
        "properties": {
          "ignore-words": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "ignore-pattern": {
            "type": "string"
          }
        },
        "minProperties": 1,
        "maxProperties": 1
      }
    ]
  },
  "minLength": 1,
  "maxLength": 5
}

For more information see this page.

comment must start with a space
Open

        //@ts-ignore

Rule: comment-format

Enforces formatting rules for single-line comments.

Rationale

Helps maintain a consistent, readable style in your codebase.

Notes
  • Has Fix

Config

Four arguments may be optionally provided:

  • "check-space" requires that all single-line comments must begin with a space, as in // comment
    • note that for comments starting with multiple slashes, e.g. ///, leading slashes are ignored
    • TypeScript reference comments are ignored completely
  • "check-lowercase" requires that the first non-whitespace character of a comment must be lowercase, if applicable.
  • "check-uppercase" requires that the first non-whitespace character of a comment must be uppercase, if applicable.
  • "allow-trailing-lowercase" allows that only the first comment of a series of comments needs to be uppercase.
    • requires "check-uppercase"
    • comments must start at the same position

Exceptions to "check-lowercase" or "check-uppercase" can be managed with object that may be passed as last argument.

One of two options can be provided in this object:

  • "ignore-words" - array of strings - words that will be ignored at the beginning of the comment.
  • "ignore-pattern" - string - RegExp pattern that will be ignored at the beginning of the comment.
Examples
"comment-format": true,check-space,check-uppercase,allow-trailing-lowercase
"comment-format": true,check-lowercase,[object Object]
"comment-format": true,check-lowercase,[object Object]
Schema
{
  "type": "array",
  "items": {
    "anyOf": [
      {
        "type": "string",
        "enum": [
          "check-space",
          "check-lowercase",
          "check-uppercase",
          "allow-trailing-lowercase"
        ]
      },
      {
        "type": "object",
        "properties": {
          "ignore-words": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "ignore-pattern": {
            "type": "string"
          }
        },
        "minProperties": 1,
        "maxProperties": 1
      }
    ]
  },
  "minLength": 1,
  "maxLength": 5
}

For more information see this page.

comment must start with a space
Open

        //@ts-ignore

Rule: comment-format

Enforces formatting rules for single-line comments.

Rationale

Helps maintain a consistent, readable style in your codebase.

Notes
  • Has Fix

Config

Four arguments may be optionally provided:

  • "check-space" requires that all single-line comments must begin with a space, as in // comment
    • note that for comments starting with multiple slashes, e.g. ///, leading slashes are ignored
    • TypeScript reference comments are ignored completely
  • "check-lowercase" requires that the first non-whitespace character of a comment must be lowercase, if applicable.
  • "check-uppercase" requires that the first non-whitespace character of a comment must be uppercase, if applicable.
  • "allow-trailing-lowercase" allows that only the first comment of a series of comments needs to be uppercase.
    • requires "check-uppercase"
    • comments must start at the same position

Exceptions to "check-lowercase" or "check-uppercase" can be managed with object that may be passed as last argument.

One of two options can be provided in this object:

  • "ignore-words" - array of strings - words that will be ignored at the beginning of the comment.
  • "ignore-pattern" - string - RegExp pattern that will be ignored at the beginning of the comment.
Examples
"comment-format": true,check-space,check-uppercase,allow-trailing-lowercase
"comment-format": true,check-lowercase,[object Object]
"comment-format": true,check-lowercase,[object Object]
Schema
{
  "type": "array",
  "items": {
    "anyOf": [
      {
        "type": "string",
        "enum": [
          "check-space",
          "check-lowercase",
          "check-uppercase",
          "allow-trailing-lowercase"
        ]
      },
      {
        "type": "object",
        "properties": {
          "ignore-words": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "ignore-pattern": {
            "type": "string"
          }
        },
        "minProperties": 1,
        "maxProperties": 1
      }
    ]
  },
  "minLength": 1,
  "maxLength": 5
}

For more information see this page.

comment must start with a space
Open

    //when the app opens for the first time, when clicked url from outside, this will be called

Rule: comment-format

Enforces formatting rules for single-line comments.

Rationale

Helps maintain a consistent, readable style in your codebase.

Notes
  • Has Fix

Config

Four arguments may be optionally provided:

  • "check-space" requires that all single-line comments must begin with a space, as in // comment
    • note that for comments starting with multiple slashes, e.g. ///, leading slashes are ignored
    • TypeScript reference comments are ignored completely
  • "check-lowercase" requires that the first non-whitespace character of a comment must be lowercase, if applicable.
  • "check-uppercase" requires that the first non-whitespace character of a comment must be uppercase, if applicable.
  • "allow-trailing-lowercase" allows that only the first comment of a series of comments needs to be uppercase.
    • requires "check-uppercase"
    • comments must start at the same position

Exceptions to "check-lowercase" or "check-uppercase" can be managed with object that may be passed as last argument.

One of two options can be provided in this object:

  • "ignore-words" - array of strings - words that will be ignored at the beginning of the comment.
  • "ignore-pattern" - string - RegExp pattern that will be ignored at the beginning of the comment.
Examples
"comment-format": true,check-space,check-uppercase,allow-trailing-lowercase
"comment-format": true,check-lowercase,[object Object]
"comment-format": true,check-lowercase,[object Object]
Schema
{
  "type": "array",
  "items": {
    "anyOf": [
      {
        "type": "string",
        "enum": [
          "check-space",
          "check-lowercase",
          "check-uppercase",
          "allow-trailing-lowercase"
        ]
      },
      {
        "type": "object",
        "properties": {
          "ignore-words": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "ignore-pattern": {
            "type": "string"
          }
        },
        "minProperties": 1,
        "maxProperties": 1
      }
    ]
  },
  "minLength": 1,
  "maxLength": 5
}

For more information see this page.

comment must start with a space
Open

    //when the app is already open and url is clicked from outside this will be called

Rule: comment-format

Enforces formatting rules for single-line comments.

Rationale

Helps maintain a consistent, readable style in your codebase.

Notes
  • Has Fix

Config

Four arguments may be optionally provided:

  • "check-space" requires that all single-line comments must begin with a space, as in // comment
    • note that for comments starting with multiple slashes, e.g. ///, leading slashes are ignored
    • TypeScript reference comments are ignored completely
  • "check-lowercase" requires that the first non-whitespace character of a comment must be lowercase, if applicable.
  • "check-uppercase" requires that the first non-whitespace character of a comment must be uppercase, if applicable.
  • "allow-trailing-lowercase" allows that only the first comment of a series of comments needs to be uppercase.
    • requires "check-uppercase"
    • comments must start at the same position

Exceptions to "check-lowercase" or "check-uppercase" can be managed with object that may be passed as last argument.

One of two options can be provided in this object:

  • "ignore-words" - array of strings - words that will be ignored at the beginning of the comment.
  • "ignore-pattern" - string - RegExp pattern that will be ignored at the beginning of the comment.
Examples
"comment-format": true,check-space,check-uppercase,allow-trailing-lowercase
"comment-format": true,check-lowercase,[object Object]
"comment-format": true,check-lowercase,[object Object]
Schema
{
  "type": "array",
  "items": {
    "anyOf": [
      {
        "type": "string",
        "enum": [
          "check-space",
          "check-lowercase",
          "check-uppercase",
          "allow-trailing-lowercase"
        ]
      },
      {
        "type": "object",
        "properties": {
          "ignore-words": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "ignore-pattern": {
            "type": "string"
          }
        },
        "minProperties": 1,
        "maxProperties": 1
      }
    ]
  },
  "minLength": 1,
  "maxLength": 5
}

For more information see this page.

There are no issues that match your filters.

Category
Status