(repository, prefix, errors, required)
| 192 | } |
| 193 | |
| 194 | function validateRepository(repository, prefix, errors, required) { |
| 195 | if (repository === undefined) { |
| 196 | if (required) { |
| 197 | errors.push(`${prefix}: "repository" is required`); |
| 198 | } |
| 199 | return; |
| 200 | } |
| 201 | |
| 202 | validateHttpsUrl(repository, "repository", prefix, errors, { githubOnly: true }); |
| 203 | } |
| 204 | |
| 205 | function validateHomepage(homepage, prefix, errors) { |
| 206 | if (homepage === undefined) { |
no test coverage detected