Skip to content

Commit 2fef0f7

Browse files
authored
Merge pull request #17 from melodee-project/copilot/remove-yaml-front-matter
Fix CodeQL parsing errors by excluding Jekyll template files from JavaScript analysis
2 parents 2bbfd0c + 6496e4a commit 2fef0f7

6 files changed

Lines changed: 14 additions & 16 deletions

File tree

.github/codeql/codeql-config.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# CodeQL configuration
2+
# This file excludes Jekyll template files from JavaScript analysis
3+
# to prevent parse errors from Liquid template syntax
4+
5+
name: "CodeQL config"
6+
7+
# Paths to exclude from all analyses
8+
paths-ignore:
9+
# Exclude Jekyll template JavaScript files that contain Liquid syntax
10+
- 'docs/assets/js/main.js'
11+
- 'docs/assets/js/search.js'
12+
- 'melodee/docs/assets/js/main.js'
13+
- 'melodee/docs/assets/js/search.js'

.github/workflows/codeql.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ jobs:
4848
uses: github/codeql-action/init@v3
4949
with:
5050
languages: ${{ matrix.language }}
51+
config-file: ./.github/codeql/codeql-config.yml
5152
# If you wish to specify custom queries, you can do so here or in a config file.
5253
# By default, queries listed here will override any specified in a config file.
5354
# Prefix the list here with "+" to use these queries and those in the config file.

docs/assets/js/main.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
---
2-
exclude_in_search: true
3-
layout: null
4-
---
51
(function($) {
62
'use strict';
73
$(function() {

docs/assets/js/search.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
---
2-
layout: null
3-
excluded_in_search: true
4-
---
51
(function () {
62
function getQueryVariable(variable) {
73
var query = window.location.search.substring(1),

melodee/docs/assets/js/main.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
---
2-
exclude_in_search: true
3-
layout: null
4-
---
51
(function($) {
62
'use strict';
73
$(function() {

melodee/docs/assets/js/search.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
---
2-
layout: null
3-
excluded_in_search: true
4-
---
51
(function () {
62
function getQueryVariable(variable) {
73
var query = window.location.search.substring(1),

0 commit comments

Comments
 (0)