The Ruby Programming Language
This report summarizes scanner evidence for ruby/ruby, a Ruby project with 23,799 GitHub stars. SynthScan examined 1,840,115 lines of code across 8949 source files, recording 4161 pattern matches distributed across 18 syntactic categories. The legacy adjusted pattern signal is 2.5 (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? 4021 finding(s).
Are imports declared and package/API names verified? 95 finding(s).
Are wrappers, guards, and repeated structures necessary? 647 finding(s).
Which changes need focused human review? 4161 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 4161 distinct pattern matches across 18 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 |
|---|---|---|---|---|
| LOW | compile.c | 21 | #include "internal.h" | COMMENT |
| LOW | compile.c | 141 | COMMENT | |
| LOW | compile.c | 181 | COMMENT | |
| LOW | compile.c | 481 | #if OPT_INSTRUCTIONS_UNIFICATION | 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/coverage.h" | COMMENT |
| LOW | thread.c | 101 | #include "vm_core.h" | COMMENT |
| LOW | thread.c | 181 | rb_ractor_thread_switch(th->ractor, th, false); \ | COMMENT |
| LOW | thread.c | 281 | MAYBE_UNUSED(static int waitfd_to_waiting_flag(int wfd_event)); | COMMENT |
| LOW | thread.c | 861 | return 0; | COMMENT |
| LOW | jit.c | 1 | // Glue code shared between YJIT and ZJIT for use from Rust. | COMMENT |
| LOW | jit.c | 21 | #include "internal/string.h" | COMMENT |
| LOW | jit.c | 741 | #ifdef JIT_PROBE_NEAR_TEXT | COMMENT |
| LOW | jit.c | 761 | // | COMMENT |
| LOW | jit.c | 861 | } | 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 | ractor.c | 21 | #include "internal/variable.h" | 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 | // Apple's libunwind can't handle our coroutine switching code | COMMENT |
| LOW | vm_dump.c | 1141 | #if defined __linux__ | COMMENT |
| LOW | internal.h | 101 | 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 | VALUE rb_env_to_hash(void); | COMMENT |
| LOW | process.c | 201 | #endif | COMMENT |
| LOW | process.c | 241 | # define PREPARE_GETPWNAM /* do nothing */ | COMMENT |
| LOW | process.c | 281 | } | COMMENT |
| LOW | process.c | 301 | #if SIZEOF_CLOCK_T == SIZEOF_INT | COMMENT |
| LOW | process.c | 321 | static ID id_unsetenv_others, id_chdir, id_umask, id_close_others; | COMMENT |
| LOW | process.c | 5281 | #ifdef RLIMIT_RSS | COMMENT |
| LOW | process.c | 7801 | COMMENT | |
| LOW | process.c | 9401 | # define RUBY_CLOCK_REALTIME RUBY_GETTIMEOFDAY_BASED_CLOCK_REALTIME | COMMENT |
| LOW | process.c | 9421 | #endif | 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 | zjit.c | 1 | #include "internal.h" | COMMENT |
| LOW | zjit.c | 21 | #include "probes_helper.h" | COMMENT |
| LOW | zjit.c | 61 | // Special JITFrame used by all C method calls. We don't control the native | COMMENT |
| LOW | eval_intern.h | 21 | } | COMMENT |
| LOW | eval_intern.h | 41 | #endif | COMMENT |
| LOW | eval_intern.h | 61 | #endif | COMMENT |
| 2977 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | pathname_builtin.rb | 1569 | # # Create the directory; fetch original owner and group. | COMMENT |
| MEDIUM | pathname_builtin.rb | 1582 | # # Create the directory; fetch original owner and group. | COMMENT |
| MEDIUM | pathname_builtin.rb | 2010 | # # Create a file and a link to it. | COMMENT |
| MEDIUM | pathname_builtin.rb | 2698 | # pn.write('foo') # Create the file. | COMMENT |
| MEDIUM | io_buffer.c | 1688 | * # Create a test file: | COMMENT |
| MEDIUM | io_buffer.c | 1691 | * # Create a shared mapping from the given file, the file must be opened in | COMMENT |
| MEDIUM | io_buffer.c | 1738 | * # Create a test file: | COMMENT |
| MEDIUM | io_buffer.c | 1741 | * # 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 | 119 | # This class is MRI specific. | COMMENT |
| MEDIUM | ast.rb | 290 | # This class is MRI specific. | COMMENT |
| MEDIUM | ast.rb | 355 | # This method is experimental and might change without notice. | COMMENT |
| MEDIUM | ast.rb | 424 | # This method is experimental and might change without notice. | COMMENT |
| MEDIUM | ast.rb | 439 | # This method is experimental and might change without notice. | COMMENT |
| MEDIUM | ast.rb | 454 | # This method is experimental and might change without notice. | COMMENT |
| MEDIUM | ast.rb | 467 | # This method is experimental and might change without notice. | COMMENT |
| MEDIUM⚡ | hash.c | 7333 | * # Create an empty hash. | COMMENT |
| MEDIUM⚡ | hash.c | 7340 | * # Create an empty hash. | COMMENT |
| MEDIUM⚡ | hash.c | 7343 | * # Create a hash with initial entries. | COMMENT |
| MEDIUM⚡ | hash.c | 7349 | * # 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 | 3706 | * # Create a directory and a file. | COMMENT |
| MEDIUM | file.c | 4150 | * # Create a file and a link to it. | COMMENT |
| MEDIUM | gc.rb | 159 | # This method is implementation-specific to CRuby. | COMMENT |
| MEDIUM | gc.rb | 358 | # This method is implementation-specific to CRuby. | COMMENT |
| MEDIUM | gc.rb | 503 | # 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 | bootstraptest/test_thread.rb | 616 | # Creating a thread when no native thread can be spawned must fail cleanly: | 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 | 15 | # This method is same code as Base64.encode64 | COMMENT |
| MEDIUM | test/rubygems/test_gem_installer.rb | 2084 | # 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 | 474 | # 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_refinement.rb | 5021 | # Defining a method in a refinement also adds an entry to the refined class. | COMMENT |
| MEDIUM | test/ruby/test_box.rb | 1101 | # Define a constant in the box via eval | COMMENT |
| MEDIUM | test/ruby/test_box.rb | 1112 | # Define a class in the box via eval | COMMENT |
| MEDIUM | test/ruby/test_method.rb | 1770 | # The following code emulate this listing. | COMMENT |
| MEDIUM | test/ruby/test_ractor.rb | 1441 | # Creating a Ractor that is not the first one must leave the creator's mark running: | 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 |
| 186 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | yjit.rb | 481 | def print_sorted_method_calls(calls, num_calls, out:, type:, how_many: 20, left_pad: 4) # :nodoc: | CODE |
| LOW | zjit.rb | 281 | 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 | 259 | def subtest_xmlschema_whitespaces(method) | CODE |
| LOW | test/test_time.rb | 451 | def subtest_xmlschema_leap_second(method) | CODE |
| LOW | test/test_time.rb | 475 | def subtest_xmlschema_fraction(method) | CODE |
| LOW | test/test_forwardable.rb | 396 | def single_forwardable_object(&block) | CODE |
| LOW | test/resolv/test_dns.rb | 1250 | def with_tcp_server_keeping_connection_open(reply) | CODE |
| LOW | test/resolv/test_resource_leak.rb | 20 | def unknown_typeclass_response(count) | CODE |
| LOW | test/resolv/test_resource_leak.rb | 35 | def unknown_svcparam_response(count) | CODE |
| LOW | test/net/http/test_http.rb | 691 | def _test_request__accept_encoding(http) | CODE |
| LOW | test/net/http/test_http.rb | 756 | def _test_request__stream_body(http) | CODE |
| LOW | test/net/http/test_http.rb | 907 | 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/net/http/test_httpheader.rb | 451 | def try_invalid_content_length(str) | 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 | 1468 | def wrong_number_of_arguments_test(x, y) | CODE |
| LOW | test/error_highlight/test_error_highlight.rb | 1481 | | def wrong_number_of_arguments_test(x, y) | CODE |
| LOW | test/error_highlight/test_error_highlight.rb | 1762 | def def_with_required_keyword(x:) | CODE |
| LOW | test/objspace/test_objspace.rb | 859 | 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/api/parse_test.rb | 223 | def assert_repeated_escape_prefixes(source, message, expected) | CODE |
| LOW | test/prism/ruby/find_test.rb | 235 | def fixture_backtrace_location(exception) | CODE |
| LOW | test/prism/ruby/parser_test.rb | 229 | 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-/win32/test_seh_unwind.rb | 41 | def assert_raise_in_cxx_catch(args) | 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 | 819 | def util_install_extension_file(name) | CODE |
| LOW | test/rubygems/test_rubygems.rb | 89 | def ruby_with_shadowing_rubygems_in_load_path(shadowing_path) | CODE |
| LOW | test/rubygems/test_rubygems.rb | 93 | def util_install_operating_system_rb(content) | CODE |
| LOW | test/rubygems/test_rubygems.rb | 110 | def ruby_with_rubygems_and_fake_operating_system_in_load_path(operating_system_path) | CODE |
| LOW | test/rubygems/test_webauthn_listener.rb | 147 | def wait_for_otp_code_expect_error_with_message(message) | CODE |
| LOW | test/rubygems/test_gem_compact_index_client_cache.rb | 168 | def assert_rejects_malformed_name(name) | CODE |
| LOW | test/rubygems/multifactor_auth_utilities.rb | 53 | def respond_with_webauthn_polling(code) | CODE |
| LOW | test/rubygems/helper.rb | 320 | def parse_make_command_line_targets(line) | CODE |
| LOW | test/rubygems/helper.rb | 338 | def assert_contains_make_command(target, output, msg = nil) | CODE |
| LOW | test/rubygems/helper.rb | 1077 | def util_setup_content_addressable_compact_index_gem(name, version, platform: "x86_64-linux", required_ruby_version: " | CODE |
| LOW | test/rubygems/helper.rb | 1307 | def util_compact_index_info_line(spec, created_at = nil) | CODE |
| LOW | test/rubygems/helper.rb | 1333 | def util_compact_index_requirement(requirement) | CODE |
| LOW | test/rubygems/helper.rb | 1337 | def util_compact_index_response(body) | CODE |
| LOW | test/rubygems/helper.rb | 1349 | def write_marshalled_gemspecs(*all_specs) | CODE |
| 542 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | enum.c | 4211 | * # ---------- | COMMENT |
| MEDIUM | enum.c | 4218 | * # ---------- | 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 | 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 | zjit/src/asm/arm64/mod.rs | 87 | /// sf op S └────rm─────┘ └option┘ └─imm3─┘ └────rn─────┘ └────rd─────┘ | COMMENT |
| MEDIUM⚡ | zjit/src/hir/tests.rs | 7143 | // ┌─────┐ | COMMENT |
| MEDIUM⚡ | zjit/src/hir/tests.rs | 7147 | // ┌──▼──┐ ┌─────┐ | COMMENT |
| MEDIUM⚡ | zjit/src/hir/tests.rs | 7148 | // ┌►│ bb2 ├─────►│ bb1 │ | COMMENT |
| MEDIUM⚡ | zjit/src/hir/tests.rs | 7153 | // │ └─────┘ │ | COMMENT |
| MEDIUM⚡ | zjit/src/hir/tests.rs | 7154 | // └─────────────────┘ | COMMENT |
| MEDIUM | zjit/src/hir/tests.rs | 7196 | // ┌─────┐ | COMMENT |
| MEDIUM | zjit/src/hir/tests.rs | 7197 | // │ bb0 ◄─────┐ | COMMENT |
| MEDIUM | zjit/src/hir/tests.rs | 7209 | // │ bb3 ┼─────┘ | COMMENT |
| MEDIUM | zjit/src/hir/tests.rs | 7214 | // └─────┘ | COMMENT |
| MEDIUM | zjit/src/hir/tests.rs | 7272 | // ┌─────┐ | COMMENT |
| MEDIUM | zjit/src/hir/tests.rs | 7273 | // ┌──────► bb0 │ | COMMENT |
| MEDIUM | zjit/src/hir/tests.rs | 7285 | // └──────┼ bb5 │ | COMMENT |
| MEDIUM | zjit/src/hir/tests.rs | 7290 | // └─────┘ | COMMENT |
| MEDIUM | zjit/src/hir/tests.rs | 7364 | // ┌─────┐ | COMMENT |
| MEDIUM | zjit/src/hir/tests.rs | 7374 | // └─────┘ | COMMENT |
| MEDIUM | zjit/src/hir/tests.rs | 7417 | // ┌─────┐ | COMMENT |
| MEDIUM | zjit/src/hir/tests.rs | 7439 | // └─────┘ | COMMENT |
| MEDIUM⚡ | lib/rubygems/security.rb | 192 | # -------------------------- | COMMENT |
| MEDIUM⚡ | lib/rubygems/security.rb | 194 | # -------------------------- | COMMENT |
| MEDIUM⚡ | lib/rubygems/security.rb | 196 | # ----------------------------------- | COMMENT |
| MEDIUM | lib/rubygems/command.rb | 578 | # ---------------------------------------------------------------- | COMMENT |
| MEDIUM | lib/bundler/dsl.rb | 724 | # ------------------------------------------- | COMMENT |
| MEDIUM | lib/bundler/dsl.rb | 728 | # ------------------------------------------- | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | variable.c | 289 | * m.set_temporary_name("fake_name") # => fake_name | COMMENT |
| LOW | variable.c | 290 | * 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 | 486 | fake_key = Object.new | CODE |
| LOW | test/json/json_parser_test.rb | 487 | JSON.load('{"a": 1, "a": 2}', -> (obj) { obj == "a" ? fake_key : obj }, allow_duplicate_key: false) | 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 | 3496 | assert_same m, m.set_temporary_name(name = "fake_name") | CODE |
| LOW⚡ | test/ruby/test_module.rb | 3498 | assert_equal("fake_name", m.name) | CODE |
| LOW⚡ | test/ruby/test_module.rb | 3500 | assert_equal("fake_name::N", m::N.name) | CODE |
| LOW⚡ | test/ruby/test_module.rb | 3501 | assert_equal("fake_name::N::O", m::N::O.name) | CODE |
| LOW | test/ruby/test_module.rb | 3519 | 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 | test/ruby/test_zjit_cli.rb | 89 | tmp.puts("Lorem ipsum dolor sit amet, consectetur adipiscing elit, ...") | CODE |
| LOW | test/ruby/test_zjit_cli.rb | 89 | tmp.puts("Lorem ipsum dolor sit amet, consectetur adipiscing elit, ...") | CODE |
| LOW | spec/bundler/runtime/setup_gems_spec.rb | 520 | s.authors = ['John Doe'] | CODE |
| LOW | spec/bundler/commands/newgem_spec.rb | 364 | expect(generated_gemspec.email.first).to eq("user@example.com") | CODE |
| LOW | spec/bundler/bundler/lockfile_parser_spec.rb | 305 | 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 | 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 |
| 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 |
| 5 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | test/prism/result/attach_comments_test.rb | 175 | assert_equal ["# c"], node.statements.body.first.comments.map(&:slice) | CODE |
| CRITICAL | test/prism/result/attach_comments_test.rb | 180 | assert_equal ["# c"], result.value.statements.body.first.comments.map(&:slice) | CODE |
| 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 |
|---|---|---|---|---|
| MEDIUM | array.c | 8798 | * 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 | 974 | "Don't forget to include the above Crash Report log file in bug reports.\n" | CODE |
| LOW | error.c | 991 | "\n""Don't forget to include the Crash Report log file under\n" | CODE |
| LOW | test/rubygems/test_gem_commands_cert_command.rb | 114 | assert_equal "Don't forget to move the key file to somewhere private!", | CODE |
| LOW | test/rubygems/test_gem_commands_cert_command.rb | 146 | assert_equal "Don't forget to move the key file to somewhere private!", | CODE |
| LOW | test/rubygems/test_gem_commands_cert_command.rb | 185 | assert_equal "Don't forget to move the key file to somewhere private!", | CODE |
| LOW | test/rubygems/test_gem_commands_cert_command.rb | 268 | assert_equal "Don't forget to move the key file to somewhere private!", | CODE |
| LOW | test/rubygems/test_gem_specification.rb | 3049 | #{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 | 3066 | #{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 | 401 | 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 | 103 | # Here's a simple example of \ERB in action: | COMMENT |
| MEDIUM | lib/delegate.rb | 287 | # 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 | 198 | # In the block, you can use these instance methods, | COMMENT |
| MEDIUM | lib/net/http.rb | 406 | # 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 | 2327 | # Returns an object you can use to sort specifications in #sort_by. | COMMENT |
| LOW | lib/rubygems/commands/cert_command.rb | 152 | say "Don't forget to move the key file to somewhere private!" | CODE |
| MEDIUM | lib/uri/generic.rb | 1262 | # you can modify `rel', but cannot `oth'. | COMMENT |
| MEDIUM | lib/uri/generic.rb | 1287 | # you can modify `rel', but cannot `oth'. | COMMENT |
| MEDIUM | lib/bundler/remote_specification.rb | 76 | # @return [Array] an object you can use to compare and sort this | COMMENT |
| MEDIUM | tool/lib/test/unit/testcase.rb | 10 | # 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 |
|---|---|---|---|---|
| LOW | yjit.rb | 175 | # 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 | 552 | # Usage: | COMMENT |
| LOW⚡ | lib/rubygems/specification.rb | 566 | # 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 | 360 | # Usage: | COMMENT |
| LOW | lib/rubygems/specification.rb | 382 | # Usage: | COMMENT |
| LOW | lib/rubygems/specification.rb | 435 | # Usage: | COMMENT |
| LOW | lib/rubygems/specification.rb | 446 | # Usage: | COMMENT |
| LOW | lib/rubygems/specification.rb | 461 | # Usage: | COMMENT |
| LOW | lib/rubygems/specification.rb | 486 | # Usage: | COMMENT |
| LOW | lib/rubygems/specification.rb | 529 | # Usage: | COMMENT |
| LOW | lib/rubygems/specification.rb | 598 | # Usage: | COMMENT |
| LOW | lib/rubygems/specification.rb | 613 | # Usage: | COMMENT |
| LOW | lib/rubygems/specification.rb | 631 | # Usage: | COMMENT |
| LOW | lib/rubygems/specification.rb | 659 | # Usage: | COMMENT |
| LOW | lib/rubygems/specification.rb | 681 | # Usage: | COMMENT |
| LOW | lib/rubygems/specification.rb | 718 | # Usage: | COMMENT |
| LOW | lib/rubygems/specification.rb | 731 | # Usage: | COMMENT |
| LOW | lib/rubygems/basic_specification.rb | 277 | # 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 | error.c | 2103 | * from Kernel#caller_locations, copied from another error, or just set to | COMMENT |
| MEDIUM | test/rubygems/test_gem_installer.rb | 34 | # 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 | 3122 | # more comprehensive tests are in test_pack.rb | COMMENT |
| MEDIUM | test/ruby/test_array.rb | 1408 | # 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 |
| LOW | test/ruby/test_ractor.rb | 1536 | # GPR_FLAG_MAJOR_BY_NOFREE is ruled out by the last_major_gc step 5 just set. | COMMENT |
| MEDIUM | ext/psych/lib/psych/tree_builder.rb | 6 | # This class works in conjunction with Psych::Parser to build an in-memory | 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 | spec/bundler/support/helpers.rb | 197 | # them switch, and drop the load path override the harness runs with. | COMMENT |
| MEDIUM | spec/bundler/support/switch_rubygems.rb | 6 | # boot it untouched (see `Spec::Helpers#sys_exec`). The test harness itself | COMMENT |
| MEDIUM | yjit/src/codegen.rs | 8578 | // 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 | 261 | # definition, so just return nil instead of raising. | 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 | 756 | # this file is here to facilitate running it. | COMMENT |
| LOW | lib/rubygems/spec_fetcher.rb | 195 | # 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 |
| LOW | lib/ruby/prism/translation/parser.rb | 294 | # just use the offset directly. Otherwise, we build an array where the | 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 | 1451 | # # Write file; updates file ctime; does not update directory ctime.. | COMMENT |
| LOW | pathname_builtin.rb | 1455 | # # Read file; updates neither ctime. | COMMENT |
| LOW | io_buffer.c | 4820 | * # Open file for read-write, pass size, offset, and flags=0 | COMMENT |
| LOW | zjit.rb | 23 | # Check if ZJIT is enabled | COMMENT |
| LOW | zjit.rb | 40 | # Check if `--zjit-trace-exits` is used | COMMENT |
| LOW | zjit.rb | 87 | # Check if `--zjit-stats` is used | COMMENT |
| LOW | file.c | 3294 | * # Write file; file ctime updated; directory ctime not updated. | COMMENT |
| LOW | file.c | 3298 | * # Read file; neither ctime updated. | 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 | 1155 | 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 | 181 | # Check if gem +name+ version +version+ is installed. | COMMENT |
| LOW | lib/rubygems/specification.rb | 2258 | # Set requirements to +req+, ensuring it is an array. | COMMENT |
| LOW | lib/rubygems/installer.rb | 280 | # 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 | 967 | # 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 | 759 | # 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 |
|---|---|---|---|---|
| HIGH | ext/json/lib/json.rb | 426 | # In this example, +obj+ is used first to generate the shortest | COMMENT |
| HIGH | lib/erb.rb | 549 | # 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 |
|---|---|---|---|---|
| MEDIUM | lib/rubygems/compact_index_client.rb | 13 | # it underneath its own fetcher orchestration, injecting its fetcher and | COMMENT |
| MEDIUM | lib/syntax_suggest/cli.rb | 19 | # All other intputs are dependency injection for testing | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | prism/constant_pool.c | 320 | // If there is a collision, then we need to check if the content is the | COMMENT |
| LOW | prism/constant_pool.c | 325 | // 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 |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | zjit/src/asm/x86_64/mod.rs | 659 | // TODO: implement a counter | COMMENT |
| LOW | yjit/src/codegen.rs | 1702 | // 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 | 265 | CODE | |
| LOW | misc/lldb_cruby.py | 593 | CODE | |
| LOW | misc/lldb_rb/utils.py | 45 | CODE | |
| LOW | misc/lldb_rb/utils.py | 281 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | misc/lldb_disasm.py | 83 | print("Error decoding", file=self.result) | CODE |