michsch/antispammail

View on GitHub

Showing 2 of 2 total issues

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

module.exports = function(grunt) {
  "use strict";

  var config = grunt.file.readJSON('config-all.json');

Severity: Major
Found in Gruntfile.js - About 1 day to fix

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

      antiSpamMail.encryptForm = function(formName, fieldName) {
        var cryptform, email, emailHtml, encryptedMail, fieldShowEncryptedHtml, fieldShowEncryptedMail, i, radioObj, radioValue;
        formName = formName || 'antiSpamMail';
        fieldName = fieldName || 'cryptmail_email';
        fieldShowEncryptedMail = 'cryptmail_cryptedmail';
    Severity: Minor
    Found in src/encryption.js - About 1 hr to fix
      Severity
      Category
      Status
      Source
      Language