Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: do not hardcode console width #3451

Merged
merged 1 commit into from
Oct 23, 2023

Conversation

ffontaine
Copy link
Contributor

Since commit 66e1df3, console width is hardcoded to 120 and so width auto-detection is disabled. Drop this line as most modern screens can display more than 120 characters and a lot of lines are truncated now that EPSS data, latest version, etc. are displayed.

Since commit 66e1df3, console width is
hardcoded to 120 and so width auto-detection is disabled. Drop this line
as most modern screens can display more than 120 characters and a lot of
lines are truncated now that EPSS data, latest version, etc. are
displayed.

Signed-off-by: Fabrice Fontaine <fabrice.fontaine@orange.com>
@ffontaine ffontaine force-pushed the do-not-hardcode-console-width branch from 855f934 to 7e5bdf4 Compare October 23, 2023 12:35
@codecov-commenter
Copy link

Codecov Report

Merging #3451 (7e5bdf4) into main (fb39948) will decrease coverage by 5.69%.
Report is 6 commits behind head on main.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #3451      +/-   ##
==========================================
- Coverage   80.49%   74.81%   -5.69%     
==========================================
  Files         758      758              
  Lines       11616    11616              
  Branches     1571     1571              
==========================================
- Hits         9350     8690     -660     
- Misses       1842     2583     +741     
+ Partials      424      343      -81     
Flag Coverage Δ
longtests 74.81% <100.00%> (-5.69%) ⬇️

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

Files Coverage Δ
cve_bin_tool/output_engine/console.py 94.30% <100.00%> (+1.03%) ⬆️
test/test_output_engine.py 96.82% <ø> (ø)

... and 16 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link
Contributor

@terriko terriko left a comment

Choose a reason for hiding this comment

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

Thanks. Sorry I missed that in the initial code review -- I probably should have asked for it to be removed before that was merged.

@terriko terriko merged commit ec4f10e into intel:main Oct 23, 2023
21 checks passed
@ffontaine ffontaine deleted the do-not-hardcode-console-width branch October 23, 2023 20:56
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.

3 participants