Class: XRay::JS::Rule::ChecklistRule

Inherits:
Object
  • Object
show all
Includes:
Helper, Rule
Defined in:
lib/js/rule/checklist.rb

Constant Summary

Constants included from Rule

Rule::KEYWORDS, Rule::RULE_PATH, Rule::STYLE_TYPES

Instance Method Summary collapse

Methods included from Helper

#app, #find_expr_member, #func_file?, #global_scope?, #grep_import_js_path, #has_doc_comment?, #lib_scope?, #merge_file?, #min_file?, #page_scope?, #readfile, #relative?, #results_to_logs, #scope

Methods included from Rule

#add_common_rule, #clear_all_rules, #cmd_name, #common, #context, #do_check, #import, import_all, #import_all, #imported, #imported?, #method_missing, methods_to_keywords, #syntax

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class XRay::Rule

Instance Method Details

#visit_expr_equal(expr) ⇒ Object



29
30
31
# File 'lib/js/rule/checklist.rb', line 29

def visit_expr_equal(expr)
  check_js_expr_equal expr
end

#visit_expr_member(expr) ⇒ Object



21
22
23
# File 'lib/js/rule/checklist.rb', line 21

def visit_expr_member(expr)
  check_js_expr_member expr
end

#visit_expr_new(expr) ⇒ Object



25
26
27
# File 'lib/js/rule/checklist.rb', line 25

def visit_expr_new(expr)
  check_js_expr_new expr
end

#visit_stat_if(stat) ⇒ Object



17
18
19
# File 'lib/js/rule/checklist.rb', line 17

def visit_stat_if(stat)
  check_js_stat_if stat
end

#visit_stat_try(stat) ⇒ Object



33
34
35
# File 'lib/js/rule/checklist.rb', line 33

def visit_stat_try(stat)
  check_js_stat_try stat
end

#visit_statement(stat) ⇒ Object



13
14
15
# File 'lib/js/rule/checklist.rb', line 13

def visit_statement(stat)
  check_js_statement stat
end