HansHammel/watchmen

View on GitHub
webserver/routes/web-auth-route.js

Summary

Maintainability
A
3 hrs
Test Coverage

Function exports has 48 lines of code (exceeds 25 allowed). Consider refactoring.
Open

module.exports = (function (){

  function md5(str) {
    var hash = crypto.createHash('md5');
    hash.update(str.toLowerCase().trim());
Severity: Minor
Found in webserver/routes/web-auth-route.js - About 1 hr to fix

    Function configureApp has 35 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        configureApp : function (app){
    
          passport.use(new GoogleStrategy({
              clientID: config.auth.GOOGLE_CLIENT_ID,
              clientSecret: config.auth.GOOGLE_CLIENT_SECRET,
    Severity: Minor
    Found in webserver/routes/web-auth-route.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status