- Notifications
You must be signed in to change notification settings - Fork70
small enhancement to make rules that don't match not appear#234
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes fromall commits
Commits
Show all changes
8 commits Select commitHold shift + click to select a range
1c551ab small enhancement to make rules that don't match not appear
jsinglet79d9b3a probably better
jsinglet0411421 remove cache stuff
jsinglet029a382 update codeql version -- fix check
jsingletb35d032 updated to use settings
jsinglete3b9a55 Merge branch 'main' into jsinglet/compiler-path-fix
jsinglet917696d Merge branch 'main' into jsinglet/compiler-path-fix
jsingleta132ef4 Merge branch 'main' into jsinglet/compiler-path-fix
lcarteyFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
11 changes: 5 additions & 6 deletionsscripts/PSCodingStandards/Get-RuleForPath.ps1
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
39 changes: 39 additions & 0 deletionsscripts/PSCodingStandards/Test-GetRuleForPath.ps1
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| functionTest-GetRuleForPath { | ||
| param( | ||
| [Parameter(Mandatory)] | ||
| [string] | ||
| $PR | ||
| ) | ||
| $prData= (gh pr view-R github/codeql-coding-standards$PR--json headRefOid,headRepository,author,isCrossRepository,headRepositoryOwner,headRefName,files)|ConvertFrom-Json | ||
| foreach($fin$prData.files){ | ||
| try { | ||
| Write-Host"[C] Scanning file for relationship$($f.path)..." | ||
| $rulesToTest=Get-RuleForPath-Language c-Path"$($f.path)" | ||
| Write-Host"[C] Got$($rulesToTest.Count) potential C rules..." | ||
| foreach($rin$rulesToTest){ | ||
| $ruleNames+=$r.__memberof_rule | ||
| Write-Host"[C] Found rule$r" | ||
| } | ||
| }catch{ | ||
| Write-Host"No$Language rules found for path:$($f.path)" | ||
| } | ||
| try { | ||
| Write-Host"[CPP] Scanning file for relationship$($f.path)..." | ||
| $rulesToTest=Get-RuleForPath-Language cpp-Path"$($f.path)" | ||
| Write-Host"[CPP] Got$($rulesToTest.Count) potential CPP rules..." | ||
| foreach($rin$rulesToTest){ | ||
| Write-Host"[CPP] Found rule$r" | ||
| } | ||
| }catch{ | ||
| Write-Host"No CPP rules found for path:$($f.path)" | ||
| } | ||
| } | ||
| } |
2 changes: 1 addition & 1 deletionscripts/matrix_testing/CompileFixTool.ps1
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
4 changes: 3 additions & 1 deletionscripts/matrix_testing/Config.ps1
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
2 changes: 1 addition & 1 deletionscripts/matrix_testing/CreateMatrixTestReport.ps1
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
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.