-
Notifications
You must be signed in to change notification settings - Fork 58
Tweak: further simplification in the code base #500
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
Merged
Merged
Changes from all commits
Commits
Show all changes
88 commits
Select commit
Hold shift + click to select a range
b2cd09f
Simplify it for default values
paulo-ferraz-oliveira 323e776
Allow for new find_by_types/4 (with filter)
paulo-ferraz-oliveira 2b3cdc0
Simplify further patterns
paulo-ferraz-oliveira 9ed7fe7
Continue the pursuit for patterns
paulo-ferraz-oliveira 73d4ece
Fix doc where lacking
paulo-ferraz-oliveira bfbd330
Update/remove spec/type where unwarranted
paulo-ferraz-oliveira eb39d07
Stay the course of simplification
paulo-ferraz-oliveira 84d00c6
Propose a way to simplify writing rules: first pass
paulo-ferraz-oliveira 53890f1
Find further defaults and common patterns we can tweak
paulo-ferraz-oliveira b52f3f1
Propose a way to simplify writing rules: second pass
paulo-ferraz-oliveira 17a7f5b
New format: no_nested_hrls
paulo-ferraz-oliveira eb8dd74
New format: no_specs
paulo-ferraz-oliveira bc1fb44
New format: no_block_expressions (introduces tokens_as_content/1)
paulo-ferraz-oliveira 2b67773
New format: no_macros
paulo-ferraz-oliveira b15b8bf
New format: macro_names
paulo-ferraz-oliveira f1ae720
New format: no_types
paulo-ferraz-oliveira 7bd7bb1
New format: no_if_expressions
paulo-ferraz-oliveira 979bd1e
Fix elvis_code:find/1 (typespec) and stop reversing list
paulo-ferraz-oliveira 4b72014
Tweak specs a bit (add more zipper support)
paulo-ferraz-oliveira f5dad4e
New format: used_ignored_vars
paulo-ferraz-oliveira a0ab883
New format: no_behavior_info
paulo-ferraz-oliveira 59485e6
New format: invalid_dynamic_call
paulo-ferraz-oliveira ef8e22f
New format: no_spec_with_records
paulo-ferraz-oliveira 3c9c266
Minor format changes
paulo-ferraz-oliveira 7693cfb
New format: max_function_clause_length
paulo-ferraz-oliveira 253807b
Fix reading options for max_function_clause_length
paulo-ferraz-oliveira 2a15cfa
New format: max_function_length
paulo-ferraz-oliveira f1aeafc
Tweak a few messages (make limits more explicit)
paulo-ferraz-oliveira 08f820c
New format: no_nested_try_catch
paulo-ferraz-oliveira 5f4aadb
New format: no_successive_maps
paulo-ferraz-oliveira 4900424
Simplify for already-tested condition
paulo-ferraz-oliveira 5c2cb6b
New format: no_init_lists
paulo-ferraz-oliveira 8720c70
New format: ms_transform_included
paulo-ferraz-oliveira bc21127
New format: no_boolean_in_comparison
paulo-ferraz-oliveira baf7717
New format: no_receive_without_timeout
paulo-ferraz-oliveira 4829a1f
New format: no_operation_on_same_value
paulo-ferraz-oliveira 2b72470
New format: no_throw
paulo-ferraz-oliveira 10362e0
New format: no_dollar_space
paulo-ferraz-oliveira 44af5d8
New format: no_author
paulo-ferraz-oliveira cc91beb
New format: no_import
paulo-ferraz-oliveira 88d2ac5
New format: no_catch_expressions
paulo-ferraz-oliveira ee573b2
New format: no_single_clause_case
paulo-ferraz-oliveira 47c25e2
New format: behaviour_spelling
paulo-ferraz-oliveira bf8f081
New format: param_pattern_matching
paulo-ferraz-oliveira 6bfc95e
New format: consistent_generic_type
paulo-ferraz-oliveira e1eee89
New format: always_shortcircuit
paulo-ferraz-oliveira 9b4d88b
Remove unnecessary reference to generic doc.
paulo-ferraz-oliveira d62e21f
New format: module_naming_convention
paulo-ferraz-oliveira a55d4ec
New format: max_module_length
paulo-ferraz-oliveira 419b0a7
New format: max_anonymous_function_arity
paulo-ferraz-oliveira 8af0e5a
New format: max_function_arity
paulo-ferraz-oliveira c1e4ab8
New format: no_single_match_maybe
paulo-ferraz-oliveira a074a80
New format: no_match_in_condition
paulo-ferraz-oliveira af37155
New format: export_used_types
paulo-ferraz-oliveira f9fde79
New format: private_data_types
paulo-ferraz-oliveira 5f95ee6
Prevent copy-paste errors (and also tightly couple rule and rule name)
paulo-ferraz-oliveira 8d62276
Vastly simplify the :find API
paulo-ferraz-oliveira 95affe2
Review code that was left for review later
paulo-ferraz-oliveira 9833039
New format: function_naming_convention
paulo-ferraz-oliveira e54ccb2
New function: variable_naming_convention
paulo-ferraz-oliveira 64d9767
New format: atom_naming_convention
paulo-ferraz-oliveira 0e03e00
Minor tweaks to comments and docs
paulo-ferraz-oliveira 12794d3
Improve in preparation for further tweak operations
paulo-ferraz-oliveira cd61242
Let rebar3 control the output of compilation errors
paulo-ferraz-oliveira 054c632
New format: no_space_after_pound, no_space, operator_spaces
paulo-ferraz-oliveira faa6e2a
New format: nesting_level
paulo-ferraz-oliveira 674642b
Handle regex in similar manner across the board
paulo-ferraz-oliveira cfe3b12
Allow Dialyzer to know when we're breaking opacity or not
paulo-ferraz-oliveira 9d24967
New format: god_modules
paulo-ferraz-oliveira cf96668
New format: state_record_and_type
paulo-ferraz-oliveira f6d1345
New format: no_call, no_debug_call, no_common_caveats_call
paulo-ferraz-oliveira 77e4cad
New format: numeric_format
paulo-ferraz-oliveira d9f46bd
New format: consistent_variable_casing
paulo-ferraz-oliveira c0dc585
Put it back again: concentrate on important stuff
paulo-ferraz-oliveira 1f5178f
New format: dont_repeat_yourself (and drop some specs)
paulo-ferraz-oliveira 6b24f9f
Fix printing dont_repeat_yourself output
paulo-ferraz-oliveira 4621a46
Act on self-review
paulo-ferraz-oliveira 0c9289e
Finalise it for review
paulo-ferraz-oliveira c4deb1b
Fix it for OTP 26
paulo-ferraz-oliveira 803ae66
Act on self-review
paulo-ferraz-oliveira 0945d30
Make it more explicit where we find compulsory-ness
paulo-ferraz-oliveira c9da325
code_zipper > zipper, as per review comment
paulo-ferraz-oliveira 9a86a55
Improve (internal) API consistency, as per review comment
paulo-ferraz-oliveira 1d0af89
Make it more generic, as per review comment
paulo-ferraz-oliveira 82f06a1
Trim it, as per review comment
paulo-ferraz-oliveira aef5384
Simplify it, as per review comment
paulo-ferraz-oliveira 685f933
Remove dead code, as per review comment
paulo-ferraz-oliveira 96c4cb5
Remove function, as per review comment
paulo-ferraz-oliveira 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 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 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 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 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 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 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.
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.