Skip to content

Commit 1b00410

Browse files
committed
Fixed CodeQL
1 parent cdeab59 commit 1b00410

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

Diff for: .github/codeql/codeql-config.yml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
name: 'CodeQL config'
2+
3+
paths:
4+
- 'src'
5+
6+
7+
queries:
8+
- uses: security-and-quality

Diff for: .github/workflows/codeql.yml

+2-9
Original file line numberDiff line numberDiff line change
@@ -69,16 +69,10 @@ jobs:
6969
# Initializes the CodeQL tools for scanning.
7070
- name: Initialize CodeQL
7171
uses: github/codeql-action/init@v3
72-
working-directory: build/
7372
with:
7473
languages: ${{ matrix.language }}
7574
build-mode: ${{ matrix.build-mode }}
76-
# If you wish to specify custom queries, you can do so here or in a config file.
77-
# By default, queries listed here will override any specified in a config file.
78-
# Prefix the list here with "+" to use these queries and those in the config file.
79-
80-
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
81-
# queries: security-extended,security-and-quality
75+
config-file: ./.github/codeql/codeql-config.yml
8276

8377
- name: CMake
8478
id: cmake
@@ -88,7 +82,7 @@ jobs:
8882
-DCMAKE_C_COMPILER=$TOOLSET_GCC_DIR/bin/gcc \
8983
-DNEBULA_USE_LINKER=gold \
9084
-DCMAKE_BUILD_TYPE=Debug \
91-
-DENABLE_TESTING=on \
85+
-DENABLE_TESTING=OFF \
9286
-GNinja \
9387
-B build
9488
- name: Make
@@ -102,4 +96,3 @@ jobs:
10296
uses: github/codeql-action/analyze@v3
10397
with:
10498
category: "/language:${{matrix.language}}"
105-
working-directory: build/

Diff for: src/graph/context/Result.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class Result final {
4040
return core_.state;
4141
}
4242

43-
size_t size() const {
43+
const size_t size() const {
4444
return core_.iter->size();
4545
}
4646

0 commit comments

Comments
 (0)