AI Slop Code RIsk Monitor

INRIA/spoon

Spoon is a metaprogramming library to analyze and transform Java source code. :spoon: is made with :heart:, :beers: and :sparkles:. It parses source files to build a well-designed AST with powerful analysis and transformation API.

14.1 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for INRIA/spoon, a Java project with 1,959 GitHub stars. SynthScan examined 287,757 lines of code across 2747 source files, recording 534 pattern matches distributed across 8 syntactic categories. The legacy adjusted pattern signal is 14.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.

14.1
Adjusted Signal
14.1
Raw Pattern Score
100%
Time Factor
2026-10-11
Last Push
2.0K
Stars
Java
Language
287.8K
Lines of Code
2.7K
Files
534
Pattern Hits
2026-10-12
Scan Date
0.17
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 1.1/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 50.1/100 · HIGH

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

Agent Over-Engineering Ratio 0.1/100 · LOW

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

PR Review Velocity Impact 56.4/100 · HIGH

Which changes need focused human review? 534 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 470HIGH 2MEDIUM 2LOW 60

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 534 distinct pattern matches across 8 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.

Hallucination Indicators470 hits · 3980 pts
SeverityFileLineSnippetContext
CRITICALdoc/js/search.min.js25var t,n,r,i,o,s=[],a=z.call(arguments),u=(yt.get(this,"events")||{})[e.type]||[],l=K.event.special[e.type]||{};if(a[0]=eCODE
CRITICAL⚡…oon-smpl/src/test/java/spoon/smpl/C4JGetColorTest.java115 assertTrue(method.toString().contains("context.getResources().getColor(com.kickstarter.libs.utils.KSColorUtils.darkColCODE
CRITICAL⚡…oon-smpl/src/test/java/spoon/smpl/C4JGetColorTest.java118 assertFalse(method.toString().contains("context.getResources().getColor(com.kickstarter.libs.utils.KSColorUtils.darkCoCODE
CRITICAL⚡…oon-smpl/src/test/java/spoon/smpl/C4JGetColorTest.java119 assertTrue(method.toString().contains("ContextCompat.getColor(context, com.kickstarter.libs.utils.KSColorUtils.darkColCODE
CRITICAL⚡…oon-smpl/src/test/java/spoon/smpl/C4JGetColorTest.java128 assertTrue(method.toString().contains("context.getResources().getColor(com.kickstarter.libs.utils.KSColorUtils.lightCoCODE
CRITICAL⚡…oon-smpl/src/test/java/spoon/smpl/C4JGetColorTest.java131 assertFalse(method.toString().contains("context.getResources().getColor(com.kickstarter.libs.utils.KSColorUtils.lightCCODE
CRITICAL⚡…oon-smpl/src/test/java/spoon/smpl/C4JGetColorTest.java132 assertTrue(method.toString().contains("ContextCompat.getColor(context, com.kickstarter.libs.utils.KSColorUtils.lightCoCODE
CRITICALsrc/test/resources/compilation5/A.java88 new me.ccrama.redditslide.Activities.A.AsyncGetSubredditName().execute(name);CODE
CRITICAL⚡src/test/resources/compilation5/A.java104 me.ccrama.redditslide.Authentication.me = me.ccrama.redditslide.Authentication.reddit.me();CODE
CRITICAL⚡src/test/resources/compilation5/A.java105 me.ccrama.redditslide.Authentication.mod = me.ccrama.redditslide.Authentication.me.isMod();CODE
CRITICAL⚡src/test/resources/compilation5/A.java106 me.ccrama.redditslide.Authentication.authentication.edit().putBoolean(me.ccrama.redditslide.CODE
CRITICAL⚡src/test/resources/compilation5/A.java109 me.ccrama.redditslide.Reddit.notifications.start(getApplicationContext());CODE
CRITICAL⚡src/test/resources/compilation5/A.java111 if (me.ccrama.redditslide.Reddit.cachedData.contains("toCache")) {CODE
CRITICAL⚡src/test/resources/compilation5/A.java113 me.ccrama.redditslide.Reddit.autoCache.start(getApplicationContext());CODE
CRITICAL⚡src/test/resources/compilation5/A.java115 final java.lang.String name = me.ccrama.redditslide.Authentication.me.getFullName();CODE
CRITICAL⚡src/test/resources/compilation5/A.java117 me.ccrama.redditslide.util.LogUtil.v("AUTHENTICATED");CODE
CRITICAL⚡src/test/resources/compilation5/A.java119 if (me.ccrama.redditslide.Authentication.reddit.isAuthenticated()) {CODE
CRITICAL⚡src/test/resources/compilation5/A.java120 final java.util.Set<java.lang.String> accounts = me.ccrama.redditslide.Authentication.auCODE
CRITICAL⚡src/test/resources/compilation5/A.java125 me.ccrama.redditslide.Authentication.authentication.edit().putStringSet("accounts", CODE
CRITICALsrc/test/resources/compilation5/A.java153 comments = new me.ccrama.redditslide.Activities.A.OverviewPagerAdapter(getSupportFragmentManager());CODE
CRITICALsrc/test/resources/compilation5/A.java157 pager.setOnPageChangeListener(new android.support.v4.view.ViewPager.OnPageChangeListener() {CODE
CRITICALsrc/test/resources/compilation5/A.java195 final net.dean.jraw.models.Submission s = me.ccrama.redditslide.Authentication.reddit.getSubmission(paraCODE
CRITICALsrc/test/resources/compilation4/A.java35 android.support.design.widget.Snackbar s = android.support.design.widget.Snackbar.make(vCODE
CRITICALsrc/test/resources/compilation4/A.java54 android.support.design.widget.Snackbar s = android.support.design.widget.Snackbar.make(v, meCODE
CRITICAL…ses2/apachetestsuite/staticjava3/AllLangTestJava3.java56 suite.add(spoon.test.imports.testclasses2.apachetestsuite.enums.EnumTestSuite.suite());CODE
CRITICAL…/apachetestsuite/staticcollision/AllLangTestSuite.java56 suite.add(spoon.test.imports.testclasses2.apachetestsuite.enum2.EnumTestSuite.suite());CODE
CRITICAL…/spoon/test/query_function/VariableReferencesTest.java366 assertEquals("org.junit.jupiter.api.Assertions.assertTrue(field == 2)", stmt.toString());CODE
CRITICALsrc/test/java/spoon/test/generics/GenericsTest.java518 assertEquals("spoon.test.generics.testclasses.Tacos.makeTacos()", invocation2.toString());CODE
CRITICAL…est/java/spoon/test/fieldaccesses/FieldAccessTest.java233 String expectedLambda = "() -> {" + System.lineSeparator() + " spoon.test.fieldaccesses.testclasses.MyClass.LOG.infCODE
CRITICAL…spoon/test/variable/AccessFullyQualifiedFieldTest.java144 assertTrue(!result.contains("spoon.test.variable.testclasses.MultiBurritos.toto();"), "The result should not contain aCODE
CRITICAL…spoon/test/variable/AccessFullyQualifiedFieldTest.java146 assertTrue(!result.contains("spoon.test.variable.testclasses.ForStaticVariables.foo();"), "The result should not contaCODE
CRITICAL…spoon/test/variable/AccessFullyQualifiedFieldTest.java158 assertTrue(!result.contains("spoon.test.variable.testclasses.ForStaticVariables.foo()"), "The result should not contaiCODE
CRITICALsrc/test/java/spoon/test/casts/CastTest.java117 assertEquals("((java.lang.@spoon.test.casts.testclasses.Castings.TypeAnnotation(integer = 1)" + System.lineSeparator()CODE
CRITICALsrc/test/java/spoon/test/path/PathTest.java167 equals(new CtPathStringBuilder().fromString(".spoon.test.path.testclasses.Foo.bar(int,int)/CtParameter"),CODE
CRITICALsrc/test/java/spoon/test/path/PathTest.java173 equals(new CtPathStringBuilder().fromString(".spoon.test.path.testclasses.Foo.bar(int)/CtParameter"),CODE
CRITICAL…spoon/test/prettyprinter/DefaultPrettyPrinterTest.java262 + " localField = spoon.test.prettyprinter.testclasses.sub.TypeIdentifierCollision.ENUM.E1.ordinal();" + nlCODE
CRITICAL…t/java/spoon/test/prettyprinter/TestSniperPrinter.java283 testSniper(spoon.test.prettyprinter.testclasses.Simple.class.getName(), type -> {CODE
CRITICAL…prettyprinter/testclasses/TypeIdentifierCollision.java23 localField = spoon.test.prettyprinter.testclasses.sub.TypeIdentifierCollision.ENUM.E1.ordinal();CODE
CRITICALsrc/test/java/spoon/test/template/TemplateTest.java670 assertEquals("spoon.test.template.testclasses.logger.Logger.exit(\"enter\")", aTry.getFinalizer().getStatement(0).toStCODE
CRITICALsrc/test/java/spoon/test/template/TemplateTest.java672 assertEquals("spoon.test.template.testclasses.logger.Logger.enter(\"Logger\", \"enter\")", aTry.getBody().getStatementCODE
CRITICALsrc/test/java/spoon/test/template/TemplateTest.java934 assertEquals("java.lang.System.out.println(spoon.test.template.testclasses.Params.value1())", result.getMethodsByNameCODE
CRITICALsrc/test/java/spoon/test/template/TemplateTest.java1119 assertEquals("o = spoon.test.template.TypeReferenceClassAccess.Example.currentTimeMillis()", method.getBody().getStateCODE
CRITICAL…t/java/spoon/test/template/TemplateEnumAccessTest.java47 assertEquals("java.lang.annotation.ElementType.FIELD.name()", resultKlass.getMethod("method").getBody().getStatement(0CODE
CRITICALsrc/test/java/spoon/test/template/PatternTest.java1579 assertEquals("spoon.test.template.testclasses.logger.Logger.exit(\"enter\")", aTry.getFinalizer().getStatement(0).toStCODE
CRITICALsrc/test/java/spoon/test/template/PatternTest.java1581 assertEquals("spoon.test.template.testclasses.logger.Logger.enter(\"Logger\", \"enter\")", aTry.getBody().getStatementCODE
CRITICALsrc/test/java/spoon/test/annotation/AnnotationTest.java1273 assertTrue(classContent.contains("@spoon.test.annotation.testclasses.repeatable.Tag(\"machin\")"), "Content of the filCODE
CRITICALsrc/test/java/spoon/test/annotation/AnnotationTest.java1274 assertTrue(classContent.contains("@spoon.test.annotation.testclasses.repeatable.Tag(\"truc\")"), "Content of the file:CODE
CRITICALsrc/test/java/spoon/test/annotation/AnnotationTest.java1304 assertTrue(classContent.contains("@spoon.test.annotation.testclasses.repeatable.Tag(\"foo\")"), "Content of the file: CODE
CRITICALsrc/test/java/spoon/test/annotation/AnnotationTest.java1305 assertTrue(classContent.contains("@spoon.test.annotation.testclasses.repeatable.Tag(\"bar\")"), "Content of the file: CODE
CRITICALsrc/test/java/spoon/test/annotation/AnnotationTest.java1326 assertTrue(classContent.contains("@spoon.test.annotation.testclasses.repeatandarrays.TagArrays({ \"machin\", \"truc\" CODE
CRITICALsrc/test/java/spoon/test/annotation/AnnotationTest.java1327 assertTrue(classContent.contains("@spoon.test.annotation.testclasses.repeatandarrays.TagArrays({ \"truc\", \"bidule\" CODE
CRITICALsrc/test/java/spoon/test/annotation/AnnotationTest.java1355 assertTrue(classContent.contains("@spoon.test.annotation.testclasses.repeatandarrays.TagArrays(\"foo\")"), "Content ofCODE
CRITICALsrc/test/java/spoon/test/annotation/AnnotationTest.java1356 assertTrue(classContent.contains("@spoon.test.annotation.testclasses.repeatandarrays.TagArrays(\"bar\")"), "Content ofCODE
CRITICALsrc/test/java/spoon/test/annotation/AnnotationTest.java1372 assertTrue(methodContent.contains("@spoon.test.annotation.testclasses.notrepeatable.StringAnnot(\"foo\")"), "Content: CODE
CRITICALsrc/test/java/spoon/test/imports/ImportTest.java228 assertEquals("new spoon.test.imports.testclasses.SubClass.Item(\"\")", ctConstructorCall.toString());CODE
CRITICALsrc/test/java/spoon/test/imports/ImportTest.java234 + " new spoon.test.imports.testclasses.SubClass.Item(\"\");"+ System.lineSeparator() + " }"CODE
CRITICALsrc/test/java/spoon/test/imports/ImportTest.java1141 assertThat("The call to the last EnumTestSuite should be in FQN", output, containsString("suite.add(spoon.test.importsCODE
CRITICALsrc/test/java/spoon/test/imports/ImportTest.java1171 assertThat("The call to the last EnumTestSuite should be in FQN", output, containsString("suite.add(spoon.test.importsCODE
CRITICALsrc/test/java/spoon/test/imports/ImportTest.java1471 " java.lang.System.out.println(spoon.test.imports.testclasses.JavaLongUse.method());" + nl +CODE
CRITICALsrc/test/java/spoon/test/arrays/ArraysTest.java54 assertEquals("@spoon.test.arrays.testclasses.ArrayClass.TypeAnnotation(integer = 1)", arrayTypeReference.getArrayType(CODE
410 more matches not shown…
Over-Commented Block38 hits · 38 pts
SeverityFileLineSnippetContext
LOW.github/workflows/scorecards.yml41 persist-credentials: falseCOMMENT
LOWdoc/js/jquery.shuffle.min.js941 // could fit, ignoring the current positions of items.COMMENT
LOWdoc/jenkins/build.sh1#!/bin/bashCOMMENT
LOWspoon-smpl/src/main/java/spoon/smpl/SmPLParser.java141COMMENT
LOWspoon-smpl/src/main/java/spoon/smpl/SmPLParser.java161 //COMMENT
LOWsrc/test/resources/noclasspath/FileIO.java441 // newppt.ppt_name.setVisibility("public");COMMENT
LOWsrc/test/resources/noclasspath/FileIO.java621 // COMPARABILITY TESTCOMMENT
LOWsrc/test/resources/noclasspath/FileIO.java901 all_program_points = all_program_points && is_program_point;COMMENT
LOWsrc/test/resources/noclasspath/FileIO.java1401 // is true and isCombinedExitPoint() is false. "Combined" exit pointsCOMMENT
LOWsrc/test/resources/noclasspath/Daikon.java361 * calculated by joining the invariants from each of their childrenCOMMENT
LOWsrc/test/resources/noclasspath/Daikon.java1961 // continue;COMMENT
LOWsrc/test/resources/noclasspath/Daikon.java2181// /**COMMENT
LOWsrc/test/resources/noclasspath/Solver.java821 // without limitation the rights to use, copy, modify, merge, publish,COMMENT
LOWsrc/test/resources/variable/PropPanelUseCase_1.40.java1// $Id: PropPanelUseCase.java,v 1.40 2003-12-06 07:56:44 mkl Exp $COMMENT
LOWsrc/test/resources/variable/PropPanelUseCase_1.40.java21// PROVIDED HEREUNDER IS ON AN "AS IS" BASIS, AND THE UNIVERSITY OFCOMMENT
LOWsrc/test/resources/comment/MarkdownCommentExamples.java21 ///COMMENT
LOWsrc/test/resources/spoon/test/api/CommentedClass.java1//package spoon.test.api.testclasses;COMMENT
LOWsrc/test/java/spoon/test/generics/GenericsTest.java901 + "X"COMMENT
LOW…t/java/spoon/test/ctType/testclasses/SubtypeModel.java61 listAll = listExtendsY;COMMENT
LOW…t/java/spoon/test/ctType/testclasses/SubtypeModel.java101// listExtendsY = listExtendsX; COMMENT
LOWsrc/test/java/spoon/test/module/TestModule.java381 }COMMENT
LOWsrc/test/java/spoon/test/template/PatternTest.java601 }COMMENT
LOW…n/test/architecture/SpoonArchitectureEnforcerTest.java281 // and crashes with a dirty exceptionCOMMENT
LOW…n/test/architecture/SpoonArchitectureEnforcerTest.java301// @OverrideCOMMENT
LOWsrc/test/java/spoon/test/factory/FactoryTest.java201 // so we remove that test in order to proceed with other key features with strong contracts (incl. wrt to parents)COMMENT
LOWsrc/test/java/spoon/test/factory/FactoryTest.java221// // Feed some new inputResourcesCOMMENT
LOW…oon/testing/assertions/CtReferenceAssertInterface.java41 // is implemented.COMMENT
LOW…sitor/filter/PotentialVariableDeclarationFunction.java221 }COMMENT
LOW…sitor/filter/PotentialVariableDeclarationFunction.java241 //COMMENT
LOW…sitor/filter/PotentialVariableDeclarationFunction.java261 // CtBinaryOperator &&COMMENT
LOW…sitor/filter/PotentialVariableDeclarationFunction.java281 //COMMENT
LOW…sitor/filter/PotentialVariableDeclarationFunction.java601 // FIXME: The JLS states for enhanced for statements:COMMENT
LOW…sitor/filter/PotentialVariableDeclarationFunction.java621 // The generated definition for the variable might introduce a pattern variable, but this does not seem possibleCOMMENT
LOW…sitor/filter/PotentialVariableDeclarationFunction.java701 operator.getLeftHandOperand() == child ? operator.getRightHandOperand() : operator.getLeftHandOperand();COMMENT
LOWsrc/main/java/spoon/reflect/factory/PackageFactory.java161 // it were ever allowed) does not allow overlapping packages, one of them will be a syntheticCOMMENT
LOW…ort/sniper/internal/AbstractSourceFragmentPrinter.java61 // We DO NOT want to print spaces between `index` and `prevIndex` in the case that thereCOMMENT
LOW…in/java/spoon/support/compiler/jdt/JDTTreeBuilder.java481 }COMMENT
LOW…in/java/spoon/support/compiler/jdt/ContextBuilder.java401COMMENT
Structural Annotation Overuse7 hits · 16 pts
SeverityFileLineSnippetContext
LOW⚡doc/architecture_test.md92 // Step 1: create modelCOMMENT
LOW⚡doc/architecture_test.md98 // Step 3: Remove fields not matching conditions. Our conditions here are:COMMENT
LOW⚡doc/architecture_test.md105 // Step 4: Query the model for all fieldReadsCOMMENT
LOW⚡doc/architecture_test.md110 // Step 5: Query every fieldRead for there declaring fieldCOMMENT
LOW⚡doc/architecture_test.md115 // Step 6: Lookup every field in the set. The set contains all fields, that have a read.COMMENT
LOW⚡doc/architecture_test.md120 // Step 7: Remove the fields having a read from the set of fields.COMMENT
LOW⚡doc/architecture_test.md122 // Step 8: Lets compare our result. if the set is empty, every field has a read, otherwise print the fields without COMMENT
Cross-Language Confusion2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHspoon-smpl/tools/gen-e2e-testsuite.py86 if (results.size() > 0 && rule.getMethodsAdded().size() > 0) {CODE
HIGHspoon-smpl/tools/gen-e2e-testsuite.py92 assertEquals(expected.toString(), input.toString());CODE
Hyper-Verbose Identifiers7 hits · 6 pts
SeverityFileLineSnippetContext
LOWdoc/js/jekyll-search.js1!function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a="function"==typeof require&&require;if(!u&&a)return a(o,!0)CODE
LOWchore/check-javadoc-regressions.py61def print_quality_check_not_parseable_error():CODE
LOWchore/check-javadoc-regressions.py119def find_added_violation_lines(reference: 'Counter[str]', other: 'Counter[str]') -> 'Counter[str]':CODE
LOWchore/check-javadoc-regressions.py176def command_compare_with_branch(target_branch: str) -> None:CODE
LOWchore/check-javadoc-regressions.py196def handle_compare_with_branch_output(target_branch: str, reference_output: str, other_output: str):CODE
LOWchore/check-javadoc-regressions.py230def print_status_deteriorated(reference_output: str, other_output: str):STRING
LOWchore/check-javadoc-regressions.py238def command_filtered_quality_check_errors(regex_str: str) -> None:STRING
Unused Imports6 hits · 6 pts
SeverityFileLineSnippetContext
LOWdoc/jenkins/inject_spoon_snapshot.py13CODE
LOWchore/check-links-in-doc.py6CODE
LOWspoon-smpl/tools/smplgui.py10CODE
LOWspoon-smpl/tools/smplgui.py14CODE
LOWspoon-smpl/tools/smplgui.py15CODE
LOWspoon-smpl/tools/smplgui.py17CODE
Excessive Try-Catch Wrapping2 hits · 2 pts
SeverityFileLineSnippetContext
MEDIUMchore/check-javadoc-regressions.py316 print("Error executing native command:", e.cmd)STRING
MEDIUMchore/check-javadoc-regressions.py317 print("Error output:")STRING
Deep Nesting2 hits · 2 pts
SeverityFileLineSnippetContext
LOWchore/check-links-in-doc.py40CODE
LOWspoon-smpl/tools/smplgui.py92CODE