SYMBOL INDEX (432 symbols across 37 files) FILE: lib/querly.rb type Querly (line 25) | module Querly function required_rules (line 28) | def self.required_rules function load_rule (line 32) | def self.load_rule(*files) FILE: lib/querly/analyzer.rb type Querly (line 1) | module Querly class Analyzer (line 2) | class Analyzer method initialize (line 7) | def initialize(config:, rule:) method run (line 16) | def run method find (line 31) | def find(pattern) method test_pair (line 41) | def test_pair(node_pair, pattern) FILE: lib/querly/check.rb type Querly (line 1) | module Querly class Check (line 2) | class Check method apply (line 4) | def apply(current:, all:) method match? (line 15) | def match?(rule) method initialize (line 23) | def initialize(pattern:, rules:) method has_trailing_slash? (line 50) | def has_trailing_slash? method has_middle_slash? (line 54) | def has_middle_slash? method load (line 58) | def self.load(hash) method parse_rule_query (line 82) | def self.parse_rule_query(opr, query) method match? (line 100) | def match?(path:) FILE: lib/querly/cli.rb type Querly (line 8) | module Querly class CLI (line 9) | class CLI < Thor method check (line 16) | def check(*paths) method console (line 70) | def console(*paths) method find (line 93) | def find(pattern, *paths) method test (line 109) | def test() method rules (line 116) | def rules(*ids) method version (line 122) | def version method source_root (line 126) | def self.source_root method init (line 133) | def init() method config (line 139) | def config(root_option:) method config_path (line 146) | def config_path FILE: lib/querly/cli/console.rb type Querly (line 3) | module Querly class CLI (line 4) | class CLI class Console (line 5) | class Console method initialize (line 15) | def initialize(paths:, history_path:, history_size:, config: nil, ... method start (line 24) | def start method reload! (line 41) | def reload! method analyzer (line 46) | def analyzer method start_loop (line 64) | def start_loop method load_history (line 111) | def load_history method save_history (line 121) | def save_history(line) method puts_commands (line 129) | def puts_commands FILE: lib/querly/cli/find.rb type Querly (line 3) | module Querly class CLI (line 4) | class CLI class Find (line 5) | class Find method initialize (line 13) | def initialize(pattern:, paths:, config: nil, threads:) method start (line 20) | def start method pattern (line 48) | def pattern method analyzer (line 52) | def analyzer FILE: lib/querly/cli/formatter.rb type Querly (line 1) | module Querly class CLI (line 2) | class CLI type Formatter (line 3) | module Formatter class Base (line 4) | class Base method start (line 8) | def start; end method config_load (line 11) | def config_load(config); end method config_error (line 15) | def config_error(path, error); end method script_load (line 18) | def script_load(script); end method script_error (line 22) | def script_error(path, error); end method issue_found (line 25) | def issue_found(script, rule, pair); end method fatal_error (line 29) | def fatal_error(error) method finish (line 36) | def finish; end class Text (line 39) | class Text < Base method config_error (line 40) | def config_error(path, error) method script_error (line 47) | def script_error(path, error) method issue_found (line 57) | def issue_found(script, rule, pair) class JSON (line 68) | class JSON < Base method initialize (line 69) | def initialize method config_error (line 76) | def config_error(path, error) method script_error (line 80) | def script_error(path, error) method issue_found (line 84) | def issue_found(script, rule, pair) method finish (line 88) | def finish method fatal_error (line 92) | def fatal_error(error) method as_json (line 97) | def as_json FILE: lib/querly/cli/rules.rb type Querly (line 1) | module Querly class CLI (line 2) | class CLI class Rules (line 3) | class Rules method initialize (line 8) | def initialize(config_path:, ids:, stdout: STDOUT) method config (line 14) | def config method run (line 19) | def run method test_rule (line 24) | def test_rule(rule) method rule_to_yaml (line 32) | def rule_to_yaml(rule) method empty (line 60) | def empty(array) method singleton (line 66) | def singleton(array) FILE: lib/querly/cli/test.rb type Querly (line 1) | module Querly class CLI (line 2) | class CLI class Test (line 3) | class Test method initialize (line 8) | def initialize(config_path:, stdout: STDOUT, stderr: STDERR) method fail! (line 15) | def fail! method failed? (line 19) | def failed? method run (line 23) | def run method validate_rule_uniqueness (line 44) | def validate_rule_uniqueness(rules) method validate_rule_patterns (line 61) | def validate_rule_patterns(rules) method test_pattern (line 138) | def test_pattern(pattern, example, expected:) method load_config (line 153) | def load_config method ordinalize (line 160) | def ordinalize(number) FILE: lib/querly/concerns/backtrace_formatter.rb type Querly (line 1) | module Querly type Concerns (line 2) | module Concerns type BacktraceFormatter (line 3) | module BacktraceFormatter function format_backtrace (line 4) | def format_backtrace(backtrace, indent: 2) FILE: lib/querly/config.rb type Querly (line 1) | module Querly class Config (line 2) | class Config method initialize (line 9) | def initialize(rules:, preprocessors:, root_dir:, checks:) method load (line 17) | def self.load(hash, config_path:, root_dir:, stderr: STDERR) method all_rules (line 21) | def all_rules method relative_path_from_root (line 25) | def relative_path_from_root(path) method rules_for_path (line 29) | def rules_for_path(path) class Factory (line 44) | class Factory method initialize (line 50) | def initialize(yaml, config_path:, root_dir:, stderr: STDERR) method config (line 57) | def config FILE: lib/querly/node_pair.rb type Querly (line 1) | module Querly class NodePair (line 2) | class NodePair method initialize (line 6) | def initialize(node:, parent: nil) method children (line 11) | def children method each_subpair (line 21) | def each_subpair(&block) FILE: lib/querly/pattern/argument.rb type Querly (line 1) | module Querly type Pattern (line 2) | module Pattern type Argument (line 3) | module Argument class Base (line 4) | class Base method initialize (line 7) | def initialize(tail:) method == (line 11) | def ==(other) method attributes (line 15) | def attributes class AnySeq (line 22) | class AnySeq < Base method initialize (line 23) | def initialize(tail: nil) class Expr (line 28) | class Expr < Base method initialize (line 31) | def initialize(expr:, tail:) class KeyValue (line 37) | class KeyValue < Base method initialize (line 42) | def initialize(key:, value:, tail:, negated: false) class BlockPass (line 51) | class BlockPass < Base method initialize (line 54) | def initialize(expr:) FILE: lib/querly/pattern/expr.rb type Querly (line 1) | module Querly type Pattern (line 2) | module Pattern type Expr (line 3) | module Expr class Base (line 4) | class Base method =~ (line 5) | def =~(pair) method test_node (line 9) | def test_node(node) method == (line 13) | def ==(other) method attributes (line 17) | def attributes class Any (line 24) | class Any < Base method test_node (line 25) | def test_node(node) class Not (line 30) | class Not < Base method initialize (line 33) | def initialize(pattern:) method test_node (line 37) | def test_node(node) class Constant (line 42) | class Constant < Base method initialize (line 45) | def initialize(path:) method test_node (line 49) | def test_node(node) method test_constant (line 57) | def test_constant(node, path) class Nil (line 76) | class Nil < Base method test_node (line 77) | def test_node(node) class Literal (line 82) | class Literal < Base method initialize (line 86) | def initialize(type:, values: nil) method with_values (line 91) | def with_values(values) method test_value (line 95) | def test_value(object) method test_node (line 103) | def test_node(node) class Send (line 135) | class Send < Base method initialize (line 141) | def initialize(receiver:, name:, block:, args: Argument::AnySeq.... method =~ (line 148) | def =~(pair) method test_name (line 162) | def test_name(node) method test_node (line 173) | def test_node(node) method test_receiver (line 188) | def test_receiver(node) method test_args (line 199) | def test_args(nodes, args) method hash_node_to_hash (line 251) | def hash_node_to_hash(node) method test_hash_args (line 262) | def test_hash_args(hash, args) class ReceiverContext (line 283) | class ReceiverContext < Base method initialize (line 286) | def initialize(receiver:) method test_node (line 290) | def test_node(node) class Self (line 300) | class Self < Base method test_node (line 301) | def test_node(node) class Vcall (line 306) | class Vcall < Base method initialize (line 309) | def initialize(name:) method =~ (line 313) | def =~(pair) method test_node (line 328) | def test_node(node) class Dstr (line 338) | class Dstr < Base method test_node (line 339) | def test_node(node) class Ivar (line 344) | class Ivar < Base method initialize (line 347) | def initialize(name:) method test_node (line 351) | def test_node(node) FILE: lib/querly/pattern/kind.rb type Querly (line 1) | module Querly type Pattern (line 2) | module Pattern type Kind (line 3) | module Kind class Base (line 4) | class Base method initialize (line 7) | def initialize(expr:) type Negatable (line 12) | module Negatable function initialize (line 15) | def initialize(expr:, negated:) class Any (line 21) | class Any < Base method test_kind (line 22) | def test_kind(pair) class Conditional (line 27) | class Conditional < Base method test_kind (line 30) | def test_kind(pair) method conditional? (line 34) | def conditional?(pair) class Discarded (line 55) | class Discarded < Base method test_kind (line 58) | def test_kind(pair) method discarded? (line 62) | def discarded?(pair) FILE: lib/querly/pp/cli.rb type Querly (line 3) | module Querly type PP (line 4) | module PP class CLI (line 5) | class CLI method initialize (line 15) | def initialize(argv, stdin: STDIN, stdout: STDOUT, stderr: STDERR) method load_libs (line 33) | def load_libs method run (line 44) | def run method run_haml (line 56) | def run_haml method run_erb (line 74) | def run_erb FILE: lib/querly/preprocessor.rb type Querly (line 1) | module Querly class Preprocessor (line 2) | class Preprocessor class Error (line 3) | class Error < StandardError method initialize (line 7) | def initialize(command:, status:) method initialize (line 16) | def initialize(ext:, command:) method run! (line 21) | def run!(path) FILE: lib/querly/rule.rb type Querly (line 1) | module Querly class Rule (line 2) | class Rule class Example (line 3) | class Example method initialize (line 7) | def initialize(before:, after:) method == (line 12) | def ==(other) method initialize (line 28) | def initialize(id:, messages:, patterns:, sources:, tags:, before_ex... method match? (line 40) | def match?(identifier: nil, tags: nil) class InvalidRuleHashError (line 56) | class InvalidRuleHashError < StandardError; end class PatternSyntaxError (line 57) | class PatternSyntaxError < StandardError; end method load (line 59) | def self.load(hash) method translate_where (line 113) | def self.translate_where(value) FILE: lib/querly/script.rb type Querly (line 1) | module Querly class Script (line 2) | class Script method load (line 6) | def self.load(path:, source:) method initialize (line 16) | def initialize(path:, node:) method root_pair (line 21) | def root_pair class Builder (line 25) | class Builder < Parser::Builders::Default method string_value (line 26) | def string_value(token) method emit_lambda (line 30) | def emit_lambda FILE: lib/querly/script_enumerator.rb type Querly (line 1) | module Querly class ScriptEnumerator (line 2) | class ScriptEnumerator method initialize (line 7) | def initialize(paths:, config:, threads:) method each (line 14) | def each(&block) method each_path (line 24) | def each_path(&block) method register_loader (line 40) | def self.register_loader(pattern, loader) method find_loader (line 44) | def self.find_loader(path) method load_script_from_path (line 51) | def load_script_from_path(path, &block) method preprocessors (line 69) | def preprocessors method enumerate_files_in_dir (line 73) | def enumerate_files_in_dir(path, &block) FILE: lib/querly/version.rb type Querly (line 1) | module Querly FILE: test/analyzer_test.rb class AnalyzerTest (line 3) | class AnalyzerTest < Minitest::Test method stderr (line 7) | def stderr FILE: test/check_test.rb class CheckTest (line 3) | class CheckTest < Minitest::Test method root (line 7) | def root method test_match1 (line 11) | def test_match1 method test_match2 (line 24) | def test_match2 method test_match3 (line 34) | def test_match3 method test_match4 (line 43) | def test_match4 method test_match5 (line 53) | def test_match5 method test_load (line 63) | def test_load method test_query_match (line 87) | def test_query_match method test_query_apply (line 103) | def test_query_apply FILE: test/cli/console_test.rb class ConsoleTest (line 5) | class ConsoleTest < Minitest::Test method exe_path (line 8) | def exe_path method read_for (line 12) | def read_for(read, pattern:) method test_console (line 38) | def test_console method test_history_location_override (line 116) | def test_history_location_override FILE: test/cli/rules_test.rb class RulesTest (line 4) | class RulesTest < Minitest::Test method test_rules_command (line 7) | def test_rules_command FILE: test/cli/test_test.rb class TestTest (line 3) | class TestTest < Minitest::Test method setup (line 9) | def setup method test_load_config_failure (line 14) | def test_load_config_failure method test_rule_uniqueness (line 27) | def test_rule_uniqueness method test_rule_patterns_pass (line 53) | def test_rule_patterns_pass method test_rule_patterns_before_after_fail (line 84) | def test_rule_patterns_before_after_fail method test_rule_patterns_example_fail (line 118) | def test_rule_patterns_example_fail method test_rule_patterns_error (line 153) | def test_rule_patterns_error FILE: test/config_test.rb class ConfigTest (line 3) | class ConfigTest < Minitest::Test method stderr (line 9) | def stderr method test_factory_config_returns_empty_config (line 13) | def test_factory_config_returns_empty_config method test_factory_config_resturns_config_with_rules (line 22) | def test_factory_config_resturns_config_with_rules method test_factory_config_prints_warning_on_tagging (line 57) | def test_factory_config_prints_warning_on_tagging method test_relative_path_from_root (line 63) | def test_relative_path_from_root method test_loading_rules_from_file (line 76) | def test_loading_rules_from_file method test_analyzer_rules_for_path (line 99) | def test_analyzer_rules_for_path FILE: test/data/test4/script.rb function foo (line 19) | def foo(...) function foo2 (line 24) | def foo2(a, ...) function square (line 32) | def square(x) = x * x FILE: test/node_pair_test.rb class NodePairTest (line 3) | class NodePairTest < Minitest::Test method test_each_subpair (line 6) | def test_each_subpair FILE: test/pattern_parser_test.rb class PatternParserTest (line 3) | class PatternParserTest < Minitest::Test method test_parser1 (line 6) | def test_parser1 method test_aaa (line 18) | def test_aaa method test_ivar (line 22) | def test_ivar method test_ivar_with_name (line 27) | def test_ivar_with_name method test_pattern (line 32) | def test_pattern method test_constant (line 37) | def test_constant method test_dot3_args (line 42) | def test_dot3_args method test_keyword_arg (line 51) | def test_keyword_arg method test_keyword_arg2 (line 62) | def test_keyword_arg2 method test_send_with_block (line 73) | def test_send_with_block method test_send_without_block (line 81) | def test_send_without_block method test_send_without_block2 (line 89) | def test_send_without_block2 method test_send_with_block_uident (line 97) | def test_send_with_block_uident method test_method_names (line 105) | def test_method_names method test_send (line 111) | def test_send method test_any_method (line 121) | def test_any_method method test_method_name (line 145) | def test_method_name method test_block_pass (line 151) | def test_block_pass method test_vcall (line 159) | def test_vcall method test_dstr (line 166) | def test_dstr method test_any_kinded (line 171) | def test_any_kinded method test_conditonal_kinded (line 176) | def test_conditonal_kinded method test_conditional_kinded2 (line 182) | def test_conditional_kinded2 method test_discarded_kinded (line 188) | def test_discarded_kinded method test_discarded_kinded2 (line 194) | def test_discarded_kinded2 method test_regexp (line 200) | def test_regexp method test_any_receiver (line 206) | def test_any_receiver method test_parse_self (line 218) | def test_parse_self method test_send_with_meta (line 223) | def test_send_with_meta method test_send_with_missing_meta (line 229) | def test_send_with_missing_meta method test_as_method (line 235) | def test_as_method method test_string (line 242) | def test_string method test_string_literal (line 249) | def test_string_literal method test_string_literal_with_backslash_escape (line 256) | def test_string_literal_with_backslash_escape method test_as_something (line 265) | def test_as_something method test_as_things2 (line 271) | def test_as_things2 FILE: test/pattern_test_test.rb class PatternTestTest (line 3) | class PatternTestTest < Minitest::Test method assert_node (line 6) | def assert_node(node, type:) method test_ivar_without_name (line 12) | def test_ivar_without_name method test_ivar_with_name (line 20) | def test_ivar_with_name method test_constant (line 28) | def test_constant method test_constant_with_parent (line 38) | def test_constant_with_parent method test_constant_with_parent2 (line 45) | def test_constant_with_parent2 method test_int (line 52) | def test_int method test_float (line 58) | def test_float method test_bool (line 64) | def test_bool method test_symbol (line 70) | def test_symbol method test_symbol2 (line 77) | def test_symbol2 method test_string (line 85) | def test_string method test_string2 (line 91) | def test_string2 method test_string3 (line 98) | def test_string3 method test_byte_sequence_string (line 104) | def test_byte_sequence_string method test_regexp (line 110) | def test_regexp method test_call_without_args (line 116) | def test_call_without_args method test_call_with_no_arg (line 123) | def test_call_with_no_arg method test_call_with_any_args (line 129) | def test_call_with_any_args method test_call_with_any_expr_arg (line 135) | def test_call_with_any_expr_arg method test_call_with_not_expr_arg (line 141) | def test_call_with_not_expr_arg method test_call_with_kw_args1 (line 147) | def test_call_with_kw_args1 method test_call_with_kw_args2 (line 153) | def test_call_with_kw_args2 method test_call_with_kw_args3 (line 158) | def test_call_with_kw_args3 method test_call_with_kw_args4 (line 163) | def test_call_with_kw_args4 method test_call_with_kw_args5 (line 169) | def test_call_with_kw_args5 method test_call_with_kw_args6 (line 175) | def test_call_with_kw_args6 method test_call_with_kw_args_rest1 (line 180) | def test_call_with_kw_args_rest1 method test_call_with_kw_args_rest2 (line 186) | def test_call_with_kw_args_rest2 method test_call_with_negated_kw1 (line 191) | def test_call_with_negated_kw1 method test_call_with_negated_kw2 (line 197) | def test_call_with_negated_kw2 method test_call_with_negated_kw3 (line 203) | def test_call_with_negated_kw3 method test_call_with_negated_kw4 (line 209) | def test_call_with_negated_kw4 method test_call_with_negated_kw5 (line 215) | def test_call_with_negated_kw5 method test_call_with_rest_and_kw (line 221) | def test_call_with_rest_and_kw method test_call_with_two_dot3 (line 228) | def test_call_with_two_dot3 method test_call_with_block_pass (line 235) | def test_call_with_block_pass method test_call_with_names (line 241) | def test_call_with_names method test_call_without_receiver (line 249) | def test_call_without_receiver method test_call_with_any_receiver (line 254) | def test_call_with_any_receiver method test_call_any_method (line 260) | def test_call_any_method method test_call_any_method_with_args (line 266) | def test_call_any_method_with_args method test_call_any_method_with_block (line 272) | def test_call_any_method_with_block method test_vcall (line 278) | def test_vcall method test_vcall2 (line 288) | def test_vcall2 method test_vcall3 (line 295) | def test_vcall3 method test_vcall4 (line 302) | def test_vcall4 method test_dstr (line 308) | def test_dstr method test_without_block_option (line 314) | def test_without_block_option method test_with_block (line 319) | def test_with_block method test_without_block (line 325) | def test_without_block method test_any_receiver1 (line 331) | def test_any_receiver1 method test_any_receiver2 (line 336) | def test_any_receiver2 method test_any_receiver3 (line 341) | def test_any_receiver3 method test_any_receiver4 (line 346) | def test_any_receiver4 method test_any_receiver5 (line 351) | def test_any_receiver5 method test_any_receiver6 (line 356) | def test_any_receiver6 method test_self (line 361) | def test_self method test_string_value (line 366) | def test_string_value method test_conditional_if (line 371) | def test_conditional_if method test_conditional_while (line 377) | def test_conditional_while method test_conditional_and (line 383) | def test_conditional_and method test_conditional_or (line 389) | def test_conditional_or method test_conditional_csend (line 395) | def test_conditional_csend FILE: test/preprocessor_test.rb class PreprocessorTest (line 3) | class PreprocessorTest < Minitest::Test method with_temp_file (line 6) | def with_temp_file(content) method test_preprocessing_succeeded (line 14) | def test_preprocessing_succeeded method test_preprocessing_failed (line 30) | def test_preprocessing_failed FILE: test/querly_test.rb class QuerlyTest (line 3) | class QuerlyTest < Minitest::Test method test_that_it_has_a_version_number (line 4) | def test_that_it_has_a_version_number FILE: test/rule_test.rb class RuleTest (line 3) | class RuleTest < Minitest::Test method test_load_rule (line 8) | def test_load_rule method test_load_rule3 (line 23) | def test_load_rule3 method test_load_rule2 (line 41) | def test_load_rule2 method test_load_rule_before_and_after_examples (line 63) | def test_load_rule_before_and_after_examples method test_load_rule_raises_on_pattern_syntax_error (line 84) | def test_load_rule_raises_on_pattern_syntax_error method test_load_rule_raises_without_id (line 92) | def test_load_rule_raises_without_id method test_load_rule_raises_without_pattern (line 100) | def test_load_rule_raises_without_pattern method test_load_rule_raises_without_message (line 108) | def test_load_rule_raises_without_message method test_load_including_pattern_with_where_clause (line 116) | def test_load_including_pattern_with_where_clause method test_load_rule_raises_exception_on_invalid_example (line 124) | def test_load_rule_raises_exception_on_invalid_example method test_translate_where (line 130) | def test_translate_where FILE: test/script_enumerator_test.rb class ScriptEnumeratorTest (line 3) | class ScriptEnumeratorTest < Minitest::Test method test_parsing_ruby (line 9) | def test_parsing_ruby method test_parse_error_ruby (line 27) | def test_parse_error_ruby method test_no_parse_error_on_invalid_utf8_sequence (line 44) | def test_no_parse_error_on_invalid_utf8_sequence FILE: test/smoke_test.rb class SmokeTest (line 6) | class SmokeTest < Minitest::Test method dirs (line 9) | def dirs method push_dir (line 13) | def push_dir(dir) method sh! (line 20) | def sh!(*args, **options) method querly_path (line 31) | def querly_path method run_querly (line 35) | def run_querly(*args, **options) method sh (line 39) | def sh(*args, **options) method root (line 43) | def root method test_help (line 47) | def test_help method test_rules (line 51) | def test_rules method test_check (line 55) | def test_check method test_test (line 59) | def test_test method test_console (line 63) | def test_console method test_version (line 67) | def test_version method test_check_json_format (line 71) | def test_check_json_format method test_check_with_rule (line 92) | def test_check_with_rule method test_check_when_omit_paths (line 136) | def test_check_when_omit_paths method test_check_json_format_with_not_a_config_file (line 158) | def test_check_json_format_with_not_a_config_file method test_run3 (line 168) | def test_run3 method test_run4 (line 182) | def test_run4 method test_load_file_not_found (line 210) | def test_load_file_not_found method mktmpdir (line 222) | def mktmpdir method test_init (line 230) | def test_init method test_check_text_format_when_syntax_error (line 240) | def test_check_text_format_when_syntax_error method test_check_new_syntax (line 255) | def test_check_new_syntax FILE: test/test_helper.rb type TestHelper (line 13) | module TestHelper function parse_expr (line 18) | def parse_expr(src, where: {}) function parse_kinded (line 22) | def parse_kinded(src, where: {}) function query_pattern (line 26) | def query_pattern(pattern, src, where: {}) function ruby (line 40) | def ruby(src) function with_config (line 44) | def with_config(hash) function stdout (line 52) | def stdout function mktmpdir (line 56) | def mktmpdir