nitaking/react-hooks-logger

View on GitHub

Showing 2 of 6 total issues

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

function registerValidSW(swUrl, config) {
  navigator.serviceWorker
    .register(swUrl)
    .then(registration => {
      registration.onupdatefound = () => {
Severity: Minor
Found in sample/src/serviceWorker.js - About 1 hr to fix

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

    function App() {
      const [state, dispatch] = useReducer(reducer, initialState);
      const inputRef = React.createRef();
    
      return (
    Severity: Minor
    Found in sample/src/App.js - About 1 hr to fix
      Severity
      Category
      Status
      Source
      Language