Repository Analysis

ruby/ruby

The Ruby Programming Language

2.5 Likely human-written View on GitHub
2.5
Adjusted Score
2.5
Raw Score
100%
Time Factor
2026-05-30
Last Push
23,573
Stars
Ruby
Language
1,727,849
Lines of Code
8869
Files
3896
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 6HIGH 0MEDIUM 306LOW 3584

Pattern Findings

3896 matches across 14 categories. Click a row to expand file-level details.

Over-Commented Block2884 hits · 2641 pts
SeverityFileLineSnippet
LOWcompile.c21#include "internal.h"
LOWcompile.c141#ifndef CPDEBUG
LOWcompile.c181#define debug_node_end() gl_node_level --
LOWcompile.c12541#endif
LOWast.c1/* indent-tabs-mode: nil */
LOWthread.c61#undef __USE_FORTIFY_LEVEL
LOWthread.c81#include "internal/eval.h"
LOWthread.c4441#undef FD_ZERO
LOWjit.c1// Glue code shared between YJIT and ZJIT for use from Rust.
LOWeval.c21#include "internal.h"
LOWCargo.toml1# This is the root Cargo [workspace](https://doc.rust-lang.org/cargo/reference/workspaces.html)
LOWractor.c1// Ractor implementation
LOWlocaleinit.c21
LOWdln_find.c21# include <stdlib.h>
LOWruby_atomic.h1#ifndef INTERNAL_ATOMIC_H
LOWruby_atomic.h21#define ATOMIC_PTR_EXCHANGE(var, val) RUBY_ATOMIC_PTR_EXCHANGE(var, val)
LOWvm_dump.c21# endif
LOWvm_dump.c761# define MCTX_SS_REG(reg) __ss.__##reg
LOWvm_dump.c901# else
LOWvm_dump.c1141#include "missing/procstat_vm.c"
LOWinternal.h101#ifndef __MINGW32__
LOWversion.h1#ifndef RUBY_TOPLEVEL_VERSION_H /*-*-C-*-vi:se ft=c:*/
LOWversion.h21
LOWversion.h41
LOWversion.h61# define RUBY_PATCHLEVEL_STR "dev"
LOWprocess.c21#include <stdarg.h>
LOWprocess.c41#ifndef EXIT_SUCCESS
LOWprocess.c61#ifdef HAVE_SYS_PARAM_H
LOWprocess.c81#endif
LOWprocess.c101#include "internal/bits.h"
LOWprocess.c141#ifndef WIFSIGNALED
LOWprocess.c161
LOWprocess.c181#define OBSOLETE_SETREGID 1
LOWprocess.c201# define GETLOGIN_R_SIZE_LIMIT 0x1000
LOWprocess.c221# define USE_GETPWNAM 1
LOWprocess.c241obj2uid0(VALUE id)
LOWprocess.c261# ifdef p_uid_from_name
LOWprocess.c301# define FINISH_GETGRNAM /* do nothing */
LOWprocess.c341#endif
LOWprocess.c1761# define EXPORT_DUP(str) rb_str_dup(str)
LOWprocess.c9461#endif
LOWprocess.c9481#elif defined(RUBY_GETRUSAGE_BASED_CLOCK_PROCESS_CPUTIME_ID)
LOWprocess.c9681 define_id(GETTIMEOFDAY_BASED_CLOCK_REALTIME);
LOWparser_st.h21#include "ruby/defines.h"
LOWparser_st.h41#ifndef _
LOWobject.c21
LOWmath.c481
LOWzjit.c1#include "internal.h"
LOWeval_intern.h21}
LOWeval_intern.h41#endif
LOWeval_intern.h61#endif
LOWeval_intern.h121} while (0)
LOWregparse.h41#define NT_CANY 3
LOWregparse.h61#define BIT_NT_LIST NTYPE2BIT(NT_LIST)
LOWregparse.h81#define NENCLOSE(node) (&((node)->u.enclose))
LOWregparse.h101#define NODE_STR_BUF_SIZE 24 /* sizeof(CClassNode) - sizeof(int)*4 */
LOWregparse.h121
LOWregparse.h141#define NST_NEST_LEVEL (1<<13)
LOWloadpath.c21#endif
LOWloadpath.c41typedef char ruby_lib_version_string[(int)sizeof(RUBY_LIB_VERSION) - 2];
2824 more matches not shown…
Self-Referential Comments235 hits · 726 pts
SeverityFileLineSnippet
MEDIUMpathname_builtin.rb1250 # # Create the file.
MEDIUMpathname_builtin.rb1299 # # Create the file.
MEDIUMio_buffer.c1274 * # Create a test file:
MEDIUMio_buffer.c1277 * # Create a shared mapping from the given file, the file must be opened in
MEDIUMio_buffer.c1327 * # Create a test file:
MEDIUMio_buffer.c1330 * # Create a private mapping from the given file. Note that the file here
MEDIUMast.rb7# This module is MRI specific as it exposes implementation details
MEDIUMast.rb10# This module is experimental and its API is not stable, therefore it might
MEDIUMast.rb117 # This class is MRI specific.
MEDIUMast.rb288 # This class is MRI specific.
MEDIUMjit_hook.rb3 # This method is removed in jit_undef.rb.
MEDIUMhash.c7015 * # Create an empty hash.
MEDIUMhash.c7022 * # Create an empty hash.
MEDIUMhash.c7025 * # Create a hash with initial entries.
MEDIUMhash.c7031 * # Create an empty hash.
MEDIUMthread_sync.rb189 # This class represents queues of specified size capacity. The push operation
MEDIUMtrace_point.rb118 # This method is only for debugging TracePoint itself.
MEDIUMfile.c6088 * File.write(filepath, 'foo') # Create the file.
MEDIUMgc.rb133 # This method is implementation-specific to CRuby.
MEDIUMgc.rb261 # This method is implementation-specific to CRuby.
MEDIUMgc.rb406 # This method is implementation-specific to CRuby.
MEDIUMbenchmark/lib/benchmark_driver/runner/peak.rb26 # This method is dynamically called by `BenchmarkDriver::JobRunner.run`
MEDIUMbenchmark/lib/benchmark_driver/runner/total.rb24 # This method is dynamically called by `BenchmarkDriver::JobRunner.run`
MEDIUMbenchmark/lib/benchmark_driver/runner/total.rb72 # This method is overridden by some subclasses
MEDIUMbenchmark/lib/benchmark_driver/runner/total.rb77 # This method is overridden by some subclasses
MEDIUMmisc/call_fuzzer.rb339 # Define the method on f
MEDIUMtest/test_timeout.rb284 # Create the timeout thread under a handle_interrupt(:never)
MEDIUMtest/test_timeout.rb331 # Create the timeout thread under a handle_interrupt(:never)
MEDIUMtest/rubygems/test_gem_request.rb22 # This method is same code as Base64.encode64
MEDIUMtest/rubygems/test_gem_installer.rb1544 # Create the non-user ext dir
MEDIUMtest/rubygems/coverage_setup.rb3# This file is loaded via -r flag BEFORE rubygems to enable coverage tracking
MEDIUMtest/json/json_encoding_test.rb137 # Create a large array with repeated elements
MEDIUMtest/json/json_encoding_test.rb147 # Create a large hash
MEDIUMtest/fiber/scheduler.rb301 # This method is invoked from a thread or fiber to unblock a fiber that is
MEDIUMtest/fiber/scheduler.rb533 # This method is invoked when the thread is exiting.
MEDIUMtest/fiber/test_thread.rb109 # Create a fiber that will join a long-running thread:
MEDIUMtest/ruby/test_compile_prism.rb3# This file is organized to match itemization in https://github.com/ruby/prism/issues/1335
MEDIUMtest/ruby/test_box.rb785 # Define a constant in the box via eval
MEDIUMtest/ruby/test_box.rb796 # Define a class in the box via eval
MEDIUMtest/ruby/test_method.rb1767 # The following code emulate this listing.
MEDIUMext/objspace/lib/objspace.rb24 # This method is only expected to work with C Ruby.
MEDIUMext/objspace/lib/objspace.rb80 # This method is only expected to work with C Ruby.
MEDIUMext/objspace/lib/objspace.rb112 # This method is only expected to work with C Ruby.
MEDIUMext/digest/sha2/lib/sha2.rb58 # Create a new SHA2 hash object with a given bit length.
MEDIUMext/psych/lib/psych/scalar_scanner.rb29 # Create a new scanner
MEDIUMext/psych/lib/psych/streaming.rb6 # Create a new streaming emitter. Emitter will print to +io+. See
MEDIUMext/psych/lib/psych/tree_builder.rb21 # Create a new TreeBuilder instance
MEDIUMext/psych/lib/psych/nodes/node.rb31 # Create a new Psych::Nodes::Node
MEDIUMext/psych/lib/psych/nodes/mapping.rb5 # This class represents a {YAML Mapping}[http://yaml.org/spec/1.1/#mapping].
MEDIUMext/psych/lib/psych/nodes/mapping.rb38 # Create a new Psych::Nodes::Mapping object.
MEDIUMext/psych/lib/psych/nodes/document.rb26 # Create a new Psych::Nodes::Document object.
MEDIUMext/psych/lib/psych/nodes/stream.rb28 # Create a new Psych::Nodes::Stream node with an +encoding+ that
MEDIUMext/psych/lib/psych/nodes/sequence.rb5 # This class represents a
MEDIUMext/psych/lib/psych/nodes/sequence.rb33 # This class represents a sequence in a YAML document. A
MEDIUMext/psych/lib/psych/nodes/sequence.rb64 # Create a new object representing a YAML sequence.
MEDIUMext/psych/lib/psych/nodes/scalar.rb5 # This class represents a {YAML Scalar}[http://yaml.org/spec/1.1/#id858081].
MEDIUMext/psych/lib/psych/nodes/scalar.rb46 # Create a new Psych::Nodes::Scalar object.
MEDIUMext/psych/lib/psych/nodes/alias.rb5 # This class represents a {YAML Alias}[http://yaml.org/spec/1.1/#alias].
MEDIUMext/psych/lib/psych/nodes/alias.rb13 # Create a new Alias that points to an +anchor+
MEDIUMext/openssl/ossl_pkey_dh.c62 * # Creating an instance from scratch
175 more matches not shown…
Hyper-Verbose Identifiers548 hits · 499 pts
SeverityFileLineSnippet
LOWyjit.rb456 def print_sorted_method_calls(calls, num_calls, out:, type:, how_many: 20, left_pad: 4) # :nodoc:
LOWzjit.rb241 def print_counters_with_prefix(buf:, stats:, prefix:, prompt:, limit: nil)
LOWmisc/lldb_disasm.py224 def __get_insns_address_table(self):
LOWbootstraptest/test_yjit.rb2771 def expandarray_always_call_to_ary(object)
LOWbootstraptest/runner.rb825def in_temporary_working_directory(dir)
LOWtest/test_securerandom.rb46 def check_forking_random_bytes(target_pid, target)
LOWtest/test_pp.rb150 private def instance_variables_to_inspect() [:@b] end
LOWtest/test_time.rb421 def subtest_xmlschema_leap_second(method)
LOWtest/test_time.rb445 def subtest_xmlschema_fraction(method)
LOWtest/test_forwardable.rb396 def single_forwardable_object(&block)
LOWtest/net/http/test_http.rb668 def _test_request__accept_encoding(http)
LOWtest/net/http/test_http.rb733 def _test_request__stream_body(http)
LOWtest/net/http/test_http.rb872 def _test_set_form_urlencoded(http, data)
LOWtest/net/http/test_httpheader.rb342 def try_invalid_content_range(s)
LOWtest/optparse/test_load.rb62 def setup_options_xdg_config_home(&block)
LOWtest/optparse/test_load.rb66 def setup_options_home_config(&block)
LOWtest/optparse/test_load.rb70 def setup_options_xdg_config_dirs(&block)
LOWtest/optparse/test_load.rb74 def setup_options_home_config_settings(&block)
LOWtest/optparse/test_load.rb78 def setup_options_home_options(envname, &block)
LOWtest/error_highlight/test_error_highlight.rb1461 def wrong_number_of_arguments_test(x, y)
LOWtest/error_highlight/test_error_highlight.rb1474 | def wrong_number_of_arguments_test(x, y)
LOWtest/objspace/test_objspace.rb735 def assert_test_string_entry_correct_in_dump_all(output)
LOWtest/prism/newline_offsets_test.rb38 def assert_newline_offsets_for(source, message = nil)
LOWtest/prism/library_symbols_test.rb32 def hidden_global_objdump_symbols(path)
LOWtest/prism/library_symbols_test.rb36 def visible_global_objdump_symbols(path)
LOWtest/prism/encoding/regular_expression_encoding_test.rb37 def assert_regular_expression_encoding_flags(encoding, regexps)
LOWtest/prism/encoding/encodings_test.rb45 def assert_encoding_identifier(name, character)
LOWtest/prism/ruby/find_test.rb228 def fixture_backtrace_location(exception)
LOWtest/prism/ruby/parser_test.rb251 def assert_equal_asts_message(expected_ast, actual_ast)
LOWtest/prism/ruby/desugar_compiler_test.rb57 def ensure_every_node_once_in_ast(node, all_nodes = {}.compare_by_identity)
LOWtest/-ext-/symbol/test_inadvertent_creation.rb21 def assert_not_interned_error(obj, meth, name, msg = nil, &block)
LOWtest/-ext-/symbol/test_inadvertent_creation.rb27 def assert_not_interned_false(obj, meth, name, msg = nil)
LOWtest/-ext-/symbol/test_inadvertent_creation.rb397 def assert_no_immortal_symbol_created(name)
LOWtest/-ext-/symbol/test_inadvertent_creation.rb403 def assert_no_immortal_symbol_in_method_missing(name)
LOWtest/-ext-/thread/helper.rb21 def assert_consistent_timeline(events)
LOWtest/-ext-/debug/test_debug.rb116 def getlocal_after_splatarray(array)
LOWtest/-ext-/debug/test_debug.rb121 def setlocal_after_splatarray(array)
LOWtest/rubygems/test_require.rb810 def util_install_extension_file(name)
LOWtest/rubygems/test_rubygems.rb57 def util_install_operating_system_rb(content)
LOWtest/rubygems/test_rubygems.rb74 def ruby_with_rubygems_and_fake_operating_system_in_load_path(operating_system_path)
LOWtest/rubygems/test_webauthn_listener.rb132 def wait_for_otp_code_expect_error_with_message(message)
LOWtest/rubygems/multifactor_auth_utilities.rb53 def respond_with_webauthn_polling(code)
LOWtest/rubygems/helper.rb315 def parse_make_command_line_targets(line)
LOWtest/rubygems/helper.rb333 def assert_contains_make_command(target, output, msg = nil)
LOWtest/rubygems/helper.rb1176 def write_marshalled_gemspecs(*all_specs)
LOWtest/rubygems/test_gem_version.rb283 def assert_approximate_satisfies_itself(version)
LOWtest/rubygems/test_gem_version.rb291 def assert_bumped_version_equal(expected, unbumped)
LOWtest/rubygems/test_gem.rb152 def assert_self_install_permissions(format_executable: false, data_mode: 0o640)
LOWtest/rubygems/test_gem_update_suggestion.rb18 def with_eligible_environment(**params)
LOWtest/rubygems/test_gem_requirement.rb477 def assert_requirement_hash_equal(expected, actual)
LOWtest/rubygems/test_gem_requirement.rb496 def refute_requirement_hash_equal(unexpected, actual)
LOWtest/rubygems/test_gem_commands_push_command.rb722 def assert_attestation_multipart(attestation_payload)
LOWtest/cgi/test_cgi_escape.rb140 def assert_cgi_escape_html_preserve_encoding(str, encoding)
LOWtest/json/json_common_interface_test.rb343 def test_load_file_with_option_shared(method_name)
LOWtest/openssl/test_ssl_session.rb429 def server_connect_with_session(port, ctx = nil, sess = nil)
LOWtest/uri/test_generic.rb1113 def with_proxy_env_case_sensitive(h, &b)
LOWtest/ruby/test_transcode.rb2417 def assert_conversion_both_ways(str1, enc1, str2, enc2)
LOWtest/ruby/test_transcode.rb2424 def assert_undefined_conversion(str, to, from = nil)
LOWtest/ruby/test_transcode.rb2432 def assert_invalid_byte_sequence(str, to, from = nil)
LOWtest/ruby/test_symbol.rb203 def _test_to_proc_arg_with_refinements_call(&block)
488 more matches not shown…
Decorative Section Separators44 hits · 148 pts
SeverityFileLineSnippet
MEDIUMenum.c4197 * # ----------
MEDIUMenum.c4204 * # ----------
MEDIUMtrace_point.rb154 # # ---------------
MEDIUMtrace_point.rb174 # # ------------
MEDIUMtest/ruby/test_module.rb154 # -----------------------------------------------------------
MEDIUMtest/ruby/test_class.rb5 # ------------------
MEDIUMtest/ruby/test_class.rb7 # ------------------
MEDIUMtest/ruby/test_class.rb36 # ------------------
MEDIUMtest/ruby/test_class.rb38 # ------------------
MEDIUMspec/ruby/language/precedence_spec.rb22# -----------------------------------------------------------------------
MEDIUMspec/ruby/language/precedence_spec.rb47# -----------------------------------------------------------------------
MEDIUMspec/ruby/language/precedence_spec.rb56# -----------------------------------------------------------------------
MEDIUMspec/ruby/language/precedence_spec.rb61#---------------------------------------------------------------
MEDIUMspec/ruby/language/precedence_spec.rb84# -----------------------------------------------------------------------
MEDIUMspec/ruby/language/predefined_spec.rb12# ---------------------------------------------------------------------------------------------------
MEDIUMspec/ruby/language/predefined_spec.rb18# ---------------------------------------------------------------------------------------------------
MEDIUMspec/ruby/language/predefined_spec.rb644# ---------------------------------------------------------------------------------------------------
MEDIUMspec/ruby/language/predefined_spec.rb1007# ---------------------------------------------------------------------------------------------------
MEDIUMspec/ruby/language/predefined_spec.rb1280# ---------------------------------------------------------------------------------------------------
MEDIUMspec/ruby/language/predefined_spec.rb1346# ---------------------------------------------------------------------------------------------------
MEDIUMzjit/src/asm/arm64/mod.rs87/// sf op S └────rm─────┘ └option┘ └─imm3─┘ └────rn─────┘ └────rd─────┘
MEDIUMzjit/src/hir/tests.rs5950 // ┌─────┐
MEDIUMzjit/src/hir/tests.rs5954 // ┌──▼──┐ ┌─────┐
MEDIUMzjit/src/hir/tests.rs5955 // ┌►│ bb2 ├─────►│ bb1 │
MEDIUMzjit/src/hir/tests.rs5960 // │ └─────┘ │
MEDIUMzjit/src/hir/tests.rs5961 // └─────────────────┘
MEDIUMzjit/src/hir/tests.rs6004 // ┌─────┐
MEDIUMzjit/src/hir/tests.rs6005 // │ bb0 ◄─────┐
MEDIUMzjit/src/hir/tests.rs6017 // │ bb3 ┼─────┘
MEDIUMzjit/src/hir/tests.rs6022 // └─────┘
MEDIUMzjit/src/hir/tests.rs6081 // ┌─────┐
MEDIUMzjit/src/hir/tests.rs6082 // ┌──────► bb0 │
MEDIUMzjit/src/hir/tests.rs6094 // └──────┼ bb5 │
MEDIUMzjit/src/hir/tests.rs6099 // └─────┘
MEDIUMzjit/src/hir/tests.rs6174 // ┌─────┐
MEDIUMzjit/src/hir/tests.rs6184 // └─────┘
MEDIUMzjit/src/hir/tests.rs6228 // ┌─────┐
MEDIUMzjit/src/hir/tests.rs6250 // └─────┘
MEDIUMlib/rubygems/security.rb190# --------------------------
MEDIUMlib/rubygems/security.rb192# --------------------------
MEDIUMlib/rubygems/security.rb194# -----------------------------------
MEDIUMlib/rubygems/command.rb578 # ----------------------------------------------------------------
MEDIUMlib/bundler/dsl.rb637 # -------------------------------------------
MEDIUMlib/bundler/dsl.rb641 # -------------------------------------------
Slop Phrases30 hits · 68 pts
SeverityFileLineSnippet
MEDIUMarray.c8582 * With #insert you can add a new element to an array at any position.
MEDIUMractor.rb187# This is **only for demonstration purposes** and shouldn't be used in a real code.
LOWerror.c976 "Don't forget to include the above Crash Report log file in bug reports.\n"
LOWerror.c993 "\n""Don't forget to include the Crash Report log file under\n"
LOWtest/rubygems/test_gem_commands_cert_command.rb129 assert_equal "Don't forget to move the key file to somewhere private!",
LOWtest/rubygems/test_gem_commands_cert_command.rb161 assert_equal "Don't forget to move the key file to somewhere private!",
LOWtest/rubygems/test_gem_commands_cert_command.rb221 assert_equal "Don't forget to move the key file to somewhere private!",
LOWtest/rubygems/test_gem_specification.rb2765#{w}: make sure you specify the oldest ruby version constraint (like \">= 3.0\") that you want your gem to support by s
LOWtest/rubygems/test_gem_specification.rb2782#{w}: make sure you specify the oldest ruby version constraint (like \">= 3.0\") that you want your gem to support by s
LOWinclude/ruby/internal/intern/thread.h254 * fork a process don't forget to call it.
MEDIUMext/objspace/lib/objspace/trace.rb2# When you have an object of unknown provenance, you can use this
LOWspec/ruby/optional/capi/encoding_spec.rb391 str.valid_encoding? # make sure to set the coderange
MEDIUMsample/prism/find_calls.rb23 # All nodes implement pattern matching, so you can use the `in` operator to
MEDIUMlib/rubygems.rb57# RubyGems or implementing Ruby you can change RubyGems' defaults.
MEDIUMlib/optparse.rb417# For modern shells (e.g. bash, zsh, etc.), you can use shell
MEDIUMlib/erb.rb45# Before you can use \ERB, you must first require it
MEDIUMlib/erb.rb95# Here's a simple example of \ERB in action:
MEDIUMlib/delegate.rb285# Here's a simple example that takes advantage of the fact that
MEDIUMlib/fileutils.rb145# To avoid that vulnerability, you can use this method to remove entries:
MEDIUMlib/shellwords.rb21# Once you've required Shellwords, you can use the #split alias
MEDIUMlib/net/http.rb198 # In the block, you can use these instance methods,
MEDIUMlib/net/http.rb405 # you can use argument +p_no_proxy+ to filter proxies:
LOWlib/rubygems/errors.rb26 # system. Instead of rescuing from this class, make sure to rescue from the
LOWlib/rubygems/errors.rb51 # not the requested version. Instead of rescuing from this class, make sure to
MEDIUMlib/rubygems/specification.rb2286 # Returns an object you can use to sort specifications in #sort_by.
LOWlib/rubygems/commands/cert_command.rb150 say "Don't forget to move the key file to somewhere private!"
MEDIUMlib/uri/generic.rb1250 # you can modify `rel', but cannot `oth'.
MEDIUMlib/uri/generic.rb1275 # you can modify `rel', but cannot `oth'.
MEDIUMlib/bundler/remote_specification.rb73 # @return [Array] an object you can use to compare and sort this
MEDIUMtool/lib/test/unit/testcase.rb9 # Provides a simple set of guards that you can use in your tests
Hallucination Indicators6 hits · 60 pts
SeverityFileLineSnippet
CRITICALext/psych/lib/psych.rb12 org.jruby.ext.psych.PsychLibrary.new.load(JRuby.runtime, false)
CRITICALspec/bundler/bundler/source/rubygems/remote_spec.rb50 expect(remote(uri_no_auth).cache_slug).to eq("gems.example.com.username.443.MD5HEX(gems.example.com.username.4
CRITICALspec/bundler/bundler/source/rubygems/remote_spec.rb81 expect(remote(uri_with_auth).cache_slug).to eq("gems.example.com.username.443.MD5HEX(gems.example.com.username.4
CRITICALspec/bundler/bundler/source/rubygems/remote_spec.rb86 expect(remote(uri_with_auth).cache_slug).to eq("gems.example.com.username.443.MD5HEX(gems.example.com.username.4
CRITICAL.github/workflows/pr-playground.yml40 const opts = github.rest.actions.listWorkflowRunsForRepo.endpoint.merge({
CRITICALtool/lrama/lib/lrama/parser.rb213 com.headius.racc.Cparse.new.load(JRuby.runtime, false)
Example Usage Blocks37 hits · 52 pts
SeverityFileLineSnippet
LOWyjit.rb152 # Usage:
LOWspec/mspec/lib/mspec/guards/feature.rb18# Usage example:
LOWspec/mspec/tool/wrap_with_guard.rb4# Example usage:
LOWspec/ruby/shared/types/rb_num2dbl_fails.rb4# Usage example:
LOWlib/weakref.rb9# Usage:
LOWlib/rubygems/specification.rb533 # Usage:
LOWlib/rubygems/specification.rb547 # Usage:
LOWlib/rubygems/specification.rb204 # Usage:
LOWlib/rubygems/specification.rb217 # Usage:
LOWlib/rubygems/specification.rb228 # Usage:
LOWlib/rubygems/specification.rb243 # Usage:
LOWlib/rubygems/specification.rb271 # Usage:
LOWlib/rubygems/specification.rb285 # Usage:
LOWlib/rubygems/specification.rb298 # Usage:
LOWlib/rubygems/specification.rb310 # Usage:
LOWlib/rubygems/specification.rb320 # Usage:
LOWlib/rubygems/specification.rb353 # Usage:
LOWlib/rubygems/specification.rb370 # Usage:
LOWlib/rubygems/specification.rb416 # Usage:
LOWlib/rubygems/specification.rb427 # Usage:
LOWlib/rubygems/specification.rb442 # Usage:
LOWlib/rubygems/specification.rb467 # Usage:
LOWlib/rubygems/specification.rb510 # Usage:
LOWlib/rubygems/specification.rb570 # Usage:
LOWlib/rubygems/specification.rb585 # Usage:
LOWlib/rubygems/specification.rb603 # Usage:
LOWlib/rubygems/specification.rb631 # Usage:
LOWlib/rubygems/specification.rb653 # Usage:
LOWlib/rubygems/specification.rb690 # Usage:
LOWlib/rubygems/specification.rb703 # Usage:
LOWlib/rubygems/basic_specification.rb276 # Usage:
LOWlib/rubygems/gemcutter_utilities/webauthn_poller.rb9# Example usage:
LOWlib/rubygems/gemcutter_utilities/webauthn_listener.rb19# Example usage:
LOW…gems/gemcutter_utilities/webauthn_listener/response.rb16# Example usage:
LOWtool/release.sh3# Usage:
LOWtool/auto-style.rb2# Usage:
LOWtool/downloader.rb160 # Example usage:
Redundant / Tautological Comments28 hits · 44 pts
SeverityFileLineSnippet
LOWyjit.rb11 # Check if YJIT is enabled.
LOWyjit.rb16 # Check if `--yjit-stats` is used.
LOWyjit.rb21 # Check if `--yjit-log` is used.
LOWyjit.rb26 # Check if rb_yjit_trace_exit_locations_enabled_p is enabled.
LOWpathname_builtin.rb1101 # Write file; updates atimes for file and directory.
LOWpathname_builtin.rb1150 # Write file; neither birthtime updated.
LOWpathname_builtin.rb1208 # Write file; file ctime updated; directory ctime not updated.
LOWpathname_builtin.rb1211 # Read file; neither ctime not updated.
LOWio_buffer.c3895 * # Open file for read-write, pass size, offset, and flags=0
LOWzjit.rb22 # Check if ZJIT is enabled
LOWzjit.rb39 # Check if `--zjit-trace-exits` is used
LOWzjit.rb63 # Check if `--zjit-stats` is used
LOWtest/rubygems/test_gem_commands_rebuild_command.rb119 # Set SOURCE_DATE_EPOCH to 2001-02-03 04:05:06 -0500.
LOWtest/rubygems/test_gem_commands_rebuild_command.rb133 # Set SOURCE_DATE_EPOCH to a different value, meaning we are
LOWtest/rubygems/test_gem_installer.rb957 Gem.use_paths "#{@gemhome}2" # Set GEM_HOME to an uninitialized repo
LOWtest/openssl/test_pkcs12.rb237 # Print the value of the @mycert such as by `puts @mycert.to_s` and
LOWspec/ruby/core/process/setpriority_spec.rb38 # Check if we can lower the nice value or not.
LOWlib/securerandom.rb82 # Check if Random.urandom is available
LOWlib/rubygems/query_utils.rb175 # Check if gem +name+ version +version+ is installed.
LOWlib/rubygems/specification.rb2218 # Set requirements to +req+, ensuring it is an array.
LOWlib/rubygems/installer.rb273 # Set loaded_from to ensure extension_dir is correct
LOWlib/rubygems/command.rb588 # Set us to "really verbose" so the progress meter works
LOWlib/rubygems/ext/cmake_builder.rb48 # Check if the gem defined presets
LOWlib/bundler/definition.rb903 # Check if the specs of the given source changed
LOWlib/bundler/plugin/events.rb25 # Check if an event has been defined
LOWtool/rbinstall.rb734 # Set loaded_from to ensure extension_dir is correct
LOWtool/travis_wait.sh9 # Print message with bash variable SECONDS.
LOWtool/lrama/lib/lrama/parser.rb81# Print messages time to time while compiling.
AI Slop Vocabulary16 hits · 36 pts
SeverityFileLineSnippet
LOWerror.c2022 * from Kernel#caller_locations, copied from another error, or just set to
MEDIUMtest/rubygems/test_gem_installer.rb33 # this file is here to facilitate running it.
LOWtest/ruby/test_random_formatter.rb97 # It would be nice to simply use Time#floor here. But that is problematic
MEDIUMtest/ruby/test_string.rb2627 # more comprehensive tests are in test_pack.rb
MEDIUMtest/ruby/test_array.rb1312 # more comprehensive tests are in test_pack.rb
MEDIUMext/psych/lib/psych/tree_builder.rb6 # This class works in conjunction with Psych::Parser to build an in-memory
LOWext/json/lib/json/common.rb965 # All these were meant to be deprecated circa 2009, but were just set as undocumented
MEDIUMspec/mspec/lib/mspec/runner/context.rb42 # Returns true if this is a shared +ContextState+. Essentially, when
LOWspec/mspec/lib/mspec/runner/actions/leakchecker.rb334 # configuration in /etc/nsswitch.conf, and just use the built in files/dns
MEDIUMyjit/src/codegen.rs8520// Codegen for keyword argument handling. Essentially private to gen_send_iseq() since
LOWlib/timeout.rb123 # In that case, just return and let the main thread create the Timeout thread.
LOWlib/prism/translation/parser.rb294 # just use the offset directly. Otherwise, we build an array where the
LOWlib/rubygems/errors.rb129 # so that we can loop over a list of mismatches and just add them rather
MEDIUMlib/rubygems/installer.rb729 # this file is here to facilitate running it.
LOWlib/rubygems/spec_fetcher.rb176 # names get rejected, so we just return an empty array immediately instead.
MEDIUMlib/bundler/compact_index_client/cache_file.rb8 # write cache files in a way that is robust to concurrent modifications
Fake / Example Data26 hits · 30 pts
SeverityFileLineSnippet
LOWtest/psych/test_string.rb64 str = "Lorem ipsum"
LOWtest/psych/test_string.rb71 str = "Lorem ipsum\n"
LOWtest/psych/test_string.rb78 str = "Lorem ipsum dolor sit\n"
LOWtest/psych/test_string.rb86 str = "Lorem ipsum dolor sit amet, consectetur"
LOWtest/psych/test_string.rb86 str = "Lorem ipsum dolor sit amet, consectetur"
LOWtest/psych/test_string.rb94 "Lorem ipsum\ndolor\n",
LOWtest/psych/test_string.rb95 "Lorem ipsum\nZolor\n",
LOWtest/psych/test_string.rb106 "Lorem ipsum\ndolor",
LOWtest/psych/test_string.rb107 "Lorem ipsum\nZolor",
LOWtest/ruby/test_zjit.rb68 tmp.puts("Lorem ipsum dolor sit amet, consectetur adipiscing elit, ...")
LOWtest/ruby/test_zjit.rb68 tmp.puts("Lorem ipsum dolor sit amet, consectetur adipiscing elit, ...")
LOWspec/bundler/runtime/setup_spec.rb1405 s.authors = ['John Doe']
LOWspec/bundler/commands/newgem_spec.rb628 expect(generated_gemspec.email.first).to eq("user@example.com")
LOWspec/bundler/bundler/lockfile_parser_spec.rb196 let(:lockfile_contents) { "hello world\nlorem ipsum\n" }
LOWspec/ruby/library/digest/sha512/shared/constants.rb7 Contents = "Ipsum is simply dummy text of the printing and typesetting industry. \nLorem Ipsum has been the industrys
LOWspec/ruby/library/digest/md5/shared/constants.rb6 Contents = "Ipsum is simply dummy text of the printing and typesetting industry. \nLorem Ipsum has been the industrys
LOWspec/ruby/library/digest/sha384/shared/constants.rb7 Contents = "Ipsum is simply dummy text of the printing and typesetting industry. \nLorem Ipsum has been the industrys
LOWspec/ruby/library/digest/sha256/shared/constants.rb7 Contents = "Ipsum is simply dummy text of the printing and typesetting industry. \nLorem Ipsum has been the industrys
LOWspec/ruby/library/digest/sha1/shared/constants.rb7 Contents = "Ipsum is simply dummy text of the printing and typesetting industry. \nLorem Ipsum has been the industrys
LOWspec/ruby/library/openssl/shared/constants.rb4 Contents = "Ipsum is simply dummy text of the printing and typesetting industry. \nLorem Ipsum has been the industrys
LOWdoc/optparse/ruby/descriptions.rb4Lorem ipsum dolor sit amet, consectetuer
LOWdoc/optparse/ruby/descriptions.rb4Lorem ipsum dolor sit amet, consectetuer
LOWdoc/optparse/ruby/help.rb10 'Lorem ipsum dolor sit amet, consectetuer.'
LOWdoc/optparse/ruby/help.rb10 'Lorem ipsum dolor sit amet, consectetuer.'
LOWdoc/optparse/ruby/help_format.rb14 'Lorem ipsum dolor sit amet, consectetuer.'
LOWdoc/optparse/ruby/help_format.rb14 'Lorem ipsum dolor sit amet, consectetuer.'
Unused Imports22 hits · 22 pts
SeverityFileLineSnippet
LOWmisc/lldb_cruby.py8
LOWmisc/lldb_cruby.py14
LOWmisc/lldb_cruby.py18
LOWmisc/lldb_disasm.py21
LOWmisc/lldb_disasm.py22
LOWmisc/lldb_rb/utils.py2
LOWmisc/lldb_rb/utils.py3
LOWmisc/lldb_rb/rb_heap_structs.py4
LOWmisc/lldb_rb/rb_base_command.py1
LOWmisc/lldb_rb/rb_base_command.py2
LOWmisc/lldb_rb/rb_base_command.py3
LOWmisc/lldb_rb/rb_base_command.py4
LOWmisc/lldb_rb/commands/command_template.py9
LOWmisc/lldb_rb/commands/command_template.py11
LOWmisc/lldb_rb/commands/rb_id2str_command.py3
LOWmisc/lldb_rb/commands/rb_id2str_command.py4
LOWmisc/lldb_rb/commands/rp_command.py1
LOWmisc/lldb_rb/commands/rp_command.py3
LOWmisc/lldb_rb/commands/rp_command.py4
LOWmisc/lldb_rb/commands/heap_page_command.py3
LOWmisc/lldb_rb/commands/print_flags_command.py1
LOWmisc/lldb_rb/commands/print_flags_command.py4
Verbosity Indicators14 hits · 21 pts
SeverityFileLineSnippet
LOWprism/constant_pool.c275 // If there is a collision, then we need to check if the content is the
LOWprism/constant_pool.c279 // Since we have found a match, we need to check if this is
LOWprism/prism.c9663 * we need to check if there is a heredoc or heredocs that we have already lexed
LOWprism/prism.c12846 * contain block exits for the current scope, we need to check if they
LOWprism/prism.c13493 // a newline or semicolon. At this point we need to check if we're at
LOWprism/prism.c13705 // Otherwise we need to check if the subsequent token begins an expression.
LOWprism/prism.c13759 // First we need to check if the next token is one that could be the start
LOWprism/prism.c13962 // If there was a comma, then we need to check if we also accepted a
LOWprism/prism.c17059 // Now that we have a primitive, we need to check if it's part of a range.
LOWprism/prism.c17063 // Now that we have the operator, we need to check if this is followed
LOWprism/prism.c18925 * parenthesis, then we need to check if this is possibly a multiple
LOWprism/prism.c19364 // we need to check if there are arguments following the
LOWspec/ruby/core/file/expand_path_spec.rb223 # We need to check if getlogin(3) returns non-NULL,
LOWzjit/src/cruby.rs1532 // We need to check if the class is initialized and not a singleton before
Deep Nesting5 hits · 5 pts
SeverityFileLineSnippet
LOWmisc/lldb_cruby.py249
LOWmisc/lldb_cruby.py576
LOWmisc/jit_perf.py17
LOWmisc/lldb_rb/utils.py45
LOWmisc/lldb_rb/utils.py281
Excessive Try-Catch Wrapping1 hit · 2 pts
SeverityFileLineSnippet
MEDIUMmisc/lldb_disasm.py83 print("Error decoding", file=self.result)