Skip to content

Small code cleanup - #614

Closed
antisaling wants to merge 4 commits into
kworkflow:unstablefrom
antisaling:small-cleanup
Closed

antisaling wants to merge 4 commits into
kworkflow:unstablefrom
antisaling:small-cleanup

Conversation

@antisaling

Copy link
Copy Markdown
Contributor

This is a small cleanup I made during PR's #543 development.

@kwy95 kwy95 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I think there is an extra line that should be removed based on the comments from the previous PR, apart from that this LGTM.

Comment thread src/config_manager.sh
# Build command
[[ -n "$arch" ]] && cmd+=" ARCH=$arch"
[[ -n "$cross_compile" ]] && cmd+=" CROSS_COMPILE=$cross_compile"
[[ -n "$asic" ]] && cmd+=" $asic\_defconfig"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Shouldn't this PR also remove line 294 from this file?

@kwy95 kwy95 mentioned this pull request May 26, 2022
Some shellcheck disable statements are redundant as they're already
being dealt with in CI/pre-commit configuration. This commit removes
those redundant statements.

Signed-off-by: Isabella Basso <isabbasso@riseup.net>
@codecov-commenter

codecov-commenter commented May 26, 2022 •

Copy link
Copy Markdown

Codecov Report

Merging #614 (ac615d7) into unstable (2e219fc) will decrease coverage by 0.00%.
The diff coverage is 87.50%.

❗ Current head ac615d7 differs from pull request most recent head 8896a57. Consider uploading reports for the commit 8896a57 to get more accurate results

@@             Coverage Diff              @@
##           unstable     #614      +/-   ##
============================================
- Coverage     73.76%   73.75%   -0.01%     
============================================
  Files            36       36              
  Lines          5553     5555       +2     
============================================
+ Hits           4096     4097       +1     
- Misses         1457     1458       +1     
Impacted Files Coverage Δ
src/config_manager.sh 79.65% <83.33%> (-0.18%) ⬇️
src/build.sh 91.57% <100.00%> (ø)
src/signal_manager.sh 96.15% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2e219fc...8896a57. Read the comment docs.

@antisaling

Copy link
Copy Markdown
Contributor Author

@kwy95 thanks for the quick review :) I just think I might need to update some other stuff as I'm rebasing this on some months of other contributors' work, and there might be other stuff that won't work out of the box.

As ASICs aren't supported at all in the project, remove lines concerning
such hardware.

Signed-off-by: Isabella Basso <isabbasso@riseup.net>
This fixes an error in the `save_config_file` function, which previously
tested only many git operations but had a command substitution which
informed the wrong return value as the overall result.

Signed-off-by: Isabella Basso <isabbasso@riseup.net>
This adds the pre-commit linting configuration as a project default, as
many users who might want to contribute would need it anyways.

This commit also updates documentation to use a more general path for
the shellcheck binary.

Signed-off-by: Isabella Basso <isabbasso@riseup.net>
@rodrigosiqueira

Copy link
Copy Markdown
Collaborator

Hi @isinyaaa , thanks a lot for this PR. I made some minor changes in the commit number 3 and merged it into the unstable branch.

@antisaling
antisaling deleted the small-cleanup branch May 27, 2022 16:36
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.

4 participants