Skip to content

feat: create fixes on c-like and php files#869

Merged
thomasrockhu-codecov merged 2 commits intomainfrom
feat-fixes
Sep 1, 2022
Merged

feat: create fixes on c-like and php files#869
thomasrockhu-codecov merged 2 commits intomainfrom
feat-fixes

Conversation

@thomasrockhu-codecov
Copy link
Copy Markdown
Contributor

No description provided.

@codecov
Copy link
Copy Markdown

codecov bot commented Sep 1, 2022

Codecov Report

Merging #869 (986f3fe) into main (d73502c) will increase coverage by 0.26%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #869      +/-   ##
==========================================
+ Coverage   91.87%   92.13%   +0.26%     
==========================================
  Files          34       35       +1     
  Lines        1181     1221      +40     
  Branches      244      249       +5     
==========================================
+ Hits         1085     1125      +40     
  Misses         64       64              
  Partials       32       32              
Flag Coverage Δ
alpine 92.13% <100.00%> (+0.26%) ⬆️
alpine-proxy 92.13% <100.00%> (+0.26%) ⬆️
alpine-without-git 92.13% <100.00%> (+0.26%) ⬆️
linux 92.13% <100.00%> (+0.26%) ⬆️
linux-without-git 92.13% <100.00%> (+0.26%) ⬆️
macos 92.13% <100.00%> (+0.26%) ⬆️
macos-without-git 92.13% <100.00%> (+0.26%) ⬆️
windows 92.13% <100.00%> (+0.26%) ⬆️
windows-without-git 92.13% <100.00%> (+0.26%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/helpers/cli.ts 100.00% <ø> (ø)
src/helpers/fixes.ts 100.00% <100.00%> (ø)
src/index.ts 75.60% <100.00%> (+1.25%) ⬆️

@thomasrockhu-codecov thomasrockhu-codecov merged commit 29b240c into main Sep 1, 2022
@thomasrockhu-codecov thomasrockhu-codecov deleted the feat-fixes branch September 1, 2022 15:01
Comment on lines +24 to +47
for (const file of allFiles) {
let lineAdjustments: string[] = []

if (
file.match(/\.c$/) ||
file.match(/\.cpp$/) ||
file.match(/\.h$/) ||
file.match(/\.hpp$/) ||
file.match(/\.m$/) ||
file.match(/\.swift$/) ||
file.match(/\.vala$/)
) {
lineAdjustments = await getMatchedLines(file, [EMPTYLINE, SYNTAXBRACKET])
} else if (
file.match(/\.php$/)
) {
lineAdjustments = await getMatchedLines(file, [SYNTAXBRACKET, SYNTAXLIST])
}

if (lineAdjustments.length > 0) {
UploadLogger.verbose(`Matched file ${file} for adjustments: ${lineAdjustments.join(',')}`)
allAdjustments.push(`${file}:${lineAdjustments.join(',')}\n`)
}
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A future PR should move these promises into Promise.all or Promise.allSettled.

mitchell-codecov pushed a commit that referenced this pull request Sep 1, 2022
* feat: create fixes on c-like and php files

* fix: add e2e test for fixes
This was referenced Sep 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants