The Meson Build System
This report presents the forensic synthetic code analysis of mesonbuild/meson, a Python project with 6,576 GitHub stars. SynthScan v2.0 examined 193,652 lines of code across 3110 source files, recording 2394 pattern matches distributed across 17 syntactic categories. The overall adjusted score of 12.6 places this repository in the Low AI signal band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 2394 distinct pattern matches across 17 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | run_tests.py | 160 | def get_convincing_fake_env_and_cc(bdir, prefix): | CODE |
| LOW | run_tests.py | 292 | def clear_meson_configure_class_caches() -> None: | CODE |
| LOW | run_project_tests.py | 606 | def create_deterministic_builddir(test: TestDef, use_tmpdir: bool) -> str: | CODE |
| LOW | run_project_tests.py | 1403 | def check_meson_commands_work(use_tmpdir: bool, extra_args: T.List[str]) -> None: | CODE |
| LOW | unittests/baseplatformtests.py | 367 | def get_meson_log_compiler_checks(self): | CODE |
| LOW | unittests/baseplatformtests.py | 378 | def get_meson_log_sanitychecks(self): | CODE |
| LOW | unittests/datatests.py | 64 | def test_compiler_options_documented(self): | CODE |
| LOW | unittests/datatests.py | 98 | def test_builtin_options_documented(self): | CODE |
| LOW | unittests/datatests.py | 175 | def test_cpu_families_documented(self): | CODE |
| LOW | unittests/datatests.py | 188 | def test_markdown_files_in_sitemap(self): | CODE |
| LOW | unittests/datatests.py | 222 | def test_vim_syntax_highlighting(self): | CODE |
| LOW | unittests/datatests.py | 240 | def test_all_functions_defined_in_ast_interpreter(self): | CODE |
| LOW⚡ | unittests/machinefiletests.py | 745 | def test_needs_exe_wrapper_true(self): | STRING |
| LOW⚡ | unittests/machinefiletests.py | 755 | def test_needs_exe_wrapper_false(self): | STRING |
| LOW⚡ | unittests/machinefiletests.py | 765 | def test_needs_exe_wrapper_true_wrapper(self): | STRING |
| LOW⚡ | unittests/machinefiletests.py | 1017 | def test_external_property_build_machine_native(self): | STRING |
| LOW⚡ | unittests/machinefiletests.py | 1023 | def test_external_property_host_machine_native(self): | STRING |
| LOW⚡ | unittests/machinefiletests.py | 1029 | def test_external_property_build_machine_cross(self): | STRING |
| LOW | unittests/machinefiletests.py | 104 | def helper_create_native_file(self, values: T.Dict[str, T.Dict[str, T.Union[str, int, float, bool, T.Sequence[T.Unio | STRING |
| LOW | unittests/machinefiletests.py | 124 | def helper_create_binary_wrapper(self, binary, dir_=None, extra_args=None, **kwargs): | STRING |
| LOW | unittests/machinefiletests.py | 188 | def test_multiple_native_files_override(self): | STRING |
| LOW | unittests/machinefiletests.py | 220 | def test_multiple_native_files(self): | STRING |
| LOW | unittests/machinefiletests.py | 394 | def _single_implementation_compiler(self, lang: str, binary: str, version_str: str, version: str) -> None: | STRING |
| LOW | unittests/machinefiletests.py | 454 | def test_native_file_dirs_overridden(self): | STRING |
| LOW | unittests/machinefiletests.py | 487 | def test_user_options_command_line_overrides(self): | STRING |
| LOW | unittests/machinefiletests.py | 492 | def test_user_options_subproject(self): | STRING |
| LOW | unittests/machinefiletests.py | 552 | def test_builtin_options_conf_overrides_env(self): | STRING |
| LOW | unittests/machinefiletests.py | 565 | def test_builtin_options_subprojects(self): | STRING |
| LOW | unittests/machinefiletests.py | 588 | def test_builtin_options_machinefile_overrides_subproject(self): | STRING |
| LOW | unittests/machinefiletests.py | 601 | def test_builtin_options_machinefile_global_loses_over_subproject(self): | STRING |
| LOW | unittests/machinefiletests.py | 607 | def test_builtin_options_compiler_properties(self): | STRING |
| LOW | unittests/machinefiletests.py | 625 | def test_builtin_options_compiler_properties_legacy(self): | STRING |
| LOW | unittests/machinefiletests.py | 643 | def test_builtin_options_paths(self): | STRING |
| LOW | unittests/machinefiletests.py | 661 | def test_builtin_options_paths_legacy(self): | STRING |
| LOW | unittests/machinefiletests.py | 678 | def test_bindgen_clang_arguments(self) -> None: | STRING |
| LOW | unittests/machinefiletests.py | 782 | def test_cross_exe_passed_no_wrapper(self): | STRING |
| LOW | unittests/machinefiletests.py | 798 | def test_cross_file_system_paths(self): | STRING |
| LOW | unittests/machinefiletests.py | 872 | def test_cross_file_dirs_overridden(self): | STRING |
| LOW | unittests/machinefiletests.py | 890 | def test_cross_file_dirs_chain(self): | STRING |
| LOW | unittests/machinefiletests.py | 932 | def test_builtin_options_per_machine(self): | STRING |
| LOW | unittests/machinefiletests.py | 972 | def test_builtin_options_conf_overrides_env(self): | STRING |
| LOW | unittests/machinefiletests.py | 1056 | def test_project_options_native_only(self) -> None: | STRING |
| LOW | unittests/machinefiletests.py | 1074 | def test_bindgen_finds_target_in_clang_options(self) -> None: | STRING |
| LOW | unittests/cargotests.py | 104 | def test_semver_has_prerelease(self) -> None: | CODE |
| LOW | unittests/cargotests.py | 417 | def test_cargo_toml_ws_package(self) -> None: | STRING |
| LOW | unittests/cargotests.py | 444 | def test_cargo_toml_ws_dependency(self) -> None: | STRING |
| LOW | unittests/cargotests.py | 528 | def test_cargo_toml_lints_to_args(self) -> None: | STRING |
| LOW | unittests/cargotests.py | 544 | def test_cargo_toml_dependencies(self) -> None: | STRING |
| LOW | unittests/cargotests.py | 598 | def test_cargo_toml_proc_macro(self) -> None: | STRING |
| LOW | unittests/cargotests.py | 650 | def test_cargo_toml_system_deps(self) -> None: | STRING |
| LOW⚡ | unittests/optiontests.py | 320 | def test_backend_option_pending(self): | CODE |
| LOW⚡ | unittests/optiontests.py | 326 | def test_reconfigure_b_nonexistent(self): | CODE |
| LOW⚡ | unittests/optiontests.py | 330 | def test_unconfigure_nonexistent(self): | CODE |
| LOW⚡ | unittests/optiontests.py | 335 | def test_subproject_proj_opt_with_same_name(self): | CODE |
| LOW⚡ | unittests/optiontests.py | 579 | def test_sanitize_prefix_cygwin_host(self): | CODE |
| LOW⚡ | unittests/optiontests.py | 588 | def test_sanitize_dir_option_cross_to_windows(self): | CODE |
| LOW⚡ | unittests/optiontests.py | 598 | def test_sanitize_dir_option_cross_to_linux(self): | CODE |
| LOW⚡ | unittests/optiontests.py | 608 | def test_sanitize_prefix_native_path(self): | CODE |
| LOW | unittests/optiontests.py | 60 | def test_subproject_system_option(self): | CODE |
| LOW | unittests/optiontests.py | 93 | def test_subproject_for_system(self): | CODE |
| 815 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | run_tests.py | 6 | CODE | |
| LOW | run_tests.py | 13 | CODE | |
| LOW | run_tests.py | 15 | CODE | |
| LOW | run_tests.py | 41 | CODE | |
| LOW | run_unittests.py | 101 | CODE | |
| LOW | run_unittests.py | 105 | CODE | |
| LOW | run_unittests.py | 119 | CODE | |
| LOW | run_meson_command_tests.py | 9 | CODE | |
| LOW | setup.py | 18 | CODE | |
| LOW | run_project_tests.py | 5 | CODE | |
| LOW | run_project_tests.py | 66 | CODE | |
| LOW | packaging/mpackage.py | 7 | CODE | |
| LOW | …t cases/rust/5 polyglot static/overflow_size_checks.py | 5 | CODE | |
| LOW | test cases/common/299 program in kwargs/customtarget.py | 4 | CODE | |
| LOW | test cases/fortran/7 generated/gen.py | 5 | CODE | |
| LOW | unittests/baseplatformtests.py | 5 | CODE | |
| LOW | unittests/datatests.py | 33 | CODE | |
| LOW | unittests/machinefiletests.py | 4 | CODE | |
| LOW | unittests/machinefiletests.py | 44 | CODE | |
| LOW | unittests/cargotests.py | 4 | CODE | |
| LOW | unittests/cargotests.py | 14 | CODE | |
| LOW | unittests/cargotests.py | 17 | CODE | |
| LOW | unittests/optiontests.py | 4 | CODE | |
| LOW | unittests/allplatformstests.py | 5 | CODE | |
| LOW | unittests/allplatformstests.py | 19 | CODE | |
| LOW | unittests/allplatformstests.py | 71 | CODE | |
| LOW | unittests/linuxcrosstests.py | 17 | CODE | |
| LOW | unittests/darwintests.py | 23 | CODE | |
| LOW | unittests/failuretests.py | 4 | CODE | |
| LOW | unittests/failuretests.py | 28 | CODE | |
| LOW | unittests/internaltests.py | 39 | CODE | |
| LOW | unittests/internaltests.py | 49 | CODE | |
| LOW | unittests/internaltests.py | 53 | CODE | |
| LOW | unittests/subprojectscommandtests.py | 18 | CODE | |
| LOW | unittests/pythontests.py | 12 | CODE | |
| LOW | unittests/rewritetests.py | 15 | CODE | |
| LOW | unittests/rewritetests.py | 15 | CODE | |
| LOW | unittests/helpers.py | 4 | CODE | |
| LOW | unittests/linuxliketests.py | 50 | CODE | |
| LOW | unittests/windowstests.py | 22 | CODE | |
| LOW | unittests/windowstests.py | 36 | CODE | |
| LOW | unittests/platformagnostictests.py | 5 | CODE | |
| LOW | unittests/platformagnostictests.py | 18 | CODE | |
| LOW | docs/extensions/refman_links.py | 10 | CODE | |
| LOW | docs/extensions/refman_links.py | 18 | CODE | |
| LOW | docs/refman/generatorjson.py | 3 | CODE | |
| LOW | docs/refman/generatorvim.py | 3 | CODE | |
| LOW | docs/refman/generatorprint.py | 5 | CODE | |
| LOW | mesonbuild/build.py | 4 | CODE | |
| LOW | mesonbuild/build.py | 49 | CODE | |
| LOW | mesonbuild/build.py | 51 | CODE | |
| LOW | mesonbuild/build.py | 54 | CODE | |
| LOW | mesonbuild/build.py | 55 | CODE | |
| LOW | mesonbuild/mcompile.py | 4 | CODE | |
| LOW | mesonbuild/mcompile.py | 25 | CODE | |
| LOW | mesonbuild/options.py | 5 | CODE | |
| LOW | mesonbuild/minit.py | 6 | CODE | |
| LOW | mesonbuild/minit.py | 26 | CODE | |
| LOW | mesonbuild/coredata.py | 5 | CODE | |
| LOW | mesonbuild/coredata.py | 29 | CODE | |
| 539 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | run_tests.py | 224 | CODE | |
| LOW | run_tests.py | 256 | CODE | |
| LOW | run_format_tests.py | 27 | CODE | |
| LOW | run_mypy.py | 38 | CODE | |
| LOW | run_project_tests.py | 369 | CODE | |
| LOW | run_project_tests.py | 495 | CODE | |
| LOW | run_project_tests.py | 814 | CODE | |
| LOW | run_project_tests.py | 843 | CODE | |
| LOW | run_project_tests.py | 1166 | CODE | |
| LOW | run_project_tests.py | 151 | CODE | |
| LOW | tools/regenerate_docs.py | 124 | CODE | |
| LOW | tools/boost_names.py | 76 | CODE | |
| LOW | tools/boost_names.py | 187 | CODE | |
| LOW | tools/cmake2meson.py | 38 | CODE | |
| LOW | tools/cmake2meson.py | 152 | CODE | |
| LOW | tools/cmake2meson.py | 175 | CODE | |
| LOW | tools/cmake2meson.py | 289 | CODE | |
| LOW | …_i single from multiple/generate_conflicting_stlibs.py | 63 | CODE | |
| LOW | test cases/common/53 install script/myinstall.py | 11 | CODE | |
| LOW | …ink custom_i multiple from multiple/generate_stlibs.py | 65 | CODE | |
| LOW | ci/ciimage/build.py | 220 | CODE | |
| LOW | unittests/datatests.py | 38 | CODE | |
| LOW | unittests/machinefiletests.py | 64 | CODE | |
| LOW | unittests/machinefiletests.py | 104 | CODE | |
| LOW | unittests/machinefiletests.py | 247 | CODE | |
| LOW | unittests/machinefiletests.py | 369 | CODE | |
| LOW | unittests/machinefiletests.py | 565 | CODE | |
| LOW | unittests/machinefiletests.py | 798 | CODE | |
| LOW | unittests/machinefiletests.py | 932 | CODE | |
| LOW | unittests/machinefiletests.py | 972 | CODE | |
| LOW | unittests/machinefiletests.py | 370 | CODE | |
| LOW | unittests/allplatformstests.py | 326 | CODE | |
| LOW | unittests/allplatformstests.py | 899 | CODE | |
| LOW | unittests/allplatformstests.py | 1026 | CODE | |
| LOW | unittests/allplatformstests.py | 1068 | CODE | |
| LOW | unittests/allplatformstests.py | 1167 | CODE | |
| LOW | unittests/allplatformstests.py | 1331 | CODE | |
| LOW | unittests/allplatformstests.py | 1995 | CODE | |
| LOW | unittests/allplatformstests.py | 2037 | CODE | |
| LOW | unittests/allplatformstests.py | 2147 | CODE | |
| LOW | unittests/allplatformstests.py | 2509 | CODE | |
| LOW | unittests/allplatformstests.py | 2573 | CODE | |
| LOW | unittests/allplatformstests.py | 2703 | CODE | |
| LOW | unittests/allplatformstests.py | 3189 | CODE | |
| LOW | unittests/allplatformstests.py | 3652 | CODE | |
| LOW | unittests/allplatformstests.py | 4264 | CODE | |
| LOW | unittests/allplatformstests.py | 4945 | CODE | |
| LOW | unittests/allplatformstests.py | 3658 | CODE | |
| LOW | unittests/allplatformstests.py | 4273 | CODE | |
| LOW | unittests/allplatformstests.py | 4953 | CODE | |
| LOW | unittests/internaltests.py | 679 | CODE | |
| LOW | unittests/internaltests.py | 725 | CODE | |
| LOW | unittests/internaltests.py | 797 | CODE | |
| LOW | unittests/pythontests.py | 53 | CODE | |
| LOW | unittests/rewritetests.py | 221 | CODE | |
| LOW | unittests/linuxliketests.py | 512 | CODE | |
| LOW | unittests/linuxliketests.py | 835 | CODE | |
| LOW | unittests/platformagnostictests.py | 98 | CODE | |
| LOW | docs/genrelnotes.py | 25 | CODE | |
| LOW | docs/extensions/refman_links.py | 50 | CODE | |
| 354 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | run_tests.py | 61 | COMMENT | |
| LOW | run_format_tests.py | 1 | #!/usr/bin/env python3 | COMMENT |
| LOW | azure-pipelines.yml | 1 | # intel oneapi installation is based on the examples at | COMMENT |
| LOW | run_shell_checks.py | 1 | #!/usr/bin/env python3 | COMMENT |
| LOW | test cases/unit/17 prebuilt shared/alexandria.h | 1 | #pragma once | COMMENT |
| LOW | …st cases/unit/29 guessed linker dependencies/lib/lib.c | 1 | #if defined _WIN32 | COMMENT |
| LOW | test cases/unit/19 array option/meson_options.txt | 1 | # Copyright © 2017 Intel Corporation | COMMENT |
| LOW | test cases/unit/30 shared_mod linking/libfile.c | 1 | #if defined _WIN32 || defined __CYGWIN__ | COMMENT |
| LOW | …es/unit/31 forcefallback/subprojects/notzlib/notzlib.h | 1 | #pragma once | COMMENT |
| LOW | test cases/unit/88 multiple envvars/prog.cpp | 1 | #include<cstdio> | COMMENT |
| LOW | test cases/unit/88 multiple envvars/prog.c | 1 | #include<stdio.h> | COMMENT |
| LOW | test cases/unit/60 identity cross/stuff.h | 1 | #ifdef EXTERNAL_BUILD | COMMENT |
| LOW | test cases/unit/60 identity cross/stuff.h | 21 | #if defined(EXTERNAL_BUILD) && defined(EXTERNAL_HOST) | COMMENT |
| LOW | …t library install/subprojects/sublib/include/subdefs.h | 1 | #ifndef SUBDEFS_H_ | COMMENT |
| LOW | test cases/native/2 global arg/prog.c | 1 | #ifndef MYTHING | COMMENT |
| LOW | test cases/native/2 global arg/prog.c | 21 | #ifdef GLOBAL_BUILD | COMMENT |
| LOW | …cases/native/8 external program shebang parsing/main.c | 1 | #include <stdio.h> | COMMENT |
| LOW | …e/27 dependency fallback/subprojects/cmMod/cpp_pch.hpp | 1 | #include <vector> | COMMENT |
| LOW | … object library advanced/subprojects/cmObjLib/libA.hpp | 1 | #pragma once | COMMENT |
| LOW | … object library advanced/subprojects/cmObjLib/libB.hpp | 1 | #pragma once | COMMENT |
| LOW | …/6 object library no dep/subprojects/cmObjLib/libA.hpp | 1 | #pragma once | COMMENT |
| LOW | …/6 object library no dep/subprojects/cmObjLib/libB.hpp | 1 | #pragma once | COMMENT |
| LOW | …cmake/19 advanced options/subprojects/cmOpts/cmMod.cpp | 1 | #include "cmMod.hpp" | COMMENT |
| LOW | …make/19 advanced options/subprojects/cmOpts/cmTest.cpp | 1 | #include "cmTest.hpp" | COMMENT |
| LOW | …s/cmake/5 object library/subprojects/cmObjLib/libA.hpp | 1 | #pragma once | COMMENT |
| LOW | …s/cmake/5 object library/subprojects/cmObjLib/libB.hpp | 1 | #pragma once | COMMENT |
| LOW | test cases/cmake/1 basic/subprojects/cmMod/cpp_pch.hpp | 1 | #include <vector> | COMMENT |
| LOW | …17 include path order/subprojects/cmMod/incF/cmMod.hpp | 1 | // cmMod.hpp (F) | COMMENT |
| LOW | …17 include path order/subprojects/cmMod/incA/cmMod.hpp | 1 | // cmMod.hpp (A) | COMMENT |
| LOW | …17 include path order/subprojects/cmMod/incH/cmMod.hpp | 1 | // cmMod.hpp (H) | COMMENT |
| LOW | …17 include path order/subprojects/cmMod/incO/cmMod.hpp | 1 | // cmMod.hpp (O) | COMMENT |
| LOW | …17 include path order/subprojects/cmMod/incN/cmMod.hpp | 1 | // cmMod.hpp (N) | COMMENT |
| LOW | …17 include path order/subprojects/cmMod/incI/cmMod.hpp | 1 | // cmMod.hpp (I) | COMMENT |
| LOW | …17 include path order/subprojects/cmMod/incB/cmMod.hpp | 1 | // cmMod.hpp (B) | COMMENT |
| LOW | …17 include path order/subprojects/cmMod/incE/cmMod.hpp | 1 | // cmMod.hpp (E) | COMMENT |
| LOW | …17 include path order/subprojects/cmMod/incL/cmMod.hpp | 1 | // cmMod.hpp (L) | COMMENT |
| LOW | …17 include path order/subprojects/cmMod/incP/cmMod.hpp | 1 | // cmMod.hpp (P) | COMMENT |
| LOW | …17 include path order/subprojects/cmMod/incJ/cmMod.hpp | 1 | // cmMod.hpp (J) | COMMENT |
| LOW | …17 include path order/subprojects/cmMod/incM/cmMod.hpp | 1 | // cmMod.hpp (M) | COMMENT |
| LOW | …17 include path order/subprojects/cmMod/incD/cmMod.hpp | 1 | // cmMod.hpp (D) | COMMENT |
| LOW | …17 include path order/subprojects/cmMod/incC/cmMod.hpp | 1 | // cmMod.hpp (C) | COMMENT |
| LOW | …make/18 skip include files/subprojects/cmMod/cmMod.cpp | 1 | #include "cmMod.hpp" | COMMENT |
| LOW | test cases/cmake/16 threads/subprojects/cmMod/cmMod.hpp | 1 | #pragma once | COMMENT |
| LOW | …erator expressions/subprojects/cmMod/include/cmMod.hpp | 1 | #pragma once | COMMENT |
| LOW | …erator expressions/subprojects/cmMod/include/cmMod.hpp | 21 | #ifndef CMAKE_TRUE_FLAG | COMMENT |
| LOW | …ake/21 shared module/subprojects/cmMod/module/module.c | 1 | #if defined _WIN32 || defined __CYGWIN__ | COMMENT |
| LOW | test cases/osx/7 bitcode/vis.h | 1 | #if defined __GNUC__ | COMMENT |
| LOW | test cases/failing test/3 ambiguous/test_runner.sh | 1 | #!/bin/sh | COMMENT |
| LOW | test cases/cuda/5 threads/shared/kernels.h | 41 | # define TAG_ATTRIBUTE_EXPORT __declspec(dllexport) | COMMENT |
| LOW | test cases/cuda/4 shared/shared/kernels.h | 41 | # define TAG_ATTRIBUTE_EXPORT __declspec(dllexport) | COMMENT |
| LOW | test cases/rust/12 bindgen/include/other.h | 1 | // SPDX-License-Identifier: Apache-2.0 | COMMENT |
| LOW | test cases/rust/12 bindgen/src/global-project.h | 1 | #ifndef GLOBAL_ARG | COMMENT |
| LOW | test cases/rust/16 internal c dependencies/lib.h | 1 | #pragma once | COMMENT |
| LOW | test cases/rust/15 polyglot sharedlib/adder.h | 1 | #pragma once | COMMENT |
| LOW | test cases/rust/9 unit tests/doctest1.rs | 1 | //! This is a doctest | COMMENT |
| LOW | test cases/failing/31 exe static shared/shlib2.c | 1 | #if defined _WIN32 || defined __CYGWIN__ | COMMENT |
| LOW | test cases/common/21 target arg/func.c | 1 | #ifndef CTHING | COMMENT |
| LOW | test cases/common/21 target arg/func2.c | 1 | #ifdef CTHING | COMMENT |
| LOW | test cases/common/173 as-needed/config.h | 1 | #if defined _WIN32 || defined __CYGWIN__ | COMMENT |
| LOW | …ases/common/125 configure file in generator/src/main.c | 1 | #include<stdio.h> | COMMENT |
| 149 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | run_meson_command_tests.py | 128 | # Create a symlink to meson.py in bindir, and add it to PATH | COMMENT |
| MEDIUM | unittests/allplatformstests.py | 3348 | # Create a file in builddir and verify wipe command removes it | STRING |
| MEDIUM | unittests/subprojectscommandtests.py | 127 | # Create a fake remote git repository and a wrap file. Checks that | STRING |
| MEDIUM | unittests/subprojectscommandtests.py | 135 | # Create a new remote branch and update the wrap file. Checks that | STRING |
| MEDIUM | unittests/subprojectscommandtests.py | 180 | # Create a new remote tag and update the wrap file. Checks that | STRING |
| MEDIUM | unittests/subprojectscommandtests.py | 188 | # Create a new remote commit and update the wrap file with the commit id. | STRING |
| MEDIUM | unittests/subprojectscommandtests.py | 199 | # Create a local project not in a git repository, then update it with | STRING |
| MEDIUM | unittests/subprojectscommandtests.py | 213 | # Create a fake remote git repository and a wrap file targeting | STRING |
| MEDIUM | unittests/linuxliketests.py | 721 | # Create a new testdir under tmpdir. | COMMENT |
| MEDIUM | docs/refman/generatormd.py | 52 | # This function is designed to be used with `dedent` | COMMENT |
| MEDIUM⚡ | mesonbuild/build.py | 1367 | # Create an empty commands list, and start adding arguments from | STRING |
| MEDIUM | mesonbuild/options.py | 937 | # Create a copy of the object, as we're going to mutate it | COMMENT |
| MEDIUM | mesonbuild/coredata.py | 211 | # This class contains all data that must persist over multiple | COMMENT |
| MEDIUM | mesonbuild/rewriter.py | 1017 | # Create an empty file if it does not exist | COMMENT |
| MEDIUM⚡ | mesonbuild/msetup.py | 35 | git_ignore_file = '''# This file is autogenerated by Meson. If you change or delete it, it won't be recreated. | CODE |
| MEDIUM⚡ | mesonbuild/msetup.py | 39 | hg_ignore_file = '''# This file is autogenerated by Meson. If you change or delete it, it won't be recreated. | STRING |
| MEDIUM⚡ | mesonbuild/msetup.py | 45 | # This file is a cache directory tag created by meson. | COMMENT |
| MEDIUM | mesonbuild/mesonmain.py | 12 | # This file is an entry point for all commands, including scripts. Include the | COMMENT |
| MEDIUM | mesonbuild/cmake/traceparser.py | 4 | # This class contains the basic functionality needed to run any interpreter | COMMENT |
| MEDIUM | mesonbuild/cmake/__init__.py | 4 | # This class contains the basic functionality needed to run any interpreter | COMMENT |
| MEDIUM | mesonbuild/cmake/interpreter.py | 4 | # This class contains the basic functionality needed to run any interpreter | COMMENT |
| MEDIUM | mesonbuild/interpreterbase/interpreterbase.py | 4 | # This class contains the basic functionality needed to run any interpreter | COMMENT |
| MEDIUM | mesonbuild/interpreterbase/decorators.py | 647 | # Create a shallow copy of the container. This allows mutable | COMMENT |
| MEDIUM | mesonbuild/dependencies/misc.py | 4 | # This file contains the detection logic for miscellaneous external dependencies. | COMMENT |
| MEDIUM | mesonbuild/dependencies/ui.py | 4 | # This file contains the detection logic for external dependencies that | COMMENT |
| MEDIUM | mesonbuild/dependencies/hdf5.py | 4 | # This file contains the detection logic for miscellaneous external dependencies. | COMMENT |
| MEDIUM | mesonbuild/dependencies/platform.py | 4 | # This file contains the detection logic for external dependencies that are | COMMENT |
| MEDIUM | mesonbuild/dependencies/dev.py | 397 | # Initialize basic variables | COMMENT |
| MEDIUM | mesonbuild/dependencies/base.py | 5 | # This file contains the detection logic for external dependencies. | COMMENT |
| MEDIUM | mesonbuild/backend/xcodebackend.py | 186 | # This class is a bit weird, because we want to write PBX dicts in | COMMENT |
| MEDIUM | mesonbuild/backend/backends.py | 276 | # This class contains the basic functionality that is needed by all backends. | COMMENT |
| MEDIUM | mesonbuild/backend/backends.py | 937 | # Create an empty commands list, and start adding arguments from | COMMENT |
| MEDIUM | mesonbuild/backend/vs2010backend.py | 514 | # Create the solution configuration | COMMENT |
| MEDIUM | mesonbuild/backend/ninjabackend.py | 3849 | # Create an empty commands list, and start adding link arguments from | COMMENT |
| MEDIUM | mesonbuild/backend/ninjabackend.py | 4244 | # Create a list of all custom target outputs | COMMENT |
| MEDIUM | mesonbuild/scripts/symbolextractor.py | 9 | # This file is basically a reimplementation of | COMMENT |
| MEDIUM | mesonbuild/scripts/coverage.py | 100 | # Create a shim to allow using llvm-cov as a gcov tool. | COMMENT |
| MEDIUM | mesonbuild/ast/postprocess.py | 4 | # This class contains the basic functionality needed to run any interpreter | COMMENT |
| MEDIUM | mesonbuild/ast/__init__.py | 4 | # This class contains the basic functionality needed to run any interpreter | COMMENT |
| MEDIUM | mesonbuild/ast/interpreter.py | 4 | # This class contains the basic functionality needed to run any interpreter | COMMENT |
| MEDIUM | mesonbuild/ast/visitor.py | 4 | # This class contains the basic functionality needed to run any interpreter | COMMENT |
| MEDIUM | mesonbuild/ast/introspection.py | 5 | # This class contains the basic functionality needed to run any interpreter | COMMENT |
| MEDIUM | mesonbuild/ast/printer.py | 4 | # This class contains the basic functionality needed to run any interpreter | COMMENT |
| MEDIUM | mesonbuild/compilers/mixins/clike.py | 698 | # Define the symbol to something else since it is defined by the | COMMENT |
| MEDIUM | mesonbuild/modules/dlang.py | 4 | # This file contains the detection logic for external dependencies that | COMMENT |
| MEDIUM | mesonbuild/modules/__init__.py | 4 | # This file contains the base representation for import('modname') | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | mesonbuild/interpreter/mesonmain.py | 312 | optval = self.interpreter.environment.coredata.optstore.get_value_for(OptionKey('unity')) | CODE |
| CRITICAL | mesonbuild/backend/ninjabackend.py | 609 | for compiler in self.environment.coredata.compilers.host.values(): | CODE |
| CRITICAL | mesonbuild/backend/ninjabackend.py | 2941 | for lang, c in self.environment.coredata.compilers.host.items(): | CODE |
| CRITICAL | mesonbuild/modules/pkgconfig.py | 756 | compiler = state.environment.coredata.compilers.host.get('d') | CODE |
| CRITICAL | mesonbuild/modules/python.py | 120 | prefix = self.interpreter.environment.coredata.optstore.get_value_for(OptionKey('prefix')) | CODE |
| CRITICAL | mesonbuild/modules/python.py | 188 | allow_limited_api = self.interpreter.environment.coredata.optstore.get_value_for(OptionKey('python.allow_limited | CODE |
| CRITICAL | mesonbuild/modules/python.py | 228 | is_debug = self.interpreter.environment.coredata.optstore.get_value_for('debug') | CODE |
| CRITICAL | mesonbuild/modules/python.py | 279 | build_config = self.interpreter.environment.coredata.optstore.get_value_for(OptionKey('python.build_config')) | CODE |
| CRITICAL | mesonbuild/modules/python.py | 416 | optlevel = self.interpreter.environment.coredata.optstore.get_value_for(OptionKey('python.bytecompile')) | CODE |
| CRITICAL | mesonbuild/modules/python.py | 482 | build_config = self.interpreter.environment.coredata.optstore.get_value_for(OptionKey('python.build_config')) | CODE |
| CRITICAL | mesonbuild/modules/hotdoc.py | 320 | if self.state.environment.coredata.optstore.get_value_for(OptionKey('werror', subproject=self.state.subproject)) | CODE |
| CRITICAL | mesonbuild/modules/rust.py | 890 | [state.environment.coredata.compilers.host.get(T.cast('Language', l)) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | mesonbuild/templates/ctemplates.py | 0 | #pragma once #if defined _win32 || defined __cygwin__ #ifdef building_{utoken} #define {utoken}_public __declspec(dllexp | STRING |
| HIGH | mesonbuild/templates/objcpptemplates.py | 0 | #pragma once #if defined _win32 || defined __cygwin__ #ifdef building_{utoken} #define {utoken}_public __declspec(dllexp | STRING |
| HIGH | mesonbuild/templates/objctemplates.py | 0 | #pragma once #if defined _win32 || defined __cygwin__ #ifdef building_{utoken} #define {utoken}_public __declspec(dllexp | STRING |
| HIGH | mesonbuild/templates/ctemplates.py | 0 | #import <{header_file}> /* this function will not be exported and is not * directly callable by users of this library. * | STRING |
| HIGH | mesonbuild/templates/dlangtemplates.py | 0 | #import <{header_file}> /* this function will not be exported and is not * directly callable by users of this library. * | STRING |
| HIGH | mesonbuild/templates/objcpptemplates.py | 0 | #import <{header_file}> /* this function will not be exported and is not * directly callable by users of this library. * | STRING |
| HIGH | mesonbuild/templates/objctemplates.py | 0 | #import <{header_file}> /* this function will not be exported and is not * directly callable by users of this library. * | STRING |
| HIGH | mesonbuild/templates/ctemplates.py | 0 | project( '{project_name}', 'cpp', version : '{version}', meson_version : '>= {meson_version}', default_options : ['warni | STRING |
| HIGH | mesonbuild/templates/fortrantemplates.py | 0 | project( '{project_name}', 'cpp', version : '{version}', meson_version : '>= {meson_version}', default_options : ['warni | STRING |
| HIGH | mesonbuild/templates/cudatemplates.py | 0 | project( '{project_name}', 'cpp', version : '{version}', meson_version : '>= {meson_version}', default_options : ['warni | STRING |
| HIGH | mesonbuild/templates/objcpptemplates.py | 0 | project( '{project_name}', 'cpp', version : '{version}', meson_version : '>= {meson_version}', default_options : ['warni | STRING |
| HIGH | mesonbuild/templates/objctemplates.py | 0 | project( '{project_name}', 'cpp', version : '{version}', meson_version : '>= {meson_version}', default_options : ['warni | STRING |
| HIGH | mesonbuild/templates/cpptemplates.py | 0 | project( '{project_name}', 'cpp', version : '{version}', meson_version : '>= {meson_version}', default_options : ['warni | STRING |
| HIGH | mesonbuild/templates/ctemplates.py | 0 | project( '{project_name}', 'objc', version : '{version}', meson_version : '>= {meson_version}', default_options : ['warn | STRING |
| HIGH | mesonbuild/templates/cstemplates.py | 0 | project( '{project_name}', 'objc', version : '{version}', meson_version : '>= {meson_version}', default_options : ['warn | STRING |
| HIGH | mesonbuild/templates/fortrantemplates.py | 0 | project( '{project_name}', 'objc', version : '{version}', meson_version : '>= {meson_version}', default_options : ['warn | STRING |
| HIGH | mesonbuild/templates/dlangtemplates.py | 0 | project( '{project_name}', 'objc', version : '{version}', meson_version : '>= {meson_version}', default_options : ['warn | STRING |
| HIGH | mesonbuild/templates/objcpptemplates.py | 0 | project( '{project_name}', 'objc', version : '{version}', meson_version : '>= {meson_version}', default_options : ['warn | STRING |
| HIGH | mesonbuild/templates/objctemplates.py | 0 | project( '{project_name}', 'objc', version : '{version}', meson_version : '>= {meson_version}', default_options : ['warn | STRING |
| HIGH | mesonbuild/compilers/c.py | 0 | {prefix} #include <{hname}> int main(void) {{ /* if it's not defined as a macro, try to use as a symbol */ #ifndef {symb | STRING |
| HIGH | mesonbuild/compilers/cuda.py | 0 | {prefix} #include <{hname}> int main(void) {{ /* if it's not defined as a macro, try to use as a symbol */ #ifndef {symb | STRING |
| HIGH | mesonbuild/compilers/mixins/clike.py | 0 | {prefix} #include <{hname}> int main(void) {{ /* if it's not defined as a macro, try to use as a symbol */ #ifndef {symb | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | run_project_tests.py | 1145 | def update_log(self, new_status: TestStatus) -> None: | CODE |
| LOW | mesonbuild/build.py | 226 | def set_install_subdir(self, subdir: str) -> None: | CODE |
| LOW | mesonbuild/build.py | 950 | def _set_vala_args(self, kwargs: BuildTargetKeywordArguments) -> None: | STRING |
| LOW | mesonbuild/build.py | 2217 | def _set_vala_args(self, kwargs: BuildTargetKeywordArguments) -> None: | STRING |
| LOW | mesonbuild/build.py | 2439 | def set_shared(self, shared_library: SharedLibrary) -> None: | STRING |
| LOW | mesonbuild/build.py | 2803 | def set_static(self, static_library: StaticLibrary) -> None: | STRING |
| LOW | mesonbuild/options.py | 598 | def set_versions(self, versions: T.List[str], gnu: bool = False, gnu_deprecated: bool = False) -> None: | CODE |
| LOW | mesonbuild/options.py | 796 | def set_host_machine(self, machine: MachineInfo) -> None: | CODE |
| LOW | mesonbuild/options.py | 1388 | def update_project_options(self, project_options: MutableKeyedOptionDictType, subproject: SubProject) -> None: | CODE |
| LOW | mesonbuild/_typing.py | 10 | __all__ = [ | CODE |
| LOW | mesonbuild/cmdline.py | 96 | def update_cmd_line_file(build_dir: str, options: SharedCMDOptions) -> None: | CODE |
| LOW | mesonbuild/minstall.py | 221 | def set_mode(path: str, mode: T.Optional['FileMode'], default_umask: T.Union[str, int]) -> None: | CODE |
| LOW⚡ | mesonbuild/minstall.py | 359 | def set_chown(self, *args: T.Any, **kwargs: T.Any) -> None: | CODE |
| LOW⚡ | mesonbuild/minstall.py | 363 | def set_chmod(self, *args: T.Any, **kwargs: T.Any) -> None: | CODE |
| LOW⚡ | mesonbuild/minstall.py | 371 | def set_mode(self, *args: T.Any, **kwargs: T.Any) -> None: | CODE |
| LOW | mesonbuild/mparser.py | 376 | def set_kwarg(self, name: IdNode, value: BaseNode) -> None: | CODE |
| LOW | mesonbuild/mparser.py | 389 | def set_kwarg_no_check(self, name: BaseNode, value: BaseNode) -> None: | CODE |
| LOW⚡ | mesonbuild/mlog.py | 99 | def set_quiet(self) -> None: | CODE |
| LOW⚡ | mesonbuild/mlog.py | 102 | def set_verbose(self) -> None: | CODE |
| LOW⚡ | mesonbuild/mlog.py | 105 | def set_timestamp_start(self, start: float) -> None: | CODE |
| LOW | mesonbuild/msubprojects.py | 420 | def update_git_done(self) -> None: | CODE |
| LOW | mesonbuild/mesonmain.py | 242 | def set_meson_command(mainfile: str) -> None: | CODE |
| LOW | mesonbuild/environment.py | 341 | def _set_default_options_from_env(self) -> None: | CODE |
| LOW | mesonbuild/environment.py | 406 | def _set_default_binaries_from_env(self) -> None: | CODE |
| LOW | mesonbuild/environment.py | 425 | def _set_default_properties_from_env(self) -> None: | CODE |
| LOW | mesonbuild/environment.py | 658 | def update_build_machine(self, compilers: T.Optional[CompilerDict] = None) -> None: | CODE |
| LOW | mesonbuild/_pathlib.py | 27 | __all__ = [ | CODE |
| LOW | mesonbuild/mintro.py | 600 | def update_build_options(coredata: cdata.CoreData, info_dir: str) -> None: | CODE |
| LOW | mesonbuild/interpreter/interpreterobjects.py | 348 | def set_method(self, args: T.Tuple[str, T.List[str]], kwargs: 'EnvironmentSeparatorKW') -> None: | CODE |
| LOW | mesonbuild/interpreter/interpreterobjects.py | 397 | def set_method(self, args: T.Tuple[str, T.Union[str, int, bool]], kwargs: 'kwargs.ConfigurationDataSet') -> None: | CODE |
| LOW | mesonbuild/interpreter/interpreterobjects.py | 404 | def set_quoted_method(self, args: T.Tuple[str, str], kwargs: 'kwargs.ConfigurationDataSet') -> None: | CODE |
| LOW | mesonbuild/interpreter/__init__.py | 7 | __all__ = [ | CODE |
| LOW | mesonbuild/interpreter/interpreter.py | 1218 | def set_backend(self) -> None: | CODE |
| LOW | mesonbuild/interpreter/dependencyfallbacks.py | 62 | def set_fallback(self, fbinfo: T.Optional[T.Union[T.List[str], str]]) -> None: | CODE |
| LOW | mesonbuild/interpreter/primitives/__init__.py | 4 | __all__ = [ | CODE |
| LOW | mesonbuild/linkers/__init__.py | 12 | __all__ = [ | CODE |
| LOW | mesonbuild/cmake/__init__.py | 7 | __all__ = [ | CODE |
| LOW | mesonbuild/cmake/common.py | 282 | def set_opt(self, opt: str, val: str) -> None: | CODE |
| LOW | mesonbuild/cmake/common.py | 293 | def set_install(self, install: bool) -> None: | CODE |
| LOW⚡ | mesonbuild/cmake/toolchain.py | 227 | def update_cmake_compiler_state(self) -> None: | STRING |
| LOW | mesonbuild/cmake/executor.py | 126 | def set_exec_mode(self, print_cmout: T.Optional[bool] = None, always_capture_stderr: T.Optional[bool] = None) -> Non | CODE |
| LOW | mesonbuild/interpreterbase/__init__.py | 4 | __all__ = [ | CODE |
| LOW | mesonbuild/interpreterbase/interpreterbase.py | 647 | def set_variable(self, varname: str, variable: T.Union[TYPE_var, InterpreterObject], *, holderify: bool = False) -> | STRING |
| LOW | mesonbuild/cargo/manifest.py | 319 | def update_version(self, v: str) -> None: | CODE |
| LOW | mesonbuild/cargo/__init__.py | 1 | __all__ = [ | CODE |
| LOW | mesonbuild/dependencies/boost.py | 251 | def update_vers(new_vers: str) -> None: | CODE |
| LOW | mesonbuild/dependencies/__init__.py | 11 | __all__ = [ | CODE |
| LOW | mesonbuild/dependencies/pkgconfig.py | 39 | def set_program_override(pkg_bin: ExternalProgram, for_machine: MachineChoice) -> None: | CODE |
| LOW | mesonbuild/dependencies/pkgconfig.py | 383 | def _set_cargs(self) -> None: | CODE |
| LOW | mesonbuild/dependencies/pkgconfig.py | 547 | def _set_libs(self) -> None: | CODE |
| LOW | mesonbuild/dependencies/dev.py | 274 | def _set_new_link_args(self, environment: 'Environment') -> None: | CODE |
| LOW | mesonbuild/dependencies/dev.py | 329 | def _set_old_link_args(self) -> None: | CODE |
| LOW | mesonbuild/dependencies/scalapack.py | 95 | def _set_libs(self) -> None: | CODE |
| LOW | mesonbuild/dependencies/scalapack.py | 135 | def _set_cargs(self) -> None: | CODE |
| LOW | mesonbuild/utils/vsenv.py | 20 | __all__ = [ | CODE |
| LOW | mesonbuild/utils/platform.py | 17 | __all__ = ['DirectoryLock', 'DirectoryLockAction', 'path_has_root'] | CODE |
| LOW | mesonbuild/utils/universal.py | 71 | __all__ = [ | CODE |
| LOW | mesonbuild/utils/universal.py | 259 | def set_meson_command(mainfile: str) -> None: | CODE |
| LOW | mesonbuild/backend/xcodebackend.py | 335 | def set_arch(self) -> None: | CODE |
| LOW⚡ | mesonbuild/wrap/wraptool.py | 213 | def update_db(options: 'argparse.Namespace') -> None: | CODE |
| 8 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | run_tests.py | 305 | except Exception: | CODE |
| LOW | skip_ci.py | 54 | except Exception: | CODE |
| MEDIUM | skip_ci.py | 37 | def main(): | CODE |
| LOW | run_cross_test.py | 46 | except Exception: | CODE |
| LOW | run_project_tests.py | 466 | except Exception: | CODE |
| LOW | run_project_tests.py | 1616 | except Exception as e: | CODE |
| MEDIUM | run_project_tests.py | 1592 | def setup_symlinks() -> None: | CODE |
| LOW | tools/ac_converter.py | 383 | except Exception: | STRING |
| LOW | unittests/baseplatformtests.py | 240 | except Exception as e: | CODE |
| LOW | unittests/baseplatformtests.py | 267 | except Exception: | CODE |
| LOW | unittests/baseplatformtests.py | 401 | except Exception as e: | CODE |
| MEDIUM | unittests/baseplatformtests.py | 162 | def _get_meson_log(self) -> T.Optional[str]: | CODE |
| LOW | unittests/linuxliketests.py | 569 | except Exception: | CODE |
| LOW | docs/validatelinks.py | 19 | except Exception as e: | CODE |
| MEDIUM | docs/validatelinks.py | 14 | def fetch(session, name, url, timeout): | CODE |
| LOW | mesonbuild/rewriter.py | 1194 | except Exception as e: | CODE |
| LOW | mesonbuild/optinterpreter.py | 106 | except Exception as e: | CODE |
| LOW | mesonbuild/mlog.py | 156 | except Exception as e: | CODE |
| LOW | mesonbuild/mlog.py | 408 | except Exception: | CODE |
| LOW | mesonbuild/programs.py | 267 | except Exception as e: | CODE |
| LOW | mesonbuild/msetup.py | 267 | except Exception as e: | STRING |
| LOW | mesonbuild/msetup.py | 340 | except Exception as e: | STRING |
| LOW | mesonbuild/mesonmain.py | 203 | except Exception as e: | CODE |
| LOW | mesonbuild/mesonmain.py | 306 | except Exception as e: | CODE |
| LOW | mesonbuild/interpreter/interpreter.py | 1028 | except Exception as e: | CODE |
| LOW | mesonbuild/interpreter/interpreter.py | 1955 | except Exception: | CODE |
| LOW | mesonbuild/interpreterbase/interpreterbase.py | 199 | except Exception as e: | CODE |
| LOW | mesonbuild/dependencies/cuda.py | 215 | except Exception as e: | CODE |
| LOW | mesonbuild/dependencies/cuda.py | 246 | except Exception as e: | CODE |
| LOW | mesonbuild/dependencies/detect.py | 130 | except Exception as e: | CODE |
| LOW | mesonbuild/utils/universal.py | 1250 | except Exception: | STRING |
| LOW | mesonbuild/utils/universal.py | 1337 | except Exception: | STRING |
| LOW | mesonbuild/utils/universal.py | 1746 | except Exception as e: | STRING |
| LOW | mesonbuild/utils/universal.py | 1754 | except Exception as e: | STRING |
| LOW | mesonbuild/utils/universal.py | 1921 | except Exception as e: | STRING |
| LOW | mesonbuild/utils/universal.py | 2002 | except Exception as excp: | STRING |
| LOW | mesonbuild/backend/ninjabackend.py | 4018 | except Exception: | CODE |
| LOW | mesonbuild/backend/ninjabackend.py | 829 | except Exception: | STRING |
| LOW⚡ | mesonbuild/wrap/wraptool.py | 200 | except Exception: | CODE |
| LOW⚡ | mesonbuild/wrap/wraptool.py | 205 | except Exception: | CODE |
| LOW | mesonbuild/wrap/wrap.py | 395 | except Exception as e: | CODE |
| LOW | mesonbuild/wrap/wrap.py | 608 | except Exception: | STRING |
| LOW | mesonbuild/wrap/wrap.py | 885 | except Exception as e: | STRING |
| LOW | mesonbuild/wrap/wrap.py | 939 | except Exception: | STRING |
| MEDIUM | mesonbuild/wrap/wrap.py | 390 | def load_netrc(self) -> None: | CODE |
| LOW | mesonbuild/scripts/python_info.py | 100 | except Exception: | CODE |
| MEDIUM | mesonbuild/scripts/rc.py | 33 | print('Error running preprocessor to find resource dependencies', file=sys.stderr) | CODE |
| LOW | mesonbuild/scripts/copy.py | 17 | except Exception: | CODE |
| LOW | mesonbuild/scripts/depfixer.py | 293 | except Exception as e: | CODE |
| LOW | mesonbuild/scripts/depfixer.py | 436 | except Exception: | CODE |
| LOW | mesonbuild/scripts/depfixer.py | 789 | except Exception as err: | CODE |
| LOW | mesonbuild/scripts/reprotest.py | 121 | except Exception as e: | CODE |
| LOW | mesonbuild/scripts/uninstall.py | 25 | except Exception as e: | CODE |
| LOW | mesonbuild/scripts/vcstagger.py | 13 | except Exception: | CODE |
| LOW | mesonbuild/scripts/gtkdochelper.py | 125 | except Exception: | CODE |
| LOW | mesonbuild/compilers/compilers.py | 788 | except Exception as e: | CODE |
| LOW | mesonbuild/compilers/compilers.py | 1487 | except Exception as e: | CODE |
| LOW | mesonbuild/modules/_qt.py | 329 | except Exception: | CODE |
| LOW | mesonbuild/modules/cmake.py | 348 | except Exception as e: | STRING |
| LOW | mesonbuild/modules/fs.py | 103 | except Exception: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | run_project_tests.py | 429 | # Check if expected files were found | COMMENT |
| LOW | run_project_tests.py | 539 | # Check if this line match current expected line | COMMENT |
| LOW | packaging/createmsi.py | 323 | # Check if nuget source is active before trying to add it | COMMENT |
| LOW⚡ | unittests/optiontests.py | 593 | # Set libdir to absolute path inside prefix, should be relativized | COMMENT |
| LOW⚡ | unittests/optiontests.py | 603 | # Set libdir to absolute path inside prefix, should be relativized | COMMENT |
| LOW⚡ | unittests/platformagnostictests.py | 120 | # Check if message is not printed to stdout while configuring | COMMENT |
| LOW⚡ | unittests/platformagnostictests.py | 123 | # Check if message is written to the meson log | COMMENT |
| LOW | docs/yaml/elementary/str.yml | 239 | # Output value is ['hello', 'world'] | COMMENT |
| LOW | docs/yaml/elementary/str.yml | 241 | # Output value is [] | COMMENT |
| LOW | docs/yaml/elementary/str.yml | 259 | # Output value is 'foo bar' | COMMENT |
| LOW | mesonbuild/build.py | 1411 | # Check if we have -fPIC, -fpic, -fPIE, or -fpie in cflags | STRING |
| LOW | mesonbuild/build.py | 1640 | # Check if any of the external libraries were written in this language | STRING |
| LOW | mesonbuild/build.py | 1646 | # Check if any of the internal libraries this target links to were | STRING |
| LOW | mesonbuild/rewriter.py | 1069 | # Write the files back | COMMENT |
| LOW | mesonbuild/arglist.py | 240 | # Check if we need to add --start/end-group for circular dependencies | COMMENT |
| LOW | mesonbuild/programs.py | 115 | # Set path to be the last item that is actually a file (in order to | COMMENT |
| LOW | mesonbuild/msubprojects.py | 152 | # Check if this wrap is in WrapDB | COMMENT |
| LOW | mesonbuild/interpreter/dependencyfallbacks.py | 157 | # Check if the subproject overridden at least one of the names we got. | COMMENT |
| LOW | mesonbuild/interpreter/dependencyfallbacks.py | 324 | # Check if usage of the subproject fallback is forced | COMMENT |
| LOW | mesonbuild/cmake/interpreter.py | 696 | # Check if the command is a build target | COMMENT |
| LOW⚡ | mesonbuild/cmake/toolchain.py | 228 | # Check if all variables are already cached | STRING |
| LOW | mesonbuild/interpreterbase/interpreterbase.py | 355 | # Check if the arguments should be reversed for simplicity (this essentially converts `in` to `contains`) | COMMENT |
| LOW | mesonbuild/dependencies/cmake.py | 177 | # Check if any generator succeeded | COMMENT |
| LOW | mesonbuild/dependencies/cmake.py | 393 | # Check if any generator succeeded | COMMENT |
| LOW | mesonbuild/dependencies/qt.py | 222 | # Check if we link with debug binaries | COMMENT |
| LOW | mesonbuild/dependencies/dev.py | 749 | # Check if compiler has a built-in macro defined | COMMENT |
| LOW | mesonbuild/dependencies/base.py | 469 | # Check if dependency version meets the requirements | COMMENT |
| LOW | mesonbuild/utils/universal.py | 2560 | # Check if it's already short enough | COMMENT |
| LOW | mesonbuild/utils/universal.py | 2565 | # Check if we have wine >= 6.4 | COMMENT |
| LOW | mesonbuild/backend/ninjabackend.py | 1793 | # Check if the vala file is in a subdir of --basedir | STRING |
| LOW | mesonbuild/wrap/wrap.py | 559 | # Check if this wrap forces a specific method, use meson otherwise. | STRING |
| LOW | mesonbuild/wrap/wrap.py | 576 | # Check if the subproject is a git submodule | STRING |
| LOW | mesonbuild/compilers/cpp.py | 103 | # Check if it's a C-like symbol | COMMENT |
| LOW | mesonbuild/compilers/cpp.py | 109 | # Check if it's a class or a template | COMMENT |
| LOW | mesonbuild/compilers/cuda.py | 560 | # Check if it's a C-like symbol | STRING |
| LOW | mesonbuild/compilers/cuda.py | 573 | # Check if it's a class or a template | STRING |
| LOW | mesonbuild/compilers/compilers.py | 1000 | # Check if not cached, and generate, otherwise get from the cache | COMMENT |
| LOW | mesonbuild/compilers/mixins/clike.py | 74 | # Check if we need to add --start/end-group for circular dependencies | COMMENT |
| LOW | mesonbuild/compilers/mixins/clike.py | 893 | # Check if the underscore form of the symbol is somewhere | STRING |
| LOW | mesonbuild/modules/__init__.py | 105 | # Check if pkgconfig has a variable | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | mesonbuild/build.py | 1687 | # If the user set the link_language, just return that. | STRING |
| MEDIUM | mesonbuild/mdist.py | 103 | # robust, safe software. Instead of detecting the signs of a problematic scenario, | COMMENT |
| MEDIUM | mesonbuild/minstall.py | 587 | # can't elevate to root except in an interactive unix environment *and* when not doing a destdir install | COMMENT |
| MEDIUM | mesonbuild/msetup.py | 375 | # The command line may specify a '--backend' option, which doesn't make sense in conjunction with | STRING |
| LOW | mesonbuild/msetup.py | 393 | #Now for generating the 'lite' solution and project files, which will use these builds we've just set up, above. | STRING |
| LOW | mesonbuild/envconfig.py | 571 | # cross-compilation. So if we're doing that, just set the native arch as | COMMENT |
| LOW | mesonbuild/interpreter/compiler.py | 557 | # just pass it to the compiler driver | COMMENT |
| LOW | mesonbuild/backend/backends.py | 722 | # Can't just use exe.name here; it will likely be run more than once | COMMENT |
| LOW | mesonbuild/backend/backends.py | 859 | # so just return all object files. | COMMENT |
| MEDIUM | mesonbuild/backend/vs2010backend.py | 1250 | # Things would be cleaner, more robust, repeatable, and portable if meson (and msvc tools) replaced all this kin | COMMENT |
| LOW | mesonbuild/backend/vs2010backend.py | 870 | # directory lookup, but simply use a string match to find the | COMMENT |
| LOW | mesonbuild/backend/vs2010backend.py | 1320 | # project's NMake... preprocessor/include intellisense fields, we'll just use the first src type we have to | COMMENT |
| LOW | mesonbuild/backend/ninjabackend.py | 3328 | # at build-time. Skip scanning for deps, and just set the module | COMMENT |
| LOW | mesonbuild/compilers/detect.py | 1238 | # to not work for our uses. So, just use mkstemp and only have | COMMENT |
| LOW | mesonbuild/compilers/detect.py | 1280 | # to not work for our uses. So, just use mkstemp and only have | COMMENT |
| LOW | mesonbuild/compilers/rust.py | 383 | # Rust doesn't have dependency compile arguments so simply return | COMMENT |
| LOW | mesonbuild/compilers/mixins/visualstudio.py | 327 | # MSVC doesn't have __attribute__ like Clang and GCC do, so just return | COMMENT |
| LOW | mesonbuild/compilers/mixins/clike.py | 1110 | # First try if we can just add the library as -l. | STRING |
| LOW | mesonbuild/modules/gnome.py | 819 | # than 1.58, we can just return False if get_version fails. | COMMENT |
| MEDIUM | mesonbuild/modules/rust.py | 793 | # user does not control the test harness, so make things easy and allow | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | unittests/linuxliketests.py | 2035 | 'undefined,address': 'address,undefined', | STRING |
| HIGH | mesonbuild/mdevenv.py | 257 | mlog.warning('To fix that, use `meson devenv --dump dev.env && source dev.env`') | CODE |
| HIGH | mesonbuild/interpreter/compiler.py | 474 | value_msg = '(undefined)' if value is None else value | CODE |
| HIGH | mesonbuild/interpreter/interpreter.py | 1438 | # If languages were removed as invalid, then return false | COMMENT |
| HIGH | mesonbuild/linkers/linkers.py | 898 | # We used to emit -undefined,error, but starting with Xcode 15 / | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | mesonbuild/envconfig.py | 523 | # ======================================== | COMMENT |
| MEDIUM⚡ | mesonbuild/compilers/detect.py | 1443 | # ============================= | COMMENT |
| MEDIUM | mesonbuild/compilers/detect.py | 37 | # ============================= | COMMENT |
| MEDIUM | mesonbuild/compilers/detect.py | 161 | # =============== | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/regenerate_docs.py | 59 | CODE | |
| LOW | mesonbuild/build.py | 2991 | CODE | |
| LOW | mesonbuild/interpreter/interpreter.py | 278 | CODE | |
| LOW | mesonbuild/interpreter/interpreter.py | 1774 | CODE | |
| LOW | mesonbuild/cmake/common.py | 111 | CODE | |
| LOW | mesonbuild/interpreterbase/decorators.py | 408 | CODE | |
| LOW | mesonbuild/interpreterbase/decorators.py | 442 | CODE | |
| LOW | mesonbuild/dependencies/base.py | 309 | CODE | |
| LOW | mesonbuild/backend/backends.py | 545 | CODE | |
| LOW | mesonbuild/backend/backends.py | 636 | CODE | |
| LOW | mesonbuild/modules/cuda.py | 145 | CODE | |
| LOW | mesonbuild/modules/cuda.py | 154 | CODE | |
| LOW | mesonbuild/modules/sourceset.py | 260 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | docs/yaml/functions/configure_file.yaml | 81 | `#mesondefine` statements and variables surrounded by `@` characters, you can also use `'cmake'` | CODE |
| MEDIUM | docs/yaml/functions/configure_file.yaml | 82 | to replace `#cmakedefine` statements and variables with the `${variable}` syntax. Finally you can use | CODE |
| MEDIUM | docs/yaml/functions/configure_file.yaml | 144 | will be prefixed with `#`, you can also use `nasm`, in which case the | CODE |
| LOW | mesonbuild/scripts/regen_checker.py | 22 | # We must make sure to recreate it, even if we do not regenerate the solution. | COMMENT |
| LOW | mesonbuild/compilers/compilers.py | 61 | # Don't forget to update the Language if adding new keys, as well as | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | mesonbuild/interpreterbase/interpreterbase.py | 678 | # it is being used with an old version. I have added check that if both | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/markdown/Syntax.md | 590 | # WARNING: This example is only valid because of an internal | COMMENT |