Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
dontcallmedom committed Sep 6, 2023
1 parent fc4b603 commit 32fe3c3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions lib/validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ function validateRepo(r, data, licenses, w3cgroups) {
if (hasIntersection(["rec-track"], conf["repo-type"])) {
if (!mdMatch(r.license.text, license) && !mdMatch(r.license.text, licenseSw)) {
reportError('invalidlicense', {error: "doesn't match SW or DOC license", license: r.license.text});
} else if (!groups.find(g => hardcodedNotPermissiveLicensesGroups.includes(g)) && conf["repo-type"].includes("rec-track") && !mdMatch(r.license.text, licenseSw)) {
} else if (!groups.find(g => hardcodedNotPermissiveLicensesGroups.includes(g)) && conf["repo-type"].includes("rec-track") && !mdMatch(r.license.text, licenseSw)) {
reportError('invalidlicense', {error: "doesn't match chartered SW license", license: r.license.text});
}
} else if (hasIntersection(["cg-report"], conf["repo-type"])) {
Expand All @@ -164,13 +164,13 @@ function validateRepo(r, data, licenses, w3cgroups) {
reportError('nocontributing');
} else {
if (hasIntersection(["rec-track"], conf["repo-type"])) {
if (!mdMatch(r.contributing.text, contributing) && !mdMatch(r.contributing.text, contributingSw)) {
if (!mdMatch(r.contributing.text, contributing) && !mdMatch(r.contributing.text, contributingSw)) {
reportError('invalidcontributing', {error: "doesn't match SW or DOC contributing", contributing: r.contributing.text});
}
}
} else if (hasIntersection(["cg-report"], conf["repo-type"])) {
if (!mdMatch(r.contributing.text, contributingCg)) {
if (!mdMatch(r.contributing.text, contributingCg)) {
reportError('invalidcontributing', {error: "doesn't match CG contributing", contributing: r.contributing.text});
}
}
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion reporting/file-issue-for-review.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ if (require.main === module) {
execSync(`git push origin ${Object.keys(needsPush).join(' ')}`);
console.log('- done');
for (const branch in needsPush) {
const {title, specTitle, uri, repo, report} = needsPush[branch];
const {title, repo, report} = needsPush[branch];
console.log(`Creating pull request from branch ${branch}…`);
await octokit.rest.pulls.create({
owner: repoOwner,
Expand Down

0 comments on commit 32fe3c3

Please sign in to comment.