A high performance implementation of the Ruby programming language, built on GraalVM.
This report presents the forensic synthetic code analysis of truffleruby/truffleruby, a Ruby project with 3,218 GitHub stars. SynthScan v2.0 examined 1,814,321 lines of code across 12327 source files, recording 7802 pattern matches distributed across 17 syntactic categories. The overall adjusted score of 4.8 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).
Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.
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 7802 distinct pattern matches across 17 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 | bench/polybench.rb | 1 | # Copyright (c) 2026 TruffleRuby contributors. | COMMENT |
| LOW | bench/metrics/mandelbrot.rb | 1 | # truffleruby_primitives: true | COMMENT |
| LOW | bench/metrics/mandelbrot.rb | 21 | # | COMMENT |
| LOW | bench/micro/file/open.rb | 1 | # Copyright (c) 2026 TruffleRuby contributors. | COMMENT |
| LOW | bench/micro/hash/promote-null-hash.rb | 1 | # Copyright (c) 2026 TruffleRuby contributors. | COMMENT |
| LOW | bench/micro/hash/promote-packed-hash.rb | 1 | # Copyright (c) 2026 TruffleRuby contributors. | COMMENT |
| LOW | bench/micro/array/flatten-simple.rb | 1 | # Copyright (c) 2026 TruffleRuby contributors. | COMMENT |
| LOW | bench/micro/fiber/create.rb | 1 | # Copyright (c) 2026 TruffleRuby contributors. | COMMENT |
| LOW | bench/micro/integer/mod_pow2.rb | 1 | # Copyright (c) 2026 TruffleRuby contributors. | COMMENT |
| LOW | bench/micro/random/random.rb | 1 | # Copyright (c) 2026 TruffleRuby contributors. | COMMENT |
| LOW | bench/micro/random/random_object.rb | 1 | # Copyright (c) 2026 TruffleRuby contributors. | COMMENT |
| LOW | bench/micro/thread/current.rb | 1 | # Copyright (c) 2026 TruffleRuby contributors. | COMMENT |
| LOW | bench/micro/thread/create_join.rb | 1 | # Copyright (c) 2026 TruffleRuby contributors. | COMMENT |
| LOW | bench/parallel/savina/lib/savina-common.rb | 1 | # Copyright (c) 2016 Benoit Daloze | COMMENT |
| LOW | bench/parallel/savina/lib/savina-trapezoidal.rb | 1 | # This code is derived from the Savina benchmark suite, | COMMENT |
| LOW | bench/sinatra/bundle/gems/tilt-2.0.10/lib/tilt.rb | 61 | # @return the template object that is currently rendering. | COMMENT |
| LOW | bench/sinatra/bundle/gems/tilt-2.0.10/lib/tilt.rb | 81 | # | COMMENT |
| LOW | …ch/sinatra/bundle/gems/tilt-2.0.10/lib/tilt/mapping.rb | 1 | require 'monitor' | COMMENT |
| LOW | …ch/sinatra/bundle/gems/tilt-2.0.10/lib/tilt/mapping.rb | 21 | # | COMMENT |
| LOW | …ch/sinatra/bundle/gems/tilt-2.0.10/lib/tilt/mapping.rb | 41 | # mapping.register_lazy('Bluecloth::Template', 'bluecloth/template', 'md') | COMMENT |
| LOW | …ch/sinatra/bundle/gems/tilt-2.0.10/lib/tilt/mapping.rb | 61 | @template_map = other.template_map.dup | COMMENT |
| LOW | …ch/sinatra/bundle/gems/tilt-2.0.10/lib/tilt/mapping.rb | 121 | # mapping.registered?('erb') # => true | COMMENT |
| LOW | …ch/sinatra/bundle/gems/tilt-2.0.10/lib/tilt/mapping.rb | 261 | Tilt.autoload :Dummy, "tilt/dummy" | COMMENT |
| LOW | bench/sinatra/bundle/gems/tilt-2.0.10/lib/tilt/csv.rb | 21 | # # data rows | COMMENT |
| LOW | bench/sinatra/bundle/gems/tilt-2.0.10/lib/tilt/yajl.rb | 1 | require 'tilt/template' | COMMENT |
| LOW | bench/sinatra/bundle/gems/tilt-2.0.10/lib/tilt/yajl.rb | 21 | # # The json variable represents the buffer | COMMENT |
| LOW | …h/sinatra/bundle/gems/tilt-2.0.10/lib/tilt/template.rb | 141 | # @!group For template implementations | COMMENT |
| LOW | …h/sinatra/bundle/gems/tilt-2.0.10/lib/tilt/template.rb | 161 | # evaluation is guaranteed to be performed in the scope object with the | COMMENT |
| LOW | …nch/sinatra/bundle/gems/tilt-2.0.10/lib/tilt/erubis.rb | 1 | require 'tilt/erb' | COMMENT |
| LOW | …nch/sinatra/bundle/gems/tilt-2.0.10/lib/tilt/liquid.rb | 1 | require 'tilt/template' | COMMENT |
| LOW | …dle/gems/sinatra-2.1.0/lib/sinatra/indifferent_hash.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | …dle/gems/sinatra-2.1.0/lib/sinatra/indifferent_hash.rb | 21 | # rgb['black'] # => '#000000' # string retrieval | COMMENT |
| LOW | …sinatra/bundle/gems/mustermann-1.1.1/lib/mustermann.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | …sinatra/bundle/gems/mustermann-1.1.1/lib/mustermann.rb | 21 | # * From an Array or multiple inputs: creates a new pattern from each element, combines them to a {Mustermann::Composi | COMMENT |
| LOW | …sinatra/bundle/gems/mustermann-1.1.1/lib/mustermann.rb | 41 | # class MyObject | COMMENT |
| LOW | …undle/gems/mustermann-1.1.1/lib/mustermann/identity.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | …undle/gems/mustermann-1.1.1/lib/mustermann/identity.rb | 41 | # @example (see Mustermann::Pattern#to_templates) | COMMENT |
| LOW | …dle/gems/mustermann-1.1.1/lib/mustermann/to_pattern.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | …dle/gems/mustermann-1.1.1/lib/mustermann/to_pattern.rb | 21 | module ToPattern | COMMENT |
| LOW | …bundle/gems/mustermann-1.1.1/lib/mustermann/sinatra.rb | 21 | # Takes a string and espaces any characters that have special meaning for Sinatra patterns. | COMMENT |
| LOW | …bundle/gems/mustermann-1.1.1/lib/mustermann/sinatra.rb | 41 | # Creates a pattern that matches any string matching either one of the patterns. | COMMENT |
| LOW | …bundle/gems/mustermann-1.1.1/lib/mustermann/sinatra.rb | 61 | return super unless converted.names.empty? or names.empty? | COMMENT |
| LOW | …ndle/gems/mustermann-1.1.1/lib/mustermann/extension.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | …undle/gems/mustermann-1.1.1/lib/mustermann/expander.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | …undle/gems/mustermann-1.1.1/lib/mustermann/expander.rb | 61 | # | COMMENT |
| LOW | …undle/gems/mustermann-1.1.1/lib/mustermann/expander.rb | 81 | # | COMMENT |
| LOW | …undle/gems/mustermann-1.1.1/lib/mustermann/expander.rb | 101 | # Regexps and Symbols match against key, everything else matches against value. | COMMENT |
| LOW | …undle/gems/mustermann-1.1.1/lib/mustermann/expander.rb | 121 | # pattern = Mustermann::Expander.new('/:name', '/:name.:ext') | COMMENT |
| LOW | …bundle/gems/mustermann-1.1.1/lib/mustermann/pattern.rb | 121 | end | COMMENT |
| LOW | …bundle/gems/mustermann-1.1.1/lib/mustermann/pattern.rb | 141 | string.size.downto(0).detect { |s| self === string[0, s] } | COMMENT |
| LOW | …bundle/gems/mustermann-1.1.1/lib/mustermann/pattern.rb | 161 | # @example | COMMENT |
| LOW | …bundle/gems/mustermann-1.1.1/lib/mustermann/pattern.rb | 221 | # | COMMENT |
| LOW | …bundle/gems/mustermann-1.1.1/lib/mustermann/pattern.rb | 241 | raise NotImplementedError, "expanding not supported by #{self.class}" | COMMENT |
| LOW | …bundle/gems/mustermann-1.1.1/lib/mustermann/pattern.rb | 261 | # pattern = Mustermann.new('/:name') | COMMENT |
| LOW | …bundle/gems/mustermann-1.1.1/lib/mustermann/pattern.rb | 281 | end | COMMENT |
| LOW | …bundle/gems/mustermann-1.1.1/lib/mustermann/pattern.rb | 301 | # pattern === '/foo' # => false | COMMENT |
| LOW | …bundle/gems/mustermann-1.1.1/lib/mustermann/pattern.rb | 321 | COMMENT | |
| LOW | …bundle/gems/mustermann-1.1.1/lib/mustermann/pattern.rb | 341 | # pattern = Mustermann.new('/:a/:b') | COMMENT |
| LOW | …/bundle/gems/mustermann-1.1.1/lib/mustermann/mapper.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | …/bundle/gems/mustermann-1.1.1/lib/mustermann/mapper.rb | 21 | # require 'mustermann/mapper' | COMMENT |
| 5076 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …h/sinatra/bundle/gems/tilt-2.0.10/lib/tilt/template.rb | 54 | # Create a new template with the file, line, and options specified. By | COMMENT |
| MEDIUM | …h/sinatra/bundle/gems/tilt-2.0.10/lib/tilt/template.rb | 164 | # This method is only used by source generating templates. Subclasses that | COMMENT |
| MEDIUM | …/sinatra/bundle/gems/sinatra-2.1.0/lib/sinatra/base.rb | 1307 | # Define a custom error handler. Optionally takes either an Exception | COMMENT |
| MEDIUM | …/sinatra/bundle/gems/sinatra-2.1.0/lib/sinatra/base.rb | 1323 | # Define a named template. The block must return the template source. | COMMENT |
| MEDIUM | …/sinatra/bundle/gems/sinatra-2.1.0/lib/sinatra/base.rb | 1329 | # Define the layout template. The block must return the template source. | COMMENT |
| MEDIUM | …/sinatra/bundle/gems/sinatra-2.1.0/lib/sinatra/base.rb | 1384 | # Define a before filter; runs before all requests within the same | COMMENT |
| MEDIUM | …/sinatra/bundle/gems/sinatra-2.1.0/lib/sinatra/base.rb | 1391 | # Define an after filter; runs after all requests within the same | COMMENT |
| MEDIUM | …/sinatra/bundle/gems/sinatra-2.1.0/lib/sinatra/base.rb | 1520 | # Create a new instance without middleware in front of it. | COMMENT |
| MEDIUM | …/sinatra/bundle/gems/sinatra-2.1.0/lib/sinatra/base.rb | 1523 | # Create a new instance of the class fronted by its middleware | COMMENT |
| MEDIUM | …/sinatra/bundle/gems/sinatra-2.1.0/lib/sinatra/base.rb | 1999 | # Create a new Sinatra application; the block is evaluated in the class scope. | COMMENT |
| MEDIUM | …dle/gems/mustermann-1.1.1/lib/mustermann/ast/parser.rb | 75 | # Create a node for a character we don't have an explicit rule for. | COMMENT |
| MEDIUM | …nch/sinatra/bundle/gems/rack-2.2.3/lib/rack/builder.rb | 128 | # Create a new Rack::Builder instance and return the Rack application | COMMENT |
| MEDIUM | …ch/sinatra/bundle/gems/rack-2.2.3/lib/rack/response.rb | 32 | # Initialize the response object with the specified body, status | COMMENT |
| MEDIUM | …/asciidoctor/asciidoctor/lib/asciidoctor/extensions.rb | 27 | # This class provides access to a class-level Hash for holding default | COMMENT |
| MEDIUM | bench/asciidoctor/asciidoctor/lib/asciidoctor/reader.rb | 1003 | # This method is typically used in an IncludeProcessor to add source | COMMENT |
| MEDIUM | bench/asciidoctor/asciidoctor/lib/asciidoctor/parser.rb | 17 | # # Create a Reader for the AsciiDoc lines and retrieve the next block from it. | COMMENT |
| MEDIUM | bench/asciidoctor/asciidoctor/lib/asciidoctor/parser.rb | 52 | # This method is the main entry-point into the Parser when parsing a full document. | COMMENT |
| MEDIUM | bench/asciidoctor/asciidoctor/lib/asciidoctor/parser.rb | 2014 | # This method handles lines with the following content: | COMMENT |
| MEDIUM | …ch/asciidoctor/asciidoctor/lib/asciidoctor/callouts.rb | 39 | # This method is used during conversion to retrieve the unique id of the | COMMENT |
| MEDIUM | bench/chunky_png/chunky_png/lib/chunky_png/dimension.rb | 53 | # This class contains some methods to simplify performing dimension related checks. | COMMENT |
| MEDIUM | bench/chunky_png/chunky_png/lib/chunky_png/point.rb | 53 | # This class implements some basic methods to handle comparison, the splat operator and | COMMENT |
| MEDIUM | …/chunky_png/chunky_png/lib/chunky_png/compatibility.rb | 1 | # Define the byte-operators on a string if they're not defined (Ruby 1.8) | COMMENT |
| MEDIUM | mx.truffleruby/suite.py | 888 | # Create the complete files for bundled gems to let RubyGems know the gems are fully built and can be ac | COMMENT |
| MEDIUM | …ecosystem/blog6/config/initializers/wrap_parameters.rb | 3 | # This file contains settings for ActionController::ParamsWrapper which | COMMENT |
| MEDIUM | …m/blog6/config/initializers/content_security_policy.rb | 3 | # Define an application-wide content security policy | COMMENT |
| MEDIUM | …log6/config/initializers/new_framework_defaults_6_0.rb | 3 | # This file contains migration options to ease your Rails 6.0 upgrade. | COMMENT |
| MEDIUM | test/truffle/ecosystem/blog6/db/schema.rb | 1 | # This file is auto-generated from the current state of the database. Instead | COMMENT |
| MEDIUM | …st/truffle/integration/single_threaded/finalization.rb | 23 | # Defining a new finalizer should cause the old finalizer to run in this thread | COMMENT |
| MEDIUM | test/mri/tests/test_timeout.rb | 278 | # Create the timeout thread under a handle_interrupt(:never) | COMMENT |
| MEDIUM | test/mri/tests/test_timeout.rb | 325 | # Create the timeout thread under a handle_interrupt(:never) | COMMENT |
| MEDIUM | test/mri/tests/rubygems/test_gem_request.rb | 22 | # This method is same code as Base64.encode64 | COMMENT |
| MEDIUM | test/mri/tests/rubygems/test_gem_installer.rb | 1535 | # Create the non-user ext dir | COMMENT |
| MEDIUM | test/mri/tests/json/json_encoding_test.rb | 137 | # Create a large array with repeated elements | COMMENT |
| MEDIUM | test/mri/tests/json/json_encoding_test.rb | 147 | # Create a large hash | COMMENT |
| MEDIUM | test/mri/tests/fiber/scheduler.rb | 301 | # This method is invoked from a thread or fiber to unblock a fiber that is | COMMENT |
| MEDIUM | test/mri/tests/fiber/scheduler.rb | 533 | # This method is invoked when the thread is exiting. | COMMENT |
| MEDIUM | test/mri/tests/fiber/test_thread.rb | 109 | # Create a fiber that will join a long-running thread: | COMMENT |
| MEDIUM | test/mri/tests/win32/test_registry.rb | 20 | # Create a new registry key per test in an atomic way, which is deleted on teardown. | COMMENT |
| MEDIUM | test/mri/tests/ruby/test_compile_prism.rb | 3 | # This file is organized to match itemization in https://github.com/ruby/prism/issues/1335 | COMMENT |
| MEDIUM | test/mri/tests/ruby/test_box.rb | 571 | # Define a constant in the box via eval | COMMENT |
| MEDIUM | test/mri/tests/ruby/test_box.rb | 582 | # Define a class in the box via eval | COMMENT |
| MEDIUM | test/mri/tests/ruby/test_method.rb | 1747 | # The following code emulate this listing. | COMMENT |
| MEDIUM | spec/mspec/lib/mspec/runner/mspec.rb | 240 | # This method is used for registering actions that are | COMMENT |
| MEDIUM | spec/mspec/lib/mspec/runner/actions/leakchecker.rb | 323 | # This function is intended to disable all NSS modules when ruby is compiled | COMMENT |
| MEDIUM | spec/truffle/thread_safe_objects_spec.rb | 452 | # Create a new Thread to make sure the root Fiber is shared as expected | COMMENT |
| MEDIUM | spec/ffi/spec_helper.rb | 2 | # This file is part of ruby-ffi. | COMMENT |
| MEDIUM | spec/ffi/custom_type_spec.rb | 2 | # This file is part of ruby-ffi. | COMMENT |
| MEDIUM | spec/ffi/strptr_spec.rb | 3 | # This file is part of ruby-ffi. | COMMENT |
| MEDIUM | spec/ffi/errno_spec.rb | 2 | # This file is part of ruby-ffi. | COMMENT |
| MEDIUM | spec/ffi/io_spec.rb | 2 | # This file is part of ruby-ffi. | COMMENT |
| MEDIUM | spec/ffi/struct_packed_spec.rb | 2 | # This file is part of ruby-ffi. | COMMENT |
| MEDIUM | spec/ffi/fork_spec.rb | 2 | # This file is part of ruby-ffi. | COMMENT |
| MEDIUM | spec/ffi/bitmask_spec.rb | 2 | # This file is part of ruby-ffi. | COMMENT |
| MEDIUM | spec/ffi/managed_struct_spec.rb | 2 | # This file is part of ruby-ffi. | COMMENT |
| MEDIUM | spec/ffi/enum_spec.rb | 2 | # This file is part of ruby-ffi. | COMMENT |
| MEDIUM | spec/ffi/async_callback_spec.rb | 2 | # This file is part of ruby-ffi. | COMMENT |
| MEDIUM | spec/ffi/variadic_spec.rb | 2 | # This file is part of ruby-ffi. | COMMENT |
| MEDIUM | spec/ffi/buffer_spec.rb | 2 | # This file is part of ruby-ffi. | COMMENT |
| MEDIUM | spec/ffi/pointer_spec.rb | 3 | # This file is part of ruby-ffi. | COMMENT |
| MEDIUM | spec/ffi/number_spec.rb | 2 | # This file is part of ruby-ffi. | COMMENT |
| 510 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | bench/sinatra/bundle/gems/rack-2.2.3/lib/rack/mock.rb | 253 | def identify_cookie_attributes(cookie_filling) | CODE |
| LOW | bench/sinatra/bundle/gems/rack-2.2.3/lib/rack/utils.rb | 269 | def make_delete_cookie_header(header, key, value) | CODE |
| LOW | bench/sinatra/bundle/gems/rack-2.2.3/lib/rack/utils.rb | 306 | def add_remove_cookie_to_header(header, key, value = {}) | CODE |
| LOW | …nch/sinatra/bundle/gems/rack-2.2.3/lib/rack/request.rb | 632 | def reject_trusted_ip_addresses(ip_addresses) | CODE |
| LOW | …inatra/bundle/gems/rack-2.2.3/lib/rack/session/pool.rb | 80 | def get_session_with_fallback(sid) | CODE |
| LOW | …ch/asciidoctor/asciidoctor/lib/asciidoctor/document.rb | 803 | def clear_playback_attributes(attributes) | CODE |
| LOW | …ch/asciidoctor/asciidoctor/lib/asciidoctor/document.rb | 887 | def apply_attribute_value_subs(value) | CODE |
| LOW | …sciidoctor/asciidoctor/lib/asciidoctor/substitutors.rb | 1196 | def parse_quoted_text_attributes(str) | CODE |
| LOW | bench/classic/deltablue.rb | 481 | def extract_plan_from_constraints(constraints) | CODE |
| LOW | bench/classic/deltablue.rb | 542 | def add_constraints_consuming_to(v, coll) | CODE |
| LOW | …h/psd.rb/psd.rb/lib/psd/layer/position_and_channels.rb | 34 | def export_position_and_channels(outfile) | CODE |
| LOW | bench/liquid/lib/liquid/parser_switching.rb | 5 | def strict_parse_with_error_mode_fallback(markup) | CODE |
| LOW | bench/liquid/lib/liquid/parser_switching.rb | 17 | def parse_with_selected_parser(markup) | CODE |
| LOW | bench/liquid/lib/liquid/parser_switching.rb | 33 | def strict_parse_with_error_context(markup) | CODE |
| LOW | bench/liquid/lib/liquid/variable.rb | 135 | def evaluate_filter_expressions(context, filter_args, filter_kwargs) | CODE |
| LOW | bench/liquid/lib/liquid/context.rb | 239 | def try_variable_find_in_environments(key, raise_on_not_found:) | CODE |
| LOW | bench/liquid/lib/liquid/block_body.rb | 240 | def raise_missing_tag_terminator(token, parse_context) | CODE |
| LOW | bench/liquid/lib/liquid/block_body.rb | 245 | def raise_missing_variable_terminator(token, parse_context) | CODE |
| LOW | bench/chunky_png/chunky_png/lib/chunky_png/canvas.rb | 161 | def set_pixel_if_within_bounds(x, y, color) | CODE |
| LOW | bench/chunky_png/chunky_png/lib/chunky_png/color.rb | 449 | def decompose_alpha_component(channel, color, mask, bg) | CODE |
| LOW | bench/chunky_png/chunky_png/lib/chunky_png/color.rb | 466 | def decompose_alpha_components(color, mask, bg) | CODE |
| LOW | …y_png/chunky_png/lib/chunky_png/canvas/png_decoding.rb | 123 | def decode_png_without_interlacing(stream, width, height, color_mode, depth) | CODE |
| LOW | …y_png/chunky_png/lib/chunky_png/canvas/png_decoding.rb | 356 | def decode_png_pixels_from_scanline_method(color_mode, depth) | CODE |
| LOW⚡ | …y_png/chunky_png/lib/chunky_png/canvas/png_decoding.rb | 435 | def decode_png_str_scanline_sub_none(stream, pos, prev_pos, line_length, pixel_size) | CODE |
| LOW⚡ | …y_png/chunky_png/lib/chunky_png/canvas/png_decoding.rb | 443 | def decode_png_str_scanline_sub(stream, pos, prev_pos, line_length, pixel_size) | CODE |
| LOW⚡ | …y_png/chunky_png/lib/chunky_png/canvas/png_decoding.rb | 453 | def decode_png_str_scanline_up(stream, pos, prev_pos, line_length, pixel_size) | CODE |
| LOW | …y_png/chunky_png/lib/chunky_png/canvas/png_decoding.rb | 464 | def decode_png_str_scanline_average(stream, pos, prev_pos, line_length, pixel_size) | CODE |
| LOW | …y_png/chunky_png/lib/chunky_png/canvas/png_decoding.rb | 476 | def decode_png_str_scanline_paeth(stream, pos, prev_pos, line_length, pixel_size) | CODE |
| LOW | …nky_png/chunky_png/lib/chunky_png/canvas/resampling.rb | 95 | def resample_nearest_neighbor(new_width, new_height) | CODE |
| LOW | …y_png/chunky_png/lib/chunky_png/canvas/png_encoding.rb | 172 | def encode_png_image_without_interlacing(color_mode, bit_depth = 8, filtering = ChunkyPNG::FILTER_NONE) | CODE |
| LOW | …y_png/chunky_png/lib/chunky_png/canvas/png_encoding.rb | 188 | def encode_png_image_with_interlacing(color_mode, bit_depth = 8, filtering = ChunkyPNG::FILTER_NONE) | CODE |
| LOW | …y_png/chunky_png/lib/chunky_png/canvas/png_encoding.rb | 203 | def encode_png_image_pass_to_stream(stream, color_mode, bit_depth, filtering) | CODE |
| LOW | …y_png/chunky_png/lib/chunky_png/canvas/png_encoding.rb | 360 | def encode_png_pixels_to_scanline_method(color_mode, depth) | CODE |
| LOW | …y_png/chunky_png/lib/chunky_png/canvas/png_encoding.rb | 385 | def encode_png_str_scanline_none(stream, pos, prev_pos, line_width, pixel_size) | CODE |
| LOW | …y_png/chunky_png/lib/chunky_png/canvas/png_encoding.rb | 392 | def encode_png_str_scanline_sub(stream, pos, prev_pos, line_width, pixel_size) | CODE |
| LOW | …y_png/chunky_png/lib/chunky_png/canvas/png_encoding.rb | 403 | def encode_png_str_scanline_up(stream, pos, prev_pos, line_width, pixel_size) | CODE |
| LOW | …y_png/chunky_png/lib/chunky_png/canvas/png_encoding.rb | 414 | def encode_png_str_scanline_average(stream, pos, prev_pos, line_width, pixel_size) | CODE |
| LOW | …y_png/chunky_png/lib/chunky_png/canvas/png_encoding.rb | 426 | def encode_png_str_scanline_paeth(stream, pos, prev_pos, line_width, pixel_size) | CODE |
| LOW | bench/rubykon/rubykon/lib/rubykon/group_tracker.rb | 54 | def take_liberties_of_enemies(enemy_neighbours, identifier, board, capturer_color) | CODE |
| LOW | bench/rubykon/rubykon/lib/rubykon/group_tracker.rb | 104 | def regain_liberties_from_capture(enemy_group) | CODE |
| LOW | bench/rubykon/rubykon/lib/rubykon/group_tracker.rb | 122 | def join_group_of_friendly_stones(friendly_stones, identifier) | CODE |
| LOW | bench/rubykon/rubykon/lib/rubykon/group.rb | 25 | def gain_liberties_from_capture_of(captured_group, group_tracker) | CODE |
| LOW | bench/rubykon/rubykon/lib/rubykon/game_scorer.rb | 23 | def score_empty_cutting_point(identifier, board, game_score) | CODE |
| LOW | bench/optcarrot/lib/optcarrot/opt.rb | 146 | def localize_instance_variables(code, ivars = code.scan(/@\w+/).uniq.sort) | CODE |
| LOW | bench/optcarrot/lib/optcarrot/ppu.rb | 1334 | def specialize_clock_handlers(handlers) | CODE |
| LOW | mx.truffleruby/mx_truffleruby.py | 77 | def get_truffleruby_abi_version(): | CODE |
| LOW | mx.truffleruby/mx_truffleruby.py | 422 | def truffleruby_standalone_deps(): | CODE |
| LOW | mx.truffleruby/mx_truffleruby.py | 484 | def ruby_run_ruby_from_classpath(args): | CODE |
| LOW | mx.truffleruby/mx_truffleruby.py | 505 | def ruby_testdownstream_hello(args): | CODE |
| LOW | mx.truffleruby/mx_truffleruby.py | 558 | def ruby_maven_deploy_public_repo_dir(args): | CODE |
| LOW | test/bootstraptest/runner.rb | 825 | def in_temporary_working_directory(dir) | CODE |
| LOW | test/truffle/compiler/pe/pe_harness.rb | 12 | def create_test_pe_code_method(code) | CODE |
| LOW | test/truffle/compiler/pe/truffle/thread_pe.rb | 17 | def detect_recursion_recursive(method, object) | CODE |
| LOW | test/mri/tests/test_securerandom.rb | 46 | def check_forking_random_bytes(target_pid, target) | CODE |
| LOW | test/mri/tests/test_time.rb | 421 | def subtest_xmlschema_leap_second(method) | CODE |
| LOW | test/mri/tests/test_time.rb | 445 | def subtest_xmlschema_fraction(method) | CODE |
| LOW | test/mri/tests/test_forwardable.rb | 396 | def single_forwardable_object(&block) | CODE |
| LOW | test/mri/tests/net/http/test_http.rb | 668 | def _test_request__accept_encoding(http) | CODE |
| LOW | test/mri/tests/net/http/test_http.rb | 733 | def _test_request__stream_body(http) | CODE |
| LOW | test/mri/tests/net/http/test_http.rb | 872 | def _test_set_form_urlencoded(http, data) | CODE |
| 1370 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | bench/classic/deltablue.rb | 5 | # ================= | COMMENT |
| MEDIUM | bench/optcarrot/lib/optcarrot/apu.rb | 470 | #-------------------------------------------------------------------------- | COMMENT |
| MEDIUM | bench/optcarrot/lib/optcarrot/apu.rb | 588 | #-------------------------------------------------------------------------- | COMMENT |
| MEDIUM | bench/optcarrot/lib/optcarrot/apu.rb | 670 | #-------------------------------------------------------------------------- | COMMENT |
| MEDIUM | bench/optcarrot/lib/optcarrot/apu.rb | 728 | #-------------------------------------------------------------------------- | COMMENT |
| MEDIUM | test/mri/tests/ruby/test_module.rb | 154 | # ----------------------------------------------------------- | COMMENT |
| MEDIUM | test/mri/tests/ruby/test_class.rb | 5 | # ------------------ | COMMENT |
| MEDIUM | test/mri/tests/ruby/test_class.rb | 7 | # ------------------ | COMMENT |
| MEDIUM | test/mri/tests/ruby/test_class.rb | 36 | # ------------------ | COMMENT |
| MEDIUM | test/mri/tests/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 | lib/mri/prism/node.rb | 71 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM | lib/mri/prism/node.rb | 74 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM | lib/mri/prism/node.rb | 353 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM | lib/mri/prism/node.rb | 357 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM | lib/mri/prism/node.rb | 465 | # ---------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | lib/mri/prism/node.rb | 469 | # ---------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | lib/mri/prism/node.rb | 649 | # ---------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | lib/mri/prism/node.rb | 653 | # ---------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | lib/mri/prism/node.rb | 845 | # ---------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | lib/mri/prism/node.rb | 849 | # ---------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | lib/mri/prism/node.rb | 1029 | # ---------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | lib/mri/prism/node.rb | 1033 | # ---------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | lib/mri/prism/node.rb | 1215 | # ---------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | lib/mri/prism/node.rb | 1219 | # ---------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | lib/mri/prism/node.rb | 1390 | # ---------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | lib/mri/prism/node.rb | 1394 | # ---------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | lib/mri/prism/node.rb | 1634 | # ---------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | lib/mri/prism/node.rb | 1638 | # ---------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | lib/mri/prism/node.rb | 1907 | # ---------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | lib/mri/prism/node.rb | 1911 | # ---------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | lib/mri/prism/node.rb | 2103 | # ---------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | lib/mri/prism/node.rb | 2107 | # ---------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | lib/mri/prism/node.rb | 2270 | # ---------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | lib/mri/prism/node.rb | 2274 | # ---------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | lib/mri/prism/node.rb | 2411 | # ---------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | lib/mri/prism/node.rb | 2415 | # ---------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | lib/mri/prism/node.rb | 2674 | # ---------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | lib/mri/prism/node.rb | 2678 | # ---------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | lib/mri/prism/node.rb | 2841 | # ---------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | lib/mri/prism/node.rb | 2845 | # ---------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | lib/mri/prism/node.rb | 2986 | # ---------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | lib/mri/prism/node.rb | 2990 | # ---------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | lib/mri/prism/node.rb | 3229 | # ---------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | lib/mri/prism/node.rb | 3233 | # ---------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | lib/mri/prism/node.rb | 3445 | # ---------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | lib/mri/prism/node.rb | 3449 | # ---------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | lib/mri/prism/node.rb | 3693 | # ---------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | lib/mri/prism/node.rb | 3697 | # ---------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | lib/mri/prism/node.rb | 3872 | # ---------------------------------------------------------------------------------- | COMMENT |
| 287 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | test/mri/excludes/TestArraySubclass.rb | 21 | exclude :test_permutation_stack_error, "very slow; SystemStackError: stack level too deep from com.oracle.truffle.api.st | CODE |
| CRITICAL | test/mri/excludes/TestHashOnly.rb | 6 | exclude :test_ar2st_delete, "<no message> (java.lang.AssertionError) from org.truffleruby.core.hash.library.BucketsHashS | CODE |
| CRITICAL | test/mri/excludes/TestHashOnly.rb | 7 | exclude :test_ar2st_insert, "<no message> (java.lang.AssertionError) from org.truffleruby.core.hash.library.PackedHashSt | CODE |
| CRITICAL | test/mri/excludes/TestPack.rb | 11 | exclude :test_pack_unpack_u, "<no message> (java.lang.UnsupportedOperationException) from org.truffleruby.core.format.wr | CODE |
| CRITICAL | test/mri/excludes/TestPack.rb | 14 | exclude :test_unpack_garbage, "<no message> (com.oracle.truffle.api.CompilerDirectives.ShouldNotReachHere) from com.orac | CODE |
| CRITICAL | test/mri/excludes/TestTime.rb | 21 | exclude :test_strftime_too_wide, "padding width 8189 too large (java.lang.IndexOutOfBoundsException) from org.trufflerub | CODE |
| CRITICAL | test/mri/excludes/TestMarshal.rb | 23 | exclude :test_nonascii_class_module, "Cannot convert a Ruby String with BINARY encoding containing non-US-ASCII characte | CODE |
| CRITICAL | test/mri/excludes/TestFiber.rb | 6 | exclude :test_raise, "transient; <no message> (java.lang.AssertionError) from org.truffleruby.core.fiber.FiberManager.tr | CODE |
| CRITICAL | test/mri/excludes/Test_Symbol/TestType.rb | 2 | exclude :test_check_id_invalid_type, "Expected Exception(TypeError) was raised, but the message doesn't match. Expected | CODE |
| CRITICAL | lib/mri/psych.rb | 12 | org.jruby.ext.psych.PsychLibrary.new.load(JRuby.runtime, false) | CODE |
| CRITICAL | lib/gems/gems/rdoc-7.0.3/lib/rdoc/rd/inline_parser.rb | 212 | com.headius.racc.Cparse.new.load(JRuby.runtime, false) | CODE |
| CRITICAL | lib/gems/gems/rdoc-7.0.3/lib/rdoc/rd/block_parser.rb | 212 | com.headius.racc.Cparse.new.load(JRuby.runtime, false) | CODE |
| CRITICAL | lib/gems/gems/racc-1.8.1/lib/racc/parser-text.rb | 204 | com.headius.racc.Cparse.new.load(JRuby.runtime, false) | CODE |
| CRITICAL | lib/gems/gems/racc-1.8.1/lib/racc/parser.rb | 193 | com.headius.racc.Cparse.new.load(JRuby.runtime, false) | CODE |
| CRITICAL | doc/contributor/debugging.md | 38 | `New Watch...` and paste `org.truffleruby.language.backtrace.BacktraceFormatter.printableRubyBacktrace(this)`. | CODE |
| CRITICAL | tool/extract_host_inlining.rb | 33 | line.include?(' com.oracle.truffle.api.CompilerDirectives.transferToInterpreterAndInvalidate()') or | CODE |
| CRITICAL | tool/extract_host_inlining.rb | 34 | line.include?(' com.oracle.truffle.api.CompilerDirectives.inInterpreter()') | CODE |
| CRITICAL | …c/main/java/org/truffleruby/core/array/ArrayUtils.java | 277 | return com.oracle.truffle.api.ArrayUtils.indexOf(array, start, start + size, find); | CODE |
| CRITICAL | …main/java/org/truffleruby/core/module/ModuleNodes.java | 1687 | final RubyClass singletonClass = org.truffleruby.language.objects.SingletonClassNodeGen.getUncached() | CODE |
| CRITICAL | …main/java/org/truffleruby/core/module/ModuleNodes.java | 1747 | final RubyClass singletonClass = org.truffleruby.language.objects.SingletonClassNodeGen.getUncached() | CODE |
| CRITICAL | …in/java/org/truffleruby/core/string/StringSupport.java | 235 | return com.oracle.truffle.api.ArrayUtils.indexOfWithOrMask(bytes, p, end - p, NON_ASCII_NEEDLE, NON_ASCII_MASK); | CODE |
| CRITICAL | …truffleruby/language/backtrace/BacktraceFormatter.java | 69 | // org.truffleruby.language.backtrace.BacktraceFormatter.printableRubyBacktrace(this) | COMMENT |
| CRITICAL | …in/java/org/truffleruby/parser/MagicCommentParser.java | 267 | int index = com.oracle.truffle.api.ArrayUtils.indexOf( | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | bench/sinatra/bundle/gems/tilt-2.0.10/lib/tilt/yajl.rb | 31 | # # you can use conditional statements or any other Ruby statement | COMMENT |
| LOW | …ra/bundle/gems/rack-2.2.3/lib/rack/rewindable_input.rb | 14 | # Don't forget to call #close when you're done. This frees up temporary resources that | COMMENT |
| MEDIUM | bench/sinatra/bundle/gems/rack-2.2.3/lib/rack/mime.rb | 42 | # To amend this list with your local mime.types list you can use: | COMMENT |
| LOW⚡ | bench/liquid/performance/shopify/vision.database.yml | 879 | content: <p><strong>Welcome to your Shopify store! The jaded Pixel crew is really glad you decided to take Shopi | CODE |
| LOW | …t/mri/tests/rubygems/test_gem_commands_cert_command.rb | 137 | assert_equal "Don't forget to move the key file to somewhere private!", | CODE |
| LOW | …t/mri/tests/rubygems/test_gem_commands_cert_command.rb | 169 | assert_equal "Don't forget to move the key file to somewhere private!", | CODE |
| LOW | …t/mri/tests/rubygems/test_gem_commands_cert_command.rb | 229 | assert_equal "Don't forget to move the key file to somewhere private!", | CODE |
| LOW | test/mri/tests/rubygems/test_gem_specification.rb | 2759 | #{w}: make sure you specify the oldest ruby version constraint (like \">= 3.0\") that you want your gem to support by s | COMMENT |
| LOW | test/mri/tests/rubygems/test_gem_specification.rb | 2776 | #{w}: make sure you specify the oldest ruby version constraint (like \">= 3.0\") that you want your gem to support by s | COMMENT |
| MEDIUM | test/mri/tests/lib/test/unit/testcase.rb | 9 | # Provides a simple set of guards that you can use in your tests | COMMENT |
| LOW | spec/ruby/optional/capi/encoding_spec.rb | 391 | str.valid_encoding? # make sure to set the coderange | CODE |
| LOW | lib/cext/include/ruby/internal/intern/thread.h | 254 | * fork a process don't forget to call it. | COMMENT |
| MEDIUM | lib/mri/rubygems.rb | 56 | # RubyGems or implementing Ruby you can change RubyGems' defaults. | COMMENT |
| MEDIUM | lib/mri/optparse.rb | 417 | # For modern shells (e.g. bash, zsh, etc.), you can use shell | COMMENT |
| MEDIUM | lib/mri/erb.rb | 45 | # Before you can use \ERB, you must first require it | COMMENT |
| MEDIUM | lib/mri/erb.rb | 95 | # Here's a simple example of \ERB in action: | COMMENT |
| MEDIUM | lib/mri/delegate.rb | 285 | # Here's a simple example that takes advantage of the fact that | COMMENT |
| MEDIUM | lib/mri/fileutils.rb | 145 | # To avoid that vulnerability, you can use this method to remove entries: | COMMENT |
| MEDIUM | lib/mri/shellwords.rb | 21 | # Once you've required Shellwords, you can use the #split alias | COMMENT |
| MEDIUM | lib/mri/net/http.rb | 198 | # In the block, you can use these instance methods, | COMMENT |
| MEDIUM | lib/mri/net/http.rb | 405 | # you can use argument +p_no_proxy+ to filter proxies: | COMMENT |
| MEDIUM | lib/mri/objspace/trace.rb | 2 | # When you have an object of unknown provenance, you can use this | COMMENT |
| MEDIUM | lib/mri/prism/node.rb | 427 | # Similar to #type, this method returns a symbol that you can use for | COMMENT |
| MEDIUM | lib/mri/prism/dispatcher.rb | 40 | # Optionally, you can also use `#dispatch_once` to dispatch enter and leave | COMMENT |
| LOW | lib/mri/rubygems/errors.rb | 26 | # system. Instead of rescuing from this class, make sure to rescue from the | COMMENT |
| LOW | lib/mri/rubygems/errors.rb | 51 | # not the requested version. Instead of rescuing from this class, make sure to | COMMENT |
| MEDIUM | lib/mri/rubygems/specification.rb | 2274 | # Returns an object you can use to sort specifications in #sort_by. | COMMENT |
| LOW | lib/mri/rubygems/commands/cert_command.rb | 150 | say "Don't forget to move the key file to somewhere private!" | CODE |
| MEDIUM | lib/mri/uri/generic.rb | 1250 | # you can modify `rel', but cannot `oth'. | COMMENT |
| MEDIUM | lib/mri/uri/generic.rb | 1275 | # you can modify `rel', but cannot `oth'. | COMMENT |
| MEDIUM | lib/mri/bundler/remote_specification.rb | 73 | # @return [Array] an object you can use to compare and sort this | COMMENT |
| MEDIUM | lib/gems/gems/fiddle-1.1.8/lib/fiddle.rb | 120 | # already loaded. For example, in most cases you can use this to access | COMMENT |
| MEDIUM | lib/gems/gems/pstore-0.2.1/lib/pstore.rb | 196 | # And recall that you can use | COMMENT |
| MEDIUM | lib/gems/gems/logger-1.7.0/lib/logger.rb | 24 | # you can use to create one or more | COMMENT |
| MEDIUM | lib/gems/gems/logger-1.7.0/lib/logger.rb | 289 | # you can use _log_ _file_ _rotation_, which uses multiple log files: | COMMENT |
| MEDIUM | lib/gems/gems/minitest-6.0.0/lib/minitest.rb | 1118 | # Provides a simple set of guards that you can use in your tests | COMMENT |
| LOW | lib/gems/gems/rdoc-7.0.3/lib/rdoc/rdoc.rb | 441 | # current directory, so make sure you're somewhere writable before invoking. | COMMENT |
| MEDIUM | lib/gems/gems/rdoc-7.0.3/lib/rdoc/markup.rb | 51 | # RDoc::Markup is extensible at runtime: you can add \new markup elements to | COMMENT |
| MEDIUM | lib/gems/gems/rdoc-7.0.3/lib/rdoc/markup.rb | 63 | # the +convert+ method, so you can use the same RDoc::Markup converter to | COMMENT |
| MEDIUM | lib/gems/gems/rdoc-7.0.3/lib/rdoc/parser/ruby.rb | 62 | # If you have a more-complex set of overrides you can use the :call-seq: | COMMENT |
| MEDIUM | lib/gems/gems/rake-13.3.1/lib/rake/phony.rb | 2 | # Defines a :phony task that you can use as a dependency. This allows | COMMENT |
| MEDIUM | lib/gems/gems/test-unit-3.7.5/lib/test/unit/testcase.rb | 448 | # For example, you can use a space in name such as "child test". | COMMENT |
| MEDIUM | lib/gems/gems/csv-3.3.5/lib/csv.rb | 1380 | # that you can use to specify the Encoding of the data read from +path+ or +io+. | COMMENT |
| MEDIUM | lib/gems/gems/csv-3.3.5/lib/csv.rb | 1585 | # that you can use to specify the Encoding of the data read from +path+ or +io+. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …termann-1.1.1/lib/mustermann/ast/template_generator.rb | 15 | # translate(:expression) is not needed, since template patterns simply call to_s | COMMENT |
| LOW | bench/sinatra/bundle/gems/rack-2.2.3/lib/rack/lint.rb | 580 | ## to simply pass on real IO objects, although it is recognized that | COMMENT |
| MEDIUM | bench/sinatra/bundle/gems/rack-2.2.3/lib/rack/lint.rb | 588 | ## Users are encouraged to utilize this API with a knowledge of their | COMMENT |
| LOW | …nch/sinatra/bundle/gems/rack-2.2.3/lib/rack/request.rb | 366 | # last client. Or if we trust everyone, we just return the first | COMMENT |
| LOW | …nch/sinatra/bundle/gems/rack-2.2.3/lib/rack/request.rb | 372 | # If all the addresses are trusted, and we aren't forwarded, just return | COMMENT |
| MEDIUM | …ection-2.1.0/lib/rack/protection/authenticity_token.rb | 157 | # Essentially the inverse of +mask_token+. | COMMENT |
| MEDIUM | …n-2.1.0/lib/rack/protection/content_security_policy.rb | 33 | # section for CSP usage examples and best practices. The | COMMENT |
| LOW | bench/liquid/lib/liquid/tags/for.rb | 28 | # To reverse the for loop simply use {% for item in collection reversed %} (note that the flag's spelling is differen | COMMENT |
| MEDIUM⚡ | bench/liquid/performance/tests/sm-de/data.rb | 2 | [{"author"=>"Octave Larose, Sophie Kaleba, Stefan Marr", "author_abbr_firstname"=>[{"first"=>"O.", "last"=>"Larose"}, | CODE |
| MEDIUM⚡ | bench/liquid/performance/tests/sm-de/data.rb | 2 | [{"author"=>"Octave Larose, Sophie Kaleba, Stefan Marr", "author_abbr_firstname"=>[{"first"=>"O.", "last"=>"Larose"}, | CODE |
| MEDIUM⚡ | bench/liquid/performance/tests/sm-de/data.rb | 2 | [{"author"=>"Octave Larose, Sophie Kaleba, Stefan Marr", "author_abbr_firstname"=>[{"first"=>"O.", "last"=>"Larose"}, | CODE |
| MEDIUM⚡ | bench/liquid/performance/tests/sm-de/data.rb | 2 | [{"author"=>"Octave Larose, Sophie Kaleba, Stefan Marr", "author_abbr_firstname"=>[{"first"=>"O.", "last"=>"Larose"}, | CODE |
| MEDIUM | …nterface/lib/benchmark-interface/backends/bench9000.rb | 27 | puts "These are short benchmarks - we're running each #{samples} times so they take about a second and using | CODE |
| MEDIUM | bench/optcarrot/stats.rb | 1 | # A fixed-workload harness for OptCarrot with minimal dependencies. | COMMENT |
| MEDIUM | bench/optcarrot/fixed-workload.rb | 1 | # A fixed-workload harness for OptCarrot with minimal dependencies. | COMMENT |
| MEDIUM | test/mri/tests/rubygems/test_gem_installer.rb | 33 | # this file is here to facilitate running it. | COMMENT |
| LOW | test/mri/tests/ruby/test_random_formatter.rb | 97 | # It would be nice to simply use Time#floor here. But that is problematic | COMMENT |
| MEDIUM | test/mri/tests/ruby/test_string.rb | 2602 | # more comprehensive tests are in test_pack.rb | COMMENT |
| MEDIUM | test/mri/tests/ruby/test_array.rb | 1312 | # more comprehensive tests are in test_pack.rb | COMMENT |
| MEDIUM | spec/mspec/lib/mspec/runner/context.rb | 42 | # Returns true if this is a shared +ContextState+. Essentially, when | COMMENT |
| LOW | spec/mspec/lib/mspec/runner/actions/leakchecker.rb | 334 | # configuration in /etc/nsswitch.conf, and just use the built in files/dns | COMMENT |
| LOW | lib/patches/openssl.rb | 8 | # We could try to symlink in src/main/c/libssl/ssl but it seems much simpler to just use the env vars. | COMMENT |
| LOW | lib/patches/openssl.rb | 10 | unless ENV['SSL_CERT_FILE'] || ENV['SSL_CERT_DIR'] # If already set, just use that | CODE |
| LOW | lib/truffle/ffi/library_path.rb | 89 | # Otherwise we just add prefix and suffix: | COMMENT |
| LOW | lib/json/lib/json/common.rb | 963 | # All these were meant to be deprecated circa 2009, but were just set as undocumented | COMMENT |
| LOW | lib/mri/timeout.rb | 123 | # In that case, just return and let the main thread create the Timeout thread. | COMMENT |
| LOW | lib/mri/prism/inspect_visitor.rb | 19 | # Most of the time, we can simply pass down the indent to the next node. | COMMENT |
| LOW | lib/mri/prism/translation/parser.rb | 294 | # just use the offset directly. Otherwise, we build an array where the | COMMENT |
| LOW | lib/mri/rubygems/errors.rb | 129 | # so that we can loop over a list of mismatches and just add them rather | COMMENT |
| MEDIUM | lib/mri/rubygems/installer.rb | 724 | # this file is here to facilitate running it. | COMMENT |
| MEDIUM | lib/mri/rubygems/version.rb | 114 | # Essentially, any version is OK with Client A. An incompatible change to | COMMENT |
| LOW | lib/mri/rubygems/spec_fetcher.rb | 176 | # names get rejected, so we just return an empty array immediately instead. | COMMENT |
| MEDIUM | lib/mri/psych/tree_builder.rb | 6 | # This class works in conjunction with Psych::Parser to build an in-memory | COMMENT |
| MEDIUM | lib/mri/bundler/compact_index_client/cache_file.rb | 8 | # write cache files in a way that is robust to concurrent modifications | COMMENT |
| LOW | lib/gems/gems/irb-1.16.0/lib/irb.rb | 121 | # Irb#eval_input will simply return the input, and we need to pass it to the | COMMENT |
| MEDIUM | lib/gems/gems/minitest-6.0.0/lib/minitest/spec.rb | 227 | # Essentially, define an accessor for +name+ with +block+. | COMMENT |
| MEDIUM | lib/gems/gems/net-smtp-0.5.1/lib/net/smtp.rb | 160 | # I strongly recommend this scheme. This form is simpler and more robust. | COMMENT |
| LOW | lib/gems/gems/rss-0.3.2/lib/rss/xmlparser.rb | 24 | # This error is legacy, so we just set it to the new one | COMMENT |
| LOW | lib/gems/gems/rss-0.3.2/lib/rss/parser.rb | 135 | # Attempt to convert rss to a URI, but just return it if | COMMENT |
| LOW | lib/gems/gems/test-unit-3.7.5/lib/test/unit.rb | 215 | # runner simply set default test runner ID to | COMMENT |
| MEDIUM | lib/gems/gems/net-imap-0.6.2/lib/net/imap.rb | 272 | # Net::IMAP::ResponseError. Essentially, all methods that involve | COMMENT |
| MEDIUM | lib/gems/gems/rinda-0.2.0/lib/rinda/rinda.rb | 5 | # A module to implement the Linda distributed computing paradigm in Ruby. | COMMENT |
| MEDIUM | …ava/org/truffleruby/core/encoding/EncodingManager.java | 168 | // The parent process seems to explicitly want a C locale (e.g. EnvUtil#invoke_ruby in the MRI test harn | COMMENT |
| LOW | …ffleruby/language/exceptions/TopLevelRaiseHandler.java | 115 | * Context#close for e.g. letting tools print their output, so just return the signal number here. */ | COMMENT |
| LOW | src/main/ruby/truffleruby/core/file.rb | 128 | # value happens to be in the least significant 16 bits, just set | COMMENT |
| MEDIUM | src/main/ruby/truffleruby/core/type.rb | 57 | # facilities are independent of the object and thus are more robust in the | COMMENT |
| LOW | src/main/ruby/truffleruby/core/io.rb | 638 | # Otherwise, we can just return the IO object for the proper half. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | bench/asciidoctor/asciidoctor/lib/asciidoctor/parser.rb | 1803 | # # => {'author' => 'Author Name', 'firstname' => 'Author', 'lastname' => 'Name', 'email' => 'author@example.org', | COMMENT |
| LOW | bench/liquid/performance/shopify/vision.database.yml | 556 | <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore | CODE |
| LOW | bench/liquid/performance/shopify/vision.database.yml | 556 | <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore | CODE |
| LOW | bench/liquid/performance/shopify/vision.database.yml | 593 | <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore | CODE |
| LOW | bench/liquid/performance/shopify/vision.database.yml | 593 | <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore | CODE |
| LOW⚡ | bench/liquid/performance/shopify/vision.database.yml | 858 | content: <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et | CODE |
| LOW⚡ | bench/liquid/performance/shopify/vision.database.yml | 858 | content: <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et | CODE |
| LOW⚡ | bench/liquid/performance/shopify/vision.database.yml | 867 | content: <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et | CODE |
| LOW⚡ | bench/liquid/performance/shopify/vision.database.yml | 867 | content: <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et | CODE |
| LOW⚡ | bench/liquid/performance/shopify/vision.database.yml | 884 | content: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et | CODE |
| LOW⚡ | bench/liquid/performance/shopify/vision.database.yml | 884 | content: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et | CODE |
| LOW | bench/liquid/performance/shopify/vision.database.yml | 896 | content: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et | CODE |
| LOW | bench/liquid/performance/shopify/vision.database.yml | 896 | content: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et | CODE |
| LOW | bench/liquid/performance/shopify/vision.database.yml | 920 | content: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et | CODE |
| LOW | bench/liquid/performance/shopify/vision.database.yml | 920 | content: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et | CODE |
| LOW⚡ | bench/liquid/performance/shopify/vision.database.yml | 937 | content: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et | CODE |
| LOW⚡ | bench/liquid/performance/shopify/vision.database.yml | 937 | content: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et | CODE |
| LOW⚡ | bench/liquid/performance/shopify/vision.database.yml | 943 | content: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et | CODE |
| LOW⚡ | bench/liquid/performance/shopify/vision.database.yml | 943 | content: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et | CODE |
| LOW | test/truffle/gems/asciidoctor/userguide-expected.html | 3636 | - Lorem ipsum dolor sit amet, consectetuer adipiscing elit. | CODE |
| LOW | test/truffle/gems/asciidoctor/userguide-expected.html | 3636 | - Lorem ipsum dolor sit amet, consectetuer adipiscing elit. | CODE |
| LOW | test/truffle/gems/asciidoctor/userguide-expected.html | 3700 | <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</p> | CODE |
| LOW | test/truffle/gems/asciidoctor/userguide-expected.html | 3700 | <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</p> | CODE |
| LOW⚡ | test/mri/tests/psych/test_string.rb | 64 | str = "Lorem ipsum" | CODE |
| LOW⚡ | test/mri/tests/psych/test_string.rb | 71 | str = "Lorem ipsum\n" | CODE |
| LOW⚡ | test/mri/tests/psych/test_string.rb | 78 | str = "Lorem ipsum dolor sit\n" | CODE |
| LOW⚡ | test/mri/tests/psych/test_string.rb | 86 | str = "Lorem ipsum dolor sit amet, consectetur" | CODE |
| LOW⚡ | test/mri/tests/psych/test_string.rb | 86 | str = "Lorem ipsum dolor sit amet, consectetur" | CODE |
| LOW⚡ | test/mri/tests/psych/test_string.rb | 94 | "Lorem ipsum\ndolor\n", | CODE |
| LOW⚡ | test/mri/tests/psych/test_string.rb | 95 | "Lorem ipsum\nZolor\n", | CODE |
| LOW | test/mri/tests/psych/test_string.rb | 106 | "Lorem ipsum\ndolor", | CODE |
| LOW | test/mri/tests/psych/test_string.rb | 107 | "Lorem ipsum\nZolor", | CODE |
| LOW⚡ | test/mri/tests/json/json_parser_test.rb | 403 | fake_key = Object.new | CODE |
| LOW⚡ | test/mri/tests/json/json_parser_test.rb | 404 | JSON.load('{"a": 1, "a": 2}', -> (obj) { obj == "a" ? fake_key : obj }, allow_duplicate_key: false) | CODE |
| LOW⚡ | test/mri/tests/json/json_parser_test.rb | 408 | fake_key = Object.new | CODE |
| LOW⚡ | test/mri/tests/json/json_parser_test.rb | 409 | JSON.load('{"a": 1, "a": 2}', -> (obj) { obj == "a" ? fake_key : obj }) | CODE |
| LOW⚡ | test/mri/tests/open-uri/test_open-uri.rb | 346 | URI.open("#{url}/r1/", "Authorization" => "dummy_token") {|f| | CODE |
| LOW⚡ | test/mri/tests/open-uri/test_open-uri.rb | 347 | assert_equal("dummy_token", authorization_header) | CODE |
| LOW⚡ | test/mri/tests/open-uri/test_open-uri.rb | 349 | assert_equal("dummy_token", redirected_authorization_header) | CODE |
| LOW | test/mri/tests/open-uri/test_open-uri.rb | 360 | URI.open("#{url}/r1/", request_specific_fields: {"Authorization" => "dummy_token"}) {|f| | CODE |
| LOW | test/mri/tests/open-uri/test_open-uri.rb | 361 | assert_equal("dummy_token", authorization_header) | CODE |
| LOW | test/mri/tests/open-uri/test_open-uri.rb | 374 | "dummy_token" | CODE |
| LOW⚡ | test/mri/tests/open-uri/test_open-uri.rb | 385 | assert_equal("dummy_token", authorization_header) | CODE |
| LOW⚡ | test/mri/tests/open-uri/test_open-uri.rb | 395 | exc = assert_raise(ArgumentError) { URI.open("#{url}/r1/", request_specific_fields: "dummy_token") {} } | CODE |
| LOW⚡ | test/mri/tests/open-uri/test_open-uri.rb | 396 | assert_equal('Invalid request_specific_fields option: "dummy_token"', exc.message) | CODE |
| LOW | test/mri/tests/ruby/test_zjit.rb | 68 | tmp.puts("Lorem ipsum dolor sit amet, consectetur adipiscing elit, ...") | CODE |
| LOW | test/mri/tests/ruby/test_zjit.rb | 68 | tmp.puts("Lorem ipsum dolor sit amet, consectetur adipiscing elit, ...") | CODE |
| LOW⚡ | test/mri/tests/ruby/test_module.rb | 3382 | assert_same m, m.set_temporary_name(name = "fake_name") | CODE |
| LOW⚡ | test/mri/tests/ruby/test_module.rb | 3384 | assert_equal("fake_name", m.name) | CODE |
| LOW⚡ | test/mri/tests/ruby/test_module.rb | 3386 | assert_equal("fake_name::N", m::N.name) | CODE |
| LOW⚡ | test/mri/tests/ruby/test_module.rb | 3387 | assert_equal("fake_name::N::O", m::N::O.name) | CODE |
| LOW | test/mri/tests/ruby/test_module.rb | 3405 | mod.set_temporary_name("fake_name") | CODE |
| LOW⚡ | spec/ruby/core/module/set_temporary_name_spec.rb | 9 | m.set_temporary_name("fake_name") | CODE |
| LOW⚡ | spec/ruby/core/module/set_temporary_name_spec.rb | 10 | m.name.should == "fake_name" | CODE |
| LOW⚡ | spec/ruby/core/module/set_temporary_name_spec.rb | 18 | m.set_temporary_name("fake_name").should.equal? m | CODE |
| LOW⚡ | spec/ruby/core/module/set_temporary_name_spec.rb | 64 | -> { Object.set_temporary_name("fake_name") }.should.raise(RuntimeError, "can't change permanent name") | CODE |
| LOW⚡ | spec/ruby/core/module/set_temporary_name_spec.rb | 72 | m::N.set_temporary_name("fake_name") | CODE |
| LOW⚡ | spec/ruby/core/module/set_temporary_name_spec.rb | 73 | m::N.name.should == "fake_name" | CODE |
| LOW⚡ | spec/ruby/core/module/set_temporary_name_spec.rb | 83 | m::N.set_temporary_name("fake_name") | CODE |
| LOW⚡ | spec/ruby/core/module/set_temporary_name_spec.rb | 84 | m::N.name.should == "fake_name" | CODE |
| 12 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …ch/sinatra/bundle/gems/tilt-2.0.10/lib/tilt/mapping.rb | 229 | # Check if a template class is already present | COMMENT |
| LOW | …h/sinatra/bundle/gems/tilt-2.0.10/lib/tilt/template.rb | 227 | # Set it to the default external (without verifying) | COMMENT |
| LOW | …bundle/gems/rack-2.2.3/lib/rack/session/abstract/id.rb | 332 | # Check if the session exists or not. | COMMENT |
| LOW | …ciidoctor/asciidoctor/lib/asciidoctor/abstract_node.rb | 105 | # Check if the attribute is defined. First look in the attributes on this | COMMENT |
| LOW | …ciidoctor/asciidoctor/lib/asciidoctor/abstract_node.rb | 161 | # Check if the option is enabled. This method simply checks to see if the | COMMENT |
| LOW | …ffle/ecosystem/blog6/config/environments/production.rb | 66 | # Set this to true and configure the email server for immediate delivery to raise delivery errors. | COMMENT |
| LOW | …ri/tests/rubygems/test_gem_commands_rebuild_command.rb | 119 | # Set SOURCE_DATE_EPOCH to 2001-02-03 04:05:06 -0500. | COMMENT |
| LOW | …ri/tests/rubygems/test_gem_commands_rebuild_command.rb | 133 | # Set SOURCE_DATE_EPOCH to a different value, meaning we are | COMMENT |
| LOW | test/mri/tests/rubygems/test_gem_installer.rb | 948 | Gem.use_paths "#{@gemhome}2" # Set GEM_HOME to an uninitialized repo | CODE |
| LOW | spec/ruby/core/process/setpriority_spec.rb | 38 | # Check if we can lower the nice value or not. | COMMENT |
| LOW | lib/patches/rubygems.rb | 3 | # Check if the Gem paths are correct as early as possible | COMMENT |
| LOW | lib/truffle/truffle/cext.rb | 204 | # Check if the Panama backend is available, it might not be when embedding TruffleRuby | COMMENT |
| LOW | lib/truffle/socket/truffle/foreign.rb | 281 | # Check if the port is a numeric value we must set the socket type in order for the getaddrinfo call | COMMENT |
| LOW | lib/mri/securerandom.rb | 82 | # Check if Random.urandom is available | COMMENT |
| LOW | lib/mri/rubygems/query_utils.rb | 175 | # Check if gem +name+ version +version+ is installed. | COMMENT |
| LOW | lib/mri/rubygems/specification.rb | 2206 | # Set requirements to +req+, ensuring it is an array. | COMMENT |
| LOW | lib/mri/rubygems/installer.rb | 273 | # Set loaded_from to ensure extension_dir is correct | COMMENT |
| LOW | lib/mri/rubygems/command.rb | 588 | # Set us to "really verbose" so the progress meter works | COMMENT |
| LOW | lib/mri/rubygems/ext/cmake_builder.rb | 48 | # Check if the gem defined presets | COMMENT |
| LOW | lib/mri/bundler/definition.rb | 871 | # Check if the specs of the given source changed | COMMENT |
| LOW | lib/mri/bundler/plugin/events.rb | 25 | # Check if an event has been defined | COMMENT |
| LOW | lib/gems/gems/matrix-0.4.3/lib/matrix.rb | 2100 | # Iterate over the elements of this vector | COMMENT |
| LOW | lib/gems/gems/matrix-0.4.3/lib/matrix.rb | 2109 | # Iterate over the elements of this vector and +v+ in conjunction. | COMMENT |
| LOW | lib/gems/gems/rdoc-7.0.3/lib/rdoc/options.rb | 1293 | # Set quietness to +bool+ | COMMENT |
| LOW | lib/gems/gems/rdoc-7.0.3/lib/rdoc/rd/inline_parser.rb | 80 | # Print messages time to time while compiling. | COMMENT |
| LOW | lib/gems/gems/rdoc-7.0.3/lib/rdoc/rd/block_parser.rb | 80 | # Print messages time to time while compiling. | COMMENT |
| LOW | lib/gems/gems/net-smtp-0.5.1/lib/net/smtp.rb | 283 | # Set whether to use ESMTP or not. This should be done before | COMMENT |
| LOW | …/gems/gems/rbs-3.10.0/lib/rbs/type_alias_dependency.rb | 18 | # Check if an alias type definition is circular & prohibited | COMMENT |
| LOW | lib/gems/gems/rbs-3.10.0/lib/rbs/prototype/runtime.rb | 493 | # Check if a declaration exists for the actual module | COMMENT |
| LOW | lib/gems/gems/rbs-3.10.0/lib/rbs/prototype/runtime.rb | 539 | # Check if a declaration exists for the actual class | COMMENT |
| LOW | lib/gems/gems/drb-2.2.3/lib/drb/drb.rb | 1523 | # Set whether to operate in verbose mode. | COMMENT |
| LOW | lib/gems/gems/reline-0.6.3/lib/reline/io/windows.rb | 209 | # Check if this could be a MSYS2 pty pipe ('\msys-XXXX-ptyN-XX') | COMMENT |
| LOW | lib/gems/gems/racc-1.8.1/lib/racc/parser-text.rb | 72 | # Print messages time to time while compiling. | COMMENT |
| LOW | lib/gems/gems/racc-1.8.1/lib/racc/parser.rb | 61 | # Print messages time to time while compiling. | COMMENT |
| LOW⚡ | …gems/gems/net-imap-0.6.2/lib/net/imap/data_encoding.rb | 161 | # Check if argument is a valid 'number' according to RFC 3501 | COMMENT |
| LOW⚡ | …gems/gems/net-imap-0.6.2/lib/net/imap/data_encoding.rb | 169 | # Check if argument is a valid 'nz-number' according to RFC 3501 | COMMENT |
| LOW⚡ | …gems/gems/net-imap-0.6.2/lib/net/imap/data_encoding.rb | 177 | # Check if argument is a valid 'mod-sequence-value' according to RFC 4551 | COMMENT |
| LOW⚡ | …gems/gems/net-imap-0.6.2/lib/net/imap/data_encoding.rb | 186 | # Check if argument is a valid 'mod-sequence-valzer' according to RFC 4551 | COMMENT |
| LOW | src/main/ruby/truffleruby/core/argf.rb | 538 | # Close file stream and return self. | COMMENT |
| LOW | …in/ruby/truffleruby/core/truffle/process_operations.rb | 515 | # Check if the command exists before posix_spawn to avoid zombie processes | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | bench/sinatra/bundle/gems/rack-2.2.3/lib/rack/mime.rb | 12 | # 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/mri/rubygems/specification.rb | 525 | # Usage: | COMMENT |
| LOW⚡ | lib/mri/rubygems/specification.rb | 539 | # Usage: | COMMENT |
| LOW | lib/mri/rubygems/specification.rb | 196 | # Usage: | COMMENT |
| LOW | lib/mri/rubygems/specification.rb | 209 | # Usage: | COMMENT |
| LOW | lib/mri/rubygems/specification.rb | 220 | # Usage: | COMMENT |
| LOW | lib/mri/rubygems/specification.rb | 235 | # Usage: | COMMENT |
| LOW | lib/mri/rubygems/specification.rb | 263 | # Usage: | COMMENT |
| LOW | lib/mri/rubygems/specification.rb | 277 | # Usage: | COMMENT |
| LOW | lib/mri/rubygems/specification.rb | 290 | # Usage: | COMMENT |
| LOW | lib/mri/rubygems/specification.rb | 302 | # Usage: | COMMENT |
| LOW | lib/mri/rubygems/specification.rb | 312 | # Usage: | COMMENT |
| LOW | lib/mri/rubygems/specification.rb | 345 | # Usage: | COMMENT |
| LOW | lib/mri/rubygems/specification.rb | 362 | # Usage: | COMMENT |
| LOW | lib/mri/rubygems/specification.rb | 408 | # Usage: | COMMENT |
| LOW | lib/mri/rubygems/specification.rb | 419 | # Usage: | COMMENT |
| LOW | lib/mri/rubygems/specification.rb | 434 | # Usage: | COMMENT |
| LOW | lib/mri/rubygems/specification.rb | 459 | # Usage: | COMMENT |
| LOW | lib/mri/rubygems/specification.rb | 502 | # Usage: | COMMENT |
| LOW | lib/mri/rubygems/specification.rb | 562 | # Usage: | COMMENT |
| LOW | lib/mri/rubygems/specification.rb | 577 | # Usage: | COMMENT |
| LOW | lib/mri/rubygems/specification.rb | 595 | # Usage: | COMMENT |
| LOW | lib/mri/rubygems/specification.rb | 623 | # Usage: | COMMENT |
| LOW | lib/mri/rubygems/specification.rb | 645 | # Usage: | COMMENT |
| LOW | lib/mri/rubygems/specification.rb | 682 | # Usage: | COMMENT |
| LOW | lib/mri/rubygems/specification.rb | 695 | # Usage: | COMMENT |
| LOW | lib/mri/rubygems/basic_specification.rb | 276 | # Usage: | COMMENT |
| LOW | lib/mri/rubygems/gemcutter_utilities/webauthn_poller.rb | 9 | # Example usage: | COMMENT |
| LOW | …/mri/rubygems/gemcutter_utilities/webauthn_listener.rb | 19 | # Example usage: | COMMENT |
| LOW | …gems/gemcutter_utilities/webauthn_listener/response.rb | 16 | # Example usage: | COMMENT |
| LOW | lib/mri/syntax_suggest/lex_all.rb | 12 | # Example usage: | COMMENT |
| LOW | lib/gems/gems/getoptlong-0.2.1/lib/getoptlong.rb | 317 | # Usage: | COMMENT |
| LOW | lib/gems/gems/getoptlong-0.2.1/lib/getoptlong.rb | 360 | # Usage: | COMMENT |
| LOW | lib/gems/gems/rake-13.3.1/lib/rake/ext/core.rb | 8 | # Usage: | COMMENT |
| LOW | lib/gems/gems/rbs-3.10.0/lib/rbs/ast/visitor.rb | 12 | # Example usage: | COMMENT |
| LOW | tool/parse_mri_errors.rb | 5 | # Usage: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | spec/ruby/core/file/expand_path_spec.rb | 223 | # We need to check if getlogin(3) returns non-NULL, | COMMENT |
| LOW | lib/gems/gems/rbs-3.10.0/src/util/rbs_constant_pool.c | 172 | // If there is a collision, then we need to check if the content is the | COMMENT |
| LOW | lib/gems/gems/rbs-3.10.0/src/util/rbs_constant_pool.c | 178 | // Since we have found a match, we need to check if this is | COMMENT |
| LOW | tool/generate-cext-trampoline.rb | 226 | # We need to check if the current thread is attached first before calling to Sulong/Ruby | COMMENT |
| LOW | …uffleruby/language/constants/OrAssignConstantNode.java | 27 | * We need a separate class for this because we need to check if the constant is defined. Doing so will evaluate the | COMMENT |
| LOW | src/main/c/prism-gem/src/constant_pool.c | 275 | // If there is a collision, then we need to check if the content is the | COMMENT |
| LOW | src/main/c/prism-gem/src/constant_pool.c | 279 | // Since we have found a match, we need to check if this is | COMMENT |
| LOW | src/main/c/prism-gem/src/prism.c | 9663 | * we need to check if there is a heredoc or heredocs that we have already lexed | COMMENT |
| LOW | src/main/c/prism-gem/src/prism.c | 12846 | * contain block exits for the current scope, we need to check if they | COMMENT |
| LOW | src/main/c/prism-gem/src/prism.c | 13493 | // a newline or semicolon. At this point we need to check if we're at | COMMENT |
| LOW | src/main/c/prism-gem/src/prism.c | 13705 | // Otherwise we need to check if the subsequent token begins an expression. | COMMENT |
| LOW | src/main/c/prism-gem/src/prism.c | 13759 | // First we need to check if the next token is one that could be the start | COMMENT |
| LOW | src/main/c/prism-gem/src/prism.c | 13962 | // If there was a comma, then we need to check if we also accepted a | COMMENT |
| LOW | src/main/c/prism-gem/src/prism.c | 17062 | // Now that we have a primitive, we need to check if it's part of a range. | COMMENT |
| LOW | src/main/c/prism-gem/src/prism.c | 17066 | // Now that we have the operator, we need to check if this is followed | COMMENT |
| LOW | src/main/c/prism-gem/src/prism.c | 18928 | * parenthesis, then we need to check if this is possibly a multiple | COMMENT |
| LOW | src/main/c/prism-gem/src/prism.c | 19367 | // we need to check if there are arguments following the | COMMENT |
| LOW | src/main/c/yarp/src/constant_pool.c | 275 | // If there is a collision, then we need to check if the content is the | COMMENT |
| LOW | src/main/c/yarp/src/constant_pool.c | 279 | // Since we have found a match, we need to check if this is | COMMENT |
| LOW | src/main/c/yarp/src/prism.c | 9663 | * we need to check if there is a heredoc or heredocs that we have already lexed | COMMENT |
| LOW | src/main/c/yarp/src/prism.c | 12846 | * contain block exits for the current scope, we need to check if they | COMMENT |
| LOW | src/main/c/yarp/src/prism.c | 13493 | // a newline or semicolon. At this point we need to check if we're at | COMMENT |
| LOW | src/main/c/yarp/src/prism.c | 13705 | // Otherwise we need to check if the subsequent token begins an expression. | COMMENT |
| LOW | src/main/c/yarp/src/prism.c | 13759 | // First we need to check if the next token is one that could be the start | COMMENT |
| LOW | src/main/c/yarp/src/prism.c | 13962 | // If there was a comma, then we need to check if we also accepted a | COMMENT |
| LOW | src/main/c/yarp/src/prism.c | 17062 | // Now that we have a primitive, we need to check if it's part of a range. | COMMENT |
| LOW | src/main/c/yarp/src/prism.c | 17066 | // Now that we have the operator, we need to check if this is followed | COMMENT |
| LOW | src/main/c/yarp/src/prism.c | 18928 | * parenthesis, then we need to check if this is possibly a multiple | COMMENT |
| LOW | src/main/c/yarp/src/prism.c | 19367 | // we need to check if there are arguments following the | COMMENT |
| LOW | src/main/ruby/truffleruby/core/stat.rb | 260 | # Process.groups only return supplemental groups, so we need to check if gid/egid match too. | COMMENT |
| LOW | src/main/ruby/truffleruby/core/truffle/diggable.rb | 20 | # We've inlined the logic for dig for three core classes - before we use that logic we need to check if the method | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | lib/json/lib/json.rb | 373 | # In this example, +obj+ is used first to generate the shortest | COMMENT |
| HIGH | lib/mri/erb.rb | 515 | # In this example, the tag begins with `'<% #'`, and so is an execution tag, not a comment tag; | COMMENT |
| HIGH | lib/mri/syntax_suggest/parse_blocks_from_indent_line.rb | 8 | # grabbing one that contains only an "end". In this example: | COMMENT |
| HIGH | lib/gems/gems/rexml-3.4.4/lib/rexml/element.rb | 1999 | # In this example, the block returns the passed element, | COMMENT |
| HIGH | lib/gems/gems/rexml-3.4.4/lib/rexml/element.rb | 2036 | # In this example, the first object index is <tt>-1</tt> | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | bench/asciidoctor/asciidoctor/lib/asciidoctor.rb | 342 | # NOTE: The following pattern, which appears frequently, captures the | COMMENT |
| LOW | lib/mri/psych.rb | 268 | # NOTE: This method *should not* be used to parse untrusted documents, such as | COMMENT |
| LOW | lib/mri/psych.rb | 691 | # NOTE: This method *should not* be used to parse untrusted documents, such as | COMMENT |
| LOW | lib/mri/net/protocol.rb | 18 | # WARNING: This file is going to remove. | COMMENT |
| LOW | lib/gems/gems/minitest-6.0.0/lib/minitest/assertions.rb | 534 | # NOTE: This method is approximately 10x slower than #capture_io so | COMMENT |
| LOW | lib/gems/gems/net-smtp-0.5.1/lib/net/smtp.rb | 437 | # WARNING: This method causes serious security holes. | COMMENT |
| LOW | lib/gems/gems/rake-13.3.1/lib/rake/file_list.rb | 359 | # NOTE: This method was formerly named "exclude?", but Rails | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | mx.truffleruby/mx_truffleruby.py | 10 | CODE | |
| LOW | mx.truffleruby/mx_truffleruby.py | 24 | CODE | |
| LOW | mx.truffleruby/mx_truffleruby.py | 33 | CODE | |
| LOW | mx.truffleruby/mx_truffleruby.py | 34 | CODE | |
| LOW | mx.truffleruby/mx_truffleruby.py | 34 | CODE | |
| LOW | mx.truffleruby/mx_truffleruby.py | 34 | CODE | |
| LOW | mx.truffleruby/mx_truffleruby.py | 44 | CODE | |
| LOW | mx.truffleruby/mx_truffleruby_benchmark.py | 10 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | lib/mri/syntax_suggest/cli.rb | 19 | # All other intputs are dependency injection for testing | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/main/ruby/truffleruby/core/io.rb | 1144 | #TODO: implement ignoring encoding with negative limit | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | mx.truffleruby/mx_truffleruby.py | 442 | CODE |