mirror of
https://github.com/Instadapp/dsa-connectors.git
synced 2024-07-29 22:37:00 +00:00
use comment:string
This commit is contained in:
parent
5c6c0bc244
commit
88db1bd93e
|
@ -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}`
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user