Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor 18 patterns #528

Open
17 of 18 tasks
Vitaly-Protasov opened this issue Jul 20, 2020 · 3 comments
Open
17 of 18 tasks

Refactor 18 patterns #528

Vitaly-Protasov opened this issue Jul 20, 2020 · 3 comments
Assignees
Milestone

Comments

@Vitaly-Protasov
Copy link
Collaborator

Vitaly-Protasov commented Jul 20, 2020

Description of each pattern you can find here: PATTERNS.md

  • 1) many_primary_ctors
  • 2) method_chaining
  • 3) method_siblings
  • 4) multiply_try
  • 5) nested_blocks
  • 6) nested_loop
  • 7) non_final_attribute
  • 8) null_check
  • 9) partial_synchronized
  • 10) private_static_method
  • 11) protected_method
  • 12) public_static_method
  • 13) redundant_catch
  • 14) send_null
  • 15) string_concat
  • 16) this_finder
  • 17) var_decl_diff
  • 18) var_siblings
@aravij
Copy link
Contributor

aravij commented Jul 27, 2020

I think last patterns should be distributed the next way:

  • @Vitaly-Protasov can take nesting_block and nesting_loop (last one should be deleted, check my comment in Clarify Nested Blocks pattern #562).
  • I am currently working with grouping statements by scope and providing JavaLangImproved functionality. I consider to take patterns, which use it:
    • partial_synchronized
    • redundant_catch
    • var_decl_diff
  • In order to spread the knowledge of using new ast_framework, @lyriccoder could take the rest of the patterns:
    • send_null
    • this_finder

This will finish our epic patterns refactoring (but not metrics!).

@Vitaly-Protasov
Copy link
Collaborator Author

I think last patterns should be distributed the next way:

  • @Vitaly-Protasov can take nesting_block and nesting_loop (last one should be deleted, check my comment in Clarify Nested Blocks pattern #562).

  • I am currently working with grouping statements by scope and providing JavaLangImproved functionality. I consider to take patterns, which use it:

    • partial_synchronized
    • redundant_catch
    • var_decl_diff
  • In order to spread the knowledge of using new ast_framework, @lyriccoder could take the rest of the patterns:

    • send_null
    • this_finder

This will finish our epic patterns refactoring (but not metrics!).

I have almost finished "redundant_catch". may i take this?

@aravij
Copy link
Contributor

aravij commented Jul 27, 2020

@Vitaly-Protasov Yep, no problem.

aravij added a commit that referenced this issue Jul 29, 2020
Delete nested loops and use nested blocks pattern drectly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants