Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/codeql/codeql-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ paths-ignore:
- dist.*
- node_modules
- python/grass/pygrass/tests
queries:
- uses: security-extended
16 changes: 10 additions & 6 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,13 @@ jobs:
strategy:
fail-fast: false
matrix:
language:
- c-cpp
- python
- actions
include:
- language: c-cpp
build-mode: none
- language: python
build-mode: none
- language: actions
build-mode: none

concurrency:
group: ${{ github.workflow }}-${{
Expand All @@ -49,7 +52,7 @@ jobs:
with:
python-version: "3.x"
- name: Install non-Python dependencies
if: ${{ matrix.language == 'c-cpp' }}
if: ${{ matrix.language == 'c-cpp' && false }}
run: |
sudo apt-get update -y
sudo apt-get install -y wget git gawk findutils
Expand All @@ -65,6 +68,7 @@ jobs:
with:
languages: ${{ matrix.language }}
config-file: ./.github/codeql/codeql-config.yml
build-mode: ${{ matrix.build-mode }}

- name: Create installation directory
run: |
Expand All @@ -79,7 +83,7 @@ jobs:
echo "MAKEFLAGS=-j$(nproc)" >> "${GITHUB_ENV}"

- name: Build
if: ${{ matrix.language == 'c-cpp' }}
if: ${{ matrix.language == 'c-cpp' && false }}
env:
CFLAGS: -std=gnu17
CXXFLAGS: -std=c++17
Expand Down
2 changes: 1 addition & 1 deletion raster3d/r3.showdspf/draw_cappolys_ogl.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ int index;
norm[0] = norm[2] = 0.0;
for (t = start; t != stop; t += direction) {
tmpvt[t][0] = (vertices[t << 1] + xloc) * D_spec->xscale;
tmpvt[t][1] = (D_Cap->z) * D_spec->yscale;
tmpvt[t][1] = ((double) D_Cap->z) * D_spec->yscale;

Choose a reason for hiding this comment

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

[clang-format] reported by reviewdog 🐶

Suggested change
tmpvt[t][1] = ((double) D_Cap->z) * D_spec->yscale;
tmpvt[t][1] = ((double)D_Cap->z) * D_spec->yscale;

tmpvt[t][2] = (vertices[(t << 1) + 1] + yloc) * D_spec->zscale;
}
break;
Expand Down
Loading