oxsecurity / megalinter

🦙 MegaLinter analyzes 50 languages, 22 formats, 21 tooling formats, excessive copy-pastes, spelling mistakes and security issues in your repository sources with a GitHub Action, other CI tools or locally.
https://megalinter.io
GNU Affero General Public License v3.0
1.9k stars 231 forks source link

enhancement: Powershell Error Table Format Improvements #3620

Closed TommyE123 closed 3 months ago

TommyE123 commented 3 months ago

Fixes #3603

Proposed Changes

  1. Check if we are running in a CI environment (github_actions, gitlab_ci, azure_pipelines) and if so use a default table width of 150.
  2. Default back to getting the terminal size if we are not in a CI environment. (Existing functionality)
  3. Cleaned up alignment of columns.

Test Results

AZURE DEVOPS image

GITLAB image

GITHUB image

Readiness Checklist

Author/Contributor

Reviewing Maintainer

echoix commented 3 months ago

Just to make sure, the three CI in is_ci() supports widths of 150 columns?

Otherwise, it's great and ready to go!

TommyE123 commented 3 months ago

Test evidence updated to show all 3 CI outputs 😉

Just to make sure, the three CI in is_ci() supports widths of 150 columns?

Otherwise, it's great and ready to go!

echoix commented 3 months ago

Thanks again!