JRuby, an implementation of Ruby on the JVM
This report summarizes scanner evidence for jruby/jruby, a Ruby project with 3,925 GitHub stars. SynthScan examined 1,131,299 lines of code across 9522 source files, recording 993 pattern matches distributed across 13 syntactic categories. The legacy adjusted pattern signal is 2.0 (Low 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.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 832 finding(s).
Are imports declared and package/API names verified? 124 finding(s).
Are wrappers, guards, and repeated structures necessary? 196 finding(s).
Which changes need focused human review? 993 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 993 distinct pattern matches across 13 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 |
|---|---|---|---|---|
| CRITICAL | …/test/java/org/jruby/embed/ScriptingContainerTest.java | 2551 | org.jruby.embed.util.SystemPropertyCatcher.setClassLoader(instance); | CODE |
| CRITICAL | …/test/java/org/jruby/embed/ScriptingContainerTest.java | 2556 | org.jruby.embed.util.SystemPropertyCatcher.setClassLoader(instance); | CODE |
| CRITICAL⚡ | …test/java/org/jruby/exceptions/TestRaiseException.java | 231 | // at org.jruby.java.invokers.InstanceMethodInvoker.call(org/jruby/java/invokers/InstanceMethodInvoker.java:3 | COMMENT |
| CRITICAL⚡ | …test/java/org/jruby/exceptions/TestRaiseException.java | 232 | // at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(org/jruby/runtime/callsite/CachingCallSite.java | COMMENT |
| CRITICAL⚡ | …test/java/org/jruby/exceptions/TestRaiseException.java | 233 | // at org.jruby.runtime.callsite.CachingCallSite.call(org/jruby/runtime/callsite/CachingCallSite.java:131) | COMMENT |
| CRITICAL⚡ | …test/java/org/jruby/exceptions/TestRaiseException.java | 239 | // at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(org/jruby/runtime/callsite/CachingCallSite.java | COMMENT |
| CRITICAL⚡ | …test/java/org/jruby/exceptions/TestRaiseException.java | 240 | // at org.jruby.runtime.callsite.CachingCallSite.callBlock(org/jruby/runtime/callsite/CachingCallSite.java:14 | COMMENT |
| CRITICAL⚡ | …test/java/org/jruby/exceptions/TestRaiseException.java | 241 | // at org.jruby.runtime.callsite.CachingCallSite.call(org/jruby/runtime/callsite/CachingCallSite.java:145) | COMMENT |
| CRITICAL⚡ | …test/java/org/jruby/exceptions/TestRaiseException.java | 243 | // at org.jruby.internal.runtime.methods.CompiledIRMethod.invokeExact(org/jruby/internal/runtime/methods/Comp | COMMENT |
| CRITICAL⚡ | …test/java/org/jruby/exceptions/TestRaiseException.java | 244 | // at org.jruby.internal.runtime.methods.CompiledIRMethod.call(org/jruby/internal/runtime/methods/CompiledIRM | COMMENT |
| CRITICAL⚡ | …test/java/org/jruby/exceptions/TestRaiseException.java | 245 | // at org.jruby.internal.runtime.methods.DynamicMethod.call(org/jruby/internal/runtime/methods/DynamicMethod. | COMMENT |
| CRITICAL⚡ | …test/java/org/jruby/exceptions/TestRaiseException.java | 246 | // at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(org/jruby/runtime/callsite/CachingCallSite.java | COMMENT |
| CRITICAL⚡ | …test/java/org/jruby/exceptions/TestRaiseException.java | 247 | // at org.jruby.runtime.callsite.CachingCallSite.call(org/jruby/runtime/callsite/CachingCallSite.java:131) | COMMENT |
| CRITICAL | …test/java/org/jruby/exceptions/TestRaiseException.java | 277 | // at org.jruby.java.invokers.InstanceMethodInvoker.call(org/jruby/java/invokers/InstanceMethodInvoker.java:3 | COMMENT |
| CRITICAL | core/src/main/java/org/jruby/RubyClass.java | 1608 | output.writeString(org.jruby.runtime.marshal.MarshalStream.getPathFromClass(clazz)); | CODE |
| CRITICAL | core/src/main/java/org/jruby/RubyClass.java | 1620 | return org.jruby.runtime.marshal.UnmarshalStream.getClassFromPath(input.getRuntime(), name); | CODE |
| CRITICAL | core/src/main/java/org/jruby/RubySignal.java | 58 | return org.jruby.util.SunSignalFacade.class.getConstructor().newInstance(); | CODE |
| CRITICAL | core/src/main/java/org/jruby/RubyModule.java | 4310 | output.writeString(org.jruby.runtime.marshal.MarshalStream.getPathFromClass(module)); | CODE |
| CRITICAL | core/src/main/java/org/jruby/RubyModule.java | 4323 | return org.jruby.runtime.marshal.UnmarshalStream.getModuleFromPath(input.getRuntime(), name); | CODE |
| CRITICAL | core/src/main/java/org/jruby/util/io/Sockaddr.java | 171 | throw org.jruby.ext.socket.ResolutionError.newNameNotKnown(context); | CODE |
| CRITICAL⚡ | …main/java/org/jruby/ir/persistence/IRReaderStream.java | 525 | case BOOLEAN: return org.jruby.ir.operands.Boolean.decode(this); | CODE |
| CRITICAL⚡ | …main/java/org/jruby/ir/persistence/IRReaderStream.java | 533 | case FLOAT: return org.jruby.ir.operands.Float.decode(this); | CODE |
| CRITICAL⚡ | …main/java/org/jruby/ir/persistence/IRReaderStream.java | 538 | case INTEGER: return org.jruby.ir.operands.Integer.decode(this); | CODE |
| CRITICAL | …/src/main/java/org/jruby/ext/digest/DigestLibrary.java | 39 | org.jruby.ext.digest.RubyDigest.createDigest(context); | CODE |
| CRITICAL | core/src/main/java/org/jruby/ext/digest/MD5.java | 40 | org.jruby.ext.digest.RubyDigest.createDigestMD5(context); | CODE |
| CRITICAL | core/src/main/java/org/jruby/ext/digest/RMD160.java | 41 | org.jruby.ext.digest.RubyDigest.createDigestRMD160(context); | CODE |
| CRITICAL | core/src/main/java/org/jruby/ext/digest/SHA1.java | 40 | org.jruby.ext.digest.RubyDigest.createDigestSHA1(context); | CODE |
| CRITICAL | core/src/main/java/org/jruby/ext/digest/SHA2.java | 40 | org.jruby.ext.digest.RubyDigest.createDigestSHA2(context); | CODE |
| CRITICAL | …/main/java/org/jruby/ext/ffi/jffi/VariadicInvoker.java | 102 | final Type returnType = org.jruby.ext.ffi.Util.findType(context, rbReturnType, typeMap); | CODE |
| CRITICAL | …c/main/java/org/jruby/ext/ffi/jffi/DataConverters.java | 227 | return new org.jruby.ext.ffi.jffi.Function(context.runtime, Access.getClass(context, "FFI", "Function"), | CODE |
| CRITICAL | …ava/org/jruby/ext/ffi/jffi/FastIntMethodGenerator.java | 74 | com.kenai.jffi.Invoker.class.getDeclaredMethod("invokeI6", CallContext.class, long.class, | CODE |
| CRITICAL | …org/jruby/ext/ffi/jffi/FastNumericMethodGenerator.java | 74 | com.kenai.jffi.Invoker.class.getDeclaredMethod("invokeN6", CallContext.class, long.class, | CODE |
| CRITICAL | …va/org/jruby/ext/ffi/jffi/FastLongMethodGenerator.java | 75 | com.kenai.jffi.Invoker.class.getDeclaredMethod("invokeL6", CallContext.class, long.class, | CODE |
| CRITICAL | core/src/main/java/org/jruby/ext/ffi/jffi/Function.java | 89 | parameterTypes[i] = org.jruby.ext.ffi.Util.findType(context, paramTypes.entry(i)); | CODE |
| CRITICAL | core/src/main/java/org/jruby/ext/ffi/jffi/Function.java | 105 | Type returnType = org.jruby.ext.ffi.Util.findType(context, args[0]); | CODE |
| CRITICAL⚡ | …rc/main/java/org/jruby/ext/socket/RubyBasicSocket.java | 615 | int F_GETFL = jnr.constants.platform.Fcntl.F_GETFL.intValue(); | CODE |
| CRITICAL⚡ | …rc/main/java/org/jruby/ext/socket/RubyBasicSocket.java | 616 | int F_SETFL = jnr.constants.platform.Fcntl.F_SETFL.intValue(); | CODE |
| CRITICAL⚡ | …rc/main/java/org/jruby/ext/socket/RubyBasicSocket.java | 617 | int O_NONBLOCK = jnr.constants.platform.OpenFlags.O_NONBLOCK.intValue(); | CODE |
| CRITICAL | …ternal/runtime/methods/InvokeDynamicMethodFactory.java | 127 | org.jruby.runtime.Signature.OPTIONAL.encode(), | CODE |
| CRITICAL | …ava/org/jruby/parser/prism/parser/ParserPrismBase.java | 39 | protected boolean parserTiming = org.jruby.util.cli.Options.PARSER_SUMMARY.load(); | CODE |
| CRITICAL⚡ | core/src/main/java/org/jruby/javasupport/Java.java | 126 | org.jruby.javasupport.ext.Kernel.define(context, Kernel); | CODE |
| CRITICAL⚡ | core/src/main/java/org/jruby/javasupport/Java.java | 127 | org.jruby.javasupport.ext.Module.define(context, Module); | CODE |
| CRITICAL⚡ | core/src/main/java/org/jruby/javasupport/Java.java | 129 | org.jruby.javasupport.ext.JavaLang.define(context, Enumerable, Comparable); | CODE |
| CRITICAL⚡ | core/src/main/java/org/jruby/javasupport/Java.java | 130 | org.jruby.javasupport.ext.JavaLangReflect.define(context); | CODE |
| CRITICAL⚡ | core/src/main/java/org/jruby/javasupport/Java.java | 131 | org.jruby.javasupport.ext.JavaUtil.define(context, Enumerable); | CODE |
| CRITICAL⚡ | core/src/main/java/org/jruby/javasupport/Java.java | 132 | org.jruby.javasupport.ext.JavaUtilRegex.define(context); | CODE |
| CRITICAL⚡ | core/src/main/java/org/jruby/javasupport/Java.java | 133 | org.jruby.javasupport.ext.JavaIo.define(context); | CODE |
| CRITICAL⚡ | core/src/main/java/org/jruby/javasupport/Java.java | 134 | org.jruby.javasupport.ext.JavaNio.define(context); | CODE |
| CRITICAL⚡ | core/src/main/java/org/jruby/javasupport/Java.java | 135 | org.jruby.javasupport.ext.JavaNet.define(context); | CODE |
| CRITICAL⚡ | core/src/main/java/org/jruby/javasupport/Java.java | 136 | org.jruby.javasupport.ext.JavaMath.define(context); | CODE |
| CRITICAL⚡ | core/src/main/java/org/jruby/javasupport/Java.java | 137 | org.jruby.javasupport.ext.JavaTime.define(context); | CODE |
| CRITICAL | core/src/main/java/org/jruby/javasupport/Java.java | 548 | proxy.getMetaClass().addMethod(context, "inherited", new org.jruby.internal.runtime.methods.JavaMethod(proxy | CODE |
| CRITICAL | test/jruby/test_instantiating_interfaces.rb | 348 | counter = java.util.concurrent.atomic.AtomicInteger.new(0) | CODE |
| CRITICAL | test/jruby/test_coverage.rb | 463 | span = org.jruby.ast.Node.java_class.declared_field('span') | CODE |
| CRITICAL | test/jruby/test_higher_javasupport.rb | 964 | value1_field = java.lang.reflect.Method.java_class.field(:DECLARED) | CODE |
| CRITICAL | test/jruby/test_higher_javasupport.rb | 1180 | javax.xml.xpath.XPathFactory.newInstance.newXPath.setNamespaceContext(NSCT.new(1)) | CODE |
| CRITICAL | spec/java_integration/types/retrieval_spec.rb | 133 | expect( java.awt.font.TextLayout.constants.map(&:to_sym) ).to include :CaretPolicy | CODE |
| CRITICAL | spec/regression/JRUBY-6324_random_srand_spec.rb | 5 | rt = Java.org.jruby.embed.ScriptingContainer.new(org.jruby.embed.LocalContextScope::SINGLETHREAD) | CODE |
| CRITICAL | spec/regression/JRUBY-6324_random_srand_spec.rb | 10 | rt = Java.org.jruby.embed.ScriptingContainer.new(org.jruby.embed.LocalContextScope::SINGLETHREAD) | CODE |
| CRITICAL | spec/compiler/skinnymethodadapter_spec.rb | 7 | let(:instance_methods) { org.jruby.compiler.impl.SkinnyMethodAdapter.instance_methods.map(&:to_s) } | CODE |
| 10 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | bench/bench_wide_finder.rb | 21 | } | COMMENT |
| LOW | bench/bench_java_subclass_ctor.rb | 1 | # Micro-benchmark for constructing Ruby subclasses of a Java class | COMMENT |
| LOW | bench/mri/bm_so_meteor_contest.rb | 1 | #!/usr/bin/env ruby | COMMENT |
| LOW | bench/mri/bm_so_meteor_contest.rb | 101 | # 0 0 0 0 0 x [positions 30-35] | COMMENT |
| LOW | bench/mri/bm_so_meteor_contest.rb | 221 | # important: the outbound board string is 5 wide, the normal location notation is six wide (padded) | COMMENT |
| LOW | bench/mri/bm_so_meteor_contest.rb | 261 | # support function that create three utility maps: | COMMENT |
| LOW | bench/mri/bm_so_meteor_contest.rb | 301 | # determines if a board is punable, meaning that there is no possibility that it | COMMENT |
| LOW | bench/mri/bm_so_meteor_contest.rb | 321 | # three values at the start of an iteration: | COMMENT |
| LOW | bench/mri/bm_so_meteor_contest.rb | 441 | # the reason for it is basically to force a particular ordering on how the rotations are tested for | COMMENT |
| LOW | …/test/java/org/jruby/embed/ScriptingContainerTest.java | 2621 | container.put("@message", "That's the way you are."); | COMMENT |
| LOW | …/test/java/org/jruby/embed/ScriptingContainerTest.java | 2641 | // // create a scripting container and run a basic script that uses the timeout module, expecting an exception | COMMENT |
| LOW | …re/src/test/java/org/jruby/util/ShellLauncherTest.java | 41 | // public void testScriptThreadProcessPuts() { | COMMENT |
| LOW | …test/java/org/jruby/exceptions/TestRaiseException.java | 221 | } | COMMENT |
| LOW | …test/java/org/jruby/exceptions/TestRaiseException.java | 241 | // at org.jruby.runtime.callsite.CachingCallSite.call(org/jruby/runtime/callsite/CachingCallSite.java:145) | COMMENT |
| LOW | …test/java/org/jruby/exceptions/TestRaiseException.java | 261 | COMMENT | |
| LOW | core/src/main/java/org/jruby/RubyFile.java | 181 | } | COMMENT |
| LOW | core/src/main/java/org/jruby/RubyFile.java | 1921 | // if (nextSlash != -1) { | COMMENT |
| LOW | core/src/main/java/org/jruby/RubyHashLinkedBuckets.java | 101 | // Design overview: | COMMENT |
| LOW | core/src/main/java/org/jruby/RubyHash.java | 61 | COMMENT | |
| LOW | core/src/main/java/org/jruby/RubyHash.java | 81 | // to the next RubyHashEntry is preserved so that iterators are not | COMMENT |
| LOW | core/src/main/java/org/jruby/util/MurmurHash.java | 1 | package org.jruby.util; | COMMENT |
| LOW | core/src/main/java/org/jruby/util/io/OpenFile.java | 741 | //// struct stat buf; | COMMENT |
| LOW | core/src/main/java/org/jruby/util/io/OpenFile.java | 2341 | // if (!rb_w32_fd_is_text(fptr->fd)) { | COMMENT |
| LOW | core/src/main/java/org/jruby/util/io/OpenFile.java | 2541 | // !(fptr->encs.ecflags & ECONV_NEWLINE_DECORATOR_MASK)) { | COMMENT |
| LOW | core/src/main/java/org/jruby/util/io/OpenFile.java | 2941 | COMMENT | |
| LOW | …re/src/main/java/org/jruby/util/io/SelectExecutor.java | 81 | // if (readBlocking[i] != null) { | COMMENT |
| LOW | …re/src/main/java/org/jruby/util/io/SelectExecutor.java | 421 | COMMENT | |
| LOW | …re/src/main/java/org/jruby/util/io/SelectExecutor.java | 441 | // rb_fd_dup(except, &orig_except); | COMMENT |
| LOW | core/src/main/java/org/jruby/util/io/PopenExecutor.java | 601 | // TODO: Windows | COMMENT |
| LOW | core/src/main/java/org/jruby/util/io/PopenExecutor.java | 941 | rlim.rlim_max = RubyNumeric.num2int(((RubyArray)elt).eltOk(2)); | COMMENT |
| LOW | core/src/main/java/org/jruby/util/io/PopenExecutor.java | 961 | // BlockCallback SaveEnvBody = new BlockCallback() { | COMMENT |
| LOW | …org/jruby/util/collections/NonBlockingHashMapLong.java | 121 | COMMENT | |
| LOW | …org/jruby/util/collections/NonBlockingHashMapLong.java | 361 | // --- help_copy ----------------------------------------------------------- | COMMENT |
| LOW | …org/jruby/util/collections/NonBlockingHashMapLong.java | 381 | COMMENT | |
| LOW | …org/jruby/util/collections/NonBlockingHashMapLong.java | 401 | // The 'next' CHM - created during a resize operation. This represents | COMMENT |
| LOW | …org/jruby/util/collections/NonBlockingHashMapLong.java | 541 | // Claim the zero key-slot | COMMENT |
| LOW | …org/jruby/util/collections/NonBlockingHashMapLong.java | 581 | // --- | COMMENT |
| LOW | …org/jruby/util/collections/NonBlockingHashMapLong.java | 641 | // decided the table must be full, then always the estimate_sum must be | COMMENT |
| LOW | …org/jruby/util/collections/NonBlockingHashMapLong.java | 741 | //notifyAll(); // Wake up any sleepers | COMMENT |
| LOW | …org/jruby/util/collections/NonBlockingHashMapLong.java | 821 | if( !copy_all && panic_start == -1 ) // No panic? | COMMENT |
| LOW | …org/jruby/util/collections/NonBlockingHashMapLong.java | 881 | } | COMMENT |
| LOW | core/src/main/java/org/jruby/ir/IRFlags.java | 1 | package org.jruby.ir; | COMMENT |
| LOW | core/src/main/java/org/jruby/ir/IRFlags.java | 21 | // end | COMMENT |
| LOW | …uby/ir/dataflow/analyses/UnboxableOpsAnalysisNode.java | 521 | COMMENT | |
| LOW | …y/ir/dataflow/analyses/StoreLocalVarPlacementNode.java | 81 | Operand o = ((ClosureAcceptingInstr)i).getClosureArg(); | COMMENT |
| LOW | …rc/main/java/org/jruby/ir/instructions/BreakInstr.java | 21 | // Like a return instruction, it exits a scope and returns a value | COMMENT |
| LOW | …rc/main/java/org/jruby/ir/instructions/BreakInstr.java | 61 | if (info instanceof SimpleCloneInfo) return new BreakInstr(getReturnValue().cloneForInlining(info), scopeId); | COMMENT |
| LOW | core/src/main/java/org/jruby/ir/targets/JVMVisitor.java | 3101 | public void Self(Self self) { | COMMENT |
| LOW | …org/jruby/ir/targets/indy/ResolvedSuperInvokeSite.java | 41 | default: | COMMENT |
| LOW | …org/jruby/ir/targets/indy/ResolvedSuperInvokeSite.java | 61 | // } | COMMENT |
| LOW | …org/jruby/ir/targets/indy/ResolvedSuperInvokeSite.java | 81 | // } | COMMENT |
| LOW | …rc/main/java/org/jruby/ir/targets/indy/InvokeSite.java | 1341 | // DynamicMethod innerMethod = alias.getRealMethod(); | COMMENT |
| LOW | …c/main/java/org/jruby/ir/runtime/IRRuntimeHelpers.java | 1301 | // Top-level-scripts are special but, not if binding-evals are in force! | COMMENT |
| LOW | …c/main/java/org/jruby/ir/runtime/IRRuntimeHelpers.java | 1321 | // be covered by the (scopeType == IRScopeType.INSTANCE_METHOD) | COMMENT |
| LOW | …in/java/org/jruby/ir/passes/LocalOptimizationPass.java | 141 | instrs[i] = newInstr; | COMMENT |
| LOW | …java/org/jruby/ir/operands/TemporaryLocalVariable.java | 41 | } | COMMENT |
| LOW | core/src/main/java/org/jruby/ir/operands/Splat.java | 61 | } | COMMENT |
| LOW | core/src/main/java/org/jruby/ir/builder/IRBuilder.java | 121 | COMMENT | |
| LOW | core/src/main/java/org/jruby/ir/builder/IRBuilder.java | 521 | addInstr(new ExceptionRegionEndMarkerInstr()); | COMMENT |
| LOW | core/src/main/java/org/jruby/ir/builder/IRBuilder.java | 1781 | // If we return 'value' this will get translated to: | COMMENT |
| 457 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | core/src/main/java/org/jruby/ext/date/RubyDate.java | 369 | # Create a new Date object for the Civil Date specified by | COMMENT |
| MEDIUM | core/src/main/java/org/jruby/ext/date/RubyDate.java | 776 | # Create a new Date object representing today. | COMMENT |
| MEDIUM | core/src/main/java/org/jruby/ext/date/RubyDateTime.java | 147 | # Create a new DateTime object corresponding to the specified | COMMENT |
| MEDIUM | core/src/main/java/org/jruby/ext/date/RubyDateTime.java | 381 | # Create a new DateTime object corresponding to the specified | COMMENT |
| MEDIUM | core/src/main/java/org/jruby/ext/date/RubyDateTime.java | 433 | # Create a new DateTime object representing the current time. | COMMENT |
| MEDIUM | core/src/main/ruby/jruby/kernel/proc.rb | 64 | # Create a singleton class based on Proc that re-defines these methods but | COMMENT |
| MEDIUM | test/jruby/test_require_once_foo.rb | 1 | # This file is used by test_require_once to ensure that concurrent requires at least do | COMMENT |
| MEDIUM | test/jruby/test_file.rb | 956 | # Create a ruby file that sets a global variable to its view of __FILE__ | COMMENT |
| MEDIUM | test/mri/test_timeout.rb | 278 | # Create the timeout thread under a handle_interrupt(:never) | COMMENT |
| MEDIUM | test/mri/test_timeout.rb | 325 | # Create the timeout thread under a handle_interrupt(:never) | COMMENT |
| MEDIUM | test/mri/rubygems/test_gem_request.rb | 22 | # This method is same code as Base64.encode64 | COMMENT |
| MEDIUM | test/mri/rubygems/test_gem_installer.rb | 1587 | # Create the non-user ext dir | COMMENT |
| MEDIUM | test/mri/json/json_encoding_test.rb | 137 | # Create a large array with repeated elements | COMMENT |
| MEDIUM | test/mri/json/json_encoding_test.rb | 147 | # Create a large hash | COMMENT |
| MEDIUM | test/mri/fiber/scheduler.rb | 301 | # This method is invoked from a thread or fiber to unblock a fiber that is | COMMENT |
| MEDIUM | test/mri/fiber/scheduler.rb | 552 | # This method is invoked when the thread is exiting. | COMMENT |
| MEDIUM | test/mri/fiber/test_thread.rb | 109 | # Create a fiber that will join a long-running thread: | COMMENT |
| MEDIUM | test/mri/win32/test_registry.rb | 20 | # Create a new registry key per test in an atomic way, which is deleted on teardown. | COMMENT |
| MEDIUM | test/mri/ruby/test_compile_prism.rb | 3 | # This file is organized to match itemization in https://github.com/ruby/prism/issues/1335 | COMMENT |
| MEDIUM | test/mri/ruby/test_box.rb | 800 | # Define a constant in the box via eval | COMMENT |
| MEDIUM | test/mri/ruby/test_box.rb | 811 | # Define a class in the box via eval | COMMENT |
| MEDIUM | test/mri/ruby/test_method.rb | 1753 | # The following code emulate this listing. | COMMENT |
| MEDIUM | test/tool/gen_ruby_tapset.rb | 3 | # Create a tapset for systemtap and DTrace | COMMENT |
| MEDIUM | test/tool/test/webrick/test_httpserver.rb | 311 | # This class is needed by test_response_io_with_chunked_set method | COMMENT |
| MEDIUM | test/tool/ruby_vm/models/instructions_unifications.rb | 8 | # This file is a part of the programming language Ruby. Permission is hereby | COMMENT |
| MEDIUM | test/tool/ruby_vm/models/typemap.rb | 8 | # This file is a part of the programming language Ruby. Permission is hereby | COMMENT |
| MEDIUM | test/tool/ruby_vm/models/trace_instructions.rb | 8 | # This file is a part of the programming language Ruby. Permission is hereby | COMMENT |
| MEDIUM | test/tool/ruby_vm/models/bare_instructions.rb | 8 | # This file is a part of the programming language Ruby. Permission is hereby | COMMENT |
| MEDIUM | test/tool/ruby_vm/models/c_expr.rb | 8 | # This file is a part of the programming language Ruby. Permission is hereby | COMMENT |
| MEDIUM | test/tool/ruby_vm/models/operands_unifications.rb | 8 | # This file is a part of the programming language Ruby. Permission is hereby | COMMENT |
| MEDIUM | test/tool/ruby_vm/models/instructions.rb | 8 | # This file is a part of the programming language Ruby. Permission is hereby | COMMENT |
| MEDIUM | test/tool/ruby_vm/models/attribute.rb | 8 | # This file is a part of the programming language Ruby. Permission is hereby | COMMENT |
| MEDIUM | test/tool/ruby_vm/scripts/insns2vm.rb | 8 | # This file is a part of the programming language Ruby. Permission is hereby | COMMENT |
| MEDIUM | test/tool/ruby_vm/controllers/application_controller.rb | 8 | # This file is a part of the programming language Ruby. Permission is hereby | COMMENT |
| MEDIUM | test/tool/ruby_vm/loaders/vm_opts_h.rb | 8 | # This file is a part of the programming language Ruby. Permission is hereby | COMMENT |
| MEDIUM | test/tool/ruby_vm/loaders/insns_def.rb | 8 | # This file is a part of the programming language Ruby. Permission is hereby | COMMENT |
| MEDIUM | test/tool/ruby_vm/loaders/opt_insn_unif_def.rb | 8 | # This file is a part of the programming language Ruby. Permission is hereby | COMMENT |
| MEDIUM | test/tool/ruby_vm/loaders/opt_operand_def.rb | 8 | # This file is a part of the programming language Ruby. Permission is hereby | COMMENT |
| MEDIUM | test/tool/ruby_vm/helpers/c_escape.rb | 8 | # This file is a part of the programming language Ruby. Permission is hereby | COMMENT |
| MEDIUM | test/tool/ruby_vm/helpers/dumper.rb | 8 | # This file is a part of the programming language Ruby. Permission is hereby | COMMENT |
| MEDIUM | test/tool/ruby_vm/helpers/scanner.rb | 8 | # This file is a part of the programming language Ruby. Permission is hereby | COMMENT |
| MEDIUM | test/tool/lib/webrick/httprequest.rb | 402 | # This method provides the metavariables defined by the revision 3 | COMMENT |
| MEDIUM | test/tool/lib/webrick/httpstatus.rb | 17 | # This module is used to manager HTTP status codes. | COMMENT |
| MEDIUM | test/tool/lib/webrick/httputils.rb | 23 | # This module is generally used internally by WEBrick | COMMENT |
| MEDIUM | …ates/hellowarld/config/initializers/wrap_parameters.rb | 3 | # This file contains settings for ActionController::ParamsWrapper which | COMMENT |
| MEDIUM | spec/mspec/lib/mspec/runner/mspec.rb | 240 | # This method is used for registering actions that are | COMMENT |
| MEDIUM | spec/mspec/lib/mspec/runner/actions/leakchecker.rb | 323 | # This function is intended to disable all NSS modules when ruby is compiled | COMMENT |
| MEDIUM | spec/ffi/spec_helper.rb | 2 | # This file is part of ruby-ffi. | COMMENT |
| MEDIUM | spec/ffi/custom_type_spec.rb | 2 | # This file is part of ruby-ffi. | COMMENT |
| MEDIUM | spec/ffi/strptr_spec.rb | 3 | # This file is part of ruby-ffi. | COMMENT |
| MEDIUM | spec/ffi/errno_spec.rb | 2 | # This file is part of ruby-ffi. | COMMENT |
| MEDIUM | spec/ffi/io_spec.rb | 2 | # This file is part of ruby-ffi. | COMMENT |
| MEDIUM | spec/ffi/struct_packed_spec.rb | 2 | # This file is part of ruby-ffi. | COMMENT |
| MEDIUM | spec/ffi/fork_spec.rb | 2 | # This file is part of ruby-ffi. | COMMENT |
| MEDIUM | spec/ffi/bitmask_spec.rb | 2 | # This file is part of ruby-ffi. | COMMENT |
| MEDIUM | spec/ffi/managed_struct_spec.rb | 2 | # This file is part of ruby-ffi. | COMMENT |
| MEDIUM | spec/ffi/enum_spec.rb | 2 | # This file is part of ruby-ffi. | COMMENT |
| MEDIUM | spec/ffi/async_callback_spec.rb | 2 | # This file is part of ruby-ffi. | COMMENT |
| MEDIUM | spec/ffi/variadic_spec.rb | 2 | # This file is part of ruby-ffi. | COMMENT |
| MEDIUM | spec/ffi/buffer_spec.rb | 2 | # This file is part of ruby-ffi. | COMMENT |
| 52 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/jruby/test_date.rb | 1119 | def html_escape_interpolated_argument(arg) | CODE |
| LOW | test/jruby/test_exception.rb | 127 | def test_exception_rescue_java(previous_error = nil) | CODE |
| LOW | test/jruby/test_backtraces.rb | 372 | def assert_exception_backtrace(expectations, exception) | CODE |
| LOW | test/jruby/test_block.rb | 231 | def block_arg_that_breaks_while(&block) | CODE |
| LOW | test/jruby/test_block.rb | 393 | def check_requiredargs_definemethods(obj) | CODE |
| LOW | test/jruby/test_socket.rb | 30 | def assert_buffered_input_survives_socket_write(socket, peer, write_method) | CODE |
| LOW | test/jruby/test_weakmap.rb | 166 | def make_unreferenced_weakref(obj) | CODE |
| LOW | test/jruby/test_integer_overflows.rb | 41 | def checks_for_integer_overflow(nbits) | CODE |
| LOW | test/jruby/test_integer_overflows.rb | 96 | def check_integer_add_overflow(av, bv) | CODE |
| LOW | test/jruby/test_integer_overflows.rb | 149 | def check_integer_negate_overflow(nv) | CODE |
| LOW | test/jruby/test_integer_overflows.rb | 233 | def checks_for_integer_iteration_overflows(nbits) | CODE |
| LOW | test/jruby/test_integer_overflows.rb | 479 | def reset_actual_expected_etc() | CODE |
| LOW | test/jruby/test_integer_overflows.rb | 607 | def process_test_result_private(actual_resultv, expected_resultv, | CODE |
| LOW | test/jruby/test_integer_overflows.rb | 629 | def set_numeric_expected_iterations(fromv, tov, stepv, exclude_fromv, exclude_tov) | CODE |
| LOW | test/mri/test_securerandom.rb | 46 | def check_forking_random_bytes(target_pid, target) | CODE |
| LOW | test/mri/test_time.rb | 421 | def subtest_xmlschema_leap_second(method) | CODE |
| LOW | test/mri/test_time.rb | 445 | def subtest_xmlschema_fraction(method) | CODE |
| LOW | test/mri/test_forwardable.rb | 396 | def single_forwardable_object(&block) | CODE |
| LOW | test/mri/resolv/test_resource_leak.rb | 20 | def unknown_typeclass_response(count) | CODE |
| LOW | test/mri/resolv/test_resource_leak.rb | 35 | def unknown_svcparam_response(count) | CODE |
| LOW | test/mri/net/http/test_http.rb | 684 | def _test_request__accept_encoding(http) | CODE |
| LOW | test/mri/net/http/test_http.rb | 749 | def _test_request__stream_body(http) | CODE |
| LOW | test/mri/net/http/test_http.rb | 900 | def _test_set_form_urlencoded(http, data) | CODE |
| LOW | test/mri/net/http/test_httpheader.rb | 373 | def try_invalid_content_range(s) | CODE |
| LOW | test/mri/net/http/test_httpheader.rb | 451 | def try_invalid_content_length(str) | CODE |
| LOW⚡ | test/mri/optparse/test_load.rb | 62 | def setup_options_xdg_config_home(&block) | CODE |
| LOW⚡ | test/mri/optparse/test_load.rb | 66 | def setup_options_home_config(&block) | CODE |
| LOW⚡ | test/mri/optparse/test_load.rb | 70 | def setup_options_xdg_config_dirs(&block) | CODE |
| LOW⚡ | test/mri/optparse/test_load.rb | 74 | def setup_options_home_config_settings(&block) | CODE |
| LOW⚡ | test/mri/optparse/test_load.rb | 78 | def setup_options_home_options(envname, &block) | CODE |
| LOW | test/mri/error_highlight/test_error_highlight.rb | 1461 | def wrong_number_of_arguments_test(x, y) | CODE |
| LOW | test/mri/error_highlight/test_error_highlight.rb | 1474 | | def wrong_number_of_arguments_test(x, y) | CODE |
| LOW | test/mri/error_highlight/test_error_highlight.rb | 1755 | def def_with_required_keyword(x:) | CODE |
| LOW | test/mri/objspace/test_objspace.rb | 739 | def assert_test_string_entry_correct_in_dump_all(output) | CODE |
| LOW | test/mri/prism/library_symbols_test.rb | 32 | def hidden_global_objdump_symbols(path) | CODE |
| LOW | test/mri/prism/library_symbols_test.rb | 36 | def visible_global_objdump_symbols(path) | CODE |
| LOW | …mri/prism/encoding/regular_expression_encoding_test.rb | 36 | def assert_regular_expression_encoding_flags(encoding, regexps) | CODE |
| LOW | test/mri/prism/encoding/encodings_test.rb | 45 | def assert_encoding_identifier(name, character) | CODE |
| LOW | test/mri/prism/ruby/parser_test.rb | 246 | def assert_equal_asts_message(expected_ast, actual_ast) | CODE |
| LOW | test/mri/prism/ruby/desugar_compiler_test.rb | 57 | def ensure_every_node_once_in_ast(node, all_nodes = {}.compare_by_identity) | CODE |
| LOW | test/mri/-ext-/symbol/test_inadvertent_creation.rb | 21 | def assert_not_interned_error(obj, meth, name, msg = nil, &block) | CODE |
| LOW | test/mri/-ext-/symbol/test_inadvertent_creation.rb | 27 | def assert_not_interned_false(obj, meth, name, msg = nil) | CODE |
| LOW | test/mri/-ext-/symbol/test_inadvertent_creation.rb | 397 | def assert_no_immortal_symbol_created(name) | CODE |
| LOW | test/mri/-ext-/symbol/test_inadvertent_creation.rb | 403 | def assert_no_immortal_symbol_in_method_missing(name) | CODE |
| LOW | test/mri/-ext-/thread/helper.rb | 21 | def assert_consistent_timeline(events) | CODE |
| LOW | test/mri/-ext-/debug/test_debug.rb | 116 | def getlocal_after_splatarray(array) | CODE |
| LOW | test/mri/-ext-/debug/test_debug.rb | 121 | def setlocal_after_splatarray(array) | CODE |
| LOW | test/mri/rubygems/test_require.rb | 807 | def util_install_extension_file(name) | CODE |
| LOW | test/mri/rubygems/test_rubygems.rb | 56 | def util_install_operating_system_rb(content) | CODE |
| LOW | test/mri/rubygems/test_rubygems.rb | 73 | def ruby_with_rubygems_and_fake_operating_system_in_load_path(operating_system_path) | CODE |
| LOW | test/mri/rubygems/test_webauthn_listener.rb | 132 | def wait_for_otp_code_expect_error_with_message(message) | CODE |
| LOW | test/mri/rubygems/multifactor_auth_utilities.rb | 53 | def respond_with_webauthn_polling(code) | CODE |
| LOW | test/mri/rubygems/helper.rb | 270 | def parse_make_command_line_targets(line) | CODE |
| LOW | test/mri/rubygems/helper.rb | 288 | def assert_contains_make_command(target, output, msg = nil) | CODE |
| LOW | test/mri/rubygems/helper.rb | 1141 | def write_marshalled_gemspecs(*all_specs) | CODE |
| LOW | test/mri/rubygems/test_gem_version.rb | 283 | def assert_approximate_satisfies_itself(version) | CODE |
| LOW | test/mri/rubygems/test_gem_version.rb | 291 | def assert_bumped_version_equal(expected, unbumped) | CODE |
| LOW | test/mri/rubygems/test_gem.rb | 152 | def assert_self_install_permissions(format_executable: false, data_mode: 0o640) | CODE |
| LOW | test/mri/rubygems/test_gem_update_suggestion.rb | 18 | def with_eligible_environment(**params) | CODE |
| LOW | test/mri/rubygems/test_gem_requirement.rb | 477 | def assert_requirement_hash_equal(expected, actual) | CODE |
| 99 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | test/jruby/test_call_info.rb | 22 | # ── Hash#initialize ──────────────────────────────────────────────── | COMMENT |
| MEDIUM | test/jruby/test_call_info.rb | 41 | # ── Struct.new callInfo leak ─────────────────────────────────────── | COMMENT |
| MEDIUM | test/jruby/test_call_info.rb | 58 | # ── Struct#initialize callInfo leak ──────────────────────────────── | COMMENT |
| MEDIUM | test/jruby/test_call_info.rb | 92 | # ── Regexp.linear_time? keyword handling ─────────────────────────── | COMMENT |
| MEDIUM | test/jruby/test_call_info.rb | 119 | # ── Regexp#initialize keyword handling ─────────────────────────── | COMMENT |
| MEDIUM | test/jruby/test_call_info.rb | 139 | # ── ARGF keyword handling ────────────────────────────────────────── | COMMENT |
| MEDIUM | test/jruby/test_call_info.rb | 185 | # ── Kernel#open with to_open redirect ────────────────────────────── | COMMENT |
| MEDIUM | test/jruby/test_call_info.rb | 212 | # ── to_enum keyword propagation ──────────────────────────────────── | COMMENT |
| MEDIUM | test/jruby/test_call_info.rb | 237 | # ── Data class keyword handling ──────────────────────────────────── | COMMENT |
| MEDIUM | test/jruby/test_call_info.rb | 269 | # ── Dir.glob / Dir[] keyword handling ────────────────────────────── | COMMENT |
| MEDIUM | test/jruby/test_call_info.rb | 286 | # ── Proc#parameters keyword handling ─────────────────────────────── | COMMENT |
| MEDIUM | test/jruby/test_call_info.rb | 307 | # ── Warning.warn keyword handling ────────────────────────────────── | COMMENT |
| MEDIUM | test/jruby/test_call_info.rb | 319 | # ── IO.foreach keyword handling ──────────────────────────────────── | COMMENT |
| MEDIUM | test/jruby/test_call_info.rb | 336 | # ── File#initialize keyword handling ──────────────────────────────── | COMMENT |
| MEDIUM | test/jruby/test_call_info.rb | 371 | # ── NoMatchingPatternKeyError keyword handling ───────────────────── | COMMENT |
| MEDIUM | test/jruby/test_call_info.rb | 391 | # ── `(...)` argument forwarding to a native method ───────────────── | COMMENT |
| MEDIUM | test/jruby/test_call_info.rb | 429 | # ── General: keywords after non-keyword calls ────────────────────── | COMMENT |
| MEDIUM | test/mri/ruby/test_module.rb | 154 | # ----------------------------------------------------------- | COMMENT |
| MEDIUM | test/mri/ruby/test_class.rb | 5 | # ------------------ | COMMENT |
| MEDIUM | test/mri/ruby/test_class.rb | 7 | # ------------------ | COMMENT |
| MEDIUM | test/mri/ruby/test_class.rb | 36 | # ------------------ | COMMENT |
| MEDIUM | test/mri/ruby/test_class.rb | 38 | # ------------------ | COMMENT |
| MEDIUM | bin/jruby.sh | 4 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | bin/jruby.sh | 29 | # ----------------------------------------------------------------------------- | COMMENT |
| MEDIUM | spec/ruby/language/precedence_spec.rb | 22 | # ----------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | spec/ruby/language/precedence_spec.rb | 47 | # ----------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | spec/ruby/language/precedence_spec.rb | 56 | # ----------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | spec/ruby/language/precedence_spec.rb | 61 | #--------------------------------------------------------------- | COMMENT |
| MEDIUM | spec/ruby/language/precedence_spec.rb | 84 | # ----------------------------------------------------------------------- | COMMENT |
| MEDIUM | spec/ruby/language/predefined_spec.rb | 13 | # --------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | spec/ruby/language/predefined_spec.rb | 19 | # --------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | spec/ruby/language/predefined_spec.rb | 645 | # --------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | spec/ruby/language/predefined_spec.rb | 1008 | # --------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | spec/ruby/language/predefined_spec.rb | 1281 | # --------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | spec/ruby/language/predefined_spec.rb | 1347 | # --------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | lib/ruby/stdlib/win32/resolv.rb | 118 | #==================================================================== | COMMENT |
| MEDIUM | lib/ruby/stdlib/win32/resolv.rb | 120 | #==================================================================== | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | core/src/test/java/org/jruby/test/TestRubyHash.java | 204 | assertEquals(10L, rubyHash.put("Jane Doe", 42)); | CODE |
| LOW | core/src/test/java/org/jruby/test/TestRubyHash.java | 212 | assertEquals(null, rubyHash.put("Jane Doe", 42)); | CODE |
| LOW⚡ | test/mri/psych/test_string.rb | 64 | str = "Lorem ipsum" | CODE |
| LOW⚡ | test/mri/psych/test_string.rb | 71 | str = "Lorem ipsum\n" | CODE |
| LOW⚡ | test/mri/psych/test_string.rb | 78 | str = "Lorem ipsum dolor sit\n" | CODE |
| LOW⚡ | test/mri/psych/test_string.rb | 86 | str = "Lorem ipsum dolor sit amet, consectetur" | CODE |
| LOW⚡ | test/mri/psych/test_string.rb | 86 | str = "Lorem ipsum dolor sit amet, consectetur" | CODE |
| LOW⚡ | test/mri/psych/test_string.rb | 94 | "Lorem ipsum\ndolor\n", | CODE |
| LOW⚡ | test/mri/psych/test_string.rb | 95 | "Lorem ipsum\nZolor\n", | CODE |
| LOW | test/mri/psych/test_string.rb | 106 | "Lorem ipsum\ndolor", | CODE |
| LOW | test/mri/psych/test_string.rb | 107 | "Lorem ipsum\nZolor", | CODE |
| LOW⚡ | test/mri/json/json_parser_test.rb | 429 | fake_key = Object.new | CODE |
| LOW⚡ | test/mri/json/json_parser_test.rb | 430 | JSON.load('{"a": 1, "a": 2}', -> (obj) { obj == "a" ? fake_key : obj }, allow_duplicate_key: false) | CODE |
| LOW⚡ | test/mri/json/json_parser_test.rb | 434 | fake_key = Object.new | CODE |
| LOW⚡ | test/mri/json/json_parser_test.rb | 435 | JSON.load('{"a": 1, "a": 2}', -> (obj) { obj == "a" ? fake_key : obj }) | CODE |
| LOW⚡ | test/mri/open-uri/test_open-uri.rb | 346 | URI.open("#{url}/r1/", "Authorization" => "dummy_token") {|f| | CODE |
| LOW⚡ | test/mri/open-uri/test_open-uri.rb | 347 | assert_equal("dummy_token", authorization_header) | CODE |
| LOW⚡ | test/mri/open-uri/test_open-uri.rb | 349 | assert_equal("dummy_token", redirected_authorization_header) | CODE |
| LOW | test/mri/open-uri/test_open-uri.rb | 360 | URI.open("#{url}/r1/", request_specific_fields: {"Authorization" => "dummy_token"}) {|f| | CODE |
| LOW | test/mri/open-uri/test_open-uri.rb | 361 | assert_equal("dummy_token", authorization_header) | CODE |
| LOW | test/mri/open-uri/test_open-uri.rb | 374 | "dummy_token" | CODE |
| LOW⚡ | test/mri/open-uri/test_open-uri.rb | 385 | assert_equal("dummy_token", authorization_header) | CODE |
| LOW⚡ | test/mri/open-uri/test_open-uri.rb | 395 | exc = assert_raise(ArgumentError) { URI.open("#{url}/r1/", request_specific_fields: "dummy_token") {} } | CODE |
| LOW⚡ | test/mri/open-uri/test_open-uri.rb | 396 | assert_equal('Invalid request_specific_fields option: "dummy_token"', exc.message) | CODE |
| LOW | test/mri/ruby/test_zjit.rb | 68 | tmp.puts("Lorem ipsum dolor sit amet, consectetur adipiscing elit, ...") | CODE |
| LOW | test/mri/ruby/test_zjit.rb | 68 | tmp.puts("Lorem ipsum dolor sit amet, consectetur adipiscing elit, ...") | CODE |
| LOW⚡ | test/mri/ruby/test_module.rb | 3382 | assert_same m, m.set_temporary_name(name = "fake_name") | CODE |
| LOW⚡ | test/mri/ruby/test_module.rb | 3384 | assert_equal("fake_name", m.name) | CODE |
| LOW⚡ | test/mri/ruby/test_module.rb | 3386 | assert_equal("fake_name::N", m::N.name) | CODE |
| LOW⚡ | test/mri/ruby/test_module.rb | 3387 | assert_equal("fake_name::N::O", m::N::O.name) | CODE |
| LOW | test/mri/ruby/test_module.rb | 3405 | mod.set_temporary_name("fake_name") | CODE |
| LOW⚡ | spec/ruby/core/module/set_temporary_name_spec.rb | 9 | m.set_temporary_name("fake_name") | CODE |
| LOW⚡ | spec/ruby/core/module/set_temporary_name_spec.rb | 10 | m.name.should == "fake_name" | CODE |
| LOW⚡ | spec/ruby/core/module/set_temporary_name_spec.rb | 18 | m.set_temporary_name("fake_name").should.equal? m | CODE |
| LOW⚡ | spec/ruby/core/module/set_temporary_name_spec.rb | 64 | -> { Object.set_temporary_name("fake_name") }.should.raise(RuntimeError, "can't change permanent name") | CODE |
| LOW⚡ | spec/ruby/core/module/set_temporary_name_spec.rb | 72 | m::N.set_temporary_name("fake_name") | CODE |
| LOW⚡ | spec/ruby/core/module/set_temporary_name_spec.rb | 73 | m::N.name.should == "fake_name" | CODE |
| LOW⚡ | spec/ruby/core/module/set_temporary_name_spec.rb | 83 | m::N.set_temporary_name("fake_name") | CODE |
| LOW⚡ | spec/ruby/core/module/set_temporary_name_spec.rb | 84 | m::N.name.should == "fake_name" | CODE |
| LOW | spec/ruby/core/module/set_temporary_name_spec.rb | 105 | cls.set_temporary_name("fake_name") | CODE |
| LOW | spec/ruby/core/module/set_temporary_name_spec.rb | 106 | cls.name.should == "fake_name" | CODE |
| LOW | spec/ruby/core/module/set_temporary_name_spec.rb | 119 | m.set_temporary_name("fake_name") | CODE |
| LOW | spec/ruby/core/module/set_temporary_name_spec.rb | 120 | m.name.should == "fake_name" | CODE |
| LOW⚡ | spec/ruby/core/module/set_temporary_name_spec.rb | 144 | m::N::O.set_temporary_name("fake_name") | CODE |
| LOW⚡ | spec/ruby/core/module/set_temporary_name_spec.rb | 145 | m::N::O.name.should == "fake_name" | CODE |
| LOW⚡ | spec/ruby/core/module/set_temporary_name_spec.rb | 153 | -> { m::N::O.set_temporary_name("fake_name") }.should.raise(RuntimeError, "can't change permanent name") | CODE |
| LOW | spec/ruby/core/module/set_temporary_name_spec.rb | 193 | m::N.set_temporary_name("fake_name") | CODE |
| LOW | spec/ruby/core/dir/shared/glob.rb | 391 | path = File.join(@mock_dir, "fake-name") | CODE |
| LOW | spec/ruby/library/digest/sha512/shared/constants.rb | 7 | Contents = "Ipsum is simply dummy text of the printing and typesetting industry. \nLorem Ipsum has been the industrys | CODE |
| LOW | spec/ruby/library/digest/md5/shared/constants.rb | 6 | Contents = "Ipsum is simply dummy text of the printing and typesetting industry. \nLorem Ipsum has been the industrys | CODE |
| LOW | spec/ruby/library/digest/sha384/shared/constants.rb | 7 | Contents = "Ipsum is simply dummy text of the printing and typesetting industry. \nLorem Ipsum has been the industrys | CODE |
| LOW | spec/ruby/library/digest/sha256/shared/constants.rb | 7 | Contents = "Ipsum is simply dummy text of the printing and typesetting industry. \nLorem Ipsum has been the industrys | CODE |
| LOW | spec/ruby/library/digest/sha1/shared/constants.rb | 7 | Contents = "Ipsum is simply dummy text of the printing and typesetting industry. \nLorem Ipsum has been the industrys | CODE |
| LOW | spec/ruby/library/openssl/shared/constants.rb | 4 | Contents = "Ipsum is simply dummy text of the printing and typesetting industry. \nLorem Ipsum has been the industrys | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | core/src/main/java/org/jruby/util/ShellLauncher.java | 1137 | // Essentially, we just check for shell meta characters. | COMMENT |
| MEDIUM | test/mri/rubygems/test_gem_installer.rb | 33 | # this file is here to facilitate running it. | COMMENT |
| LOW | test/mri/ruby/test_random_formatter.rb | 97 | # It would be nice to simply use Time#floor here. But that is problematic | COMMENT |
| MEDIUM | test/mri/ruby/test_string.rb | 2602 | # more comprehensive tests are in test_pack.rb | COMMENT |
| MEDIUM | test/mri/ruby/test_array.rb | 1402 | # more comprehensive tests are in test_pack.rb | COMMENT |
| MEDIUM | spec/mspec/lib/mspec/runner/context.rb | 42 | # Returns true if this is a shared +ContextState+. Essentially, when | COMMENT |
| LOW | spec/mspec/lib/mspec/runner/actions/leakchecker.rb | 334 | # configuration in /etc/nsswitch.conf, and just use the built in files/dns | COMMENT |
| LOW | lib/pom.rb | 328 | # TODO: better way to just set it writable without changing all modes? | COMMENT |
| LOW | tool/compiler2.rb | 174 | # restarg or optarg, just pass array through | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | core/src/test/ruby/test_yaml.rb | 1353 | ## TODO: implement real fuzz testing of YAML round tripping here | COMMENT |
| LOW⚡ | …src/main/java/org/jruby/ext/tracepoint/TracePoint.java | 181 | // TODO: implement target | COMMENT |
| LOW⚡ | …src/main/java/org/jruby/ext/tracepoint/TracePoint.java | 191 | // TODO: implement target, target_line | COMMENT |
| LOW⚡ | …src/main/java/org/jruby/ext/tracepoint/TracePoint.java | 201 | // TODO: implement target, target_line | COMMENT |
| LOW | …e/src/main/java/org/jruby/ext/socket/RubyIPSocket.java | 117 | // TODO: implement flags | COMMENT |
| LOW | …/src/main/java/org/jruby/ext/socket/RubyUDPSocket.java | 309 | // TODO: implement flags | COMMENT |
| LOW | …/src/main/java/org/jruby/ext/socket/RubyUDPSocket.java | 336 | // TODO: implement flags | COMMENT |
| LOW | …rc/main/java/org/jruby/ext/socket/RubyBasicSocket.java | 184 | // TODO: implement flags | COMMENT |
| LOW | …rc/main/java/org/jruby/ext/socket/RubyBasicSocket.java | 232 | // TODO: implement flags | COMMENT |
| LOW | …rc/main/java/org/jruby/ext/socket/RubyBasicSocket.java | 285 | // TODO: implement flags | COMMENT |
| LOW | …re/src/main/java/org/jruby/ext/socket/SocketUtils.java | 291 | // TODO: implement flags | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …a/org/jruby/embed/ScriptingContainerClassLeakTest.java | 51 | * This test was generated by Copilot and justified with incorrect logic, but the basic tests | COMMENT |
| HIGH | …a/org/jruby/embed/ScriptingContainerClassLeakTest.java | 130 | * Generated by Copilot, modified by headius. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/mri/rubygems/test_gem_commands_cert_command.rb | 137 | assert_equal "Don't forget to move the key file to somewhere private!", | CODE |
| LOW | test/mri/rubygems/test_gem_commands_cert_command.rb | 169 | assert_equal "Don't forget to move the key file to somewhere private!", | CODE |
| LOW | test/mri/rubygems/test_gem_commands_cert_command.rb | 229 | assert_equal "Don't forget to move the key file to somewhere private!", | CODE |
| LOW | test/mri/rubygems/test_gem_specification.rb | 2765 | #{w}: make sure you specify the oldest ruby version constraint (like \">= 3.0\") that you want your gem to support by s | COMMENT |
| LOW | test/mri/rubygems/test_gem_specification.rb | 2782 | #{w}: make sure you specify the oldest ruby version constraint (like \">= 3.0\") that you want your gem to support by s | COMMENT |
| MEDIUM | test/tool/lib/test/unit/testcase.rb | 9 | # Provides a simple set of guards that you can use in your tests | COMMENT |
| LOW | spec/ruby/optional/capi/encoding_spec.rb | 401 | str.valid_encoding? # make sure to set the coderange | CODE |
| MEDIUM | lib/ruby/stdlib/profiler.rb | 20 | # If you're profiling an executable in your <code>$PATH</code> you can use | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/jruby/test_file.rb | 1179 | File.umask( 0172 ) # Set umask to fixed weird test value | CODE |
| LOW | test/mri/rubygems/test_gem_commands_rebuild_command.rb | 119 | # Set SOURCE_DATE_EPOCH to 2001-02-03 04:05:06 -0500. | COMMENT |
| LOW | test/mri/rubygems/test_gem_commands_rebuild_command.rb | 133 | # Set SOURCE_DATE_EPOCH to a different value, meaning we are | COMMENT |
| LOW | test/mri/rubygems/test_gem_installer.rb | 967 | Gem.use_paths "#{@gemhome}2" # Set GEM_HOME to an uninitialized repo | CODE |
| LOW | test/mri/openssl/test_pkcs12.rb | 237 | # Print the value of the @mycert such as by `puts @mycert.to_s` and | COMMENT |
| LOW | bin/jruby.sh | 88 | # Assign ELEMENT to the list named by LISTNAME. | COMMENT |
| LOW | bin/jruby.sh | 100 | # Append ELEMENT to the list named by LISTNAME. | COMMENT |
| LOW | …templates/hellowarld/config/environments/production.rb | 64 | # Set this to true and configure the email server for immediate delivery to raise delivery errors. | COMMENT |
| LOW | spec/ruby/core/process/setpriority_spec.rb | 38 | # Check if we can lower the nice value or not. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/tool/downloader.rb | 154 | # Example usage: | COMMENT |
| LOW | spec/mspec/lib/mspec/guards/feature.rb | 18 | # Usage example: | COMMENT |
| LOW | spec/mspec/tool/wrap_with_guard.rb | 4 | # Example usage: | COMMENT |
| LOW | spec/ruby/shared/types/rb_num2dbl_fails.rb | 4 | # Usage example: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | spec/ruby/core/file/expand_path_spec.rb | 223 | # We need to check if getlogin(3) returns non-NULL, | COMMENT |