The Ruby Programming Language
This report presents the forensic synthetic code analysis of ruby/ruby, a Ruby project with 23,666 GitHub stars. SynthScan v2.0 examined 1,736,091 lines of code across 8767 source files, recording 4034 pattern matches distributed across 18 syntactic categories. The overall adjusted score of 2.6 places this repository in the Likely human-written band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 4034 distinct pattern matches across 18 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | compile.c | 21 | #include "internal.h" | COMMENT |
| LOW | compile.c | 141 | #ifndef CPDEBUG | COMMENT |
| LOW | compile.c | 181 | #define debug_node_end() gl_node_level -- | COMMENT |
| LOW | compile.c | 12581 | COMMENT | |
| LOW | ast.c | 1 | /* indent-tabs-mode: nil */ | COMMENT |
| LOW | thread.c | 61 | #undef __USE_FORTIFY_LEVEL | COMMENT |
| LOW | thread.c | 81 | #include "internal/eval.h" | COMMENT |
| LOW | thread.c | 181 | #ifdef __GNUC__ | COMMENT |
| LOW | thread.c | 4521 | #undef FD_CLR | COMMENT |
| LOW | jit.c | 1 | // Glue code shared between YJIT and ZJIT for use from Rust. | COMMENT |
| LOW | eval.c | 21 | #include "internal.h" | COMMENT |
| LOW | Cargo.toml | 1 | # This is the root Cargo [workspace](https://doc.rust-lang.org/cargo/reference/workspaces.html) | COMMENT |
| LOW | ractor.c | 1 | // Ractor implementation | COMMENT |
| LOW | localeinit.c | 21 | COMMENT | |
| LOW | dln_find.c | 21 | # include <stdlib.h> | COMMENT |
| LOW | ruby_atomic.h | 1 | #ifndef INTERNAL_ATOMIC_H | COMMENT |
| LOW | ruby_atomic.h | 21 | #define ATOMIC_PTR_EXCHANGE(var, val) RUBY_ATOMIC_PTR_EXCHANGE(var, val) | COMMENT |
| LOW | vm_dump.c | 21 | # endif | COMMENT |
| LOW | vm_dump.c | 761 | # define MCTX_SS_REG(reg) __ss.__##reg | COMMENT |
| LOW | vm_dump.c | 901 | # else | COMMENT |
| LOW | vm_dump.c | 1141 | #include "missing/procstat_vm.c" | COMMENT |
| LOW | internal.h | 101 | #ifndef __MINGW32__ | COMMENT |
| LOW | version.h | 1 | #ifndef RUBY_TOPLEVEL_VERSION_H /*-*-C-*-vi:se ft=c:*/ | COMMENT |
| LOW | version.h | 21 | COMMENT | |
| LOW | version.h | 41 | COMMENT | |
| LOW | version.h | 61 | # define RUBY_PATCHLEVEL_STR "dev" | COMMENT |
| LOW | process.c | 21 | #include <stdarg.h> | COMMENT |
| LOW | process.c | 41 | #ifndef EXIT_SUCCESS | COMMENT |
| LOW | process.c | 61 | #ifdef HAVE_SYS_PARAM_H | COMMENT |
| LOW | process.c | 81 | #endif | COMMENT |
| LOW | process.c | 101 | #include "internal/bits.h" | COMMENT |
| LOW | process.c | 141 | #ifndef WIFSIGNALED | COMMENT |
| LOW | process.c | 161 | COMMENT | |
| LOW | process.c | 181 | #define OBSOLETE_SETREGID 1 | COMMENT |
| LOW | process.c | 201 | # define GETLOGIN_R_SIZE_LIMIT 0x1000 | COMMENT |
| LOW | process.c | 221 | # define USE_GETPWNAM 1 | COMMENT |
| LOW | process.c | 241 | obj2uid0(VALUE id) | COMMENT |
| LOW | process.c | 261 | # ifdef p_uid_from_name | COMMENT |
| LOW | process.c | 301 | # define FINISH_GETGRNAM /* do nothing */ | COMMENT |
| LOW | process.c | 341 | #endif | COMMENT |
| LOW | process.c | 1741 | export_dup(VALUE str) | COMMENT |
| LOW | process.c | 5321 | RESCHECK(RSS); | COMMENT |
| LOW | process.c | 7861 | #else | COMMENT |
| LOW | process.c | 9441 | COMMENT | |
| LOW | process.c | 9461 | # define RUBY_CLOCK_MONOTONIC RUBY_MACH_ABSOLUTE_TIME_BASED_CLOCK_MONOTONIC | COMMENT |
| LOW | parser_st.h | 21 | #include "ruby/defines.h" | COMMENT |
| LOW | parser_st.h | 41 | #ifndef _ | COMMENT |
| LOW | string.rb | 1 | class String | COMMENT |
| LOW | object.c | 21 | COMMENT | |
| LOW | math.c | 481 | COMMENT | |
| LOW | zjit.c | 1 | #include "internal.h" | COMMENT |
| LOW | zjit.c | 21 | #include "probes_helper.h" | COMMENT |
| LOW | eval_intern.h | 21 | } | COMMENT |
| LOW | eval_intern.h | 41 | #endif | COMMENT |
| LOW | eval_intern.h | 61 | #endif | COMMENT |
| LOW | eval_intern.h | 121 | } while (0) | COMMENT |
| LOW | regparse.h | 41 | #define NT_CANY 3 | COMMENT |
| LOW | regparse.h | 61 | #define BIT_NT_LIST NTYPE2BIT(NT_LIST) | COMMENT |
| LOW | regparse.h | 81 | #define NENCLOSE(node) (&((node)->u.enclose)) | COMMENT |
| LOW | regparse.h | 101 | #define NODE_STR_BUF_SIZE 24 /* sizeof(CClassNode) - sizeof(int)*4 */ | COMMENT |
| 2900 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | pathname_builtin.rb | 1369 | # # Create the directory and fetch its mode. | COMMENT |
| MEDIUM | pathname_builtin.rb | 1378 | # # Create the file and fetch its mode. | COMMENT |
| MEDIUM | pathname_builtin.rb | 1430 | # # Create the directory; fetch original owner and group. | COMMENT |
| MEDIUM | pathname_builtin.rb | 1443 | # # Create the directory; fetch original owner and group. | COMMENT |
| MEDIUM | pathname_builtin.rb | 1784 | # # Create a file and a link to it. | COMMENT |
| MEDIUM | pathname_builtin.rb | 2302 | # # Create a file and get its permissions and setuid? setting. | COMMENT |
| MEDIUM | pathname_builtin.rb | 2326 | # # Create a file and get its permissions and setgid? setting. | COMMENT |
| MEDIUM | io_buffer.c | 1403 | * # Create a test file: | COMMENT |
| MEDIUM | io_buffer.c | 1406 | * # Create a shared mapping from the given file, the file must be opened in | COMMENT |
| MEDIUM | io_buffer.c | 1454 | * # Create a test file: | COMMENT |
| MEDIUM | io_buffer.c | 1457 | * # Create a private mapping from the given file. Note that the file here | COMMENT |
| MEDIUM | ast.rb | 7 | # This module is MRI specific as it exposes implementation details | COMMENT |
| MEDIUM | ast.rb | 10 | # This module is experimental and its API is not stable, therefore it might | COMMENT |
| MEDIUM | ast.rb | 117 | # This class is MRI specific. | COMMENT |
| MEDIUM | ast.rb | 288 | # This class is MRI specific. | COMMENT |
| MEDIUM | jit_hook.rb | 3 | # This method is removed in jit_undef.rb. | COMMENT |
| MEDIUM⚡ | hash.c | 7057 | * # Create an empty hash. | COMMENT |
| MEDIUM⚡ | hash.c | 7064 | * # Create an empty hash. | COMMENT |
| MEDIUM⚡ | hash.c | 7067 | * # Create a hash with initial entries. | COMMENT |
| MEDIUM⚡ | hash.c | 7073 | * # Create an empty hash. | COMMENT |
| MEDIUM | thread_sync.rb | 189 | # This class represents queues of specified size capacity. The push operation | COMMENT |
| MEDIUM | trace_point.rb | 118 | # This method is only for debugging TracePoint itself. | COMMENT |
| MEDIUM | file.c | 3398 | * # Create a file and a link to it. | COMMENT |
| MEDIUM | file.c | 6294 | * File.write(filepath, 'foo') # Create the file. | COMMENT |
| MEDIUM | gc.rb | 133 | # This method is implementation-specific to CRuby. | COMMENT |
| MEDIUM | gc.rb | 261 | # This method is implementation-specific to CRuby. | COMMENT |
| MEDIUM | gc.rb | 406 | # This method is implementation-specific to CRuby. | COMMENT |
| MEDIUM | benchmark/lib/benchmark_driver/runner/peak.rb | 26 | # This method is dynamically called by `BenchmarkDriver::JobRunner.run` | COMMENT |
| MEDIUM | benchmark/lib/benchmark_driver/runner/total.rb | 24 | # This method is dynamically called by `BenchmarkDriver::JobRunner.run` | COMMENT |
| MEDIUM | benchmark/lib/benchmark_driver/runner/total.rb | 72 | # This method is overridden by some subclasses | COMMENT |
| MEDIUM | benchmark/lib/benchmark_driver/runner/total.rb | 77 | # This method is overridden by some subclasses | COMMENT |
| MEDIUM | misc/call_fuzzer.rb | 339 | # Define the method on f | COMMENT |
| MEDIUM | test/test_timeout.rb | 284 | # Create the timeout thread under a handle_interrupt(:never) | COMMENT |
| MEDIUM | test/test_timeout.rb | 331 | # Create the timeout thread under a handle_interrupt(:never) | COMMENT |
| MEDIUM | test/rubygems/test_gem_request.rb | 22 | # This method is same code as Base64.encode64 | COMMENT |
| MEDIUM | test/rubygems/test_gem_installer.rb | 1592 | # Create the non-user ext dir | COMMENT |
| MEDIUM | test/rubygems/coverage_setup.rb | 3 | # This file is loaded via -r flag BEFORE rubygems to enable coverage tracking | COMMENT |
| MEDIUM | test/json/json_encoding_test.rb | 137 | # Create a large array with repeated elements | COMMENT |
| MEDIUM | test/json/json_encoding_test.rb | 147 | # Create a large hash | COMMENT |
| MEDIUM | test/fiber/scheduler.rb | 301 | # This method is invoked from a thread or fiber to unblock a fiber that is | COMMENT |
| MEDIUM | test/fiber/scheduler.rb | 533 | # This method is invoked when the thread is exiting. | COMMENT |
| MEDIUM | test/fiber/test_thread.rb | 109 | # Create a fiber that will join a long-running thread: | COMMENT |
| MEDIUM | test/ruby/test_compile_prism.rb | 3 | # This file is organized to match itemization in https://github.com/ruby/prism/issues/1335 | COMMENT |
| MEDIUM | test/ruby/test_box.rb | 785 | # Define a constant in the box via eval | COMMENT |
| MEDIUM | test/ruby/test_box.rb | 796 | # Define a class in the box via eval | COMMENT |
| MEDIUM | test/ruby/test_method.rb | 1767 | # The following code emulate this listing. | COMMENT |
| MEDIUM | ext/objspace/lib/objspace.rb | 24 | # This method is only expected to work with C Ruby. | COMMENT |
| MEDIUM | ext/objspace/lib/objspace.rb | 80 | # This method is only expected to work with C Ruby. | COMMENT |
| MEDIUM | ext/objspace/lib/objspace.rb | 112 | # This method is only expected to work with C Ruby. | COMMENT |
| MEDIUM | ext/digest/sha2/lib/sha2.rb | 58 | # Create a new SHA2 hash object with a given bit length. | COMMENT |
| MEDIUM | ext/psych/lib/psych/scalar_scanner.rb | 41 | # Create a new scanner | COMMENT |
| MEDIUM | ext/psych/lib/psych/streaming.rb | 6 | # Create a new streaming emitter. Emitter will print to +io+. See | COMMENT |
| MEDIUM | ext/psych/lib/psych/tree_builder.rb | 21 | # Create a new TreeBuilder instance | COMMENT |
| MEDIUM | ext/psych/lib/psych/nodes/node.rb | 31 | # Create a new Psych::Nodes::Node | COMMENT |
| MEDIUM | ext/psych/lib/psych/nodes/mapping.rb | 5 | # This class represents a {YAML Mapping}[http://yaml.org/spec/1.1/#mapping]. | COMMENT |
| MEDIUM | ext/psych/lib/psych/nodes/mapping.rb | 38 | # Create a new Psych::Nodes::Mapping object. | COMMENT |
| MEDIUM | ext/psych/lib/psych/nodes/document.rb | 26 | # Create a new Psych::Nodes::Document object. | COMMENT |
| MEDIUM | ext/psych/lib/psych/nodes/stream.rb | 28 | # Create a new Psych::Nodes::Stream node with an +encoding+ that | COMMENT |
| MEDIUM | ext/psych/lib/psych/nodes/sequence.rb | 5 | # This class represents a | COMMENT |
| MEDIUM | ext/psych/lib/psych/nodes/sequence.rb | 33 | # This class represents a sequence in a YAML document. A | COMMENT |
| 183 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | yjit.rb | 456 | def print_sorted_method_calls(calls, num_calls, out:, type:, how_many: 20, left_pad: 4) # :nodoc: | CODE |
| LOW | zjit.rb | 248 | def print_counters_with_prefix(buf:, stats:, prefix:, prompt:, limit: nil) | CODE |
| LOW | misc/lldb_disasm.py | 224 | def __get_insns_address_table(self): | CODE |
| LOW | bootstraptest/test_yjit.rb | 2771 | def expandarray_always_call_to_ary(object) | CODE |
| LOW | bootstraptest/runner.rb | 825 | def in_temporary_working_directory(dir) | CODE |
| LOW | test/test_securerandom.rb | 46 | def check_forking_random_bytes(target_pid, target) | CODE |
| LOW | test/test_pp.rb | 150 | private def instance_variables_to_inspect() [:@b] end | CODE |
| LOW | test/test_time.rb | 421 | def subtest_xmlschema_leap_second(method) | CODE |
| LOW | test/test_time.rb | 445 | def subtest_xmlschema_fraction(method) | CODE |
| LOW | test/test_forwardable.rb | 396 | def single_forwardable_object(&block) | CODE |
| LOW | test/net/http/test_http.rb | 684 | def _test_request__accept_encoding(http) | CODE |
| LOW | test/net/http/test_http.rb | 749 | def _test_request__stream_body(http) | CODE |
| LOW | test/net/http/test_http.rb | 900 | def _test_set_form_urlencoded(http, data) | CODE |
| LOW | test/net/http/test_httpheader.rb | 373 | def try_invalid_content_range(s) | CODE |
| LOW⚡ | test/optparse/test_load.rb | 62 | def setup_options_xdg_config_home(&block) | CODE |
| LOW⚡ | test/optparse/test_load.rb | 66 | def setup_options_home_config(&block) | CODE |
| LOW⚡ | test/optparse/test_load.rb | 70 | def setup_options_xdg_config_dirs(&block) | CODE |
| LOW⚡ | test/optparse/test_load.rb | 74 | def setup_options_home_config_settings(&block) | CODE |
| LOW⚡ | test/optparse/test_load.rb | 78 | def setup_options_home_options(envname, &block) | CODE |
| LOW | test/error_highlight/test_error_highlight.rb | 1461 | def wrong_number_of_arguments_test(x, y) | CODE |
| LOW | test/error_highlight/test_error_highlight.rb | 1474 | | def wrong_number_of_arguments_test(x, y) | CODE |
| LOW | test/error_highlight/test_error_highlight.rb | 1755 | def def_with_required_keyword(x:) | CODE |
| LOW | test/objspace/test_objspace.rb | 749 | def assert_test_string_entry_correct_in_dump_all(output) | CODE |
| LOW | test/prism/newline_offsets_test.rb | 38 | def assert_newline_offsets_for(source, message = nil) | CODE |
| LOW | test/prism/library_symbols_test.rb | 32 | def hidden_global_objdump_symbols(path) | CODE |
| LOW | test/prism/library_symbols_test.rb | 36 | def visible_global_objdump_symbols(path) | CODE |
| LOW | test/prism/encoding/regular_expression_encoding_test.rb | 37 | def assert_regular_expression_encoding_flags(encoding, regexps) | CODE |
| LOW | test/prism/encoding/encodings_test.rb | 45 | def assert_encoding_identifier(name, character) | CODE |
| LOW | test/prism/ruby/find_test.rb | 228 | def fixture_backtrace_location(exception) | CODE |
| LOW | test/prism/ruby/parser_test.rb | 250 | def assert_equal_asts_message(expected_ast, actual_ast) | CODE |
| LOW | test/prism/ruby/desugar_compiler_test.rb | 57 | def ensure_every_node_once_in_ast(node, all_nodes = {}.compare_by_identity) | CODE |
| LOW | test/-ext-/symbol/test_inadvertent_creation.rb | 21 | def assert_not_interned_error(obj, meth, name, msg = nil, &block) | CODE |
| LOW | test/-ext-/symbol/test_inadvertent_creation.rb | 27 | def assert_not_interned_false(obj, meth, name, msg = nil) | CODE |
| LOW | test/-ext-/symbol/test_inadvertent_creation.rb | 397 | def assert_no_immortal_symbol_created(name) | CODE |
| LOW | test/-ext-/symbol/test_inadvertent_creation.rb | 403 | def assert_no_immortal_symbol_in_method_missing(name) | CODE |
| LOW | test/-ext-/symbol/test_inadvertent_creation.rb | 493 | def assert_io_buffer_no_immortal_symbol_created(buffer = IO::Buffer.new(128)) | CODE |
| LOW | test/-ext-/thread/helper.rb | 21 | def assert_consistent_timeline(events) | CODE |
| LOW | test/-ext-/debug/test_debug.rb | 116 | def getlocal_after_splatarray(array) | CODE |
| LOW | test/-ext-/debug/test_debug.rb | 121 | def setlocal_after_splatarray(array) | CODE |
| LOW | test/rubygems/test_require.rb | 810 | def util_install_extension_file(name) | CODE |
| LOW | test/rubygems/test_rubygems.rb | 57 | def util_install_operating_system_rb(content) | CODE |
| LOW | test/rubygems/test_rubygems.rb | 74 | def ruby_with_rubygems_and_fake_operating_system_in_load_path(operating_system_path) | CODE |
| LOW | test/rubygems/test_webauthn_listener.rb | 132 | def wait_for_otp_code_expect_error_with_message(message) | CODE |
| LOW | test/rubygems/multifactor_auth_utilities.rb | 53 | def respond_with_webauthn_polling(code) | CODE |
| LOW | test/rubygems/helper.rb | 316 | def parse_make_command_line_targets(line) | CODE |
| LOW | test/rubygems/helper.rb | 334 | def assert_contains_make_command(target, output, msg = nil) | CODE |
| LOW | test/rubygems/helper.rb | 1217 | def util_compact_index_info_line(spec, created_at = nil) | CODE |
| LOW | test/rubygems/helper.rb | 1236 | def util_compact_index_requirement(requirement) | CODE |
| LOW | test/rubygems/helper.rb | 1240 | def util_compact_index_response(body) | CODE |
| LOW | test/rubygems/helper.rb | 1252 | def write_marshalled_gemspecs(*all_specs) | CODE |
| LOW | test/rubygems/test_gem_version.rb | 283 | def assert_approximate_satisfies_itself(version) | CODE |
| LOW | test/rubygems/test_gem_version.rb | 291 | def assert_bumped_version_equal(expected, unbumped) | CODE |
| LOW | test/rubygems/test_gem.rb | 152 | def assert_self_install_permissions(format_executable: false, data_mode: 0o640) | CODE |
| LOW | test/rubygems/test_gem_update_suggestion.rb | 18 | def with_eligible_environment(**params) | CODE |
| LOW | test/rubygems/test_gem_requirement.rb | 477 | def assert_requirement_hash_equal(expected, actual) | CODE |
| LOW | test/rubygems/test_gem_requirement.rb | 496 | def refute_requirement_hash_equal(unexpected, actual) | CODE |
| LOW | test/rubygems/test_gem_commands_push_command.rb | 722 | def assert_attestation_multipart(attestation_payload) | CODE |
| LOW | test/cgi/test_cgi_escape.rb | 140 | def assert_cgi_escape_html_preserve_encoding(str, encoding) | CODE |
| LOW | test/json/json_common_interface_test.rb | 343 | def test_load_file_with_option_shared(method_name) | CODE |
| LOW | test/openssl/test_ssl_session.rb | 429 | def server_connect_with_session(port, ctx = nil, sess = nil) | CODE |
| 505 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | enum.c | 4197 | * # ---------- | COMMENT |
| MEDIUM | enum.c | 4204 | * # ---------- | COMMENT |
| MEDIUM | trace_point.rb | 154 | # # --------------- | COMMENT |
| MEDIUM | trace_point.rb | 174 | # # ------------ | COMMENT |
| MEDIUM | test/ruby/test_module.rb | 154 | # ----------------------------------------------------------- | COMMENT |
| MEDIUM | test/ruby/test_class.rb | 5 | # ------------------ | COMMENT |
| MEDIUM | test/ruby/test_class.rb | 7 | # ------------------ | COMMENT |
| MEDIUM | test/ruby/test_class.rb | 36 | # ------------------ | COMMENT |
| MEDIUM | test/ruby/test_class.rb | 38 | # ------------------ | 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 | 12 | # --------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | spec/ruby/language/predefined_spec.rb | 18 | # --------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | spec/ruby/language/predefined_spec.rb | 644 | # --------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | spec/ruby/language/predefined_spec.rb | 1007 | # --------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | spec/ruby/language/predefined_spec.rb | 1280 | # --------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | spec/ruby/language/predefined_spec.rb | 1346 | # --------------------------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | zjit/src/asm/arm64/mod.rs | 87 | /// sf op S └────rm─────┘ └option┘ └─imm3─┘ └────rn─────┘ └────rd─────┘ | COMMENT |
| MEDIUM⚡ | zjit/src/hir/tests.rs | 6582 | // ┌─────┐ | COMMENT |
| MEDIUM⚡ | zjit/src/hir/tests.rs | 6586 | // ┌──▼──┐ ┌─────┐ | COMMENT |
| MEDIUM⚡ | zjit/src/hir/tests.rs | 6587 | // ┌►│ bb2 ├─────►│ bb1 │ | COMMENT |
| MEDIUM⚡ | zjit/src/hir/tests.rs | 6592 | // │ └─────┘ │ | COMMENT |
| MEDIUM⚡ | zjit/src/hir/tests.rs | 6593 | // └─────────────────┘ | COMMENT |
| MEDIUM | zjit/src/hir/tests.rs | 6636 | // ┌─────┐ | COMMENT |
| MEDIUM | zjit/src/hir/tests.rs | 6637 | // │ bb0 ◄─────┐ | COMMENT |
| MEDIUM | zjit/src/hir/tests.rs | 6649 | // │ bb3 ┼─────┘ | COMMENT |
| MEDIUM | zjit/src/hir/tests.rs | 6654 | // └─────┘ | COMMENT |
| MEDIUM | zjit/src/hir/tests.rs | 6713 | // ┌─────┐ | COMMENT |
| MEDIUM | zjit/src/hir/tests.rs | 6714 | // ┌──────► bb0 │ | COMMENT |
| MEDIUM | zjit/src/hir/tests.rs | 6726 | // └──────┼ bb5 │ | COMMENT |
| MEDIUM | zjit/src/hir/tests.rs | 6731 | // └─────┘ | COMMENT |
| MEDIUM | zjit/src/hir/tests.rs | 6806 | // ┌─────┐ | COMMENT |
| MEDIUM | zjit/src/hir/tests.rs | 6816 | // └─────┘ | COMMENT |
| MEDIUM | zjit/src/hir/tests.rs | 6860 | // ┌─────┐ | COMMENT |
| MEDIUM | zjit/src/hir/tests.rs | 6882 | // └─────┘ | COMMENT |
| MEDIUM⚡ | lib/rubygems/security.rb | 190 | # -------------------------- | COMMENT |
| MEDIUM⚡ | lib/rubygems/security.rb | 192 | # -------------------------- | COMMENT |
| MEDIUM⚡ | lib/rubygems/security.rb | 194 | # ----------------------------------- | COMMENT |
| MEDIUM | lib/rubygems/command.rb | 578 | # ---------------------------------------------------------------- | COMMENT |
| MEDIUM | lib/bundler/dsl.rb | 654 | # ------------------------------------------- | COMMENT |
| MEDIUM | lib/bundler/dsl.rb | 658 | # ------------------------------------------- | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | variable.c | 275 | * m.set_temporary_name("fake_name") # => fake_name | COMMENT |
| LOW | variable.c | 276 | * m.name #=> "fake_name" | COMMENT |
| LOW⚡ | test/psych/test_string.rb | 87 | str = "Lorem ipsum" | CODE |
| LOW⚡ | test/psych/test_string.rb | 94 | str = "Lorem ipsum\n" | CODE |
| LOW⚡ | test/psych/test_string.rb | 102 | str = "Lorem ipsum dolor sit\n" | CODE |
| LOW⚡ | test/psych/test_string.rb | 110 | str = "Lorem ipsum dolor sit amet, consectetur" | CODE |
| LOW⚡ | test/psych/test_string.rb | 110 | str = "Lorem ipsum dolor sit amet, consectetur" | CODE |
| LOW⚡ | test/psych/test_string.rb | 119 | "Lorem ipsum\ndolor\n", | CODE |
| LOW⚡ | test/psych/test_string.rb | 120 | "Lorem ipsum\nZolor\n", | CODE |
| LOW | test/psych/test_string.rb | 131 | "Lorem ipsum\ndolor", | CODE |
| LOW | test/psych/test_string.rb | 132 | "Lorem ipsum\nZolor", | CODE |
| LOW⚡ | test/json/json_parser_test.rb | 429 | fake_key = Object.new | CODE |
| LOW⚡ | test/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/json/json_parser_test.rb | 434 | fake_key = Object.new | CODE |
| LOW⚡ | test/json/json_parser_test.rb | 435 | JSON.load('{"a": 1, "a": 2}', -> (obj) { obj == "a" ? fake_key : obj }) | CODE |
| LOW⚡ | test/open-uri/test_open-uri.rb | 348 | URI.open("#{url}/r1/", "Authorization" => "dummy_token") {|f| | CODE |
| LOW⚡ | test/open-uri/test_open-uri.rb | 349 | assert_equal("dummy_token", authorization_header) | CODE |
| LOW⚡ | test/open-uri/test_open-uri.rb | 351 | assert_equal("dummy_token", redirected_authorization_header) | CODE |
| LOW | test/open-uri/test_open-uri.rb | 362 | URI.open("#{url}/r1/", request_specific_fields: {"Authorization" => "dummy_token"}) {|f| | CODE |
| LOW | test/open-uri/test_open-uri.rb | 363 | assert_equal("dummy_token", authorization_header) | CODE |
| LOW | test/open-uri/test_open-uri.rb | 376 | "dummy_token" | CODE |
| LOW⚡ | test/open-uri/test_open-uri.rb | 387 | assert_equal("dummy_token", authorization_header) | CODE |
| LOW⚡ | test/open-uri/test_open-uri.rb | 397 | exc = assert_raise(ArgumentError) { URI.open("#{url}/r1/", request_specific_fields: "dummy_token") {} } | CODE |
| LOW⚡ | test/open-uri/test_open-uri.rb | 398 | assert_equal('Invalid request_specific_fields option: "dummy_token"', exc.message) | CODE |
| LOW⚡ | test/ruby/test_module.rb | 3385 | assert_same m, m.set_temporary_name(name = "fake_name") | CODE |
| LOW⚡ | test/ruby/test_module.rb | 3387 | assert_equal("fake_name", m.name) | CODE |
| LOW⚡ | test/ruby/test_module.rb | 3389 | assert_equal("fake_name::N", m::N.name) | CODE |
| LOW⚡ | test/ruby/test_module.rb | 3390 | assert_equal("fake_name::N::O", m::N::O.name) | CODE |
| LOW | test/ruby/test_module.rb | 3408 | mod.set_temporary_name("fake_name") | CODE |
| LOW | test/ruby/test_zjit_cli.rb | 76 | tmp.puts("Lorem ipsum dolor sit amet, consectetur adipiscing elit, ...") | CODE |
| LOW | test/ruby/test_zjit_cli.rb | 76 | tmp.puts("Lorem ipsum dolor sit amet, consectetur adipiscing elit, ...") | CODE |
| LOW | spec/bundler/runtime/setup_spec.rb | 1408 | s.authors = ['John Doe'] | CODE |
| LOW | spec/bundler/commands/newgem_spec.rb | 633 | expect(generated_gemspec.email.first).to eq("user@example.com") | CODE |
| LOW | spec/bundler/bundler/lockfile_parser_spec.rb | 196 | let(:lockfile_contents) { "hello world\nlorem ipsum\n" } | 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 | 104 | m.set_temporary_name("fake_name") | CODE |
| LOW | spec/ruby/core/module/set_temporary_name_spec.rb | 105 | m.name.should == "fake_name" | CODE |
| LOW | spec/ruby/core/dir/shared/glob.rb | 360 | 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 |
| LOW | lib/uri/generic.rb | 229 | # URI("mailto:foo@example.org").host #=> nil | COMMENT |
| LOW | lib/uri/generic.rb | 270 | # URI("mailto:foo@example.org").opaque #=> "foo@example.org" | COMMENT |
| LOW | doc/optparse/ruby/descriptions.rb | 4 | Lorem ipsum dolor sit amet, consectetuer | CODE |
| LOW | doc/optparse/ruby/descriptions.rb | 4 | Lorem ipsum dolor sit amet, consectetuer | CODE |
| LOW | doc/optparse/ruby/help.rb | 10 | 'Lorem ipsum dolor sit amet, consectetuer.' | CODE |
| LOW | doc/optparse/ruby/help.rb | 10 | 'Lorem ipsum dolor sit amet, consectetuer.' | CODE |
| LOW | doc/optparse/ruby/help_format.rb | 14 | 'Lorem ipsum dolor sit amet, consectetuer.' | CODE |
| LOW | doc/optparse/ruby/help_format.rb | 14 | 'Lorem ipsum dolor sit amet, consectetuer.' | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | array.c | 8670 | * With #insert you can add a new element to an array at any position. | COMMENT |
| MEDIUM | ractor.rb | 187 | # This is **only for demonstration purposes** and shouldn't be used in a real code. | COMMENT |
| LOW | error.c | 976 | "Don't forget to include the above Crash Report log file in bug reports.\n" | CODE |
| LOW | error.c | 993 | "\n""Don't forget to include the Crash Report log file under\n" | CODE |
| LOW | test/rubygems/test_gem_commands_cert_command.rb | 129 | assert_equal "Don't forget to move the key file to somewhere private!", | CODE |
| LOW | test/rubygems/test_gem_commands_cert_command.rb | 161 | assert_equal "Don't forget to move the key file to somewhere private!", | CODE |
| LOW | test/rubygems/test_gem_commands_cert_command.rb | 221 | assert_equal "Don't forget to move the key file to somewhere private!", | CODE |
| LOW | test/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/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 |
| LOW | include/ruby/internal/intern/thread.h | 254 | * fork a process don't forget to call it. | COMMENT |
| MEDIUM | ext/objspace/lib/objspace/trace.rb | 2 | # When you have an object of unknown provenance, you can use this | COMMENT |
| LOW | spec/ruby/optional/capi/encoding_spec.rb | 391 | str.valid_encoding? # make sure to set the coderange | CODE |
| MEDIUM | sample/prism/find_calls.rb | 23 | # All nodes implement pattern matching, so you can use the `in` operator to | COMMENT |
| MEDIUM | lib/rubygems.rb | 57 | # RubyGems or implementing Ruby you can change RubyGems' defaults. | COMMENT |
| MEDIUM | lib/optparse.rb | 417 | # For modern shells (e.g. bash, zsh, etc.), you can use shell | COMMENT |
| MEDIUM | lib/erb.rb | 45 | # Before you can use \ERB, you must first require it | COMMENT |
| MEDIUM | lib/erb.rb | 95 | # Here's a simple example of \ERB in action: | COMMENT |
| MEDIUM | lib/delegate.rb | 285 | # Here's a simple example that takes advantage of the fact that | COMMENT |
| MEDIUM | lib/fileutils.rb | 145 | # To avoid that vulnerability, you can use this method to remove entries: | COMMENT |
| MEDIUM | lib/shellwords.rb | 21 | # Once you've required Shellwords, you can use the #split alias | COMMENT |
| MEDIUM | lib/net/http.rb | 199 | # In the block, you can use these instance methods, | COMMENT |
| MEDIUM | lib/net/http.rb | 407 | # you can use argument +p_no_proxy+ to filter proxies: | COMMENT |
| LOW | lib/rubygems/errors.rb | 26 | # system. Instead of rescuing from this class, make sure to rescue from the | COMMENT |
| LOW | lib/rubygems/errors.rb | 51 | # not the requested version. Instead of rescuing from this class, make sure to | COMMENT |
| MEDIUM | lib/rubygems/specification.rb | 2286 | # Returns an object you can use to sort specifications in #sort_by. | COMMENT |
| LOW | lib/rubygems/commands/cert_command.rb | 150 | say "Don't forget to move the key file to somewhere private!" | CODE |
| MEDIUM | lib/uri/generic.rb | 1250 | # you can modify `rel', but cannot `oth'. | COMMENT |
| MEDIUM | lib/uri/generic.rb | 1275 | # you can modify `rel', but cannot `oth'. | COMMENT |
| MEDIUM | lib/bundler/remote_specification.rb | 73 | # @return [Array] an object you can use to compare and sort this | COMMENT |
| MEDIUM | tool/lib/test/unit/testcase.rb | 9 | # Provides a simple set of guards that you can use in your tests | COMMENT |
| MEDIUM | tool/timeline/visualize.rb | 198 | # you can add more arguments or make adjustments to it. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | ext/psych/lib/psych.rb | 12 | org.jruby.ext.psych.PsychLibrary.new.load(JRuby.runtime, false) | CODE |
| CRITICAL | spec/bundler/bundler/source/rubygems/remote_spec.rb | 50 | expect(remote(uri_no_auth).cache_slug).to eq("gems.example.com.username.443.MD5HEX(gems.example.com.username.4 | CODE |
| CRITICAL | spec/bundler/bundler/source/rubygems/remote_spec.rb | 81 | expect(remote(uri_with_auth).cache_slug).to eq("gems.example.com.username.443.MD5HEX(gems.example.com.username.4 | CODE |
| CRITICAL | spec/bundler/bundler/source/rubygems/remote_spec.rb | 86 | expect(remote(uri_with_auth).cache_slug).to eq("gems.example.com.username.443.MD5HEX(gems.example.com.username.4 | CODE |
| CRITICAL | .github/workflows/pr-playground.yml | 40 | const opts = github.rest.actions.listWorkflowRunsForRepo.endpoint.merge({ | CODE |
| CRITICAL | tool/lrama/lib/lrama/parser.rb | 213 | com.headius.racc.Cparse.new.load(JRuby.runtime, false) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | yjit.rb | 152 | # 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 |
| LOW | lib/weakref.rb | 9 | # Usage: | COMMENT |
| LOW⚡ | lib/rubygems/specification.rb | 533 | # Usage: | COMMENT |
| LOW⚡ | lib/rubygems/specification.rb | 547 | # Usage: | COMMENT |
| LOW | lib/rubygems/specification.rb | 204 | # Usage: | COMMENT |
| LOW | lib/rubygems/specification.rb | 217 | # Usage: | COMMENT |
| LOW | lib/rubygems/specification.rb | 228 | # Usage: | COMMENT |
| LOW | lib/rubygems/specification.rb | 243 | # Usage: | COMMENT |
| LOW | lib/rubygems/specification.rb | 271 | # Usage: | COMMENT |
| LOW | lib/rubygems/specification.rb | 285 | # Usage: | COMMENT |
| LOW | lib/rubygems/specification.rb | 298 | # Usage: | COMMENT |
| LOW | lib/rubygems/specification.rb | 310 | # Usage: | COMMENT |
| LOW | lib/rubygems/specification.rb | 320 | # Usage: | COMMENT |
| LOW | lib/rubygems/specification.rb | 353 | # Usage: | COMMENT |
| LOW | lib/rubygems/specification.rb | 370 | # Usage: | COMMENT |
| LOW | lib/rubygems/specification.rb | 416 | # Usage: | COMMENT |
| LOW | lib/rubygems/specification.rb | 427 | # Usage: | COMMENT |
| LOW | lib/rubygems/specification.rb | 442 | # Usage: | COMMENT |
| LOW | lib/rubygems/specification.rb | 467 | # Usage: | COMMENT |
| LOW | lib/rubygems/specification.rb | 510 | # Usage: | COMMENT |
| LOW | lib/rubygems/specification.rb | 570 | # Usage: | COMMENT |
| LOW | lib/rubygems/specification.rb | 585 | # Usage: | COMMENT |
| LOW | lib/rubygems/specification.rb | 603 | # Usage: | COMMENT |
| LOW | lib/rubygems/specification.rb | 631 | # Usage: | COMMENT |
| LOW | lib/rubygems/specification.rb | 653 | # Usage: | COMMENT |
| LOW | lib/rubygems/specification.rb | 690 | # Usage: | COMMENT |
| LOW | lib/rubygems/specification.rb | 703 | # Usage: | COMMENT |
| LOW | lib/rubygems/basic_specification.rb | 276 | # Usage: | COMMENT |
| LOW | lib/rubygems/gemcutter_utilities/webauthn_poller.rb | 9 | # Example usage: | COMMENT |
| LOW | lib/rubygems/gemcutter_utilities/webauthn_listener.rb | 19 | # Example usage: | COMMENT |
| LOW | …gems/gemcutter_utilities/webauthn_listener/response.rb | 16 | # Example usage: | COMMENT |
| LOW | tool/release.sh | 3 | # Usage: | COMMENT |
| LOW | tool/auto-style.rb | 2 | # Usage: | COMMENT |
| LOW | tool/downloader.rb | 160 | # Example usage: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | yjit.rb | 11 | # Check if YJIT is enabled. | COMMENT |
| LOW⚡ | yjit.rb | 16 | # Check if `--yjit-stats` is used. | COMMENT |
| LOW⚡ | yjit.rb | 21 | # Check if `--yjit-log` is used. | COMMENT |
| LOW⚡ | yjit.rb | 26 | # Check if rb_yjit_trace_exit_locations_enabled_p is enabled. | COMMENT |
| LOW | pathname_builtin.rb | 1236 | # # Write file; updates atime for file,but not directory. | COMMENT |
| LOW | pathname_builtin.rb | 1240 | # # Read file; may update atime for file, but not directory. | COMMENT |
| LOW | pathname_builtin.rb | 1310 | # # Write file; file ctime updated; directory ctime not updated. | COMMENT |
| LOW | pathname_builtin.rb | 1314 | # # Read file; neither ctime updated. | COMMENT |
| LOW | io_buffer.c | 4024 | * # Open file for read-write, pass size, offset, and flags=0 | COMMENT |
| LOW | zjit.rb | 22 | # Check if ZJIT is enabled | COMMENT |
| LOW | zjit.rb | 39 | # Check if `--zjit-trace-exits` is used | COMMENT |
| LOW | zjit.rb | 63 | # Check if `--zjit-stats` is used | COMMENT |
| LOW | test/rubygems/test_gem_commands_rebuild_command.rb | 119 | # Set SOURCE_DATE_EPOCH to 2001-02-03 04:05:06 -0500. | COMMENT |
| LOW | test/rubygems/test_gem_commands_rebuild_command.rb | 133 | # Set SOURCE_DATE_EPOCH to a different value, meaning we are | COMMENT |
| LOW | test/rubygems/test_gem_installer.rb | 972 | Gem.use_paths "#{@gemhome}2" # Set GEM_HOME to an uninitialized repo | CODE |
| LOW | test/openssl/test_pkcs12.rb | 237 | # Print the value of the @mycert such as by `puts @mycert.to_s` and | COMMENT |
| LOW | spec/ruby/core/process/setpriority_spec.rb | 38 | # Check if we can lower the nice value or not. | COMMENT |
| LOW | lib/securerandom.rb | 82 | # Check if Random.urandom is available | COMMENT |
| LOW | lib/rubygems/query_utils.rb | 175 | # Check if gem +name+ version +version+ is installed. | COMMENT |
| LOW | lib/rubygems/specification.rb | 2218 | # Set requirements to +req+, ensuring it is an array. | COMMENT |
| LOW | lib/rubygems/installer.rb | 273 | # Set loaded_from to ensure extension_dir is correct | COMMENT |
| LOW | lib/rubygems/command.rb | 588 | # Set us to "really verbose" so the progress meter works | COMMENT |
| LOW | lib/rubygems/ext/cmake_builder.rb | 48 | # Check if the gem defined presets | COMMENT |
| LOW | lib/bundler/definition.rb | 918 | # Check if the specs of the given source changed | COMMENT |
| LOW | lib/bundler/plugin/events.rb | 25 | # Check if an event has been defined | COMMENT |
| LOW | tool/rbinstall.rb | 734 | # Set loaded_from to ensure extension_dir is correct | COMMENT |
| LOW | tool/travis_wait.sh | 9 | # Print message with bash variable SECONDS. | COMMENT |
| LOW | tool/lrama/lib/lrama/parser.rb | 81 | # Print messages time to time while compiling. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | error.c | 2022 | * from Kernel#caller_locations, copied from another error, or just set to | COMMENT |
| MEDIUM | test/rubygems/test_gem_installer.rb | 33 | # this file is here to facilitate running it. | COMMENT |
| LOW | test/ruby/test_random_formatter.rb | 97 | # It would be nice to simply use Time#floor here. But that is problematic | COMMENT |
| MEDIUM | test/ruby/test_string.rb | 2646 | # more comprehensive tests are in test_pack.rb | COMMENT |
| MEDIUM | test/ruby/test_array.rb | 1312 | # more comprehensive tests are in test_pack.rb | COMMENT |
| MEDIUM | test/ruby/test_zjit_cli.rb | 10 | # codegen should be added to the Rust test harness (`codegen_tests.rs`) | COMMENT |
| MEDIUM | ext/psych/lib/psych/tree_builder.rb | 6 | # This class works in conjunction with Psych::Parser to build an in-memory | COMMENT |
| LOW | ext/json/lib/json/common.rb | 974 | # All these were meant to be deprecated circa 2009, but were just set as undocumented | 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 |
| MEDIUM | yjit/src/codegen.rs | 8547 | // Codegen for keyword argument handling. Essentially private to gen_send_iseq() since | COMMENT |
| LOW | lib/timeout.rb | 123 | # In that case, just return and let the main thread create the Timeout thread. | COMMENT |
| LOW | lib/error_highlight/base.rb | 239 | # definition, so just return nil instead of raising. | COMMENT |
| LOW | lib/prism/translation/parser.rb | 294 | # just use the offset directly. Otherwise, we build an array where the | COMMENT |
| LOW | lib/rubygems/errors.rb | 129 | # so that we can loop over a list of mismatches and just add them rather | COMMENT |
| MEDIUM | lib/rubygems/installer.rb | 742 | # this file is here to facilitate running it. | COMMENT |
| LOW | lib/rubygems/spec_fetcher.rb | 176 | # names get rejected, so we just return an empty array immediately instead. | COMMENT |
| MEDIUM | lib/rubygems/compact_index_client/cache_file.rb | 8 | # write cache files in a way that is robust to concurrent modifications | COMMENT |
| MEDIUM | lib/bundler/compact_index_client/cache_file.rb | 8 | # write cache files in a way that is robust to concurrent modifications | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | ext/json/lib/json.rb | 424 | # In this example, +obj+ is used first to generate the shortest | COMMENT |
| HIGH | lib/erb.rb | 515 | # In this example, the tag begins with `'<% #'`, and so is an execution tag, not a comment tag; | COMMENT |
| HIGH | lib/syntax_suggest/parse_blocks_from_indent_line.rb | 8 | # grabbing one that contains only an "end". In this example: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | misc/lldb_cruby.py | 8 | CODE | |
| LOW | misc/lldb_cruby.py | 14 | CODE | |
| LOW | misc/lldb_cruby.py | 18 | CODE | |
| LOW | misc/lldb_disasm.py | 21 | CODE | |
| LOW | misc/lldb_disasm.py | 22 | CODE | |
| LOW | misc/lldb_rb/utils.py | 2 | CODE | |
| LOW | misc/lldb_rb/utils.py | 3 | CODE | |
| LOW | misc/lldb_rb/rb_heap_structs.py | 4 | CODE | |
| LOW | misc/lldb_rb/rb_base_command.py | 1 | CODE | |
| LOW | misc/lldb_rb/rb_base_command.py | 2 | CODE | |
| LOW | misc/lldb_rb/rb_base_command.py | 3 | CODE | |
| LOW | misc/lldb_rb/rb_base_command.py | 4 | CODE | |
| LOW | misc/lldb_rb/commands/command_template.py | 9 | CODE | |
| LOW | misc/lldb_rb/commands/command_template.py | 11 | CODE | |
| LOW | misc/lldb_rb/commands/rb_id2str_command.py | 3 | CODE | |
| LOW | misc/lldb_rb/commands/rb_id2str_command.py | 4 | CODE | |
| LOW | misc/lldb_rb/commands/rp_command.py | 1 | CODE | |
| LOW | misc/lldb_rb/commands/rp_command.py | 3 | CODE | |
| LOW | misc/lldb_rb/commands/rp_command.py | 4 | CODE | |
| LOW | misc/lldb_rb/commands/heap_page_command.py | 3 | CODE | |
| LOW | misc/lldb_rb/commands/print_flags_command.py | 1 | CODE | |
| LOW | misc/lldb_rb/commands/print_flags_command.py | 4 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | ext/psych/lib/psych.rb | 268 | # NOTE: This method *should not* be used to parse untrusted documents, such as | COMMENT |
| LOW | ext/psych/lib/psych.rb | 691 | # NOTE: This method *should not* be used to parse untrusted documents, such as | COMMENT |
| LOW | wasm/setjmp.c | 149 | // NOTE: This function is not processed by Asyncify due to a call of asyncify_stop_rewind | COMMENT |
| LOW | lib/net/protocol.rb | 18 | # WARNING: This file is going to remove. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | prism/constant_pool.c | 275 | // If there is a collision, then we need to check if the content is the | COMMENT |
| LOW | prism/constant_pool.c | 279 | // Since we have found a match, we need to check if this is | COMMENT |
| LOW | spec/ruby/core/file/expand_path_spec.rb | 223 | # We need to check if getlogin(3) returns non-NULL, | COMMENT |
| LOW | zjit/src/cruby.rs | 1606 | // We need to check if the class is initialized and not a singleton before | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | zjit/src/asm/x86_64/mod.rs | 659 | // TODO: implement a counter | COMMENT |
| LOW | yjit/src/codegen.rs | 1701 | // TODO: implement for VM_SPECIAL_OBJECT_CBASE and | COMMENT |
| LOW | tool/commit-email.rb | 98 | # TODO: implement something | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | misc/lldb_cruby.py | 249 | CODE | |
| LOW | misc/lldb_cruby.py | 576 | CODE | |
| LOW | misc/lldb_rb/utils.py | 45 | CODE | |
| LOW | misc/lldb_rb/utils.py | 281 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | lib/syntax_suggest/cli.rb | 19 | # All other intputs are dependency injection for testing | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | misc/lldb_disasm.py | 83 | print("Error decoding", file=self.result) | CODE |