AI Slop Code RIsk Monitor

SCons/scons

SCons - a software construction tool

15.0 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for SCons/scons, a Python project with 2,433 GitHub stars. SynthScan examined 533,733 lines of code across 3089 source files, recording 4120 pattern matches distributed across 22 syntactic categories. The legacy adjusted pattern signal is 15.0 (Elevated 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.

15.0
Adjusted Signal
15.0
Raw Pattern Score
100%
Time Factor
2026-10-05
Last Push
2.4K
Stars
Python
Language
533.7K
Lines of Code
3.1K
Files
4.1K
Pattern Hits
2026-10-12
Scan Date
0.31
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 22.2/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 2598 finding(s).

Hallucinated Dependency & Supply Chain Risk 4.5/100 · LOW

Are imports declared and package/API names verified? 423 finding(s).

Agent Over-Engineering Ratio 38.5/100 · MEDIUM

Are wrappers, guards, and repeated structures necessary? 1477 finding(s).

PR Review Velocity Impact 57.6/100 · HIGH

Which changes need focused human review? 4120 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

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.

Severity Breakdown

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.

CRITICAL 1HIGH 967MEDIUM 98LOW 3054

Directory Score Breakdown

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.

Pattern Findings

The scanner identified 4120 distinct pattern matches across 22 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.

Cross-File Repetition664 hits · 3320 pts
SeverityFileLineSnippetContext
HIGHtest/CommandGenerator.py0import sys with open(sys.argv[1], 'w') as f, open(sys.argv[2], 'r') as ifp: f.write(ifp.read())STRING
HIGHtest/subdir.py0import sys with open(sys.argv[1], 'w') as f, open(sys.argv[2], 'r') as ifp: f.write(ifp.read())STRING
HIGHtest/Default.py0import sys with open(sys.argv[1], 'w') as f, open(sys.argv[2], 'r') as ifp: f.write(ifp.read())STRING
HIGHtest/up-to-date.py0import sys with open(sys.argv[1], 'wb') as f, open(sys.argv[2], 'rb') as ifp: f.write(ifp.read()) sys.exit(0)STRING
HIGHtest/option/option--max-drift.py0import sys with open(sys.argv[1], 'wb') as f, open(sys.argv[2], 'rb') as ifp: f.write(ifp.read()) sys.exit(0)STRING
HIGHtest/question/basic.py0import sys with open(sys.argv[1], 'wb') as f, open(sys.argv[2], 'rb') as ifp: f.write(ifp.read()) sys.exit(0)STRING
HIGHtest/special-filenames.py0import sys with open(sys.argv[1], 'wb') as f, open(sys.argv[2], 'rb') as ifp: f.write(ifp.read()) sys.exit(0)STRING
HIGHtest/multiline.py0import sys with open(sys.argv[1], 'wb') as f, open(sys.argv[2], 'rb') as ifp: f.write(ifp.read()) sys.exit(0)STRING
HIGHtest/Alias/Alias.py0import sys with open(sys.argv[1], 'wb') as f, open(sys.argv[2], 'rb') as ifp: f.write(ifp.read()) sys.exit(0)STRING
HIGHtest/Alias/Depends.py0import sys with open(sys.argv[1], 'wb') as f, open(sys.argv[2], 'rb') as ifp: f.write(ifp.read()) sys.exit(0)STRING
HIGHtest/NodeOps.py0#include <stdio.h> extern "c" void doit() { #ifdef foo printf("doit.cpp: foo\n"); #endif #ifdef bar printf("doit.cpp: baSTRING
HIGHtest/CXX/SHCCFLAGS-live.py0#include <stdio.h> extern "c" void doit() { #ifdef foo printf("doit.cpp: foo\n"); #endif #ifdef bar printf("doit.cpp: baSTRING
HIGHtest/CXX/SHCXXFLAGS-live.py0#include <stdio.h> extern "c" void doit() { #ifdef foo printf("doit.cpp: foo\n"); #endif #ifdef bar printf("doit.cpp: baSTRING
HIGHtest/CXX/CXXFLAGS-live.py0#include <stdio.h> extern "c" void doit() { #ifdef foo printf("doit.cpp: foo\n"); #endif #ifdef bar printf("doit.cpp: baSTRING
HIGHtest/NodeOps.py0\ void doit(); int main(int argc, char* argv[]) { doit(); return 0; }STRING
HIGHtest/CC/SHCFLAGS-live.py0\ void doit(); int main(int argc, char* argv[]) { doit(); return 0; }STRING
HIGHtest/CXX/SHCCFLAGS-live.py0\ void doit(); int main(int argc, char* argv[]) { doit(); return 0; }STRING
HIGHtest/CXX/CXXFLAGS-live.py0\ void doit(); int main(int argc, char* argv[]) { doit(); return 0; }STRING
HIGHtest/CXX/SHCXXFLAGS-live.py0\ void doit(); int main(int argc, char* argv[]) { doit(); return 0; }STRING
HIGHtest/CC/SHCCFLAGS-live.py0\ void doit(); int main(int argc, char* argv[]) { doit(); return 0; }STRING
HIGHtest/ESCAPE.py0\ import sys with open(sys.argv[1], 'wb') as ofp: for s in sys.argv[2:]: with open(s, 'rb') as ifp: ofp.write(ifp.read()STRING
HIGHtest/SPAWN.py0\ import sys with open(sys.argv[1], 'wb') as ofp: for s in sys.argv[2:]: with open(s, 'rb') as ifp: ofp.write(ifp.read()STRING
HIGHtest/Fortran/module-subdir.py0\ import sys with open(sys.argv[1], 'wb') as ofp: for s in sys.argv[2:]: with open(s, 'rb') as ifp: ofp.write(ifp.read()STRING
HIGHtest/Object.py0#include <stdio.h> void f1(void) { printf("f1.c\n"); fflush(stdout); }STRING
HIGHtest/dependency-cycle.py0#include <stdio.h> void f1(void) { printf("f1.c\n"); fflush(stdout); }STRING
HIGHtest/Libs/Library.py0#include <stdio.h> void f1(void) { printf("f1.c\n"); fflush(stdout); }STRING
HIGHtest/Libs/LIBPATH.py0#include <stdio.h> void f1(void) { printf("f1.c\n"); fflush(stdout); }STRING
HIGHtest/LoadableModule.py0#include <stdio.h> void f1(void) { printf("f1.c\n"); fflush(stdout); }STRING
HIGHtest/Libs/SharedLibrary.py0#include <stdio.h> void f1(void) { printf("f1.c\n"); fflush(stdout); }STRING
HIGHtest/timestamp-fallback.py0\ scons: `f1.out' is up to date. build(["f2.out"], ["f2.in"]) scons: `f3.out' is up to date. build(["f4.out"], ["f4.in"]STRING
HIGHtest/Removed/SourceSignatures/Old/env.py0\ scons: `f1.out' is up to date. build(["f2.out"], ["f2.in"]) scons: `f3.out' is up to date. build(["f4.out"], ["f4.in"]STRING
HIGHtest/Removed/SourceSignatures/Old/basic.py0\ scons: `f1.out' is up to date. build(["f2.out"], ["f2.in"]) scons: `f3.out' is up to date. build(["f4.out"], ["f4.in"]STRING
HIGHtest/same-name.py0#include <stdio.h> #include <stdlib.h> int main(int argc, char *argv[]) { argv[argc++] = "--"; printf("shared.c\n"); exiSTRING
HIGHtest/Program.py0#include <stdio.h> #include <stdlib.h> int main(int argc, char *argv[]) { argv[argc++] = "--"; printf("shared.c\n"); exiSTRING
HIGHtest/Program-j.py0#include <stdio.h> #include <stdlib.h> int main(int argc, char *argv[]) { argv[argc++] = "--"; printf("shared.c\n"); exiSTRING
HIGHtest/expansion.py0#include <stdio.h> #include <stdlib.h> int main(int argc, char *argv[]) { argv[argc++] = "--"; printf("shared.c\n"); exiSTRING
HIGHtest/Repository/LIBPATH.py0#include <stdio.h> #include <stdlib.h> int main(int argc, char *argv[]) { argv[argc++] = "--"; printf("shared.c\n"); exiSTRING
HIGHtest/VariantDir/VariantDir.py0#include <stdio.h> #include <stdlib.h> int main(int argc, char *argv[]) { argv[argc++] = "--"; printf("shared.c\n"); exiSTRING
HIGHtest/option/tree-derived.py0#include <stdio.h> #include <stdlib.h> int main(int argc, char *argv[]) { argv[argc++] = "--"; printf("shared.c\n"); exiSTRING
HIGHtest/option/debug-includes.py0#include <stdio.h> #include <stdlib.h> int main(int argc, char *argv[]) { argv[argc++] = "--"; printf("shared.c\n"); exiSTRING
HIGHtest/option/tree-all.py0#include <stdio.h> #include <stdlib.h> int main(int argc, char *argv[]) { argv[argc++] = "--"; printf("shared.c\n"); exiSTRING
HIGHtest/option/option--Y.py0#include <stdio.h> #include <stdlib.h> int main(int argc, char *argv[]) { argv[argc++] = "--"; printf("shared.c\n"); exiSTRING
HIGHtest/LINK/LINK.py0#include <stdio.h> #include <stdlib.h> int main(int argc, char *argv[]) { argv[argc++] = "--"; printf("shared.c\n"); exiSTRING
HIGHtest/LINK/LINKFLAGS.py0#include <stdio.h> #include <stdlib.h> int main(int argc, char *argv[]) { argv[argc++] = "--"; printf("shared.c\n"); exiSTRING
HIGHtest/long-lines/live.py0#include <stdio.h> #include <stdlib.h> int main(int argc, char *argv[]) { argv[argc++] = "--"; printf("shared.c\n"); exiSTRING
HIGHtest/Program.py0#include <stdio.h> void f2a(void) { printf("f2a.c\n"); }STRING
HIGHtest/Libs/Library.py0#include <stdio.h> void f2a(void) { printf("f2a.c\n"); }STRING
HIGHtest/Libs/SharedLibrary.py0#include <stdio.h> void f2a(void) { printf("f2a.c\n"); }STRING
HIGHtest/Program.py0#include <stdio.h> void f2b(void) { printf("f2b.c\n"); }STRING
HIGHtest/Libs/Library.py0#include <stdio.h> void f2b(void) { printf("f2b.c\n"); }STRING
HIGHtest/Libs/SharedLibrary.py0#include <stdio.h> void f2b(void) { printf("f2b.c\n"); }STRING
HIGHtest/Program.py0#include <stdio.h> void f3a(void) { printf("f3a.c\n"); }STRING
HIGHtest/Libs/Library.py0#include <stdio.h> void f3a(void) { printf("f3a.c\n"); }STRING
HIGHtest/Libs/SharedLibrary.py0#include <stdio.h> void f3a(void) { printf("f3a.c\n"); }STRING
HIGHtest/Program.py0#include <stdio.h> void f3b(void) { printf("f3b.c\n"); }STRING
HIGHtest/Libs/Library.py0#include <stdio.h> void f3b(void) { printf("f3b.c\n"); }STRING
HIGHtest/Libs/SharedLibrary.py0#include <stdio.h> void f3b(void) { printf("f3b.c\n"); }STRING
HIGHtest/DVIPDF/DVIPDF.py0import os import sys import getopt cmd_opts, arg = getopt.getopt(sys.argv[1:], 'i:r:', []) base_name = os.path.splitext(STRING
HIGHtest/DVIPDF/DVIPDFFLAGS.py0import os import sys import getopt cmd_opts, arg = getopt.getopt(sys.argv[1:], 'i:r:', []) base_name = os.path.splitext(STRING
HIGHtest/DVIPS/DVIPS.py0import os import sys import getopt cmd_opts, arg = getopt.getopt(sys.argv[1:], 'i:r:', []) base_name = os.path.splitext(STRING
604 more matches not shown…
Over-Commented Block1842 hits · 1820 pts
SeverityFileLineSnippetContext
LOWrequirements.txt1# No dependencies for running SConsCOMMENT
LOWrequirements-dev.txt1# Dependencies for development - mainly for running testsCOMMENT
LOWlgtm.yml1##########################################################################################COMMENT
LOWlgtm.yml21 - testingCOMMENT
LOWlgtm.yml41 template:COMMENT
LOWlgtm.yml61#########################################################################################COMMENT
LOWlgtm.yml81 # packages:COMMENT
LOWlgtm.yml101 # prepare:COMMENT
LOWlgtm.yml121 - lxml==4.6.3COMMENT
LOW.travis.yml21COMMENT
LOWbench/dependency-func.py1#!/usr/bin/env pythonCOMMENT
LOWbench/lvars-gvars.py1# MIT LicenseCOMMENT
LOWbench/bench.py1#!/usr/bin/env pythonCOMMENT
LOWbench/bench.py81COMMENT
LOWbench/env.__setitem__.py1#!/usr/bin/env pythonCOMMENT
LOWbench/env.__setitem__.py101# overhead so our timing focuses on just the __setitem__() performance.COMMENT
LOWbench/is_types.py1#!/usr/bin/env pythonCOMMENT
LOWtimings/SCons_Bars.py1#!/usr/bin/env pythonCOMMENT
LOWtimings/hundred/TimeSCons-run.py1#!/usr/bin/env pythonCOMMENT
LOWtimings/CPPPATH/TimeSCons-run.py1#!/usr/bin/env pythonCOMMENT
LOWtimings/Java/TimeSCons-run.py1#!/usr/bin/env pythonCOMMENT
LOWtimings/ElectricCloud/TimeSCons-run.py1#!/usr/bin/env pythonCOMMENT
LOWtimings/ElectricCloud/genscons.pl1#!/usr/bin/perlCOMMENT
LOWtimings/ElectricCloud/genscons.pl21# without specific prior written permission.COMMENT
LOWtimings/JTimer/TimeSCons-run.py1#!/usr/bin/env pythonCOMMENT
LOWtimings/JTimer/TimeSCons-run.py41import TestSConsCOMMENT
LOWtest/skip-execution.py1#!/usr/bin/env pythonCOMMENT
LOWtest/Delete.py1#!/usr/bin/env pythonCOMMENT
LOWtest/ParseDepends.py1#!/usr/bin/env pythonCOMMENT
LOWtest/NoClean.py1#!/usr/bin/env pythonCOMMENT
LOWtest/PRINT_CMD_LINE_FUNC.py1#!/usr/bin/env pythonCOMMENT
LOWtest/import.py1#!/usr/bin/env pythonCOMMENT
LOWtest/CommandGenerator.py1#!/usr/bin/env pythonCOMMENT
LOWtest/leaky-handles.py1#!/usr/bin/env pythonCOMMENT
LOWtest/up-to-date.py1#!/usr/bin/env pythonCOMMENT
LOWtest/_CPPINCFLAGS.py1#!/usr/bin/env pythonCOMMENT
LOWtest/NodeOps.py1#!/usr/bin/env pythonCOMMENT
LOWtest/Copy-Symlinks.py1#!/usr/bin/env pythonCOMMENT
LOWtest/gnutools.py1#!/usr/bin/env pythonCOMMENT
LOWtest/WhereIs.py1#!/usr/bin/env pythonCOMMENT
LOWtest/diskcheck.py1#!/usr/bin/env pythonCOMMENT
LOWtest/issue2821.py1#!/usr/bin/env pythonCOMMENT
LOWtest/ESCAPE.py1#!/usr/bin/env pythonCOMMENT
LOWtest/ValidateOptions.py1# MIT LicenseCOMMENT
LOWtest/Clone-compatibility.py1#!/usr/bin/env pythonCOMMENT
LOWtest/Command.py1#!/usr/bin/env pythonCOMMENT
LOWtest/preserve-source.py1#!/usr/bin/env pythonCOMMENT
LOWtest/TARGETS.py1#!/usr/bin/env pythonCOMMENT
LOWtest/ENV.py1#!/usr/bin/env pythonCOMMENT
LOWtest/Flatten.py1#!/usr/bin/env pythonCOMMENT
LOWtest/SCONS_LIB_DIR.py1#!/usr/bin/env pythonCOMMENT
LOWtest/duplicate-sources.py1#!/usr/bin/env pythonCOMMENT
LOWtest/AlwaysBuild.py1#!/usr/bin/env pythonCOMMENT
LOWtest/strfunction.py1#!/usr/bin/env pythonCOMMENT
LOWtest/subdivide.py1#!/usr/bin/env pythonCOMMENT
LOWtest/warning-TargetNotBuiltWarning.py1#!/usr/bin/env pythonCOMMENT
LOWtest/file-names.py1#!/usr/bin/env pythonCOMMENT
LOWtest/file-names.py21# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BECOMMENT
LOWtest/Chmod.py1#!/usr/bin/env pythonCOMMENT
LOWtest/Object.py1#!/usr/bin/env pythonCOMMENT
1782 more matches not shown…
Empty Error Handlers276 hits · 1330 pts
SeverityFileLineSnippetContext
HIGHbench/env.__setitem__.py311except AttributeError:CODE
HIGHtest/special-filenames.py61except OSError:CODE
HIGHtest/timestamp-fallback.py42except ImportError:CODE
HIGHtest/Repository/RMIC.py46except ValueError:CODE
HIGHtest/Repository/RMIC.py52except ValueError:CODE
HIGHtest/Java/RMIC.py79except ValueError:CODE
HIGHtest/Java/RMIC.py85except ValueError:CODE
HIGHtest/option/stack-size.py35except ImportError:CODE
HIGHtest/Docbook/basedir/slideshtml/image/xsltver.py38except ValueError:CODE
HIGHtest/Docbook/rootname/slideshtml/image/xsltver.py38except ValueError:CODE
HIGHtest/Docbook/basic/slideshtml/image/xsltver.py38except ValueError:CODE
HIGHtest/scons-time/help/all-subcommands.py43except: passCODE
HIGHbin/scons-test.py125except:CODE
HIGHbin/time-scons.py77except TypeError:CODE
HIGHbin/SConsDoc.py174except Exception:CODE
HIGHbin/Command.py41except TypeError:CODE
HIGHbin/SConsExamples.py707except AttributeError:CODE
HIGHbin/scons-time.py241except OSError:CODE
HIGHbin/scons-unzip.py61except:CODE
HIGHbin/linecount.py49except ValueError: passCODE
HIGHSCons/ActionTests.py448except TypeError:CODE
HIGHSCons/ActionTests.py876except TypeError:CODE
HIGHSCons/ActionTests.py883except TypeError:CODE
HIGHSCons/ActionTests.py2340except EnvironmentError:CODE
HIGHSCons/SubstTests.py712except SCons.Errors.UserError:CODE
HIGHSCons/SubstTests.py1203except SCons.Errors.UserError:CODE
HIGHSCons/PathList.py209except KeyError:CODE
HIGHSCons/DefaultsTests.py82except OSError as e:CODE
HIGHSCons/ExecutorTests.py129except SCons.Errors.UserError:CODE
HIGHSCons/ExecutorTests.py252except SCons.Errors.BuildError:CODE
HIGHSCons/SConsign.py128except AttributeError:CODE
HIGHSCons/SConsign.py134except AttributeError:CODE
HIGHSCons/SConsign.py177except KeyError:CODE
HIGHSCons/SConsign.py261except KeyError:CODE
HIGHSCons/SConsign.py355except AttributeError:CODE
HIGHSCons/SConsign.py417except OSError:CODE
HIGHSCons/SConsign.py231except AttributeError:CODE
HIGHSCons/SConsign.py307except AttributeError:CODE
HIGHSCons/SConsign.py396except OSError:CODE
HIGHSCons/SConsign.py90except OSError:CODE
HIGHSCons/cpp.py209except AttributeError:CODE
HIGHSCons/cpp.py375except IndexError: passCODE
HIGHSCons/cpp.py567except KeyError: passCODE
HIGHSCons/Action.py1024except IndexError:CODE
HIGHSCons/Action.py1409except AttributeError:CODE
HIGHSCons/Builder.py599except (AttributeError, IndexError):CODE
HIGHSCons/Builder.py819except KeyError:CODE
HIGHSCons/Builder.py854except KeyError:CODE
HIGHSCons/Builder.py613except KeyError:CODE
HIGHSCons/MemoizeTests.py64except KeyError:CODE
HIGHSCons/MemoizeTests.py50except KeyError:CODE
HIGHSCons/BuilderTests.py338except SCons.Errors.UserError as e:CODE
HIGHSCons/BuilderTests.py745except SCons.Errors.UserError:CODE
HIGHSCons/BuilderTests.py752except SCons.Errors.UserError:CODE
HIGHSCons/BuilderTests.py781except SCons.Errors.BuildError:CODE
HIGHSCons/BuilderTests.py807except SCons.Errors.BuildError:CODE
HIGHSCons/Environment.py528except AttributeError:CODE
HIGHSCons/Environment.py1498except AttributeError:CODE
HIGHSCons/Environment.py1511except TypeError:CODE
HIGHSCons/Environment.py1537except KeyError:CODE
216 more matches not shown…
Unused Imports396 hits · 368 pts
SeverityFileLineSnippetContext
LOWruntest.py20CODE
LOWbench/bench.py48CODE
LOWbench/bench.py48CODE
LOWbench/bench.py55CODE
LOWbench/benchmark_subst.py12CODE
LOWbench/benchmark_subst.py14CODE
LOWbench/benchmark_subst.py14CODE
LOWbench/env.__setitem__.py34CODE
LOWbench/is_types.py32CODE
LOWbench/is_types.py34CODE
LOWbench/is_types.py34CODE
LOWtimings/ElectricCloud/TimeSCons-run.py26CODE
LOWtimings/ElectricCloud/TimeSCons-run.py71CODE
LOWtest/Execute.py29CODE
LOWtest/LoadableModule.py29CODE
LOWtest/PharLap.py28CODE
LOWtest/timestamp-fallback.py41CODE
LOWtest/Program.py27CODE
LOWtest/packaging/option--package-type.py34CODE
LOWtest/packaging/rpm/explicit-target.py32CODE
LOWtest/Repository/within-repository.py26CODE
LOWtest/Repository/absolute-path.py27CODE
LOWtest/Repository/variants.py27CODE
LOWtest/Repository/variants.py28CODE
LOWtest/Repository/link-object.py26CODE
LOWtest/Repository/top-level-path.py27CODE
LOWtest/Repository/SConscript.py30CODE
LOWtest/Repository/multi-dir.py26CODE
LOWtest/Repository/include.py26CODE
LOWtest/Repository/Program.py26CODE
LOWtest/Repository/CPPPATH.py26CODE
LOWtest/Repository/no-repository.py26CODE
LOWtest/Parallel/multiple-parents.py37CODE
LOWtest/Parallel/failed-build/failed-build.py35CODE
LOWtest/MSVC/msvc_badversion.py30CODE
LOWtest/MSVC/MSVC_UWP_APP.py33CODE
LOWtest/LEX/live_mingw.py30CODE
LOWtest/LEX/LEXFLAGS.py26CODE
LOWtest/Configure/basic.py30CODE
LOWtest/Configure/basic.py31CODE
LOW…ython_scanner/from_import_simple_package_module1_as.py5CODE
LOW…ure/python_scanner/import_simple_package_module1_as.py5CODE
LOW…anner/from_import_simple_package_modules_with_space.py5CODE
LOW…anner/from_import_simple_package_modules_with_space.py5CODE
LOW…hon_scanner/from_import_simple_package_module1_func.py5CODE
LOWtest/fixture/python_scanner/imports_nested3.py5CODE
LOWtest/fixture/python_scanner/imports_simple_package.py5CODE
LOWtest/fixture/python_scanner/imports_unknown_files.py5CODE
LOWtest/fixture/python_scanner/imports_unknown_files.py6CODE
LOWtest/fixture/python_scanner/imports_unknown_files.py7CODE
LOWtest/fixture/python_scanner/imports_unknown_files.py7CODE
LOWtest/fixture/python_scanner/imports_unknown_files.py7CODE
LOW…e/python_scanner/from_import_simple_package_module1.py5CODE
LOW…fixture/python_scanner/from_nested1_import_multiple.py5CODE
LOW…fixture/python_scanner/from_nested1_import_multiple.py5CODE
LOW…scanner/from_import_simple_package_modules_no_space.py5CODE
LOW…scanner/from_import_simple_package_modules_no_space.py5CODE
LOW…ixture/python_scanner/import_simple_package_module1.py5CODE
LOW…sted1/nested2/nested3/imports_parent_then_submodule.py5CODE
LOW…/nested1/nested2/nested3/imports_grandparent_module.py5CODE
336 more matches not shown…
Hyper-Verbose Identifiers361 hits · 324 pts
SeverityFileLineSnippetContext
LOWbench/benchmark_subst.py51def benchmark_action_in_subst():STRING
LOWbench/benchmark_subst.py88def benchmark_repeated_callables():STRING
LOWbench/env.__setitem__.py161 def is_valid_construction_var(self, varstr):CODE
LOWtest/Parallel/multiple-parents.py67def simulate_keyboard_interrupt(target=None, source=None, env=None):CODE
LOWtest/MSVC/MSVC_TOOLSET_VERSION.py49def get_toolset_buildseries_version(toolset_version):CODE
LOWtest/MSVC/MSVC_TOOLSET_VERSION.py56def get_latest_buildseries_version(v):CODE
LOW⚡test/option/debug-action-timestamps.py49def test_presence_of_debug_time_strings(build_output):CODE
LOW⚡test/option/debug-action-timestamps.py55def test_equal_number_of_debug_time_strings(build_output):CODE
LOW⚡test/option/debug-action-timestamps.py64def test_correctness_of_timestamps(build_output):CODE
LOWtest/ZIP/ZIP_OVERRIDE_TIMESTAMP.py36def zipfile_get_file_datetime(zipfilename, fname):CODE
LOWbin/update-version-strings.py69def find_and_replace_version_strings(root_path, next_version, prev_version, dry_run=False):CODE
LOWSCons/ActionTests.py1548 def test_get_contents_of_function_action(self) -> None:CODE
LOWSCons/ActionTests.py1981 def test_get_contents_of_function_action(self) -> None:CODE
LOWSCons/ActionTests.py2336 def test_uncaught_exception_bubbles(self):CODE
LOW⚡SCons/SubstTests.py550 def test_subst_callable_expansion(self) -> None:CODE
LOW⚡SCons/SubstTests.py559 def test_subst_callable_with_default_expansion(self) -> None:CODE
LOW⚡SCons/SubstTests.py568 def test_subst_partial_callable_with_default_expansion(self) -> None:CODE
LOW⚡SCons/SubstTests.py578 def test_subst_partial_callable_with_no_default_expansion(self) -> None:CODE
LOW⚡SCons/SubstTests.py588 def test_subst_attribute_errors(self):CODE
LOWSCons/SubstTests.py622 def test_subst_balance_errors(self):CODE
LOWSCons/SubstTests.py698 def test_subst_overriding_gvars(self) -> None:CODE
LOWSCons/SubstTests.py706 def test_subst_builtins_not_leaked(self) -> None:CODE
LOWSCons/SubstTests.py718 def test_subst_overrides_does_not_mutate_lvars(self) -> None:CODE
LOWSCons/SubstTests.py727 def test_subst_callable_no_signature(self) -> None:CODE
LOWSCons/SubstTests.py763 def test_subst_overriding_lvars_overrides(self) -> None:CODE
LOWSCons/SubstTests.py1088 def test_subst_attribute_errors(self):CODE
LOWSCons/SubstTests.py1135 def test_subst_list_overriding_gvars(self) -> None:CODE
LOWSCons/SubstTests.py1159 def test_subst_list_overriding_lvars_overrides(self) -> None:CODE
LOWSCons/SubstTests.py1178 def test_subst_list_empty_value_no_empty_word(self) -> None:CODE
LOWSCons/SubstTests.py1184 def test_subst_list_name_error_includes_key(self) -> None:CODE
LOWSCons/SubstTests.py1197 def test_subst_list_builtins_not_leaked(self) -> None:CODE
LOWSCons/DefaultsTests.py87 def test__defines_no_target_or_source_arg(self) -> None:CODE
LOWSCons/CacheDirTests.py161 def test_throws_correct_when_failed_to_write_configfile(self) -> None:CODE
LOWSCons/CacheDirTests.py195 def test_raise_environment_error_on_invalid_json(self) -> None:CODE
LOWSCons/ExecutorTests.py184 def test_get_build_scanner_path(self) -> None:CODE
LOWSCons/ExecutorTests.py443 def test_get_unignored_sources(self) -> None:CODE
LOWSCons/SConsign.py61def current_sconsign_filename():CODE
LOWSCons/Action.py1142 def _get_implicit_deps_lightweight(self, target, source, env, executor: Executor | None):CODE
LOWSCons/Action.py1163 def _get_implicit_deps_heavyweight(self, target, source, env, executor: Executor | None,CODE
LOWSCons/BuilderTests.py601 def test_src_suffix_expansion(self) -> None:CODE
LOWSCons/BuilderTests.py1257 def test_emitter_preserve_builder(self) -> None:CODE
LOWSCons/BuilderTests.py1313 def test_emitter_function_list(self) -> None:CODE
LOWSCons/BuilderTests.py1522 def test_multiple_suffix_error(self) -> None:CODE
LOW⚡SCons/Environment.py159def copy_non_reserved_keywords(dict_: dict[str, Any]) -> dict[str, Any]:CODE
LOWSCons/Environment.py1855 def _changed_timestamp_then_content(CODE
LOWSCons/Defaults.py705def __lib_either_version_flag(env, version_var1, version_var2, flags_var):CODE
LOWSCons/Subst.py372def _check_callable_subst_args(s) -> bool:CODE
LOWSCons/Subst.py392def _callable_matches_subst_args(s) -> bool:CODE
LOWSCons/Executor.py503 def _get_unignored_sources_key(self, node, ignore=()):CODE
LOWSCons/Taskmaster/TaskmasterTests.py544 def test_make_ready_out_of_date(self) -> None:CODE
LOWSCons/Taskmaster/TaskmasterTests.py591 def test_make_ready_exception(self) -> None:CODE
LOWSCons/Taskmaster/TaskmasterTests.py725 def test_next_top_level_candidate(self) -> None:CODE
LOWSCons/Taskmaster/TaskmasterTests.py1081 def test_cached_execute_target_unlink_fails(self) -> None:CODE
LOWSCons/Taskmaster/__init__.py265 def executed_without_callbacks(self) -> None:CODE
LOWSCons/Taskmaster/__init__.py729 def _validate_pending_children(self) -> None:CODE
LOWSCons/Taskmaster/JobTests.py233 def all_tasks_are_postprocessed(self):CODE
LOWSCons/Util/envs.py391def is_valid_construction_var(varstr: str) -> bool:CODE
LOWSCons/Util/envsTests.py159 def test_is_valid_construction_var(self) -> None:CODE
LOWSCons/Util/UtilTests.py101 def test_make_path_relative_unc(self) -> None:CODE
LOWSCons/Util/UtilTests.py680 def test_wait_for_process_to_die_success_psutil(self) -> None:STRING
301 more matches not shown…
Deep Nesting243 hits · 216 pts
SeverityFileLineSnippetContext
LOWruntest.py764CODE
LOWruntest.py888CODE
LOWbench/dependency-func.py44CODE
LOWtest/Parallel/failed-build/fixture/teststate.py23CODE
LOWtest/Parallel/failed-build/fixture/teststate.py31CODE
LOWtest/MSVC/MSVC_UWP_APP.py84CODE
LOWtest/MSVC/MSVC_UWP_APP.py86CODE
LOWtest/fixture/mylex.py27CODE
LOWtest/fixture/mygcc.py22CODE
LOWtest/AS/fixture/myas.py31CODE
LOWtest/YACC/YACCFLAGS-fixture/myyacc.py23CODE
LOWtest/YACC/YACCFLAGS-fixture/myyacc.py46CODE
LOWbin/update_copyright.py142CODE
LOWbin/update_copyright.py275CODE
LOWbin/time-scons.py214CODE
LOWbin/docs-update-generated.py31CODE
LOWbin/SConsDoc.py463CODE
LOWbin/Command.py93CODE
LOWbin/SConsExamples.py286CODE
LOWbin/SConsExamples.py303CODE
LOWbin/SConsExamples.py339CODE
LOWbin/SConsExamples.py426CODE
LOWbin/SConsExamples.py810CODE
LOWbin/install_scons.py100CODE
LOWbin/scons-proc.py58CODE
LOWbin/check_new_contributors.py37CODE
LOWbin/scons-time.py247CODE
LOWbin/scons-time.py731CODE
LOWbin/scons-time.py773CODE
LOWbin/scons-time.py894CODE
LOWbin/scons-time.py1014CODE
LOWbin/scons-time.py1152CODE
LOWbin/scons-time.py1390CODE
LOWbin/scons_dev_master.py112CODE
LOWbin/scons-man-to-ai.py172CODE
LOWbin/scons-man-to-ai.py300CODE
LOWbin/calibrate.py33CODE
LOWbin/scons-diff.py85CODE
LOWbin/scons-diff.py144CODE
LOWSCons/SubstTests.py269CODE
LOWSCons/PathList.py124CODE
LOWSCons/Warnings.py220CODE
LOWSCons/Warnings.py239CODE
LOWSCons/SConsign.py74CODE
LOWSCons/Action.py174CODE
LOWSCons/Action.py655CODE
LOWSCons/Action.py1163CODE
LOWSCons/Builder.py242CODE
LOWSCons/Builder.py284CODE
LOWSCons/Builder.py755CODE
LOWSCons/Debug.py85CODE
LOWSCons/Environment.py223CODE
LOWSCons/Environment.py693CODE
LOWSCons/Environment.py856CODE
LOWSCons/Environment.py1006CODE
LOWSCons/Environment.py1206CODE
LOWSCons/Environment.py1534CODE
LOWSCons/Environment.py1607CODE
LOWSCons/Environment.py1721CODE
LOWSCons/Environment.py1884CODE
183 more matches not shown…
Self-Referential Comments60 hits · 166 pts
SeverityFileLineSnippetContext
MEDIUMbench/benchmark_subst.py94# Create a callable to useCOMMENT
MEDIUMtest/Parallel/duplicate-children.py53# Create a file "foo.in" in the current directory before running scons.COMMENT
MEDIUMtest/SWIG/build-dir.py63# Create the build environment.COMMENT
MEDIUMtest/Java/JAR.py385# Create the jars then extract them back to check contentsSTRING
MEDIUMtest/option/option-n.py160# Creating the node won't cause "build/f4.in" to be created fromSTRING
MEDIUMtest/Libs/SharedLibraryIxes.py84# The following functions define all the different ways that one canCOMMENT
MEDIUMtest/Libs/SharedLibraryIxes.py189# Create the list of all possible permutations to test.COMMENT
MEDIUMtest/gettext/POInit/UserExamples.py40# This file is distributed under the same license as the PACKAGE package.COMMENT
MEDIUMtest/gettext/POUpdate/UserExamples.py47# This file is distributed under the same license as the PACKAGE package.COMMENT
MEDIUMtest/gettext/POUpdate/UserExamples.py72# This file is distributed under the same license as the PACKAGE package.COMMENT
MEDIUMtest/gettext/POUpdate/UserExamples.py97# This file is distributed under the same license as the PACKAGE package.COMMENT
MEDIUMtest/gettext/POUpdate/UserExamples.py123# This file is distributed under the same license as the PACKAGE package.COMMENT
MEDIUMtest/gettext/POUpdate/UserExamples.py148# This file is distributed under the same license as the PACKAGE package.COMMENT
MEDIUMtest/gettext/MOFiles/UserExamples.py40# This file is distributed under the same license as the PACKAGE package.COMMENT
MEDIUMtest/gettext/MOFiles/UserExamples.py65# This file is distributed under the same license as the PACKAGE package.COMMENT
MEDIUMtest/gettext/MOFiles/UserExamples.py91# This file is distributed under the same license as the PACKAGE package.COMMENT
MEDIUMtest/gettext/MOFiles/UserExamples.py116# This file is distributed under the same license as the PACKAGE package.COMMENT
MEDIUMtest/Interactive/implicit-VariantDir.py47# Create the top-level SConstruct fileCOMMENT
MEDIUMtest/Interactive/implicit-VariantDir.py65# Create the src/SConscript fileSTRING
MEDIUMSCons/ActionTests.py25# Define a null function and a null class for use as builder actions.COMMENT
MEDIUMSCons/SConsign.py156 # Create an object attribute from the class attribute so it ends upCOMMENT
MEDIUMSCons/cpp.py68# Create a table that maps each individual C preprocessor directive toCOMMENT
MEDIUMSCons/cpp.py80# Create a list of the expressions we'll use to match all of theCOMMENT
MEDIUMSCons/cpp.py220 # Create a dictionary that maps the macro arguments to theCOMMENT
MEDIUMSCons/BuilderTests.py28# Define a null function for use as a builder action.COMMENT
MEDIUMSCons/Executor.py347 # Create the build environment instance with appropriateCOMMENT
MEDIUMSCons/Executor.py645 # The following methods require morphing this Null Executor to aCOMMENT
MEDIUMSCons/Taskmaster/Job.py179 """This class is used to execute tasks in series, and is more efficientSTRING
MEDIUMSCons/Taskmaster/Job.py271 """This class is responsible for spawning and managing worker threads."""STRING
MEDIUMSCons/Taskmaster/Job.py344 """This class is used to execute tasks in parallel, and is somewhatSTRING
MEDIUMSCons/Platform/PlatformTests.py301 # Create an instance of object derived class to allow setattrbCOMMENT
MEDIUMSCons/Script/ScriptTests.py29# This module is for specific bits of functionality that seem worthCOMMENT
MEDIUMSCons/Script/MainTests.py31# This module is for specific bits of functionality that we can testCOMMENT
MEDIUMSCons/Variables/__init__.py387 # Create the file and write out the headerCOMMENT
MEDIUMSCons/Node/__init__.py466 # Create an object attribute from the class attribute so it ends upCOMMENT
MEDIUMSCons/Node/FS.py1123 # The following methods can get called before the Taskmaster hasSTRING
MEDIUMSCons/Scanner/FortranTests.py440 # Create a derived file in a directory that does not exist yet.STRING
MEDIUMSCons/Scanner/CTests.py396 # Create a derived file in a directory that does not exist yet.COMMENT
MEDIUMSCons/Scanner/IDLTests.py378 # Create a derived file in a directory that does not exist yet.STRING
MEDIUMSCons/Tool/link.py64 # This module isn't really a Tool on its own, it's common logic forCOMMENT
MEDIUM⚡SCons/Tool/tex.py894 # Define an action to run BibTeX on a file.COMMENT
MEDIUM⚡SCons/Tool/tex.py899 # Define an action to run Biber on a file.COMMENT
MEDIUM⚡SCons/Tool/tex.py904 # Define an action to run MakeIndex on a file.COMMENT
MEDIUM⚡SCons/Tool/tex.py909 # Define an action to run MakeIndex on a file for nomenclatures.COMMENT
MEDIUM⚡SCons/Tool/tex.py914 # Define an action to run MakeIndex on a file for glossaries.COMMENT
MEDIUM⚡SCons/Tool/tex.py919 # Define an action to run MakeIndex on a file for acronyms.COMMENT
MEDIUMSCons/Tool/zip.xml69# Create the stuff.zip file.COMMENT
MEDIUMSCons/Tool/tar.xml68# Create the stuff.tar file.COMMENT
MEDIUMSCons/Tool/msvsTests.py678 # Create the cmdargs test listSTRING
MEDIUMSCons/Tool/packaging/msi.py190 # Create a document with the Wix root tagCOMMENT
MEDIUMSCons/Tool/packaging/msi.py199 # Create the contentCOMMENT
MEDIUMSCons/Tool/packaging/msi.py455 # Create the needed DOM nodes and add them at the correct position in the tree.STRING
MEDIUMSCons/Tool/MSCommon/vcTests.py125 # Create the VC minor/major version fileCOMMENT
MEDIUMSCons/Tool/MSCommon/common.py523 # Create a blank environment, for use in launching the toolsCOMMENT
MEDIUM⚡SCons/Tool/docbook/__init__.py283# Creating the instance of our XML dependency scannerCOMMENT
MEDIUMtesting/framework/TestCmd.py6# This module is free software, and you may redistribute it and/or modifyCOMMENT
MEDIUMtesting/framework/TestCmdTests.py5# This module is free software, and you may redistribute it and/or modifyCOMMENT
MEDIUMtesting/framework/TestCommon.py6# This module is free software, and you may redistribute it and/or modifyCOMMENT
MEDIUMtesting/framework/TestCommonTests.py5# This module is free software, and you may redistribute it and/or modifyCOMMENT
MEDIUMdoc/sphinx/conf.py6# This file is execfile()d with the current directory set to itsCOMMENT
Cross-Language Confusion18 hits · 100 pts
SeverityFileLineSnippetContext
HIGHtest/Repository/RMIC.py136 if (System.getSecurityManager() == null) {CODE
HIGHtest/Repository/RMIC.py175 if (System.getSecurityManager() == null) {CODE
HIGHtest/Repository/RMIC.py256 if (System.getSecurityManager() == null) {CODE
HIGHtest/Repository/RMIC.py295 if (System.getSecurityManager() == null) {CODE
HIGHtest/Java/RMIC.py163 if (System.getSecurityManager() == null) {CODE
HIGHtest/Java/RMIC.py202 if (System.getSecurityManager() == null) {CODE
HIGHtest/Java/RMIC.py252 if (System.getSecurityManager() == null) {CODE
HIGHtest/Java/RMIC.py291 if (System.getSecurityManager() == null) {CODE
HIGHtest/Java/multi-step.py510 if ( value.equals("") )CODE
HIGHtest/gettext/POUpdate/UserExamples.py112"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 "CODE
HIGHtest/gettext/MOFiles/UserExamples.py80"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 "CODE
HIGHSCons/CacheDir.py376 return self.push(node)CODE
HIGHSCons/Tool/JavaCommonTests.py254 if (System.getSecurityManager() == null) {CODE
HIGHSCons/Tool/MSCommon/vc.py2065 # version not supported return falseCOMMENT
HIGHSCons/Tool/MSCommon/vc.py2436 # use script undefined, use_settings defined and not None (type checked)COMMENT
HIGHSCons/Tool/MSCommon/vc.py2439 # use script undefined, use_settings undefined or NoneCOMMENT
HIGH⚡SCons/Tool/ninja_tool/UtilsTests.py60 self.assertEqual(cmd, f"mkdir -p build && gcc -c -o {self.target[0]} {self.source[0]}")CODE
HIGHsite_scons/scons_local_package.py112 "cd %s && tar %s $( ${TARGET.abspath} $) *" % (build_local_dir, tar_cargs),CODE
Excessive Try-Catch Wrapping86 hits · 100 pts
SeverityFileLineSnippetContext
LOWbench/benchmark_subst.py137 except Exception as e:STRING
LOWtest/Docbook/basedir/htmlhelp/htmlhelp.py41except Exception:CODE
LOWtest/Docbook/basedir/slideshtml/slideshtml.py43except Exception:CODE
LOWtest/Docbook/basedir/htmlchunked/htmlchunked.py41except Exception:CODE
LOWtest/Docbook/rootname/htmlhelp/htmlhelp.py41except Exception:CODE
LOWtest/Docbook/rootname/slideshtml/slideshtml.py43except Exception:CODE
LOWtest/Docbook/rootname/htmlchunked/htmlchunked.py41except Exception:CODE
LOWtest/Docbook/basic/man/man.py35except Exception:CODE
LOWtest/Docbook/basic/xinclude/xinclude.py35except Exception:CODE
LOWtest/Docbook/basic/htmlhelp/htmlhelp.py35except Exception:CODE
LOWtest/Docbook/basic/slideshtml/slideshtml.py43except Exception:CODE
LOWtest/Docbook/basic/pdf/pdf.py39except Exception:CODE
LOWtest/Docbook/basic/html/html.py35except Exception:CODE
LOWtest/Docbook/basic/slidespdf/slidespdf.py47except Exception:CODE
LOWtest/Docbook/basic/xsltsubdir/xsltsubdir.py35except Exception:CODE
LOWtest/Docbook/basic/xslt/xslt.py35except Exception:CODE
LOWtest/Docbook/basic/htmlchunked/htmlchunked.py35except Exception:CODE
LOWtest/Docbook/basic/entities/entities.py44except Exception:CODE
LOWtest/Docbook/basic/epub/epub.py35except Exception:CODE
LOWtest/Docbook/dependencies/xinclude/xinclude.py35except Exception:CODE
LOWbin/update_copyright.py139 except Exception as e:CODE
LOWbin/update_copyright.py272 except Exception as e:CODE
MEDIUMbin/update_copyright.py115def update_xml_file(file_path):CODE
LOWbin/docs-update-generated.py49 except Exception:CODE
LOWbin/SConsDoc.py174 except Exception:STRING
LOWbin/SConsDoc.py386 except Exception as e:STRING
LOWbin/SConsDoc.py401 except Exception as e:STRING
MEDIUM⚡bin/SConsExamples.py394 print(f"Error: Example in file '{fpath}' is missing a name.")CODE
MEDIUM⚡bin/SConsExamples.py403 print(f"Error: scons_output in file '{fpath}' is missing an example name.")CODE
MEDIUM⚡bin/SConsExamples.py407 print(f"Error: scons_output in file '{fpath}' is referencing non-existent example '{n}'.")CODE
MEDIUM⚡bin/SConsExamples.py415 print(f"Error: scons_output in file '{fpath}' (example '{n}') is missing a suffix.")CODE
MEDIUM⚡bin/SConsExamples.py421 print(f"Error: scons_output in file '{fpath}' (example '{n}') is using a duplicate suffix '{s}'.")CODE
LOWbin/scons-proc.py64 except Exception as e:STRING
LOWbin/scons-proc.py75 except Exception as e:STRING
MEDIUMbin/check_new_contributors.py33 print(f"Error running git command: {' '.join(args)}")CODE
MEDIUMbin/check_new_contributors.py94 print(f"Error: Tag '{args.tag}' not found.")CODE
MEDIUMbin/update-version-strings.py122 print(f"Error: Path not found: {args.path}", file=sys.stderr)CODE
LOWSCons/ActionTests.py2342 except Exception:CODE
LOWSCons/SubstTests.py282 except Exception as e:CODE
LOWSCons/SConsign.py271 except Exception as e:CODE
LOWSCons/SConsign.py349 except Exception:CODE
LOWSCons/Action.py1442 except Exception as e:CODE
LOWSCons/SConf.py346 except Exception as e:CODE
LOWSCons/SConf.py439 except Exception as e:CODE
MEDIUMSCons/SConf.py434def force_build(dependency, target, prev_ni,CODE
LOWSCons/Subst.py460 except Exception as e:CODE
LOWSCons/Subst.py648 except Exception as e:CODE
LOWSCons/CacheDir.py180 except Exception:CODE
LOWSCons/EnvironmentTests.py1692 except Exception as e:CODE
LOWSCons/EnvironmentTests.py2501 except Exception as e:CODE
LOWSCons/Taskmaster/TaskmasterTests.py879 except Exception as exc_actually_caught:CODE
LOWSCons/Taskmaster/TaskmasterTests.py934 except Exception as e:CODE
LOWSCons/Taskmaster/Job.py214 except Exception:CODE
LOWSCons/Taskmaster/Job.py219 except Exception:CODE
LOWSCons/Taskmaster/Job.py262 except Exception:CODE
LOWSCons/Taskmaster/Job.py390 except Exception:CODE
LOWSCons/Taskmaster/Job.py419 except Exception:CODE
LOWSCons/Taskmaster/Job.py639 except Exception:CODE
LOWSCons/Taskmaster/Job.py674 except Exception:CODE
LOWSCons/Taskmaster/Job.py741 except Exception:CODE
26 more matches not shown…
Modern Structural Boilerplate54 hits · 48 pts
SeverityFileLineSnippetContext
LOWSCons/SConfTests.py198 def set_state(self, state) -> None:CODE
LOWSCons/SConsign.py207 def set_entry(self, filename, obj) -> None:CODE
LOWSCons/Builder.py684 def set_suffix(self, suffix) -> None:CODE
LOWSCons/Builder.py695 def set_src_suffix(self, src_suffix) -> None:CODE
LOWSCons/BuilderTests.py177 def set_explicit(self, is_explicit) -> None:CODE
LOWSCons/BuilderTests.py193 def set_executor(self, executor: Executor) -> None:CODE
LOW⚡SCons/Environment.py169def _set_reserved(env: EnvironmentBase, key: str, value) -> None:CODE
LOW⚡SCons/Environment.py174def _set_future_reserved(env: EnvironmentBase, key: str, value) -> None:CODE
LOWSCons/Environment.py199def _set_SCANNERS(env: EnvironmentBase, key: str, value) -> None:CODE
LOWSCons/Environment.py1586 def _update_onlynew(self, other: dict[str, Any]) -> None:CODE
LOWSCons/Environment.py3233 def _update_onlynew(self, other) -> None:CODE
LOWSCons/SConf.py78def _set_conftest_node(node) -> None:CODE
LOWSCons/SConf.py189 def set_build_result(self, result, string) -> None:CODE
LOWSCons/Executor.py654 def set_action_list(self, action) -> None:CODE
LOWSCons/compat/win32.py25__all__ = ['get_current_process', 'get_memory_info', 'get_memory_usage', 'get_peak_memory_usage']CODE
LOW⚡SCons/Taskmaster/TaskmasterTests.py185 def set_state(self, state) -> None:CODE
LOW⚡SCons/Taskmaster/TaskmasterTests.py188 def set_bsig(self, bsig) -> None:CODE
LOW⚡SCons/Taskmaster/TaskmasterTests.py191 def set_csig(self, csig) -> None:CODE
LOWSCons/Taskmaster/Job.py124 def _setup_sig_handler(self) -> None:CODE
LOWSCons/Util/__init__.py247 def set_mode(self, mode) -> None:CODE
LOWSCons/Util/hashes.py65def _set_allowed_viable_default_hashes(hashlib_used, sys_used=sys) -> None:CODE
LOWSCons/Script/SConsOptions.py149 def set_option(self, name: str, value) -> None:CODE
LOWSCons/Script/Main.py722def _set_debug_values(options) -> None:CODE
LOWSCons/Variables/BoolVariable.py41__all__ = ['BoolVariable',]CODE
LOWSCons/Variables/PackageVariable.py61__all__ = ['PackageVariable',]CODE
LOWSCons/Variables/__init__.py51__all__ = [CODE
LOWSCons/Variables/ListVariable.py64__all__ = ['ListVariable',]CODE
LOWSCons/Variables/PathVariable.py83__all__ = ['PathVariable',]CODE
LOWSCons/Variables/EnumVariable.py52__all__ = ['EnumVariable',]CODE
LOW⚡SCons/Node/__init__.py1253 def set_precious(self, precious: bool = True) -> None:CODE
LOW⚡SCons/Node/__init__.py1257 def set_pseudo(self, pseudo: bool = True) -> None:CODE
LOW⚡SCons/Node/__init__.py1261 def set_noclean(self, noclean: bool = True) -> None:CODE
LOW⚡SCons/Node/__init__.py1265 def set_nocache(self, nocache: bool = True) -> None:CODE
LOW⚡SCons/Node/__init__.py1269 def set_always_build(self, always_build: bool = True) -> None:CODE
LOWSCons/Node/__init__.py656 def set_executor(self, executor: Executor) -> None:CODE
LOWSCons/Node/__init__.py918 def set_explicit(self, is_explicit: bool) -> None:CODE
LOWSCons/Node/__init__.py1352 def set_specific_source(self, source: list[Node]) -> None:CODE
LOWSCons/Node/__init__.py1435 def set_state(self, state: int) -> None:CODE
LOWSCons/Node/FS.py282def set_duplicate(duplicate: str) -> None:STRING
LOWSCons/Node/FS.py471def set_diskcheck(enabled_checkers) -> None:STRING
LOWSCons/Node/FS.py823 def set_local(self) -> None:STRING
LOWSCons/Node/FS.py856 def set_src_builder(self, builder: BuilderBase) -> None:STRING
LOWSCons/Node/FS.py1282 def set_SConstruct_dir(self, dir: DirNode) -> None:STRING
LOWSCons/Node/FS.py1288 def set_max_drift(self, max_drift: int) -> None:STRING
LOWSCons/Tool/packaging/__init__.py39__all__ = [CODE
LOWSCons/Tool/MSCommon/sdk.py308def set_sdk_by_directory(env, sdk_dir) -> None:CODE
LOWSCons/Tool/MSCommon/MSVC/SetupEnvDefault.py109def set_nodefault() -> None:CODE
LOWSCons/Tool/ninja_tool/Methods.py80def set_build_node_callback(env, node, callback) -> None:CODE
LOWtesting/framework/TestSConsign.py98 def set_sconsign(self, sconsign) -> None:CODE
LOWtesting/framework/TestCmd.py351__all__ = [CODE
LOWtesting/framework/TestCmd.py1246 def set_diff_function(self, diff=_Null, stdout=_Null, stderr=_Null) -> None:CODE
LOWtesting/framework/TestCmd.py1324 def set_match_function(self, match=_Null, stdout=_Null, stderr=_Null) -> None:CODE
LOWtesting/framework/TestCommonTests.py78 def set_up_execution_scripts(self) -> None:CODE
LOWtesting/framework/TestUnit/__init__.py1__all__ = ['TAPTestRunner', 'TAPTestResult', 'run']CODE
Docstring Block Structure9 hits · 45 pts
SeverityFileLineSnippetContext
HIGHruntest.py212Special positive-int type for :mod:`argparse`. Args: arg: The argument string to convert. Returns: STRING
HIGHbin/check_new_contributors.py16Runs a git command and returns its output as a string. Args: args: A list of strings representing the git cSTRING
HIGHSCons/Environment.py1930Return construction variables from an environment. Args: args (optional): construction variable namesSTRING
HIGHSCons/Script/SConscript.py583Execute SCons configuration files. Parameters: *ls (str or list): configuration file(s) to execute.STRING
HIGHSCons/Tool/MSCommon/vc.py1546 Find the MSVC product directory using the vswhere program. Args: msvc_version: MSVC version to search for STRING
HIGHSCons/Tool/MSCommon/vc.py1621 Find the MSVC product directory using the registry. Args: msvc_version: MSVC version to search for ReSTRING
HIGHSCons/Tool/MSCommon/vc.py1722Find the MSVC product directory for the given version. Args: msvc_version: str msvc version (maSTRING
HIGHSCons/Tool/MSCommon/vc.py1764Find the MSVC product directory for the given version. Args: msvc_version: str msvc version (maSTRING
HIGHSCons/Tool/MSCommon/vc.py2704 Return an msvc version and a toolset version given a version specification. This is an EXPERIMENTAL proxy STRING
Decorative Section Separators15 hits · 35 pts
SeverityFileLineSnippetContext
MEDIUMtest/Mkdir.py151#----------------------------------------STRING
MEDIUMtest/TEX/configure.py47#----------------COMMENT
MEDIUMtest/VariantDir/include-subdir.py41#-------------------------------------------------------------------------------COMMENT
MEDIUMtest/VariantDir/include-subdir.py44#-------------------------------------------------------------------------------COMMENT
MEDIUMtest/VariantDir/removed-files.py44#-------------------------------------------------------------------------------COMMENT
MEDIUMtest/VariantDir/removed-files.py47#-------------------------------------------------------------------------------COMMENT
MEDIUMtest/VariantDir/removed-files.py70#-------------------------------------------------------------------------------STRING
MEDIUMtest/VariantDir/removed-files.py72#-------------------------------------------------------------------------------STRING
MEDIUMtest/VariantDir/removed-files.py89#-------------------------------------------------------------------------------STRING
MEDIUMtest/VariantDir/removed-files.py91#-------------------------------------------------------------------------------STRING
MEDIUMSCons/Taskmaster/JobTests.py390#---------------------------------------------------------------------COMMENT
MEDIUMSCons/Taskmaster/JobTests.py547#---------------------------------------------------------------------COMMENT
MEDIUM…/Tool/docbook/docbook-xsl-1.76.1/extensions/docbook.py17# ======================================================================COMMENT
MEDIUM…/Tool/docbook/docbook-xsl-1.76.1/extensions/docbook.py216# ======================================================================COMMENT
MEDIUM…ons/Tool/docbook/docbook-xsl-1.76.1/extensions/xslt.py51# ======================================================================COMMENT
AI Slop Vocabulary22 hits · 34 pts
SeverityFileLineSnippetContext
MEDIUMbench/env.__setitem__.py117# The env_Best subclass contains the "best practices" from each ofCOMMENT
MEDIUMtest/Repository/RMIC.py58# it's just not state-of-the-art anymore.COMMENT
MEDIUMtest/Java/RMIC.py91# it's just not state-of-the-art anymore.STRING
LOWtest/Java/JARCHDIR.py87# we're going to just create the t.class file in both locations, andSTRING
MEDIUMtest/option/option-n.py172# test Configure-calls in conjunction with -nSTRING
MEDIUMtest/option/option--wuv.py35# future with a more robust getopt solution.COMMENT
LOWbin/SConsExamples.py648# now, so let's just use the simple brute force approach for the moment.COMMENT
LOWbin/scons-time.py371 # so just return it.COMMENT
LOWSCons/ActionTests.py70# for each test, they can just use the one.COMMENT
LOWSCons/BuilderTests.py63# for each test, they can just use the one.COMMENT
LOWSCons/Subst.py321 subst_proxy = thing # probably a string, just return itCODE
LOWSCons/Subst.py350 return node # probably a String, just return itCODE
LOWSCons/Util/__init__.py1382 # If no formatter found, just use default:COMMENT
LOWSCons/Platform/__init__.py218 # just return the raw command line and let the upperCOMMENT
LOWSCons/Script/SConscript.py242 # Do the sensible thing and just use theCOMMENT
LOWSCons/Variables/ListVariableTests.py122 # first, the one we just set upCOMMENT
LOWSCons/Node/FS.py1057 # We can't just use self.srcnode() straight away becauseSTRING
LOWSCons/Scanner/Prog.py67 # There are no LIBS in this environment, so just return a null list:COMMENT
LOWSCons/Tool/__init__.py184 # TODO: any reason to not just use find_spec here?COMMENT
LOWSCons/Tool/docbook/__init__.py320 # No, so simply pass target and source names throughCOMMENT
MEDIUM…ons/Tool/docbook/docbook-xsl-1.76.1/RELEASE-NOTES.html1439<p><code class="literal">Keith Fahlgren: bin/spec/epub_regressions_spec.rb; bin/spec/files/onegraphic.xinclude.xml;&#894CODE
MEDIUM…ons/Tool/docbook/docbook-xsl-1.76.1/RELEASE-NOTES.html2715<p><code class="literal">Michael(tm) Smith: extensions/saxon64/.classes/.gitignore; extensions/xalan2/.classes/com/&#894CODE
Redundant / Tautological Comments24 hits · 28 pts
SeverityFileLineSnippetContext
LOWbench/time_member.py44# Print the resultsCOMMENT
LOW⚡test/option/debug-action-timestamps.py65 # Check if difference between timestamps is equal to durationCOMMENT
LOWbin/SConsExamples.py323 # Write fileCOMMENT
LOWbin/SConsExamples.py333 # Write fileCOMMENT
LOWbin/SConsExamples.py367 # Write fileCOMMENT
LOWbin/scons-proc.py170 # Write fileSTRING
LOWSCons/Conftest.py98LogInputFiles = 1 # Set that to log the input files in case of a failed testSTRING
LOWSCons/Conftest.py99LogErrorMessages = 1 # Set that to log Conftest-generated error messagesSTRING
LOWSCons/Environment.py1626 # Check if the original looks like a dict: has .update?COMMENT
LOWSCons/Environment.py1636 # Check if the original is a list: has .append?COMMENT
LOWSCons/Environment.py2152 # Check if the original looks like a dict: has .update?COMMENT
LOWSCons/Environment.py2162 # Check if the added value is a list: has .append?COMMENT
LOWSCons/Util/__init__.py1376 # Check if suitable formatter for current logger exists:COMMENT
LOWSCons/Platform/__init__.py238 # Check if we already created the temporary file for this targetCOMMENT
LOWSCons/Script/Main.py578 # Check if parent dir to JSON_OUTPUT_FILE existsCOMMENT
LOWSCons/Node/FS.py3433 # Check if either string is now in dmap.STRING
LOWSCons/Node/FS.py3448 # Check if either string is now in dmap.STRING
LOWSCons/Tool/tar.xml73# Set TARFLAGS to create a gzip-filtered archive.COMMENT
LOWSCons/Tool/intelc.py431 # Check if we are on 64-bit linux, default to 64 then.STRING
LOWSCons/Tool/xgettext.py148 # Print message employing SCons.Action.Action for that.COMMENT
LOWSCons/Tool/xgettext.py156 # Print message employing SCons.Action.Action for that.COMMENT
LOWSCons/Tool/docbook/__init__.py56# Set this to True, to prefer xsltproc over lxmlCOMMENT
LOW…l/docbook/docbook-xsl-1.76.1/webhelp/docsrc/readme.xml422# Set this to false if you don't need a search tab.COMMENT
LOW…k/docbook-xsl-1.76.1/webhelp/docs/content/ch02s01.html89# Set this to false if you don't need a search tab.COMMENT
AI Structural Patterns17 hits · 16 pts
SeverityFileLineSnippetContext
LOWSCons/Conftest.py637CODE
LOWSCons/Action.py617CODE
LOWSCons/Builder.py379CODE
LOWSCons/Errors.py80CODE
LOWSCons/SConf.py1103CODE
LOWSCons/Scanner/__init__.py142CODE
LOWSCons/Tool/tex.py495CODE
LOWSCons/Tool/dvipdf.py68CODE
LOWSCons/Tool/dvips.py42CODE
LOWSCons/Tool/pdftex.py49CODE
LOWSCons/Tool/msvsTests.py580CODE
LOWSCons/Tool/msvsTests.py586CODE
LOWtesting/framework/TestSConsMSVS.py917CODE
LOWtesting/framework/TestSConsMSVS.py1197CODE
LOWtesting/framework/TestSConsMSVS.py1140CODE
LOWtesting/framework/TestCmd.py1078CODE
LOWtesting/framework/TestCmdTests.py152CODE
Verbosity Indicators7 hits · 13 pts
SeverityFileLineSnippetContext
LOW⚡bin/scons-proc.py401# Step 1: Creating entity files for builders, functions,...COMMENT
LOW⚡bin/scons-proc.py407# Step 2: Validating all input filesCOMMENT
LOW⚡bin/scons-proc.py415# Step 3: Creating actual documentation snippets, using theCOMMENT
LOW⚡SCons/Tool/compilation_db.xml146<!-- This variable stores the action for building a target.-->CODE
LOW⚡SCons/Tool/compilation_db.xml154<!-- This variable stores the action for building a target.-->CODE
LOW⚡SCons/Tool/compilation_db.xml162<!-- This variable stores the action for building a target.-->CODE
LOW⚡SCons/Tool/compilation_db.xml170<!-- This variable stores the action for building a target.-->CODE
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippetContext
CRITICALSCons/Tool/MSCommon/vcTests.py75 SCons.Tool.MSCommon.vc._VSWhereExecutable.reset()CODE
Slop Phrases8 hits · 8 pts
SeverityFileLineSnippetContext
LOWSCons/Tool/ninja_tool/Utils.py244 # and make sure to escape the strings to handle spaces in paths. We also will sort the resultCOMMENT
LOWSCons/Tool/docbook/docbook-xsl-1.76.1/html/param.xml6526stylsheet, don't forget to specify alsoCODE
LOW…/docbook/docbook-xsl-1.76.1/params/tex.math.in.alt.xml54stylsheet, don't forget to specify alsoCODE
LOWSCons/Tool/docbook/docbook-xsl-1.76.1/fo/param.xml1775stylsheet, don't forget to specify alsoCODE
LOWdoc/man/scons.xml3731 print("Don't forget to test the `foo' program!")CODE
LOWdoc/man/scons.xml3755 print("Don't forget to test the `foo' program!")CODE
LOWdoc/man/scons.xml3782 print("Don't forget to test the `foo' program!")CODE
LOWdoc/user/command-line.xml1945 print("Don't forget to copy `bar' to the archive!")CODE
Dead Code4 hits · 8 pts
SeverityFileLineSnippetContext
MEDIUMSCons/Tool/GettextCommon.py376CODE
MEDIUMSCons/Tool/GettextCommon.py391CODE
MEDIUMSCons/Tool/GettextCommon.py406CODE
MEDIUMSCons/Tool/GettextCommon.py421CODE
Fake / Example Data8 hits · 8 pts
SeverityFileLineSnippetContext
LOW…mplate/common/jquery/treeview/jquery.treeview.async.js33 text:"placeholder",CODE
LOW…mplate/common/jquery/treeview/jquery.treeview.async.js34 id:"placeholder",CODE
LOW…p/docs/common/jquery/treeview/jquery.treeview.async.js33 text:"placeholder",CODE
LOW…p/docs/common/jquery/treeview/jquery.treeview.async.js34 id:"placeholder",CODE
LOW…ocbook/docbook-xsl-1.76.1/roundtrip/template-pages.xml2<sl:document xmlns:sfa="http://developer.apple.com/namespaces/sfa" xmlns:sf="http://developer.apple.com/namespaces/sf" xCODE
LOW…ocbook/docbook-xsl-1.76.1/roundtrip/template-pages.xml2<sl:document xmlns:sfa="http://developer.apple.com/namespaces/sfa" xmlns:sf="http://developer.apple.com/namespaces/sf" xCODE
LOWtesting/framework/TestRuntest.py88__developer__ = 'John Doe'CODE
LOWtesting/framework/TestSCons_time.py302 tarinfo.uname = 'fake_user'STRING
Structural Annotation Overuse3 hits · 7 pts
SeverityFileLineSnippetContext
LOW⚡bin/scons-proc.py401# Step 1: Creating entity files for builders, functions,...COMMENT
LOW⚡bin/scons-proc.py407# Step 2: Validating all input filesCOMMENT
LOW⚡bin/scons-proc.py415# Step 3: Creating actual documentation snippets, using theCOMMENT
Overly Generic Function Names2 hits · 2 pts
SeverityFileLineSnippetContext
LOWSCons/EnvironmentTests.py2277 def my_function(myenv, flags, unique: bool=True) -> None:CODE
LOWSCons/Scanner/DTests.py225 def helper(self, filename, headers) -> None:STRING