SWIG is a software development tool that connects programs written in C and C++ with a variety of high-level programming languages.
This report summarizes scanner evidence for swig/swig, a SWIG project with 6,330 GitHub stars. SynthScan examined 284,486 lines of code across 3377 source files, recording 787 pattern matches distributed across 19 syntactic categories. The legacy adjusted pattern signal is 6.1 (Moderate pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 249 finding(s).
Are imports declared and package/API names verified? 345 finding(s).
Are wrappers, guards, and repeated structures necessary? 205 finding(s).
Which changes need focused human review? 787 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 787 distinct pattern matches across 19 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. 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 configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | Examples/python/exceptproxy/runme.py | 25 | except example.EmptyError as e: | CODE |
| HIGH | Examples/python/exceptproxy/runme.py | 44 | except example.EmptyError as e: | CODE |
| HIGH | Examples/test-suite/python/swig_test_utils.py | 155 | except exc_cls: | CODE |
| HIGH | Examples/test-suite/python/li_std_vector_extra_runme.py | 143 | except: | CODE |
| HIGH | Examples/test-suite/python/li_std_vector_extra_runme.py | 164 | except: | CODE |
| HIGH | Examples/test-suite/python/director_exception_runme.py | 45 | except TypeError: | CODE |
| HIGH | Examples/test-suite/python/director_exception_runme.py | 90 | except Exception2: | CODE |
| HIGH | Examples/test-suite/python/director_exception_runme.py | 95 | except Exception1: | CODE |
| HIGH | Examples/test-suite/python/li_std_wstring_runme.py | 26 | except TypeError as e: | CODE |
| HIGH | Examples/test-suite/python/li_std_wstring_runme.py | 74 | except TypeError: | CODE |
| HIGH | Examples/test-suite/python/unicode_strings_runme.py | 17 | except TypeError as e: | CODE |
| HIGH | Examples/test-suite/python/threads_exception_runme.py | 6 | except RuntimeError as e: | CODE |
| HIGH | Examples/test-suite/python/threads_exception_runme.py | 37 | except RuntimeError as e: | CODE |
| HIGH | Examples/test-suite/python/threads_exception_runme.py | 39 | except threads_exception.Exc as e: | CODE |
| HIGH | Examples/test-suite/python/li_boost_shared_ptr_runme.py | 159 | except TypeError: | CODE |
| HIGH | Examples/test-suite/python/li_boost_shared_ptr_runme.py | 168 | except TypeError: | CODE |
| HIGH | Examples/test-suite/python/li_boost_shared_ptr_runme.py | 479 | except TypeError: | CODE |
| HIGH | Examples/test-suite/python/li_boost_shared_ptr_runme.py | 517 | except TypeError: | CODE |
| HIGH | Examples/test-suite/python/li_boost_shared_ptr_runme.py | 551 | except TypeError: | CODE |
| HIGH | Examples/test-suite/python/cpp11_std_array_runme.py | 30 | except ValueError as e: | CODE |
| HIGH | Examples/test-suite/python/cpp11_std_array_runme.py | 47 | except ValueError as e: | CODE |
| HIGH | Examples/test-suite/python/cpp11_std_array_runme.py | 55 | except TypeError as e: | CODE |
| HIGH | Examples/test-suite/python/cpp11_std_array_runme.py | 63 | except TypeError as e: | CODE |
| HIGH | Examples/test-suite/python/kwargs_feature_runme.py | 106 | except TypeError as e: | CODE |
| HIGH | Examples/test-suite/python/kwargs_feature_runme.py | 114 | except TypeError as e: | CODE |
| HIGH | Examples/test-suite/python/kwargs_feature_runme.py | 120 | except TypeError as e: | CODE |
| HIGH | Examples/test-suite/python/kwargs_feature_runme.py | 126 | except TypeError as e: | CODE |
| HIGH | Examples/test-suite/python/kwargs_feature_runme.py | 135 | except TypeError as e: | CODE |
| HIGH | Examples/test-suite/python/kwargs_feature_runme.py | 141 | except TypeError as e: | CODE |
| HIGH | Examples/test-suite/python/li_std_vector_ptr_runme.py | 45 | except TypeError: | CODE |
| HIGH | …ples/test-suite/python/li_std_except_as_class_runme.py | 8 | except RuntimeError: | CODE |
| HIGH | …ples/test-suite/python/li_std_except_as_class_runme.py | 12 | except RuntimeError: | CODE |
| HIGH | …ples/test-suite/python/li_std_except_as_class_runme.py | 16 | except RuntimeError: | CODE |
| HIGH | …ples/test-suite/python/li_std_except_as_class_runme.py | 22 | except domain_error: | CODE |
| HIGH | …ples/test-suite/python/li_std_except_as_class_runme.py | 26 | except logic_error: | CODE |
| HIGH | …ples/test-suite/python/li_std_except_as_class_runme.py | 30 | except exception: | CODE |
| HIGH | Examples/test-suite/python/argcargvtest_runme.py | 106 | except IndexError: # Race condition | CODE |
| HIGH | Examples/test-suite/python/contract_runme.py | 7 | except RuntimeError: | CODE |
| HIGH | Examples/test-suite/python/contract_runme.py | 14 | except RuntimeError: | CODE |
| HIGH | Examples/test-suite/python/contract_runme.py | 22 | except RuntimeError: | CODE |
| HIGH | Examples/test-suite/python/contract_runme.py | 29 | except RuntimeError: | CODE |
| HIGH | Examples/test-suite/python/contract_runme.py | 37 | except RuntimeError: | CODE |
| HIGH | Examples/test-suite/python/contract_runme.py | 44 | except RuntimeError: | CODE |
| HIGH | Examples/test-suite/python/contract_runme.py | 52 | except RuntimeError: | CODE |
| HIGH | Examples/test-suite/python/contract_runme.py | 58 | except RuntimeError: | CODE |
| HIGH | Examples/test-suite/python/contract_runme.py | 65 | except RuntimeError: | CODE |
| HIGH | Examples/test-suite/python/contract_runme.py | 71 | except RuntimeError: | CODE |
| HIGH | Examples/test-suite/python/contract_runme.py | 78 | except RuntimeError: | CODE |
| HIGH | Examples/test-suite/python/contract_runme.py | 86 | except RuntimeError: | CODE |
| HIGH | Examples/test-suite/python/contract_runme.py | 91 | except RuntimeError: | CODE |
| HIGH | Examples/test-suite/python/contract_runme.py | 96 | except RuntimeError: | CODE |
| HIGH | Examples/test-suite/python/contract_runme.py | 101 | except RuntimeError: | CODE |
| HIGH | Examples/test-suite/python/contract_runme.py | 106 | except RuntimeError: | CODE |
| HIGH | Examples/test-suite/python/contract_runme.py | 113 | except RuntimeError: | CODE |
| HIGH | Examples/test-suite/python/contract_runme.py | 118 | except RuntimeError: | CODE |
| HIGH | Examples/test-suite/python/contract_runme.py | 123 | except RuntimeError: | CODE |
| HIGH | Examples/test-suite/python/contract_runme.py | 128 | except RuntimeError: | CODE |
| HIGH | Examples/test-suite/python/contract_runme.py | 133 | except RuntimeError: | CODE |
| HIGH | Examples/test-suite/python/contract_runme.py | 141 | except RuntimeError: | CODE |
| HIGH | Examples/test-suite/python/li_std_set_runme.py | 26 | except StopIteration as e: | CODE |
| 100 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | Tools/mkdist.py | 6 | CODE | |
| LOW | Tools/mkrelease.py | 5 | CODE | |
| LOW | Examples/python/varargs/runme.py | 3 | CODE | |
| LOW | Examples/python/import_packages/from_init1/runme.py | 15 | CODE | |
| LOW | …python/import_packages/from_init1/py3/pkg2/__init__.py | 1 | CODE | |
| LOW | …amples/python/import_packages/relativeimport2/runme.py | 15 | CODE | |
| LOW | Examples/python/import_packages/module_is_init/runme.py | 2 | CODE | |
| LOW | …amples/python/import_packages/relativeimport3/runme.py | 15 | CODE | |
| LOW | …amples/python/import_packages/relativeimport1/runme.py | 15 | CODE | |
| LOW | Examples/python/import_packages/from_init2/runme.py | 15 | CODE | |
| LOW | …python/import_packages/from_init2/py3/pkg2/__init__.py | 1 | CODE | |
| LOW | Examples/python/import_packages/from_init3/runme.py | 15 | CODE | |
| LOW | …python/import_packages/from_init3/py3/pkg2/__init__.py | 1 | CODE | |
| LOW | Examples/test-suite/python/cpp_static_runme.py | 1 | CODE | |
| LOW | …/test-suite/python/cpp17_using_pack_expansion_runme.py | 1 | CODE | |
| LOW | …st-suite/python/using_member_typedef_overload_runme.py | 1 | CODE | |
| LOW | Examples/test-suite/python/profiletest_runme.py | 1 | CODE | |
| LOW | …test-suite/python/cpp11_rvalue_reference_move_runme.py | 1 | CODE | |
| LOW | Examples/test-suite/python/constructor_rename_runme.py | 1 | CODE | |
| LOW | Examples/test-suite/python/array_member_runme.py | 1 | CODE | |
| LOW | …mples/test-suite/python/smart_pointer_typedef_runme.py | 1 | CODE | |
| LOW | Examples/test-suite/python/li_std_vector_extra_runme.py | 1 | CODE | |
| LOW | Examples/test-suite/python/python_pickle_runme.py | 4 | CODE | |
| LOW | …mples/test-suite/python/rename_rstrip_encoder_runme.py | 1 | CODE | |
| LOW | Examples/test-suite/python/input_runme.py | 1 | CODE | |
| LOW | …uite/python/cpp11_variadic_function_templates_runme.py | 1 | CODE | |
| LOW | Examples/test-suite/python/director_exception_runme.py | 1 | CODE | |
| LOW | Examples/test-suite/python/cpp20_concepts_runme.py | 1 | CODE | |
| LOW | Examples/test-suite/python/empty_runme.py | 1 | CODE | |
| LOW | …les/test-suite/python/template_typedef_import_runme.py | 1 | CODE | |
| LOW | …les/test-suite/python/template_typedef_import_runme.py | 2 | CODE | |
| LOW | Examples/test-suite/python/typemap_namespace_runme.py | 1 | CODE | |
| LOW | …est-suite/python/li_boost_shared_ptr_director_runme.py | 1 | CODE | |
| LOW | …amples/test-suite/python/cpp11_std_unique_ptr_runme.py | 1 | CODE | |
| LOW | …s/test-suite/python/template_class_reuse_name_runme.py | 1 | CODE | |
| LOW | Examples/test-suite/python/virtual_derivation_runme.py | 1 | CODE | |
| LOW | Examples/test-suite/python/template_ns4_runme.py | 1 | CODE | |
| LOW | Examples/test-suite/python/default_arg_values_runme.py | 1 | CODE | |
| LOW | Examples/test-suite/python/refcount_runme.py | 1 | CODE | |
| LOW | …ite/python/cpp17_noexcept_function_type_alias_runme.py | 1 | CODE | |
| LOW | Examples/test-suite/python/cpp14_decltype_auto_runme.py | 1 | CODE | |
| LOW | …ples/test-suite/python/cpp17_u8_char_literals_runme.py | 1 | CODE | |
| LOW | …test-suite/python/using_nested_member_typedef_runme.py | 1 | CODE | |
| LOW | …suite/python/cpp11_director_using_constructor_runme.py | 1 | CODE | |
| LOW | …/test-suite/python/doxygen_translate_all_tags_runme.py | 3 | CODE | |
| LOW | …/test-suite/python/doxygen_translate_all_tags_runme.py | 4 | CODE | |
| LOW | Examples/test-suite/python/overload_numeric_runme.py | 2 | CODE | |
| LOW | Examples/test-suite/python/overload_numeric_runme.py | 3 | CODE | |
| LOW | …ples/test-suite/python/overload_template_fast_runme.py | 1 | CODE | |
| LOW | …les/test-suite/python/cpp11_shared_ptr_upcast_runme.py | 1 | CODE | |
| LOW | Examples/test-suite/python/li_std_wstream_runme.py | 1 | CODE | |
| LOW | Examples/test-suite/python/director_shared_ptr_runme.py | 1 | CODE | |
| LOW | Examples/test-suite/python/director_nested_runme.py | 1 | CODE | |
| LOW | Examples/test-suite/python/li_boost_shared_ptr_runme.py | 2 | CODE | |
| LOW | …st-suite/python/using_member_typedef_template_runme.py | 1 | CODE | |
| LOW | …/python/cpp17_auto_nontype_template_parameter_runme.py | 1 | CODE | |
| LOW | Examples/test-suite/python/li_typemaps_runme.py | 1 | CODE | |
| LOW | Examples/test-suite/python/smart_pointer_multi_runme.py | 1 | CODE | |
| LOW | Examples/test-suite/python/name_warnings_runme.py | 1 | CODE | |
| LOW | …ples/test-suite/python/smart_pointer_overload_runme.py | 1 | CODE | |
| 257 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | CCache/snprintf.c | 61 | COMMENT | |
| LOW | CCache/snprintf.c | 81 | /* make the compiler happy with an empty file */ | COMMENT |
| LOW | CCache/snprintf.c | 121 | /* format flags - Bits */ | COMMENT |
| LOW | CCache/ccache.h | 1 | #include "ccache_swig_config.h" | COMMENT |
| LOW | CCache/ccache.h | 21 | #include <sys/mman.h> | COMMENT |
| LOW | CCache/ccache.h | 41 | #endif | COMMENT |
| LOW | Tools/checkwarnings.py | 1 | #!/usr/bin/env python3 | COMMENT |
| LOW | Tools/checkwarnings.py | 21 | import re | COMMENT |
| LOW | Tools/ci-repro/run.sh | 1 | #!/bin/bash | COMMENT |
| LOW | Source/DOH/doh.h | 41 | COMMENT | |
| LOW | Source/DOH/doh.h | 61 | #define DohSortedKeys DOH_NAMESPACE(SortedKeys) | COMMENT |
| LOW | Source/DOH/doh.h | 81 | #define DohUngetc DOH_NAMESPACE(Ungetc) | COMMENT |
| LOW | Source/DOH/doh.h | 101 | #define DohNewStringEmpty DOH_NAMESPACE(NewStringEmpty) | COMMENT |
| LOW | Source/DOH/doh.h | 121 | #define DohObjFree DOH_NAMESPACE(ObjFree) | COMMENT |
| LOW | Source/DOH/doh.h | 381 | #define Setattr DohSetattr | COMMENT |
| LOW | Source/DOH/doh.h | 401 | #define Write DohWrite | COMMENT |
| LOW | Source/DOH/doh.h | 421 | #define GetDouble DohGetDouble | COMMENT |
| LOW | Source/DOH/doh.h | 441 | #define NewStringEmpty DohNewStringEmpty | COMMENT |
| LOW | Source/DOH/doh.h | 461 | #define Setmark DohSetmark | COMMENT |
| LOW | Source/Swig/swig.h | 61 | COMMENT | |
| LOW | Source/Swig/swig.h | 81 | COMMENT | |
| LOW | Source/Swig/swigscan.h | 41 | COMMENT | |
| LOW | Source/Swig/swigscan.h | 61 | #define SWIG_TOKEN_INT 19 /* 314 */ | COMMENT |
| LOW | Source/Swig/swigscan.h | 81 | #define SWIG_TOKEN_ILLEGAL 99 | COMMENT |
| LOW | Source/Swig/swigscan.h | 101 | #define SWIG_TOKEN_LNOT 118 /* ! */ | COMMENT |
| LOW | Source/Include/swigwarn.h | 61 | COMMENT | |
| LOW | Source/Include/swigwarn.h | 81 | /* Unused since 1.3.18: #define WARN_PARSE_TEMPLATE_PARTIAL 311 */ | COMMENT |
| LOW | Source/Include/swigwarn.h | 101 | #define WARN_PARSE_TEMPLATE_NESTED 331 | COMMENT |
| LOW | Source/Include/swigwarn.h | 121 | #define WARN_IGNORE_OPERATOR_MOD 356 /* % */ | COMMENT |
| LOW | Source/Include/swigwarn.h | 141 | #define WARN_IGNORE_OPERATOR_RSHIFTEQ 376 /* >>= */ | COMMENT |
| LOW | Source/Include/swigwarn.h | 161 | #define WARN_IGNORE_OPERATOR_REF 396 /* operator *() */ | COMMENT |
| LOW | Source/Include/swigwarn.h | 181 | COMMENT | |
| LOW | Source/Include/swigwarn.h | 201 | COMMENT | |
| LOW | Source/Include/swigwarn.h | 221 | #define WARN_LANG_DISCARD_CONST 515 | COMMENT |
| LOW | Source/Include/swigwarn.h | 241 | #define WARN_DOXYGEN_COMMAND_ERROR 564 | COMMENT |
| LOW | Source/Include/swigwarn.h | 301 | #define WARN_JAVA_TYPEMAP_JAVAOUT_UNDEF 817 | COMMENT |
| LOW | Source/Include/swigwarn.h | 321 | #define WARN_CSHARP_TYPEMAP_CSBODY_UNDEF 836 | COMMENT |
| LOW | .agents/skills/swig-test/test-configured-languages.sh | 1 | #!/bin/bash | COMMENT |
| LOW | .agents/skills/swig-test/test-configured-languages.sh | 21 | # TARGET is a test-suite make target including its suffix, for example: | COMMENT |
| LOW | .agents/skills/swig-test/test-configured-languages.sh | 41 | # else c++17. The C standard is derived from it as CI | COMMENT |
| LOW | Examples/perl5/extend/runme.pl | 41 | COMMENT | |
| LOW | Examples/go/extend/runme.go | 21 | // Create a new EmployeeList instance. This class does not | COMMENT |
| LOW | Examples/go/extend/runme.go | 41 | // Employee*. Previously, Go resolved the call immediately in | COMMENT |
| LOW | Examples/go/director/director.go | 21 | // The IsFooBarGo method ensures that FooBarGo is a superset of FooBarAbstract. | COMMENT |
| LOW | Examples/python/extend/runme.py | 41 | e = e.__disown__() | COMMENT |
| LOW | …les/python/import_packages/same_modnames1/pkg2/foo.hpp | 1 | #ifndef PKG2_FOO_HPP | COMMENT |
| LOW | …les/python/import_packages/same_modnames1/pkg1/foo.hpp | 1 | #ifndef PKG1_FOO_HPP | COMMENT |
| LOW | …les/python/import_packages/from_init1/py3/pkg2/foo.hpp | 1 | #ifndef PY3_PKG2_FOO_HPP | COMMENT |
| LOW | …les/python/import_packages/from_init1/py3/pkg2/bar.hpp | 1 | #ifndef PY3_PKG2_BAR_HPP | COMMENT |
| LOW | …ython/import_packages/relativeimport2/py3/pkg2/bar.hpp | 1 | #ifndef PY3_PKG2_HPP | COMMENT |
| LOW | …rt_packages/relativeimport2/py3/pkg2/pkg3/pkg4/foo.hpp | 1 | #ifndef PY3_PKG2_PKG3_PKG4 | COMMENT |
| LOW | …ython/import_packages/relativeimport3/py3/pkg2/bar.hpp | 1 | #ifndef PY3_PKG2_BAR_HPP | COMMENT |
| LOW | …/import_packages/relativeimport3/py3/pkg2/pkg3/foo.hpp | 1 | #ifndef PY3_PKG2_PKG3_FOO_HPP | COMMENT |
| LOW | …les/python/import_packages/same_modnames2/pkg1/foo.hpp | 1 | #ifndef PKG1_FOO_HPP | COMMENT |
| LOW | …ython/import_packages/same_modnames2/pkg1/pkg2/foo.hpp | 1 | #ifndef PKG1_PKG2_FOO_HPP | COMMENT |
| LOW | …ython/import_packages/relativeimport1/py3/pkg2/bar.hpp | 1 | #ifndef PY3_PKG2_BAR_HPP | COMMENT |
| LOW | …/import_packages/relativeimport1/py3/pkg2/pkg3/foo.hpp | 1 | #ifndef PY3_PKG2_PKG3_FOO_HPP | COMMENT |
| LOW | …les/python/import_packages/from_init2/py3/pkg2/bar.hpp | 1 | #ifndef PY3_PKG2_BAR_HPP | COMMENT |
| LOW | …ython/import_packages/from_init2/py3/pkg2/pkg3/foo.hpp | 1 | #ifndef PY3_PKG2_PKG3_FOO_HPP | COMMENT |
| LOW | …les/python/import_packages/from_init3/py3/pkg2/bar.hpp | 1 | #ifndef PY3_PKG2_HPP | COMMENT |
| 82 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | CCache/util.c | 446 | "# This file is a cache directory tag created by ccache.\n" | CODE |
| MEDIUM | Examples/perl5/extend/runme.pl | 19 | # Create an instance of our employee extension class, CEO. The calls to | COMMENT |
| MEDIUM | Examples/perl5/extend/runme.pl | 29 | # Create a new EmployeeList instance. This class does not have a C++ | COMMENT |
| MEDIUM | Examples/perl5/value/runme.pl | 5 | # Create a couple of a vectors | COMMENT |
| MEDIUM | Examples/perl5/callback/runme.pl | 16 | # Create an Caller instance | COMMENT |
| MEDIUM | Examples/python/extend/runme.py | 19 | # Create an instance of our employee extension class, CEO. The calls to | COMMENT |
| MEDIUM | Examples/python/extend/runme.py | 29 | # Create a new EmployeeList instance. This class does not have a C++ | COMMENT |
| MEDIUM | Examples/python/callback/runme.py | 16 | # Create an Caller instance | COMMENT |
| MEDIUM | Examples/php/extend/runme.php | 13 | # Create an instance of our employee extension class, CEO. The calls to | COMMENT |
| MEDIUM | Examples/php/extend/runme.php | 22 | # Create a new EmployeeList instance. This class does not have a C++ | COMMENT |
| MEDIUM | Examples/php/callback/runme.php | 13 | # Create an Caller instance | COMMENT |
| MEDIUM | Examples/octave/extend/runme.m | 15 | # Create an instance of our employee extension class, CEO. The calls to | COMMENT |
| MEDIUM | Examples/octave/extend/runme.m | 25 | # Create a new EmployeeList instance. This class does not have a C++ | COMMENT |
| MEDIUM | Examples/octave/callback/runme.m | 12 | # Create an Caller instance | COMMENT |
| MEDIUM | Examples/test-suite/ruby/director_wombat_runme.rb | 50 | # Create a MyBar instance... | COMMENT |
| MEDIUM | Examples/ruby/value/runme.rb | 5 | # Create a couple of a vectors | COMMENT |
| MEDIUM | Examples/ruby/free_function/runme.rb | 5 | # Create an animal and zoo | COMMENT |
| MEDIUM | Examples/ruby/free_function/runme.rb | 38 | # This method is no longer valid since the zoo freed the underlying | COMMENT |
| MEDIUM | Doc/Manual/Python.html | 1750 | >>> f = Foo() # Create a Foo | CODE |
| MEDIUM | Doc/Manual/Python.html | 1830 | >>> f = Foo() # Create a Foo | CODE |
| MEDIUM | Doc/Manual/Python.html | 2205 | >>> p = example.CreateFoo() # Create a smart-pointer somehow | CODE |
| MEDIUM | Doc/Manual/Python.html | 2991 | >>> v = Object() # Create an object | CODE |
| MEDIUM | Doc/Manual/Python.html | 2992 | >>> n = Node() # Create a node | CODE |
| MEDIUM | Doc/Manual/Python.html | 3634 | # This module provides wrappers to the Whizz Bang library | COMMENT |
| MEDIUM | Doc/Manual/Python.html | 3655 | # This module provides wrappers to the Whizz Bang library | COMMENT |
| MEDIUM | Doc/Manual/Tcl.html | 1166 | % Foo x # Create a Foo object | CODE |
| MEDIUM | Doc/Manual/Tcl.html | 1188 | % set b [Bar] # Create a Bar | CODE |
| MEDIUM | Doc/Manual/Tcl.html | 1336 | % Foo f # Create a Foo | CODE |
| MEDIUM | Doc/Manual/Tcl.html | 1337 | % Bar b # Create a Bar | CODE |
| MEDIUM | Doc/Manual/Tcl.html | 1373 | % Foo f # Create a Foo | CODE |
| MEDIUM | Doc/Manual/Tcl.html | 1448 | % Foo f # Create a Foo | CODE |
| MEDIUM | Doc/Manual/Tcl.html | 1809 | % set p [CreateFoo] # Create a smart-pointer somehow | CODE |
| MEDIUM | Doc/Manual/Tcl.html | 2057 | % Object v # Create an object | CODE |
| MEDIUM | Doc/Manual/Tcl.html | 2058 | % Node n # Create a node | CODE |
| MEDIUM | Doc/Manual/Tcl.html | 3235 | # Create a procedure | COMMENT |
| MEDIUM | Doc/Manual/Tcl.html | 3246 | set a [Array double 100] ;# Create a double [100] | CODE |
| MEDIUM | Doc/Manual/Tcl.html | 3253 | set ia [Array int 50] ;# Create an int[50] | CODE |
| MEDIUM | Doc/Manual/Tcl.html | 3301 | # Create the new object | COMMENT |
| MEDIUM | Doc/Manual/SWIG.html | 3124 | >>> v = Vector(3, 4, 0) # Create a new vector | CODE |
| MEDIUM | Doc/Manual/SWIG.html | 3390 | $o = CreateObject(); # Create an object somehow | CODE |
| MEDIUM | Doc/Manual/Perl5.html | 2184 | @a = ("Dave", "Mike", "John", "Mary"); # Create an array of strings | CODE |
| MEDIUM | Doc/Manual/Library.html | 480 | a = new_doubleArray(10) # Create an array | CODE |
| MEDIUM | Doc/Manual/Library.html | 1819 | >>> iv = IntVector(4) # Create an vector<int> | CODE |
| MEDIUM | Doc/Manual/SWIGPlus.html | 844 | x = List() # Create a list | CODE |
| MEDIUM | Doc/Manual/SWIGPlus.html | 2130 | >>> f = Foo() # Create a Foo | CODE |
| MEDIUM | Doc/Manual/Ruby.html | 1034 | <pre>irb(main):001:0> <b>f = Foo.new</b> # Create a Foo | CODE |
| MEDIUM | Doc/Manual/Ruby.html | 1533 | <pre>irb(main):001:0> <b>p = Example::CreateFoo()</b> # Create a smart-pointer somehow | CODE |
| MEDIUM | Doc/Manual/Ruby.html | 4514 | # Create the makefile | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | Examples/test-suite/java/nspacemove_runme.java | 22 | nspacemovePackage.Ooter.Extra.Inner1.Color.colorStaticMethod(20.0); | CODE |
| CRITICAL | Examples/test-suite/java/nspacemove_runme.java | 23 | nspacemovePackage.Ooter.Extra.Inner1.Color created = nspacemovePackage.Ooter.Extra.Inner1.Color.create(); | CODE |
| CRITICAL | Examples/test-suite/java/nspacemove_runme.java | 43 | nspacemovePackage.Ooter.Extra.Inner1.Color.setStaticMemberVariable(789); | CODE |
| CRITICAL | Examples/test-suite/java/nspacemove_runme.java | 44 | if (nspacemovePackage.Ooter.Extra.Inner1.Color.getStaticMemberVariable() != 789) | CODE |
| CRITICAL | Examples/test-suite/lua/nspacemove_runme.lua | 15 | color2 = ns.Ooter.Extra.Inner1.Color.create() | CODE |
| CRITICAL | Examples/test-suite/lua/nspacemove_runme.lua | 27 | ns.Ooter.Extra.Inner1.Color.colorStaticMethod(30.0) | CODE |
| CRITICAL | Examples/test-suite/csharp/nspacemove_runme.cs | 15 | nspacemoveNamespace.Ooter.Extra.Inner1.Color.colorStaticMethod(20.0); | CODE |
| CRITICAL | Examples/test-suite/csharp/nspacemove_runme.cs | 16 | nspacemoveNamespace.Ooter.Extra.Inner1.Color created = nspacemoveNamespace.Ooter.Extra.Inner1.Color.create(); | CODE |
| CRITICAL | Examples/test-suite/javascript/nspacemove_runme.js | 9 | nspacemove.Ooter.Extra.Inner1.Color.colorStaticMethod(20.0); | CODE |
| CRITICAL | Examples/test-suite/javascript/nspacemove_runme.js | 10 | var created = nspacemove.Ooter.Extra.Inner1.Color.create(); | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …t-suite/python/doxygen_basic_translate_style3_runme.py | 0 | \ brief description. the comment text. author: some author :rtype: int :return: some number see also: function2 | STRING |
| HIGH | …t-suite/python/doxygen_basic_translate_style2_runme.py | 0 | \ brief description. the comment text. author: some author :rtype: int :return: some number see also: function2 | STRING |
| HIGH | …les/test-suite/python/doxygen_basic_translate_runme.py | 0 | \ brief description. the comment text. author: some author :rtype: int :return: some number see also: function2 | STRING |
| HIGH | …t-suite/python/doxygen_basic_translate_style3_runme.py | 0 | a test of a very very very very very very very very very very very very very very very very very very very very very lon | STRING |
| HIGH | …t-suite/python/doxygen_basic_translate_style2_runme.py | 0 | a test of a very very very very very very very very very very very very very very very very very very very very very lon | STRING |
| HIGH | …les/test-suite/python/doxygen_basic_translate_runme.py | 0 | a test of a very very very very very very very very very very very very very very very very very very very very very lon | STRING |
| HIGH | …s/test-suite/python/doxygen_basic_notranslate_runme.py | 0 | a test of a very very very very very very very very very very very very very very very very very very very very very lon | STRING |
| HIGH | …t-suite/python/doxygen_basic_translate_style3_runme.py | 0 | *overload 1:* a test for overloaded functions this is function **one** | *overload 2:* a test for overloaded functions t | STRING |
| HIGH | …t-suite/python/doxygen_basic_translate_style2_runme.py | 0 | *overload 1:* a test for overloaded functions this is function **one** | *overload 2:* a test for overloaded functions t | STRING |
| HIGH | …les/test-suite/python/doxygen_basic_translate_runme.py | 0 | *overload 1:* a test for overloaded functions this is function **one** | *overload 2:* a test for overloaded functions t | STRING |
| HIGH | …t-suite/python/doxygen_basic_translate_style3_runme.py | 0 | \ test for default args :type a: int, optional :param a: some parameter, default is 42 | STRING |
| HIGH | …t-suite/python/doxygen_basic_translate_style2_runme.py | 0 | \ test for default args :type a: int, optional :param a: some parameter, default is 42 | STRING |
| HIGH | …les/test-suite/python/doxygen_basic_translate_runme.py | 0 | \ test for default args :type a: int, optional :param a: some parameter, default is 42 | STRING |
| HIGH | …t-suite/python/doxygen_basic_translate_style3_runme.py | 0 | \ test for a parameter with difficult type (mostly for python) :type a: :py:class:`shape` :param a: very strange param | STRING |
| HIGH | …t-suite/python/doxygen_basic_translate_style2_runme.py | 0 | \ test for a parameter with difficult type (mostly for python) :type a: :py:class:`shape` :param a: very strange param | STRING |
| HIGH | …les/test-suite/python/doxygen_basic_translate_runme.py | 0 | \ test for a parameter with difficult type (mostly for python) :type a: :py:class:`shape` :param a: very strange param | STRING |
| HIGH | …t-suite/python/doxygen_basic_translate_style3_runme.py | 0 | \ multiple parameters test. :type y: float :param y: vertical coordinate. :type x: float :param x: horizontal coordinate | STRING |
| HIGH | …t-suite/python/doxygen_basic_translate_style2_runme.py | 0 | \ multiple parameters test. :type y: float :param y: vertical coordinate. :type x: float :param x: horizontal coordinate | STRING |
| HIGH | …les/test-suite/python/doxygen_basic_translate_runme.py | 0 | \ multiple parameters test. :type y: float :param y: vertical coordinate. :type x: float :param x: horizontal coordinate | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH⚡ | Examples/test-suite/javascript/typedef_inherit_runme.js | 8 | print("Whoa! Bad return" + x); | CODE |
| HIGH⚡ | Examples/test-suite/javascript/typedef_inherit_runme.js | 12 | print("Whoa! Bad return" + x); | CODE |
| HIGH⚡ | Examples/test-suite/javascript/typedef_inherit_runme.js | 19 | print("Whoa! Bad return" + x); | CODE |
| HIGH⚡ | Examples/test-suite/javascript/typedef_inherit_runme.js | 23 | print ("Whoa! Bad return" + x); | CODE |
| HIGH⚡ | Examples/test-suite/javascript/typedef_inherit_runme.js | 27 | print ("Whoa! Bad return" + x); | CODE |
| HIGH | Examples/test-suite/javascript/typedef_scope_runme.js | 6 | print("Failed!!"); | CODE |
| HIGH | Examples/test-suite/javascript/typedef_scope_runme.js | 10 | print("Failed!!"); | CODE |
| HIGH⚡ | Examples/test-suite/javascript/cpp_enum_runme.js | 6 | print(f.hola); | CODE |
| HIGH⚡ | Examples/test-suite/javascript/cpp_enum_runme.js | 12 | print(f.hola); | CODE |
| HIGH⚡ | Examples/test-suite/javascript/cpp_enum_runme.js | 19 | print(f.hola); | CODE |
| HIGH⚡ | Examples/test-suite/javascript/cpp_enum_runme.js | 25 | print(cpp_enum.Foo.hi); | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | Examples/octave/callback/runme.m | 49 | # to manually drop the octave-side reference, you can use | COMMENT |
| MEDIUM | Doc/Devel/wrapobj.html | 180 | Here is a simple example of how these functions are used. Suppose | CODE |
| MEDIUM | Doc/Manual/Python.html | 3897 | Here is a simple example: | CODE |
| MEDIUM | Doc/Manual/Python.html | 3991 | or a NULL pointer perhaps). Here is a simple example of how you might handle that: | CODE |
| LOW | Doc/Manual/Python.html | 5401 | don't forget to also provide a suitable <a href="Typemaps.html#Typemaps_overloading">typecheck typemap for overloading</ | CODE |
| MEDIUM | Doc/Manual/SWIG.html | 3665 | <b>Note:</b> The usual SWIG C preprocessor rules apply to code in <tt>%apply</tt> blocks when SWIG parses this code. For | CODE |
| MEDIUM | Doc/Manual/Perl5.html | 2915 | Here is a simple example showing how to add some Perl debug code to the constructor: | CODE |
| MEDIUM | Doc/Manual/Library.html | 238 | Here is a simple example of using <tt>%pointer_functions()</tt>: | CODE |
| MEDIUM | Doc/Manual/Library.html | 682 | Here is a simple example that illustrates the use of these macros: | CODE |
| MEDIUM | Doc/Manual/CSharp.html | 1546 | The managed code generated does check for the pending exception as mentioned earlier as the C# version of <tt>%exception | CODE |
| MEDIUM | Doc/Manual/CSharp.html | 2664 | as mentioned earlier, <tt>setElement</tt> is actually: | CODE |
| LOW | Doc/Manual/SWIGPlus.html | 4394 | // Don't forget to use %feature("flatnested") for OuterClass::InnerStruct and | COMMENT |
| MEDIUM | Doc/Manual/Ocaml.html | 271 | As mentioned earlier, C++ files need special | CODE |
| MEDIUM | Doc/Manual/Ocaml.html | 717 | Here's a simple example using Trolltech's Qt Library: | CODE |
| MEDIUM | Doc/Manual/Ocaml.html | 1008 | or a NULL pointer). Here is a simple example of how you might handle that: | CODE |
| LOW | Doc/Manual/Extending.html | 3589 | Don't forget to write end-user documentation for your language module. Currently, | CODE |
| LOW | Doc/Manual/Typemaps.html | 4073 | Don't forget to also provide a suitable <a href="#Typemaps_overloading">typemap for overloaded functions</a>, such as <t | CODE |
| MEDIUM | Doc/Manual/Lua.html | 2026 | As mentioned earlier, classes and structures, are all held as pointer, using the Lua 'userdata' structure. This structur | CODE |
| MEDIUM | Doc/Manual/Android.html | 89 | Adjust the <tt>--target</tt> id as mentioned earlier in the <a href="Android.html#Android_examples_intro">Examples intro | CODE |
| MEDIUM | Doc/Manual/Android.html | 415 | Adjust the <tt>--target</tt> id as mentioned earlier in the <a href="Android.html#Android_examples_intro">Examples intro | CODE |
| MEDIUM | Doc/Manual/Java.html | 4927 | Here is a simple example: | CODE |
| MEDIUM | Doc/Manual/Java.html | 5133 | or a NULL pointer perhaps). Here is a simple example of how you might handle that: | CODE |
| MEDIUM | Doc/Manual/Java.html | 8999 | as mentioned earlier, <tt>setElement</tt> is actually: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | CMakeLists.txt | 23 | # ------------------------------------ | COMMENT |
| MEDIUM | CMakeLists.txt | 91 | # -------------- | COMMENT |
| MEDIUM | Examples/test-suite/python/python_richcompare_runme.py | 19 | #------------------------------------------------------------------------- | COMMENT |
| MEDIUM | Examples/test-suite/python/python_richcompare_runme.py | 43 | #------------------------------------------------------------------------- | COMMENT |
| MEDIUM | Examples/test-suite/python/python_richcompare_runme.py | 55 | #------------------------------------------------------------------------- | COMMENT |
| MEDIUM | Examples/test-suite/python/python_richcompare_runme.py | 74 | #------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | Examples/test-suite/python/python_richcompare_runme.py | 89 | #------------------------------------------------------------------------- | COMMENT |
| MEDIUM | Examples/test-suite/python/python_richcompare_runme.py | 104 | #------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | Examples/test-suite/python/python_richcompare_runme.py | 128 | #------------------------------------------------------------------------- | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | Tools/CI-linux-install.sh | 52 | # Check if Go is already installed on cached tools | COMMENT |
| LOW | Tools/CI-linux-install.sh | 161 | # Check if Python is already installed on cached tools | COMMENT |
| LOW | Tools/CI-linux-install.sh | 189 | # Check if ruby is already installed on cached tools | COMMENT |
| LOW | Doc/Manual/Tcl.html | 736 | % puts $density # Output value of C global variable | CODE |
| LOW⚡ | Doc/Manual/SWIG.html | 811 | set foo [3.5] ;# Set foo to 3.5 | CODE |
| LOW⚡ | Doc/Manual/SWIG.html | 812 | puts $foo ;# Print the value of foo | CODE |
| LOW⚡ | Doc/Manual/SWIG.html | 815 | cvar.foo = 3.5 # Set foo to 3.5 | CODE |
| LOW⚡ | Doc/Manual/SWIG.html | 816 | print(cvar.foo) # Print value of foo | CODE |
| LOW⚡ | Doc/Manual/SWIG.html | 819 | $foo = 3.5; # Set foo to 3.5 | CODE |
| LOW⚡ | Doc/Manual/SWIG.html | 820 | print $foo, "\n"; # Print value of foo | CODE |
| LOW⚡ | Doc/Manual/SWIG.html | 823 | Module.foo = 3.5 # Set foo to 3.5 | CODE |
| LOW⚡ | Doc/Manual/SWIG.html | 824 | print Module.foo, "\n" # Print value of foo | CODE |
| LOW | Doc/Manual/Perl5.html | 2360 | $c = 0.0; # Output value | CODE |
| LOW | Doc/Manual/makechap.py | 218 | # Write the file back out | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | Tools/checkwarnings.py | 109 | print("\n%d warning number(s) differ between swigwarn.h and Warnings.html" % (len(undocumented) + len(undefined) | CODE |
| HIGH | …les/test-suite/python/doxygen_misc_constructs_runme.py | 111 | ['retVal < 10', 'g_counter == 23 && g_mode & 3'] | CODE |
| HIGH | …ples/test-suite/python/director_binary_string_runme.py | 31 | # director_binary_string.Callback().run(null, null) | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | Examples/test-suite/python/comment_verifier.py | 9 | def make_trailing_spaces_visible(str): | CODE |
| LOW | Examples/test-suite/python/swig_test_utils.py | 26 | def _swig_stub_annotation_text(annotation): | CODE |
| LOW | …est-suite/python/li_boost_shared_ptr_director_runme.py | 39 | def take_c_shared_ptr_by_value(self,c): | CODE |
| LOW | …est-suite/python/li_boost_shared_ptr_director_runme.py | 51 | def take_c_shared_ptr_by_pointer(self,c): | CODE |
| LOW | …est-suite/python/li_boost_shared_ptr_director_runme.py | 57 | def take_c_shared_ptr_by_pointer_ref(self,c): | CODE |
| LOW | Examples/test-suite/python/argcargvtest_runme.py | 73 | def test_bad_args_memory_leak(): | CODE |
| LOW | Examples/test-suite/python/argcargvtest_runme.py | 84 | def test_threading_race_conditions(): | CODE |
| LOW | Examples/test-suite/ruby/li_std_vector_runme.rb | 124 | def compare_expanded_sequences(a, b) | CODE |
| LOW | Examples/test-suite/ruby/contract_runme.rb | 9 | def swig_assert_runtime_error(msg, type, &block) | CODE |
| LOW | …/test-suite/ruby/li_boost_shared_ptr_director_runme.rb | 48 | def take_c_shared_ptr_by_value(c) | CODE |
| LOW | …/test-suite/ruby/li_boost_shared_ptr_director_runme.rb | 64 | def take_c_shared_ptr_by_pointer(c) | CODE |
| LOW | …/test-suite/ruby/li_boost_shared_ptr_director_runme.rb | 72 | def take_c_shared_ptr_by_pointer_ref(c) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | …es/test-suite/python/pyabi311_bufferinterface_runme.py | 23 | text = b'Lorem ipsum dolor sit amet' | CODE |
| LOW⚡ | …es/test-suite/python/pyabi311_bufferinterface_runme.py | 23 | text = b'Lorem ipsum dolor sit amet' | CODE |
| LOW⚡ | …es/test-suite/python/pyabi311_bufferinterface_runme.py | 24 | view[:len(text)] = b'Lorem ipsum dolor sit amet' | CODE |
| LOW⚡ | …es/test-suite/python/pyabi311_bufferinterface_runme.py | 24 | view[:len(text)] = b'Lorem ipsum dolor sit amet' | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | Doc/Manual/D.html | 374 | <dd><p>Additional code to be emitted to the imports section of the intermediary D module (the <a href="D.html#D_import | CODE |
| MEDIUM | Doc/Manual/Java.html | 201 | However, the "<a href="SWIG.html#SWIG">SWIG Basics</a>" chapter will be a useful read in conjunction with this one. | CODE |
| MEDIUM | Doc/Manual/Java.html | 232 | Android uses Java JNI and also works with SWIG. Please read the <a href="Android.html#Android">Android chapter</a> in co | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | Tools/mkdist.py | 36 | print("Error: Python 3 or higher is required") | CODE |
| LOW | Examples/python/variables/runme.py | 57 | except Exception: | CODE |
| LOW | Examples/python/variables/runme.py | 64 | except Exception: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | Tools/checkwarnings.py | 44 | CODE | |
| LOW | Examples/test-suite/python/swig_test_utils.py | 172 | CODE | |
| LOW | Examples/test-suite/python/cpp11_std_array_runme.py | 19 | CODE | |
| LOW | Examples/test-suite/python/cpp11_std_array_runme.py | 34 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | Examples/test-suite/python/director_exception_runme.py | 20 | CODE | |
| MEDIUM | Examples/test-suite/python/primitive_types_runme.py | 35 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | Tools/ci-repro/run.sh | 8 | # Usage: | COMMENT |
| LOW | .agents/skills/swig-test/test-configured-languages.sh | 18 | # Usage: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | Doc/Devel/scanner.html | 142 | containing the characters (e.g., "%@"). The purpose of this function is to up special keywords such as "%module" or "@d | CODE |