use comment:string

This commit is contained in:
Aleksandr S 2022-03-03 17:10:19 +03:00
parent 5c6c0bc244
commit 88db1bd93e

View File

@ -317,7 +317,7 @@ const checkComments = async (connector:any) => {
} }
const reqs = ["@dev", "@notice"]; const reqs = ["@dev", "@notice"];
for (let i3 = 0; i3 < reqs.length; i3++) { for (let i3 = 0; i3 < reqs.length; i3++) {
if (!func.comments.some((comment) => comment.startsWith(reqs[i3]))) { if (!func.comments.some((comment:string) => comment.startsWith(reqs[i3]))) {
errors.push( errors.push(
`no ${reqs[i3]} for function ${func.name} at ${connector.path}/main.sol:${func.firstLine}` `no ${reqs[i3]} for function ${func.name} at ${connector.path}/main.sol:${func.firstLine}`
); );