3896 matches across 14 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | compile.c | 21 | #include "internal.h" |
| LOW | compile.c | 141 | #ifndef CPDEBUG |
| LOW | compile.c | 181 | #define debug_node_end() gl_node_level -- |
| LOW | compile.c | 12541 | #endif |
| LOW | ast.c | 1 | /* indent-tabs-mode: nil */ |
| LOW | thread.c | 61 | #undef __USE_FORTIFY_LEVEL |
| LOW | thread.c | 81 | #include "internal/eval.h" |
| LOW | thread.c | 4441 | #undef FD_ZERO |
| LOW | jit.c | 1 | // Glue code shared between YJIT and ZJIT for use from Rust. |
| LOW | eval.c | 21 | #include "internal.h" |
| LOW | Cargo.toml | 1 | # This is the root Cargo [workspace](https://doc.rust-lang.org/cargo/reference/workspaces.html) |
| LOW | ractor.c | 1 | // Ractor implementation |
| LOW | localeinit.c | 21 | |
| LOW | dln_find.c | 21 | # include <stdlib.h> |
| LOW | ruby_atomic.h | 1 | #ifndef INTERNAL_ATOMIC_H |
| LOW | ruby_atomic.h | 21 | #define ATOMIC_PTR_EXCHANGE(var, val) RUBY_ATOMIC_PTR_EXCHANGE(var, val) |
| LOW | vm_dump.c | 21 | # endif |
| LOW | vm_dump.c | 761 | # define MCTX_SS_REG(reg) __ss.__##reg |
| LOW | vm_dump.c | 901 | # else |
| LOW | vm_dump.c | 1141 | #include "missing/procstat_vm.c" |
| LOW | internal.h | 101 | #ifndef __MINGW32__ |
| LOW | version.h | 1 | #ifndef RUBY_TOPLEVEL_VERSION_H /*-*-C-*-vi:se ft=c:*/ |
| LOW | version.h | 21 | |
| LOW | version.h | 41 | |
| LOW | version.h | 61 | # define RUBY_PATCHLEVEL_STR "dev" |
| LOW | process.c | 21 | #include <stdarg.h> |
| LOW | process.c | 41 | #ifndef EXIT_SUCCESS |
| LOW | process.c | 61 | #ifdef HAVE_SYS_PARAM_H |
| LOW | process.c | 81 | #endif |
| LOW | process.c | 101 | #include "internal/bits.h" |
| LOW | process.c | 141 | #ifndef WIFSIGNALED |
| LOW | process.c | 161 | |
| LOW | process.c | 181 | #define OBSOLETE_SETREGID 1 |
| LOW | process.c | 201 | # define GETLOGIN_R_SIZE_LIMIT 0x1000 |
| LOW | process.c | 221 | # define USE_GETPWNAM 1 |
| LOW | process.c | 241 | obj2uid0(VALUE id) |
| LOW | process.c | 261 | # ifdef p_uid_from_name |
| LOW | process.c | 301 | # define FINISH_GETGRNAM /* do nothing */ |
| LOW | process.c | 341 | #endif |
| LOW | process.c | 1761 | # define EXPORT_DUP(str) rb_str_dup(str) |
| LOW | process.c | 9461 | #endif |
| LOW | process.c | 9481 | #elif defined(RUBY_GETRUSAGE_BASED_CLOCK_PROCESS_CPUTIME_ID) |
| LOW | process.c | 9681 | define_id(GETTIMEOFDAY_BASED_CLOCK_REALTIME); |
| LOW | parser_st.h | 21 | #include "ruby/defines.h" |
| LOW | parser_st.h | 41 | #ifndef _ |
| LOW | object.c | 21 | |
| LOW | math.c | 481 | |
| LOW | zjit.c | 1 | #include "internal.h" |
| LOW | eval_intern.h | 21 | } |
| LOW | eval_intern.h | 41 | #endif |
| LOW | eval_intern.h | 61 | #endif |
| LOW | eval_intern.h | 121 | } while (0) |
| LOW | regparse.h | 41 | #define NT_CANY 3 |
| LOW | regparse.h | 61 | #define BIT_NT_LIST NTYPE2BIT(NT_LIST) |
| LOW | regparse.h | 81 | #define NENCLOSE(node) (&((node)->u.enclose)) |
| LOW | regparse.h | 101 | #define NODE_STR_BUF_SIZE 24 /* sizeof(CClassNode) - sizeof(int)*4 */ |
| LOW | regparse.h | 121 | |
| LOW | regparse.h | 141 | #define NST_NEST_LEVEL (1<<13) |
| LOW | loadpath.c | 21 | #endif |
| LOW | loadpath.c | 41 | typedef char ruby_lib_version_string[(int)sizeof(RUBY_LIB_VERSION) - 2]; |
| 2824 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | pathname_builtin.rb | 1250 | # # Create the file. |
| MEDIUM | pathname_builtin.rb | 1299 | # # Create the file. |
| MEDIUM | io_buffer.c | 1274 | * # Create a test file: |
| MEDIUM | io_buffer.c | 1277 | * # Create a shared mapping from the given file, the file must be opened in |
| MEDIUM | io_buffer.c | 1327 | * # Create a test file: |
| MEDIUM | io_buffer.c | 1330 | * # Create a private mapping from the given file. Note that the file here |
| MEDIUM | ast.rb | 7 | # This module is MRI specific as it exposes implementation details |
| MEDIUM | ast.rb | 10 | # This module is experimental and its API is not stable, therefore it might |
| MEDIUM | ast.rb | 117 | # This class is MRI specific. |
| MEDIUM | ast.rb | 288 | # This class is MRI specific. |
| MEDIUM | jit_hook.rb | 3 | # This method is removed in jit_undef.rb. |
| MEDIUM | hash.c | 7015 | * # Create an empty hash. |
| MEDIUM | hash.c | 7022 | * # Create an empty hash. |
| MEDIUM | hash.c | 7025 | * # Create a hash with initial entries. |
| MEDIUM | hash.c | 7031 | * # Create an empty hash. |
| MEDIUM | thread_sync.rb | 189 | # This class represents queues of specified size capacity. The push operation |
| MEDIUM | trace_point.rb | 118 | # This method is only for debugging TracePoint itself. |
| MEDIUM | file.c | 6088 | * File.write(filepath, 'foo') # Create the file. |
| MEDIUM | gc.rb | 133 | # This method is implementation-specific to CRuby. |
| MEDIUM | gc.rb | 261 | # This method is implementation-specific to CRuby. |
| MEDIUM | gc.rb | 406 | # This method is implementation-specific to CRuby. |
| MEDIUM | benchmark/lib/benchmark_driver/runner/peak.rb | 26 | # This method is dynamically called by `BenchmarkDriver::JobRunner.run` |
| MEDIUM | benchmark/lib/benchmark_driver/runner/total.rb | 24 | # This method is dynamically called by `BenchmarkDriver::JobRunner.run` |
| MEDIUM | benchmark/lib/benchmark_driver/runner/total.rb | 72 | # This method is overridden by some subclasses |
| MEDIUM | benchmark/lib/benchmark_driver/runner/total.rb | 77 | # This method is overridden by some subclasses |
| MEDIUM | misc/call_fuzzer.rb | 339 | # Define the method on f |
| MEDIUM | test/test_timeout.rb | 284 | # Create the timeout thread under a handle_interrupt(:never) |
| MEDIUM | test/test_timeout.rb | 331 | # Create the timeout thread under a handle_interrupt(:never) |
| MEDIUM | test/rubygems/test_gem_request.rb | 22 | # This method is same code as Base64.encode64 |
| MEDIUM | test/rubygems/test_gem_installer.rb | 1544 | # Create the non-user ext dir |
| MEDIUM | test/rubygems/coverage_setup.rb | 3 | # This file is loaded via -r flag BEFORE rubygems to enable coverage tracking |
| MEDIUM | test/json/json_encoding_test.rb | 137 | # Create a large array with repeated elements |
| MEDIUM | test/json/json_encoding_test.rb | 147 | # Create a large hash |
| MEDIUM | test/fiber/scheduler.rb | 301 | # This method is invoked from a thread or fiber to unblock a fiber that is |
| MEDIUM | test/fiber/scheduler.rb | 533 | # This method is invoked when the thread is exiting. |
| MEDIUM | test/fiber/test_thread.rb | 109 | # Create a fiber that will join a long-running thread: |
| MEDIUM | test/ruby/test_compile_prism.rb | 3 | # This file is organized to match itemization in https://github.com/ruby/prism/issues/1335 |
| MEDIUM | test/ruby/test_box.rb | 785 | # Define a constant in the box via eval |
| MEDIUM | test/ruby/test_box.rb | 796 | # Define a class in the box via eval |
| MEDIUM | test/ruby/test_method.rb | 1767 | # The following code emulate this listing. |
| MEDIUM | ext/objspace/lib/objspace.rb | 24 | # This method is only expected to work with C Ruby. |
| MEDIUM | ext/objspace/lib/objspace.rb | 80 | # This method is only expected to work with C Ruby. |
| MEDIUM | ext/objspace/lib/objspace.rb | 112 | # This method is only expected to work with C Ruby. |
| MEDIUM | ext/digest/sha2/lib/sha2.rb | 58 | # Create a new SHA2 hash object with a given bit length. |
| MEDIUM | ext/psych/lib/psych/scalar_scanner.rb | 29 | # Create a new scanner |
| MEDIUM | ext/psych/lib/psych/streaming.rb | 6 | # Create a new streaming emitter. Emitter will print to +io+. See |
| MEDIUM | ext/psych/lib/psych/tree_builder.rb | 21 | # Create a new TreeBuilder instance |
| MEDIUM | ext/psych/lib/psych/nodes/node.rb | 31 | # Create a new Psych::Nodes::Node |
| MEDIUM | ext/psych/lib/psych/nodes/mapping.rb | 5 | # This class represents a {YAML Mapping}[http://yaml.org/spec/1.1/#mapping]. |
| MEDIUM | ext/psych/lib/psych/nodes/mapping.rb | 38 | # Create a new Psych::Nodes::Mapping object. |
| MEDIUM | ext/psych/lib/psych/nodes/document.rb | 26 | # Create a new Psych::Nodes::Document object. |
| MEDIUM | ext/psych/lib/psych/nodes/stream.rb | 28 | # Create a new Psych::Nodes::Stream node with an +encoding+ that |
| MEDIUM | ext/psych/lib/psych/nodes/sequence.rb | 5 | # This class represents a |
| MEDIUM | ext/psych/lib/psych/nodes/sequence.rb | 33 | # This class represents a sequence in a YAML document. A |
| MEDIUM | ext/psych/lib/psych/nodes/sequence.rb | 64 | # Create a new object representing a YAML sequence. |
| MEDIUM | ext/psych/lib/psych/nodes/scalar.rb | 5 | # This class represents a {YAML Scalar}[http://yaml.org/spec/1.1/#id858081]. |
| MEDIUM | ext/psych/lib/psych/nodes/scalar.rb | 46 | # Create a new Psych::Nodes::Scalar object. |
| MEDIUM | ext/psych/lib/psych/nodes/alias.rb | 5 | # This class represents a {YAML Alias}[http://yaml.org/spec/1.1/#alias]. |
| MEDIUM | ext/psych/lib/psych/nodes/alias.rb | 13 | # Create a new Alias that points to an +anchor+ |
| MEDIUM | ext/openssl/ossl_pkey_dh.c | 62 | * # Creating an instance from scratch |
| 175 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | yjit.rb | 456 | def print_sorted_method_calls(calls, num_calls, out:, type:, how_many: 20, left_pad: 4) # :nodoc: |
| LOW | zjit.rb | 241 | def print_counters_with_prefix(buf:, stats:, prefix:, prompt:, limit: nil) |
| LOW | misc/lldb_disasm.py | 224 | def __get_insns_address_table(self): |
| LOW | bootstraptest/test_yjit.rb | 2771 | def expandarray_always_call_to_ary(object) |
| LOW | bootstraptest/runner.rb | 825 | def in_temporary_working_directory(dir) |
| LOW | test/test_securerandom.rb | 46 | def check_forking_random_bytes(target_pid, target) |
| LOW | test/test_pp.rb | 150 | private def instance_variables_to_inspect() [:@b] end |
| LOW | test/test_time.rb | 421 | def subtest_xmlschema_leap_second(method) |
| LOW | test/test_time.rb | 445 | def subtest_xmlschema_fraction(method) |
| LOW | test/test_forwardable.rb | 396 | def single_forwardable_object(&block) |
| LOW | test/net/http/test_http.rb | 668 | def _test_request__accept_encoding(http) |
| LOW | test/net/http/test_http.rb | 733 | def _test_request__stream_body(http) |
| LOW | test/net/http/test_http.rb | 872 | def _test_set_form_urlencoded(http, data) |
| LOW | test/net/http/test_httpheader.rb | 342 | def try_invalid_content_range(s) |
| LOW | test/optparse/test_load.rb | 62 | def setup_options_xdg_config_home(&block) |
| LOW | test/optparse/test_load.rb | 66 | def setup_options_home_config(&block) |
| LOW | test/optparse/test_load.rb | 70 | def setup_options_xdg_config_dirs(&block) |
| LOW | test/optparse/test_load.rb | 74 | def setup_options_home_config_settings(&block) |
| LOW | test/optparse/test_load.rb | 78 | def setup_options_home_options(envname, &block) |
| LOW | test/error_highlight/test_error_highlight.rb | 1461 | def wrong_number_of_arguments_test(x, y) |
| LOW | test/error_highlight/test_error_highlight.rb | 1474 | | def wrong_number_of_arguments_test(x, y) |
| LOW | test/objspace/test_objspace.rb | 735 | def assert_test_string_entry_correct_in_dump_all(output) |
| LOW | test/prism/newline_offsets_test.rb | 38 | def assert_newline_offsets_for(source, message = nil) |
| LOW | test/prism/library_symbols_test.rb | 32 | def hidden_global_objdump_symbols(path) |
| LOW | test/prism/library_symbols_test.rb | 36 | def visible_global_objdump_symbols(path) |
| LOW | test/prism/encoding/regular_expression_encoding_test.rb | 37 | def assert_regular_expression_encoding_flags(encoding, regexps) |
| LOW | test/prism/encoding/encodings_test.rb | 45 | def assert_encoding_identifier(name, character) |
| LOW | test/prism/ruby/find_test.rb | 228 | def fixture_backtrace_location(exception) |
| LOW | test/prism/ruby/parser_test.rb | 251 | def assert_equal_asts_message(expected_ast, actual_ast) |
| LOW | test/prism/ruby/desugar_compiler_test.rb | 57 | def ensure_every_node_once_in_ast(node, all_nodes = {}.compare_by_identity) |
| LOW | test/-ext-/symbol/test_inadvertent_creation.rb | 21 | def assert_not_interned_error(obj, meth, name, msg = nil, &block) |
| LOW | test/-ext-/symbol/test_inadvertent_creation.rb | 27 | def assert_not_interned_false(obj, meth, name, msg = nil) |
| LOW | test/-ext-/symbol/test_inadvertent_creation.rb | 397 | def assert_no_immortal_symbol_created(name) |
| LOW | test/-ext-/symbol/test_inadvertent_creation.rb | 403 | def assert_no_immortal_symbol_in_method_missing(name) |
| LOW | test/-ext-/thread/helper.rb | 21 | def assert_consistent_timeline(events) |
| LOW | test/-ext-/debug/test_debug.rb | 116 | def getlocal_after_splatarray(array) |
| LOW | test/-ext-/debug/test_debug.rb | 121 | def setlocal_after_splatarray(array) |
| LOW | test/rubygems/test_require.rb | 810 | def util_install_extension_file(name) |
| LOW | test/rubygems/test_rubygems.rb | 57 | def util_install_operating_system_rb(content) |
| LOW | test/rubygems/test_rubygems.rb | 74 | def ruby_with_rubygems_and_fake_operating_system_in_load_path(operating_system_path) |
| LOW | test/rubygems/test_webauthn_listener.rb | 132 | def wait_for_otp_code_expect_error_with_message(message) |
| LOW | test/rubygems/multifactor_auth_utilities.rb | 53 | def respond_with_webauthn_polling(code) |
| LOW | test/rubygems/helper.rb | 315 | def parse_make_command_line_targets(line) |
| LOW | test/rubygems/helper.rb | 333 | def assert_contains_make_command(target, output, msg = nil) |
| LOW | test/rubygems/helper.rb | 1176 | def write_marshalled_gemspecs(*all_specs) |
| LOW | test/rubygems/test_gem_version.rb | 283 | def assert_approximate_satisfies_itself(version) |
| LOW | test/rubygems/test_gem_version.rb | 291 | def assert_bumped_version_equal(expected, unbumped) |
| LOW | test/rubygems/test_gem.rb | 152 | def assert_self_install_permissions(format_executable: false, data_mode: 0o640) |
| LOW | test/rubygems/test_gem_update_suggestion.rb | 18 | def with_eligible_environment(**params) |
| LOW | test/rubygems/test_gem_requirement.rb | 477 | def assert_requirement_hash_equal(expected, actual) |
| LOW | test/rubygems/test_gem_requirement.rb | 496 | def refute_requirement_hash_equal(unexpected, actual) |
| LOW | test/rubygems/test_gem_commands_push_command.rb | 722 | def assert_attestation_multipart(attestation_payload) |
| LOW | test/cgi/test_cgi_escape.rb | 140 | def assert_cgi_escape_html_preserve_encoding(str, encoding) |
| LOW | test/json/json_common_interface_test.rb | 343 | def test_load_file_with_option_shared(method_name) |
| LOW | test/openssl/test_ssl_session.rb | 429 | def server_connect_with_session(port, ctx = nil, sess = nil) |
| LOW | test/uri/test_generic.rb | 1113 | def with_proxy_env_case_sensitive(h, &b) |
| LOW | test/ruby/test_transcode.rb | 2417 | def assert_conversion_both_ways(str1, enc1, str2, enc2) |
| LOW | test/ruby/test_transcode.rb | 2424 | def assert_undefined_conversion(str, to, from = nil) |
| LOW | test/ruby/test_transcode.rb | 2432 | def assert_invalid_byte_sequence(str, to, from = nil) |
| LOW | test/ruby/test_symbol.rb | 203 | def _test_to_proc_arg_with_refinements_call(&block) |
| 488 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | enum.c | 4197 | * # ---------- |
| MEDIUM | enum.c | 4204 | * # ---------- |
| MEDIUM | trace_point.rb | 154 | # # --------------- |
| MEDIUM | trace_point.rb | 174 | # # ------------ |
| MEDIUM | test/ruby/test_module.rb | 154 | # ----------------------------------------------------------- |
| MEDIUM | test/ruby/test_class.rb | 5 | # ------------------ |
| MEDIUM | test/ruby/test_class.rb | 7 | # ------------------ |
| MEDIUM | test/ruby/test_class.rb | 36 | # ------------------ |
| MEDIUM | test/ruby/test_class.rb | 38 | # ------------------ |
| MEDIUM | spec/ruby/language/precedence_spec.rb | 22 | # ----------------------------------------------------------------------- |
| MEDIUM | spec/ruby/language/precedence_spec.rb | 47 | # ----------------------------------------------------------------------- |
| MEDIUM | spec/ruby/language/precedence_spec.rb | 56 | # ----------------------------------------------------------------------- |
| MEDIUM | spec/ruby/language/precedence_spec.rb | 61 | #--------------------------------------------------------------- |
| MEDIUM | spec/ruby/language/precedence_spec.rb | 84 | # ----------------------------------------------------------------------- |
| MEDIUM | spec/ruby/language/predefined_spec.rb | 12 | # --------------------------------------------------------------------------------------------------- |
| MEDIUM | spec/ruby/language/predefined_spec.rb | 18 | # --------------------------------------------------------------------------------------------------- |
| MEDIUM | spec/ruby/language/predefined_spec.rb | 644 | # --------------------------------------------------------------------------------------------------- |
| MEDIUM | spec/ruby/language/predefined_spec.rb | 1007 | # --------------------------------------------------------------------------------------------------- |
| MEDIUM | spec/ruby/language/predefined_spec.rb | 1280 | # --------------------------------------------------------------------------------------------------- |
| MEDIUM | spec/ruby/language/predefined_spec.rb | 1346 | # --------------------------------------------------------------------------------------------------- |
| MEDIUM | zjit/src/asm/arm64/mod.rs | 87 | /// sf op S └────rm─────┘ └option┘ └─imm3─┘ └────rn─────┘ └────rd─────┘ |
| MEDIUM | zjit/src/hir/tests.rs | 5950 | // ┌─────┐ |
| MEDIUM | zjit/src/hir/tests.rs | 5954 | // ┌──▼──┐ ┌─────┐ |
| MEDIUM | zjit/src/hir/tests.rs | 5955 | // ┌►│ bb2 ├─────►│ bb1 │ |
| MEDIUM | zjit/src/hir/tests.rs | 5960 | // │ └─────┘ │ |
| MEDIUM | zjit/src/hir/tests.rs | 5961 | // └─────────────────┘ |
| MEDIUM | zjit/src/hir/tests.rs | 6004 | // ┌─────┐ |
| MEDIUM | zjit/src/hir/tests.rs | 6005 | // │ bb0 ◄─────┐ |
| MEDIUM | zjit/src/hir/tests.rs | 6017 | // │ bb3 ┼─────┘ |
| MEDIUM | zjit/src/hir/tests.rs | 6022 | // └─────┘ |
| MEDIUM | zjit/src/hir/tests.rs | 6081 | // ┌─────┐ |
| MEDIUM | zjit/src/hir/tests.rs | 6082 | // ┌──────► bb0 │ |
| MEDIUM | zjit/src/hir/tests.rs | 6094 | // └──────┼ bb5 │ |
| MEDIUM | zjit/src/hir/tests.rs | 6099 | // └─────┘ |
| MEDIUM | zjit/src/hir/tests.rs | 6174 | // ┌─────┐ |
| MEDIUM | zjit/src/hir/tests.rs | 6184 | // └─────┘ |
| MEDIUM | zjit/src/hir/tests.rs | 6228 | // ┌─────┐ |
| MEDIUM | zjit/src/hir/tests.rs | 6250 | // └─────┘ |
| MEDIUM | lib/rubygems/security.rb | 190 | # -------------------------- |
| MEDIUM | lib/rubygems/security.rb | 192 | # -------------------------- |
| MEDIUM | lib/rubygems/security.rb | 194 | # ----------------------------------- |
| MEDIUM | lib/rubygems/command.rb | 578 | # ---------------------------------------------------------------- |
| MEDIUM | lib/bundler/dsl.rb | 637 | # ------------------------------------------- |
| MEDIUM | lib/bundler/dsl.rb | 641 | # ------------------------------------------- |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | array.c | 8582 | * With #insert you can add a new element to an array at any position. |
| MEDIUM | ractor.rb | 187 | # This is **only for demonstration purposes** and shouldn't be used in a real code. |
| LOW | error.c | 976 | "Don't forget to include the above Crash Report log file in bug reports.\n" |
| LOW | error.c | 993 | "\n""Don't forget to include the Crash Report log file under\n" |
| LOW | test/rubygems/test_gem_commands_cert_command.rb | 129 | assert_equal "Don't forget to move the key file to somewhere private!", |
| LOW | test/rubygems/test_gem_commands_cert_command.rb | 161 | assert_equal "Don't forget to move the key file to somewhere private!", |
| LOW | test/rubygems/test_gem_commands_cert_command.rb | 221 | assert_equal "Don't forget to move the key file to somewhere private!", |
| 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 |
| 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 |
| LOW | include/ruby/internal/intern/thread.h | 254 | * fork a process don't forget to call it. |
| MEDIUM | ext/objspace/lib/objspace/trace.rb | 2 | # When you have an object of unknown provenance, you can use this |
| LOW | spec/ruby/optional/capi/encoding_spec.rb | 391 | str.valid_encoding? # make sure to set the coderange |
| MEDIUM | sample/prism/find_calls.rb | 23 | # All nodes implement pattern matching, so you can use the `in` operator to |
| MEDIUM | lib/rubygems.rb | 57 | # RubyGems or implementing Ruby you can change RubyGems' defaults. |
| MEDIUM | lib/optparse.rb | 417 | # For modern shells (e.g. bash, zsh, etc.), you can use shell |
| MEDIUM | lib/erb.rb | 45 | # Before you can use \ERB, you must first require it |
| MEDIUM | lib/erb.rb | 95 | # Here's a simple example of \ERB in action: |
| MEDIUM | lib/delegate.rb | 285 | # Here's a simple example that takes advantage of the fact that |
| MEDIUM | lib/fileutils.rb | 145 | # To avoid that vulnerability, you can use this method to remove entries: |
| MEDIUM | lib/shellwords.rb | 21 | # Once you've required Shellwords, you can use the #split alias |
| MEDIUM | lib/net/http.rb | 198 | # In the block, you can use these instance methods, |
| MEDIUM | lib/net/http.rb | 405 | # you can use argument +p_no_proxy+ to filter proxies: |
| LOW | lib/rubygems/errors.rb | 26 | # system. Instead of rescuing from this class, make sure to rescue from the |
| LOW | lib/rubygems/errors.rb | 51 | # not the requested version. Instead of rescuing from this class, make sure to |
| MEDIUM | lib/rubygems/specification.rb | 2286 | # Returns an object you can use to sort specifications in #sort_by. |
| LOW | lib/rubygems/commands/cert_command.rb | 150 | say "Don't forget to move the key file to somewhere private!" |
| MEDIUM | lib/uri/generic.rb | 1250 | # you can modify `rel', but cannot `oth'. |
| MEDIUM | lib/uri/generic.rb | 1275 | # you can modify `rel', but cannot `oth'. |
| MEDIUM | lib/bundler/remote_specification.rb | 73 | # @return [Array] an object you can use to compare and sort this |
| MEDIUM | tool/lib/test/unit/testcase.rb | 9 | # Provides a simple set of guards that you can use in your tests |
| Severity | File | Line | Snippet |
|---|---|---|---|
| CRITICAL | ext/psych/lib/psych.rb | 12 | org.jruby.ext.psych.PsychLibrary.new.load(JRuby.runtime, false) |
| 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 |
| 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 |
| 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 |
| CRITICAL | .github/workflows/pr-playground.yml | 40 | const opts = github.rest.actions.listWorkflowRunsForRepo.endpoint.merge({ |
| CRITICAL | tool/lrama/lib/lrama/parser.rb | 213 | com.headius.racc.Cparse.new.load(JRuby.runtime, false) |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | yjit.rb | 152 | # Usage: |
| LOW | spec/mspec/lib/mspec/guards/feature.rb | 18 | # Usage example: |
| LOW | spec/mspec/tool/wrap_with_guard.rb | 4 | # Example usage: |
| LOW | spec/ruby/shared/types/rb_num2dbl_fails.rb | 4 | # Usage example: |
| LOW | lib/weakref.rb | 9 | # Usage: |
| LOW | lib/rubygems/specification.rb | 533 | # Usage: |
| LOW | lib/rubygems/specification.rb | 547 | # Usage: |
| LOW | lib/rubygems/specification.rb | 204 | # Usage: |
| LOW | lib/rubygems/specification.rb | 217 | # Usage: |
| LOW | lib/rubygems/specification.rb | 228 | # Usage: |
| LOW | lib/rubygems/specification.rb | 243 | # Usage: |
| LOW | lib/rubygems/specification.rb | 271 | # Usage: |
| LOW | lib/rubygems/specification.rb | 285 | # Usage: |
| LOW | lib/rubygems/specification.rb | 298 | # Usage: |
| LOW | lib/rubygems/specification.rb | 310 | # Usage: |
| LOW | lib/rubygems/specification.rb | 320 | # Usage: |
| LOW | lib/rubygems/specification.rb | 353 | # Usage: |
| LOW | lib/rubygems/specification.rb | 370 | # Usage: |
| LOW | lib/rubygems/specification.rb | 416 | # Usage: |
| LOW | lib/rubygems/specification.rb | 427 | # Usage: |
| LOW | lib/rubygems/specification.rb | 442 | # Usage: |
| LOW | lib/rubygems/specification.rb | 467 | # Usage: |
| LOW | lib/rubygems/specification.rb | 510 | # Usage: |
| LOW | lib/rubygems/specification.rb | 570 | # Usage: |
| LOW | lib/rubygems/specification.rb | 585 | # Usage: |
| LOW | lib/rubygems/specification.rb | 603 | # Usage: |
| LOW | lib/rubygems/specification.rb | 631 | # Usage: |
| LOW | lib/rubygems/specification.rb | 653 | # Usage: |
| LOW | lib/rubygems/specification.rb | 690 | # Usage: |
| LOW | lib/rubygems/specification.rb | 703 | # Usage: |
| LOW | lib/rubygems/basic_specification.rb | 276 | # Usage: |
| LOW | lib/rubygems/gemcutter_utilities/webauthn_poller.rb | 9 | # Example usage: |
| LOW | lib/rubygems/gemcutter_utilities/webauthn_listener.rb | 19 | # Example usage: |
| LOW | …gems/gemcutter_utilities/webauthn_listener/response.rb | 16 | # Example usage: |
| LOW | tool/release.sh | 3 | # Usage: |
| LOW | tool/auto-style.rb | 2 | # Usage: |
| LOW | tool/downloader.rb | 160 | # Example usage: |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | yjit.rb | 11 | # Check if YJIT is enabled. |
| LOW | yjit.rb | 16 | # Check if `--yjit-stats` is used. |
| LOW | yjit.rb | 21 | # Check if `--yjit-log` is used. |
| LOW | yjit.rb | 26 | # Check if rb_yjit_trace_exit_locations_enabled_p is enabled. |
| LOW | pathname_builtin.rb | 1101 | # Write file; updates atimes for file and directory. |
| LOW | pathname_builtin.rb | 1150 | # Write file; neither birthtime updated. |
| LOW | pathname_builtin.rb | 1208 | # Write file; file ctime updated; directory ctime not updated. |
| LOW | pathname_builtin.rb | 1211 | # Read file; neither ctime not updated. |
| LOW | io_buffer.c | 3895 | * # Open file for read-write, pass size, offset, and flags=0 |
| LOW | zjit.rb | 22 | # Check if ZJIT is enabled |
| LOW | zjit.rb | 39 | # Check if `--zjit-trace-exits` is used |
| LOW | zjit.rb | 63 | # Check if `--zjit-stats` is used |
| LOW | test/rubygems/test_gem_commands_rebuild_command.rb | 119 | # Set SOURCE_DATE_EPOCH to 2001-02-03 04:05:06 -0500. |
| LOW | test/rubygems/test_gem_commands_rebuild_command.rb | 133 | # Set SOURCE_DATE_EPOCH to a different value, meaning we are |
| LOW | test/rubygems/test_gem_installer.rb | 957 | Gem.use_paths "#{@gemhome}2" # Set GEM_HOME to an uninitialized repo |
| LOW | test/openssl/test_pkcs12.rb | 237 | # Print the value of the @mycert such as by `puts @mycert.to_s` and |
| LOW | spec/ruby/core/process/setpriority_spec.rb | 38 | # Check if we can lower the nice value or not. |
| LOW | lib/securerandom.rb | 82 | # Check if Random.urandom is available |
| LOW | lib/rubygems/query_utils.rb | 175 | # Check if gem +name+ version +version+ is installed. |
| LOW | lib/rubygems/specification.rb | 2218 | # Set requirements to +req+, ensuring it is an array. |
| LOW | lib/rubygems/installer.rb | 273 | # Set loaded_from to ensure extension_dir is correct |
| LOW | lib/rubygems/command.rb | 588 | # Set us to "really verbose" so the progress meter works |
| LOW | lib/rubygems/ext/cmake_builder.rb | 48 | # Check if the gem defined presets |
| LOW | lib/bundler/definition.rb | 903 | # Check if the specs of the given source changed |
| LOW | lib/bundler/plugin/events.rb | 25 | # Check if an event has been defined |
| LOW | tool/rbinstall.rb | 734 | # Set loaded_from to ensure extension_dir is correct |
| LOW | tool/travis_wait.sh | 9 | # Print message with bash variable SECONDS. |
| LOW | tool/lrama/lib/lrama/parser.rb | 81 | # Print messages time to time while compiling. |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | error.c | 2022 | * from Kernel#caller_locations, copied from another error, or just set to |
| MEDIUM | test/rubygems/test_gem_installer.rb | 33 | # this file is here to facilitate running it. |
| LOW | test/ruby/test_random_formatter.rb | 97 | # It would be nice to simply use Time#floor here. But that is problematic |
| MEDIUM | test/ruby/test_string.rb | 2627 | # more comprehensive tests are in test_pack.rb |
| MEDIUM | test/ruby/test_array.rb | 1312 | # more comprehensive tests are in test_pack.rb |
| MEDIUM | ext/psych/lib/psych/tree_builder.rb | 6 | # This class works in conjunction with Psych::Parser to build an in-memory |
| LOW | ext/json/lib/json/common.rb | 965 | # All these were meant to be deprecated circa 2009, but were just set as undocumented |
| MEDIUM | spec/mspec/lib/mspec/runner/context.rb | 42 | # Returns true if this is a shared +ContextState+. Essentially, when |
| LOW | spec/mspec/lib/mspec/runner/actions/leakchecker.rb | 334 | # configuration in /etc/nsswitch.conf, and just use the built in files/dns |
| MEDIUM | yjit/src/codegen.rs | 8520 | // Codegen for keyword argument handling. Essentially private to gen_send_iseq() since |
| LOW | lib/timeout.rb | 123 | # In that case, just return and let the main thread create the Timeout thread. |
| LOW | lib/prism/translation/parser.rb | 294 | # just use the offset directly. Otherwise, we build an array where the |
| LOW | lib/rubygems/errors.rb | 129 | # so that we can loop over a list of mismatches and just add them rather |
| MEDIUM | lib/rubygems/installer.rb | 729 | # this file is here to facilitate running it. |
| LOW | lib/rubygems/spec_fetcher.rb | 176 | # names get rejected, so we just return an empty array immediately instead. |
| MEDIUM | lib/bundler/compact_index_client/cache_file.rb | 8 | # write cache files in a way that is robust to concurrent modifications |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | test/psych/test_string.rb | 64 | str = "Lorem ipsum" |
| LOW | test/psych/test_string.rb | 71 | str = "Lorem ipsum\n" |
| LOW | test/psych/test_string.rb | 78 | str = "Lorem ipsum dolor sit\n" |
| LOW | test/psych/test_string.rb | 86 | str = "Lorem ipsum dolor sit amet, consectetur" |
| LOW | test/psych/test_string.rb | 86 | str = "Lorem ipsum dolor sit amet, consectetur" |
| LOW | test/psych/test_string.rb | 94 | "Lorem ipsum\ndolor\n", |
| LOW | test/psych/test_string.rb | 95 | "Lorem ipsum\nZolor\n", |
| LOW | test/psych/test_string.rb | 106 | "Lorem ipsum\ndolor", |
| LOW | test/psych/test_string.rb | 107 | "Lorem ipsum\nZolor", |
| LOW | test/ruby/test_zjit.rb | 68 | tmp.puts("Lorem ipsum dolor sit amet, consectetur adipiscing elit, ...") |
| LOW | test/ruby/test_zjit.rb | 68 | tmp.puts("Lorem ipsum dolor sit amet, consectetur adipiscing elit, ...") |
| LOW | spec/bundler/runtime/setup_spec.rb | 1405 | s.authors = ['John Doe'] |
| LOW | spec/bundler/commands/newgem_spec.rb | 628 | expect(generated_gemspec.email.first).to eq("user@example.com") |
| LOW | spec/bundler/bundler/lockfile_parser_spec.rb | 196 | let(:lockfile_contents) { "hello world\nlorem ipsum\n" } |
| 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 |
| 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 |
| 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 |
| 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 |
| 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 |
| 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 |
| LOW | doc/optparse/ruby/descriptions.rb | 4 | Lorem ipsum dolor sit amet, consectetuer |
| LOW | doc/optparse/ruby/descriptions.rb | 4 | Lorem ipsum dolor sit amet, consectetuer |
| LOW | doc/optparse/ruby/help.rb | 10 | 'Lorem ipsum dolor sit amet, consectetuer.' |
| LOW | doc/optparse/ruby/help.rb | 10 | 'Lorem ipsum dolor sit amet, consectetuer.' |
| LOW | doc/optparse/ruby/help_format.rb | 14 | 'Lorem ipsum dolor sit amet, consectetuer.' |
| LOW | doc/optparse/ruby/help_format.rb | 14 | 'Lorem ipsum dolor sit amet, consectetuer.' |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | misc/lldb_cruby.py | 8 | |
| LOW | misc/lldb_cruby.py | 14 | |
| LOW | misc/lldb_cruby.py | 18 | |
| LOW | misc/lldb_disasm.py | 21 | |
| LOW | misc/lldb_disasm.py | 22 | |
| LOW | misc/lldb_rb/utils.py | 2 | |
| LOW | misc/lldb_rb/utils.py | 3 | |
| LOW | misc/lldb_rb/rb_heap_structs.py | 4 | |
| LOW | misc/lldb_rb/rb_base_command.py | 1 | |
| LOW | misc/lldb_rb/rb_base_command.py | 2 | |
| LOW | misc/lldb_rb/rb_base_command.py | 3 | |
| LOW | misc/lldb_rb/rb_base_command.py | 4 | |
| LOW | misc/lldb_rb/commands/command_template.py | 9 | |
| LOW | misc/lldb_rb/commands/command_template.py | 11 | |
| LOW | misc/lldb_rb/commands/rb_id2str_command.py | 3 | |
| LOW | misc/lldb_rb/commands/rb_id2str_command.py | 4 | |
| LOW | misc/lldb_rb/commands/rp_command.py | 1 | |
| LOW | misc/lldb_rb/commands/rp_command.py | 3 | |
| LOW | misc/lldb_rb/commands/rp_command.py | 4 | |
| LOW | misc/lldb_rb/commands/heap_page_command.py | 3 | |
| LOW | misc/lldb_rb/commands/print_flags_command.py | 1 | |
| LOW | misc/lldb_rb/commands/print_flags_command.py | 4 |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | prism/constant_pool.c | 275 | // If there is a collision, then we need to check if the content is the |
| LOW | prism/constant_pool.c | 279 | // Since we have found a match, we need to check if this is |
| LOW | prism/prism.c | 9663 | * we need to check if there is a heredoc or heredocs that we have already lexed |
| LOW | prism/prism.c | 12846 | * contain block exits for the current scope, we need to check if they |
| LOW | prism/prism.c | 13493 | // a newline or semicolon. At this point we need to check if we're at |
| LOW | prism/prism.c | 13705 | // Otherwise we need to check if the subsequent token begins an expression. |
| LOW | prism/prism.c | 13759 | // First we need to check if the next token is one that could be the start |
| LOW | prism/prism.c | 13962 | // If there was a comma, then we need to check if we also accepted a |
| LOW | prism/prism.c | 17059 | // Now that we have a primitive, we need to check if it's part of a range. |
| LOW | prism/prism.c | 17063 | // Now that we have the operator, we need to check if this is followed |
| LOW | prism/prism.c | 18925 | * parenthesis, then we need to check if this is possibly a multiple |
| LOW | prism/prism.c | 19364 | // we need to check if there are arguments following the |
| LOW | spec/ruby/core/file/expand_path_spec.rb | 223 | # We need to check if getlogin(3) returns non-NULL, |
| LOW | zjit/src/cruby.rs | 1532 | // We need to check if the class is initialized and not a singleton before |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | misc/lldb_cruby.py | 249 | |
| LOW | misc/lldb_cruby.py | 576 | |
| LOW | misc/jit_perf.py | 17 | |
| LOW | misc/lldb_rb/utils.py | 45 | |
| LOW | misc/lldb_rb/utils.py | 281 |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | misc/lldb_disasm.py | 83 | print("Error decoding", file=self.result) |