Daymorelah/PostIt

View on GitHub

Showing 8 of 68 total issues

Function HomePage has 141 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const HomePage = (props)=>{
return(
<div>
<div className="container-fluid" >
<div className="row">
Severity: Major
Found in client/src/components/homeComponents/homePage.jsx - About 5 hrs to fix

    Function signUpForm has 52 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    const signUpForm = (props)=>{
    let formInput, userName, passWord, email = null;
    return(
    <div>
    <div className='container-fluid'>
    Severity: Major
    Found in client/src/components/signUpComponents/signUpForm.jsx - About 2 hrs to fix

      Function LoginForm has 32 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      const LoginForm = (props)=>{
      let formInput, userName, password = null;
      return(
      <div className="container">
      <div id='loginForm'>
      Severity: Minor
      Found in client/src/components/loginComponents/loginForm.jsx - About 1 hr to fix

        Function App has 31 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        const App = (props) =>{
        return(
        <div>
        <div className="container-fliud">
        <nav className="navbar navbar-default">
        Severity: Minor
        Found in client/src/components/app.jsx - About 1 hr to fix

          Function signup has 30 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          signup(req, res) {
          return userModel.findOne({
          where: {
          username: req.body.username,
          },
          Severity: Minor
          Found in server/controllers/users.js - About 1 hr to fix

            Function render has 30 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            render(){
            return(
            <div>
            <nav className="navbar navbar-default">
            <div className="container-fluid">
            Severity: Minor
            Found in client/src/components/loginComponents/loginPage.jsx - About 1 hr to fix

              Function render has 27 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              render(){
              return(
              <div>
              <nav className="navbar navbar-default">
              <div className="container-fluid">
              Severity: Minor
              Found in client/src/components/signUpComponents/signUpPage.jsx - About 1 hr to fix

                Function routes has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                const routes = (app) => {
                 
                app.get('/api/v1', (req, res) => res.status(200).send({
                message: 'Welcome to the PostIt API!',
                }));
                Severity: Minor
                Found in server/routes/index.js - About 1 hr to fix
                  Severity
                  Category
                  Status
                  Source
                  Language