xcv58/Tab-Manager-v2

View on GitHub
packages/extension/src/js/stores/Tab.tsx

Summary

Maintainability
A
3 hrs
Test Coverage

Showing 3 of 3 total issues

Function constructor has 46 lines of code (exceeds 25 allowed). Consider refactoring.
Open

constructor(tab, store: Store, win: Window) {
super(store)
 
makeObservable(this, {
cookieStoreId: observable,
Severity: Minor
Found in packages/extension/src/js/stores/Tab.tsx - About 1 hr to fix

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

    selectTabsInSameContainer =
    process.env.TARGET_BROWSER === 'firefox'
    ? () => {
    this.store.tabStore.selectTabsInSameContainer(this)
    }
    Severity: Minor
    Found in packages/extension/src/js/stores/Tab.tsx and 1 other location - About 50 mins to fix
    packages/extension/src/js/stores/Tab.tsx on lines 235..240

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

    openSameContainerTabs =
    process.env.TARGET_BROWSER === 'firefox'
    ? () => {
    this.store.containerStore.openSameContainerTabs(this)
    }
    Severity: Minor
    Found in packages/extension/src/js/stores/Tab.tsx and 1 other location - About 50 mins to fix
    packages/extension/src/js/stores/Tab.tsx on lines 228..233

    There are no issues that match your filters.

    Category
    Status