Skip to content

Fixed linter warning#549

Merged
soumeh01 merged 1 commit intomainfrom
fix-linter
Feb 19, 2026
Merged

Fixed linter warning#549
soumeh01 merged 1 commit intomainfrom
fix-linter

Conversation

@soumeh01
Copy link
Collaborator

@soumeh01 soumeh01 commented Feb 19, 2026

Issue

  Error: /home/runner/work/cbuild/cbuild/pkg/utils/exec.go:58:36: G115: integer overflow conversion uintptr -> int (gosec)
  			w, h, ptyErr := term.GetSize(int(os.Stdout.Fd()))
  			                                ^
  Error: /home/runner/work/cbuild/cbuild/pkg/utils/west.go:264:30: G703: Path traversal via taint analysis (gosec)
  		} else if _, err := os.Stat(value); os.IsNotExist(err) {

Changes

  • Suppressing the warning as the recent linter specifications are too strict and not relevant in our case

Checklist

  • 🤖 This change is covered by unit tests (if applicable).
  • 🤹 Manual testing has been performed (if necessary).
  • 🛡️ Security impacts have been considered (if relevant).
  • 📖 Documentation updates are complete (if required).
  • 🧠 Third-party dependencies and TPIP updated (if required).

@github-actions
Copy link
Contributor

github-actions bot commented Feb 19, 2026

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@soumeh01 soumeh01 marked this pull request as ready for review February 19, 2026 10:37
@soumeh01 soumeh01 requested a review from brondani February 19, 2026 10:37
@qltysh
Copy link

qltysh bot commented Feb 19, 2026

Qlty

Coverage Impact

⬆️ Merging this pull request will increase total coverage on main by 0.01%.

Modified Files with Diff Coverage (2)

RatingFile% DiffUncovered Line #s
Coverage rating: B Coverage rating: B
pkg/utils/exec.go100.0%
Coverage rating: A Coverage rating: A
pkg/utils/west.go100.0%
Total100.0%
🚦 See full report on Qlty Cloud »

🛟 Help
  • Diff Coverage: Coverage for added or modified lines of code (excludes deleted files). Learn more.

  • Total Coverage: Coverage for the whole repository, calculated as the sum of all File Coverage. Learn more.

  • File Coverage: Covered Lines divided by Covered Lines plus Missed Lines. (Excludes non-executable lines including blank lines and comments.)

    • Indirect Changes: Changes to File Coverage for files that were not modified in this PR. Learn more.

@github-actions
Copy link
Contributor

Test Results

    6 files  ±0     60 suites  ±0   14s ⏱️ ±0s
  303 tests ±0    303 ✅ ±0  0 💤 ±0  0 ❌ ±0 
1 818 runs  ±0  1 818 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 28a0d86. ± Comparison against base commit eaca090.

Copy link
Collaborator

@brondani brondani left a comment

Choose a reason for hiding this comment

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

LGTM

@soumeh01 soumeh01 merged commit e01a793 into main Feb 19, 2026
25 checks passed
@soumeh01 soumeh01 deleted the fix-linter branch February 19, 2026 10:50
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