code: function isValid(name, value) {
      var tests = {
          indent: function (value) {
              return (/^(\s*|\d*)$/).test(value);
          },
          openbrace: function (value) {
              return (['end-of-line', 'separate-line']).indexOf(value) !== -1;
          },
          autosemicolon: function (value) {
              return typeof value === 'boolean';
          }
      };
  
      return Boolean(tests[name] && tests[name](value));
  }
docs: Checks parameter validity
  @param  {string}  name
  @param  {string}  value
  @return {Boolean}