mirror of
https://gitea.invidious.io/iv-org/shard-ameba.git
synced 2024-08-15 00:53:29 +00:00
6475c2bb25
* AST::Visitor -> AST::NodeVisitor * Scope & ScopeVisitor * Useless assignment rule * Instance vars and useless assignments * Multiple assigns one by one * Support outer scope * Variable used in the useless assignment * Support OpAssign & MultiAssign * Captured by block * Variable, Assignment, Reference & Refactoring * Variable has references, Assignment can be referenced * Branch entity * Handle useless assignments in branches * Handle assignments in a loop * Handle branch equality * Handle special var `$?` assignment * Improve captured by block stuff * Avoid assignments in property definitions (UselessAssign rule reports an warning) * Support MacroIf and MacroFor branches * Handle assignments with shadowed vars in inner scopes * Add method arguments as scope variables * Handle case if branch is blank * Top level scope * Handle case when branch is nop? |
||
---|---|---|
.. | ||
base_spec.cr | ||
comparison_to_boolean_spec.cr | ||
constant_names_spec.cr | ||
debugger_statement_spec.cr | ||
empty_ensure_spec.cr | ||
empty_expression_spec.cr | ||
hash_duplicated_key_spec.cr | ||
large_numbers_spec.cr | ||
line_length_spec.cr | ||
literal_in_condition_spec.cr | ||
literal_in_interpolation_spec.cr | ||
method_names_spec.cr | ||
negated_conditions_in_unless_spec.cr | ||
percent_arrays_spec.cr | ||
predicate_name_spec.cr | ||
rand_zero_spec.cr | ||
redundant_begin_spec.cr | ||
shadowed_exception_spec.cr | ||
syntax_spec.cr | ||
trailing_blank_lines_spec.cr | ||
trailing_whitespace_spec.cr | ||
type_names_spec.cr | ||
unless_else_spec.cr | ||
unneded_disable_directive_spec.cr | ||
useless_assign_spec.cr | ||
useless_condition_in_when_spec.cr | ||
variable_names_spec.cr | ||
while_true_spec.cr |