Showing 50 of 117 total issues
Function 1
has 714 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
// Generated by LiveScript 1.3.1
var presets, simpleStr, wrap, slice$ = [].slice, toString$ = {}.toString;
presets = require('./presets').presets;
simpleStr = function(arr){
File loading-bar.js
has 807 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
// Generated by LiveScript 1.3.1
var presets, simpleStr, wrap, slice$ = [].slice, toString$ = {}.toString;
presets = require('./presets').presets;
simpleStr = function(arr){
File actions-user.js
has 666 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import axios from "axios";
import { axiosWithAuth } from "../../../helpers/axiosWithAuth";
import history from "../../../helpers/history";
export const FETCHING_START = "FETCHING_START";
Function reducer
has 148 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function reducer(state = initialState, action) {
switch (action.type) {
case FETCH_ALL_USERS_LOADING:
return {
...state,
Function reducer
has 105 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function reducer(state = initialState, action) {
console.log("action", action);
switch (action.type) {
case FETCHING_START:
Function EditTeam
has 101 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function EditTeam(props) {
const modalStyle = {
overlay: {
position: "fixed",
top: 0,
Function 2
has 90 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
},{"./presets":2}],2:[function(require,module,exports){
// Generated by LiveScript 1.3.1
var presets, out$ = typeof exports != 'undefined' && exports || this;
out$.presets = presets = {
rainbow: {
Function Dropdown
has 86 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const Dropdown = (props) => {
const [dropdownOpen, setOpen] = useState(false);
const [avatar, setAvatar] = useState({
avatarImage: null
})
Function AddUser
has 84 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const AddUser = props => {
//hooks
const [member, setMember] = useState({
email: ""
});
Function Leaderboard
has 83 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const Leaderboard = (props) => {
const [render, setRender] = useState(false);
//state for accordion function
const [teamIndex, setTeamIndex] = useState(null);
Function UserList
has 79 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const UserList = props => {
const [searchTerm, setSearchTerm] = useState("");
const [showNulls, setShowNulls] = useState(false);
const [update, setUpdate] = useState(false)
const [display, setDisplay] = useState(false)
Function UserLogin
has 79 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function UserLogin(props) {
//adjusted the 'mode' argument from the default value of 'onSubmit' for the useForm hook, in order to allow live error changes as user types
const { register, handleSubmit, errors } = useForm({mode: 'onChange'});
Function DeleteTeamButton
has 78 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const DeleteTeamButton = (props) => {
const [modalIsOpen, setModalIsOpen] = useState(false);
const modalStyle = {
overlay: {
Function UserSignUp
has 76 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function UserSignUp(props) {
//adjusted the 'mode' argument from the default value of 'onSubmit' for the useForm hook, in order to allow live error changes as user types
const {register, handleSubmit, errors, watch} = useForm({mode: 'onChange'});
Function AddTeam
has 73 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function AddTeam(props) {
const [teamName, setTeamName] = useState({
name: ''
});
Function subtractWater
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
) => (dispatch) => {
console.log("hit subtractWater");
dispatch({ type: FETCHING_START });
//first GET the water metric, in order to know what the current water number is to decrease it by
Function handler
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
handler: function(time, doTransition){
var ref$, min, max, prec, dv, dt, dur, v, p, node, style, box, dir;
doTransition == null && (doTransition = true);
if (this.time.src == null) {
this.time.src = time;
Function subtractBreaks
has 62 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
) => (dispatch) => {
dispatch({ type: FETCHING_START });
//first GET the breaks metric, in order to know what the current breaks number is to decrease it by
axiosWithAuth()
Function subtractExercise
has 62 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
) => (dispatch) => {
dispatch({ type: FETCHING_START });
//first GET the exercise metric, in order to know what the current exercise number is to decrease it by
axiosWithAuth()
Function subtractSleep
has 60 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
) => (dispatch) => {
dispatch({ type: FETCHING_START });
//first GET the sleep metric, in order to know what the current sleep number is to decrease it by
axiosWithAuth()