(version, prefix, errors)
| 81 | } |
| 82 | |
| 83 | function validateVersion(version, prefix, errors) { |
| 84 | if (!isNonEmptyString(version)) { |
| 85 | errors.push(`${prefix}: "version" is required and must be a non-empty string`); |
| 86 | return; |
| 87 | } |
| 88 | |
| 89 | if (version.length > 100) { |
| 90 | errors.push(`${prefix}: "version" must be 100 characters or fewer`); |
| 91 | } |
| 92 | } |
| 93 | |
| 94 | function validateKeywords(keywords, prefix, errors, warnings, required) { |
| 95 | if (keywords === undefined) { |
no test coverage detected