Skip to content

Commit 62c9825

Browse files
committed
Merge branch 'jeongsoolee09/False-positives-1' of github.com:github/codeql-coding-standards into jeongsoolee09/False-positives-1
2 parents ec79c88 + e2b9b4e commit 62c9825

File tree

515 files changed

+23520
-1485
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

515 files changed

+23520
-1485
lines changed

.github/workflows/dispatch-matrix-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
pull_request_target:
55
types: [synchronize,opened]
66
branches:
7-
- "**"
7+
- "matrix/**"
88
workflow_dispatch:
99

1010
jobs:
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: 🤖 Run Matrix Check (On Comment)
2+
3+
on:
4+
issue_comment:
5+
types: [created]
6+
branches:
7+
- main
8+
- "rc/**"
9+
- next
10+
11+
12+
jobs:
13+
dispatch-matrix-check:
14+
runs-on: ubuntu-latest
15+
steps:
16+
17+
- name: Test Variables
18+
shell: pwsh
19+
run: |
20+
Write-Host "Running as: ${{github.actor}}"
21+
22+
$actor = "${{github.actor}}"
23+
24+
$acl = @("jsinglet","mbaluda", "lcartey", "rvermeulen", "ravikprasad", "jeongsoolee09", "hohn", "knewbury01", "kraiouchkine")
25+
26+
if(-not ($actor -in $acl)){
27+
throw "Refusing to run workflow for user not in acl."
28+
}
29+
30+
31+
- name: Dispatch Matrix Testing Job
32+
if: ${{ github.event.issue.pull_request && contains(github.event.comment.body, '/test-matrix') }}
33+
uses: peter-evans/repository-dispatch@v2
34+
with:
35+
token: ${{ secrets.RELEASE_ENGINEERING_TOKEN }}
36+
repository: github/codeql-coding-standards-release-engineering
37+
event-type: matrix-test
38+
client-payload: '{"pr": "${{ github.event.issue.number }}"}'
39+
40+
- uses: actions/github-script@v6
41+
if: ${{ github.event.issue.pull_request && contains(github.event.comment.body, '/test-matrix') }}
42+
with:
43+
script: |
44+
github.rest.issues.createComment({
45+
issue_number: context.issue.number,
46+
owner: context.repo.owner,
47+
repo: context.repo.repo,
48+
body: '🤖 Beep Boop! Matrix Testing for this PR has been initiated. Please check back later for results. <br><br> :bulb: If you do not hear back from me please check my status! **I will report even if this PR does not contain files eligible for matrix testing.**'
49+
})

.vscode/tasks.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,8 @@
203203
"Concurrency1",
204204
"Concurrency2",
205205
"Concurrency3",
206-
"Concurrency4",
207-
"Concurrency5",
206+
"Concurrency4",
207+
"Concurrency5",
208208
"Conditionals",
209209
"Const",
210210
"DeadCode",
@@ -242,19 +242,23 @@
242242
"Macros",
243243
"Memory1",
244244
"Memory2",
245+
"Memory3",
245246
"Misc",
246247
"MoveForward",
247248
"Naming",
248249
"Null",
249250
"OperatorInvariants",
250251
"Operators",
252+
"OutOfBounds",
251253
"Pointers",
252254
"Pointers1",
253255
"Pointers2",
254256
"Pointers3",
257+
"Representation",
255258
"Scope",
256259
"SideEffects1",
257260
"SideEffects2",
261+
"SideEffects3",
258262
"SmartPointers1",
259263
"SmartPointers2",
260264
"Strings",

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,5 @@ All header files in [c/common/test/includes/standard-library](./c/common/test/in
5050
---
5151

5252
<sup>1</sup>This repository incorporates portions of the SEI CERT® Coding Standards available at https://wiki.sei.cmu.edu/confluence/display/seccode/SEI+CERT+Coding+Standards; however, such use does not necessarily constitute or imply an endorsement, recommendation, or favoring by Carnegie Mellon University or its Software Engineering Institute.
53+
54+

c/cert/src/qlpack.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: codeql/cert-c-coding-standards
2-
version: 2.15.0-dev
2+
version: 2.18.0-dev
33
description: CERT C 2016
44
suites: codeql-suites
55
license: MIT

0 commit comments

Comments
 (0)