sombreroEnPuntas/review-feed

View on GitHub

Showing 3 of 5 total issues

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

<Input
aria-label="username"
autoComplete="username"
name="username"
onChange={(event: ChangeEvent<HTMLInputElement>) =>
Severity: Major
Found in src/components/LoginForm/index.tsx and 1 other location - About 2 hrs to fix
src/components/LoginForm/index.tsx on lines 53..64

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

<Input
aria-label="password"
autoComplete="password"
name="password"
onChange={(event: ChangeEvent<HTMLInputElement>) =>
Severity: Major
Found in src/components/LoginForm/index.tsx and 1 other location - About 2 hrs to fix
src/components/LoginForm/index.tsx on lines 40..51

Function LoginForm has 52 lines of code (exceeds 50 allowed). Consider refactoring.
Open

const LoginForm = () => {
const { error, login, logout, token } = useLogin()
 
const [username, setUsername] = useState('')
const [password, setPassword] = useState('')
Severity: Major
Found in src/components/LoginForm/index.tsx - About 1 hr to fix
    Severity
    Category
    Status
    Source
    Language