Skip to content

Commit

Permalink
pep8 fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
FG-TUM committed Jan 22, 2024
1 parent 8a9359c commit 0857b37
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
9 changes: 8 additions & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 9 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,12 @@ function buildMessage(

// Local helper function turning a list of tags into named urls to changes.
let tagsToUrls = (tagList: string[]): string[] => {

Check failure on line 146 in src/main.ts

View workflow job for this annotation

GitHub Actions / Lint Codebase

'tagsToUrls' is never reassigned. Use 'const' instead

Check failure on line 146 in src/main.ts

View workflow job for this annotation

GitHub Actions / TypeScript Tests

'tagsToUrls' is never reassigned. Use 'const' instead
console.log(`WWWWWWWWWWWWWWWw TAGS TO URLs WWWWWWWWWWWWWWWw`)
return tagList.map((tag: string): string => {
console.log(tag)
const filePath: string = findFileByName('.', tag)!

Check warning on line 150 in src/main.ts

View workflow job for this annotation

GitHub Actions / Lint Codebase

Forbidden non-null assertion

Check warning on line 150 in src/main.ts

View workflow job for this annotation

GitHub Actions / TypeScript Tests

Forbidden non-null assertion
console.log(filePath)
console.log(getUrlToChanges(filePath))
return `[${tag}](${getUrlToChanges(filePath)})`
})
}
Expand All @@ -159,9 +163,12 @@ The following tags could not be found in the latest revision:
|:-------:|:------------:|\n`

unknownTags.forEach((tags, docfile) => {

Check failure on line 165 in src/main.ts

View workflow job for this annotation

GitHub Actions / Lint Codebase

Prefer for...of instead of Array.forEach

Check failure on line 165 in src/main.ts

View workflow job for this annotation

GitHub Actions / TypeScript Tests

Prefer for...of instead of Array.forEach
message += `| [${path.basename(docfile)}](${getUrlToFile(
console.log(`XXXXXXXXXXXXx ${tags} | ${docfile}`)
const docfileLink = `[${path.basename(docfile)}](${getUrlToFile(
docfile
)}) | ${tagsToUrls(tags)} |\n`
)})`
console.log(docfileLink)
message += `| ${docfileLink} | ${tagsToUrls(tags)} |\n`
})
message += '\n'
}
Expand Down

0 comments on commit 0857b37

Please sign in to comment.