-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Add new lint manual_duration_calcs
#6490
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
Closed
Closed
Changes from all commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
8a66872
Rename from duration_subsec to manual_duration_calcs
himanoa b192c6e
Rename duration_subsec to manual_duration_cals in code
himanoa 7c03f88
Add ui test cases
himanoa 7fa4680
Fix a broken test case
himanoa 9374559
Implemented manual_re_implementation_as_secs_f64
himanoa ab77045
Add test case
himanoa 87c88ae
Rename from manual_re_implementation_as_secs_f64 to manual_re_impleme…
himanoa 2ccbe24
Implement manual_re_implementation_as_secs_f64_for_mul
himanoa 48cf680
Fix a comment
himanoa 31a119d
Add a same receiver guard
himanoa c9edeaa
Implemented manual_re_implementation_as_secs_f64_for_div_and_mul
himanoa 1d5dd50
Exec cargo dev bless
himanoa df6cab3
Fix code format errors
himanoa a00c908
Execute cargo dev update_lints
himanoa b863fed
Add examples for manual_duration_calcs
himanoa 4259cd9
Fix a dogfood lint errors
himanoa 6472a9d
Refactor manual_re_implementation_lower_the_unit implementation
himanoa ef0b59c
Change the order of LateContext argumens
himanoa dfc0309
Rename from manual_re_implementation_as_secs_f64_for_div to manual_re…
himanoa ca30016
Implemented utility functions
himanoa e8b439f
Use parse_method_call_expr and get_divisor function with parse_divisi…
himanoa ed25378
Refactor manual_re_implementation_upper_the_unit implementation
himanoa ba820ac
Fix dogfood test errors
himanoa d0a2887
Change the Divisor enum entry names.
himanoa 8a4fac9
Change the type name from Divisor to Number
himanoa a6dca1f
Use consts::Constant instead of Numeral.
himanoa f070a9d
Supported F32 and F64 types with manual_re_implementation_lower_the_unit
himanoa 91a5fb7
Refactor extract_multiple_expr interface
himanoa 78390c4
Implemented manual re implementation duration_as_secs rule
himanoa 113dc8b
Support composite division and multiply pattern
himanoa df6ee42
Add test cases
himanoa 8f96dc4
cargo dev bless
himanoa d2f1700
Use register_renamed instead of register_late_pass
himanoa 7ff7eb3
Revert "Execute cargo dev update_lints"
himanoa 2a5a51c
Execute cargo dev update_lints
himanoa a13726a
Fix a cargo dev fmt error
himanoa d16e9f6
Add store.register_late_pass
himanoa File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.