Dulce-Work-Schedule/2018.1-Dulce_App

View on GitHub

Showing 4 of 14 total issues

File Schedule.js has 320 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import React, {Component} from 'react';
import {Text,View,TouchableHighlight,Alert} from 'react-native';
import {Agenda} from 'react-native-calendars';
import Modal from 'react-native-modal';
import axios from 'axios';
Severity: Minor
Found in src/Components/Schedule.js - About 3 hrs to fix

    File styles.js has 302 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    import {PixelRatio} from 'react-native';
    import {purple_dulce, black_dulce} from '../styles';
    
    export const styles = {
      absences: {
    Severity: Minor
    Found in src/Components/styles.js - About 3 hrs to fix

      Schedule has 27 functions (exceeds 20 allowed). Consider refactoring.
      Open

      export default class Schedule extends Component {
        constructor(props) {
          super(props);
          this.state = {
            isDateTimePickerVisible: false,
      Severity: Minor
      Found in src/Components/Schedule.js - About 3 hrs to fix

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

          _onPress() {
            if (this.state.value.primeiroNome !== '' && this.state.value.segundoNome !== '' && this.state.value.email !== '') {
              if (this.state.value.senha === this.state.value.confirmarSenha) {
                const url = 'http://54.233.119.148:8083/api/user/create';
                axios.post(url, {
        Severity: Minor
        Found in src/Screens/NewUser.js - About 1 hr to fix
          Severity
          Category
          Status
          Source
          Language