Merge branch 'main' into fixes-checks

This commit is contained in:
0xPradyuman 2022-03-03 22:30:17 +05:30 committed by GitHub
commit f01af52a65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -33,7 +33,7 @@ jobs:
id: status_check
run: |
# Run status checks, Remove ANSI colors from the text
output=$(node ./status-checks | sed 's/\x1B\[[0-9;]\{1,\}[A-Za-z]//g')
output=$(ts-node ./status-checks/index.ts | sed 's/\x1B\[[0-9;]\{1,\}[A-Za-z]//g')
# Escape newlines so _all_ the output is included in the set-output
output="${output//'%'/'%25'}"
output="${output//$'\n'/'%0A'}"

View File

@ -92,7 +92,7 @@ const checkEvents = async (connector: {
const eventsPath = `${connector.path}/events.sol`;
const mainPath = `${connector.path}/main.sol`;
if (connector.events.length) {
const eventNames: any[] = [];
const eventNames:string[] = [];
for (let i1 = 0; i1 < connector.mainEvents.length; i1++) {
const mainEvent = connector.mainEvents[i1];
const name = mainEvent.split("(")[0];
@ -196,7 +196,7 @@ const parseCode = async (connector: { path: any; code?: any }) => {
let funcs = [];
let event: string[] = [];
let mainEvents: string[] = [];
let firstLine: number = 0;
let firstLine: number = -1;
let mainEventsLines = [];
for (let index = 0; index < strs.length; index++) {
const str = strs[index];
@ -297,7 +297,7 @@ const parseCode = async (connector: { path: any; code?: any }) => {
}
};
const checkComments = async (connector: { funcs: string | any[]; path: any; }) => {
const checkComments = async (connector:any) => {
try {
const errors = [];
for (let i1 = 0; i1 < connector.funcs.length; i1++) {