Showing 6 of 34 total issues
Function currentUser
has a Cognitive Complexity of 22 (exceeds 5 allowed). Consider refactoring. Open
Open
export const currentUser = async (req: Request, res: Response, next: NextFunction) => { const authorization = req.get('Authorization'); const currentUser: CurrentUser = { authType: AuthType.NONE, tokenPayload: null
- Read upRead up
Function useAuthStore
has 77 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const useAuthStore = defineStore('auth', () => { const configService = new ConfigService(); const authService = new AuthService(); const userManager = authService.getUserManager();
Function useAppStore
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const useAppStore = defineStore('app', () => { // State const state: AppStoreState = { loadingCalls: ref(0), loadingInterval: ref(undefined),
Function currentUser
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const currentUser = async (req: Request, res: Response, next: NextFunction) => { const authorization = req.get('Authorization'); const currentUser: CurrentUser = { authType: AuthType.NONE, tokenPayload: null
Function getRouter
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function getRouter() { const appStore = useAppStore(); const authService = new AuthService(); const router = createRouter({ history: createWebHistory(),
Function getGitRevision
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
Open
export function getGitRevision(): string { try { const gitDir = (() => { let dir = '.git', i = 0;
- Read upRead up