fix(linting): add summary timestamp to PSScriptAnalyzer output#1211
Open
XiaoPengMei wants to merge 9 commits intomicrosoft:mainfrom
Open
fix(linting): add summary timestamp to PSScriptAnalyzer output#1211XiaoPengMei wants to merge 9 commits intomicrosoft:mainfrom
XiaoPengMei wants to merge 9 commits intomicrosoft:mainfrom
Conversation
Author
|
@microsoft-github-policy-service agree |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1211 +/- ##
==========================================
- Coverage 87.72% 87.71% -0.01%
==========================================
Files 61 61
Lines 9320 9321 +1
==========================================
Hits 8176 8176
- Misses 1144 1145 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
WilliamBerryiii
approved these changes
Mar 26, 2026
auyidi1
approved these changes
Mar 27, 2026
rezatnoMsirhC
approved these changes
Mar 31, 2026
Contributor
rezatnoMsirhC
left a comment
There was a problem hiding this comment.
Please mention "Closes #1002" in the PR description. Otherwise LGTM. Thanks!
Pipe $summaryRaw into ConvertFrom-Json instead of reading the summary file a second time with Get-Content. Co-authored-by: auyidi1 <auyidi1@users.noreply.github.com>
WilliamBerryiii
approved these changes
Apr 3, 2026
Member
|
@auyidi1 or @rezatnoMsirhC ... can you please re-review and approve? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Timestamp = Get-StandardTimestampto thepsscriptanalyzer-summary.jsonoutputTesting
pwsh -NoProfile -File scripts/tests/Invoke-PesterTests.ps1 -TestPath scripts/tests/linting/Invoke-PSScriptAnalyzer.Tests.ps1npm run lint:pspwsh -NoProfile -Command "& './scripts/linting/Invoke-PSScriptAnalyzer.ps1' -OutputPath 'logs/psscriptanalyzer-results.json'; Get-Content 'logs/psscriptanalyzer-summary.json'"