-
Notifications
You must be signed in to change notification settings - Fork 58
Deeper configuration parsing and validation #515
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
Draft
paulo-ferraz-oliveira
wants to merge
67
commits into
main
Choose a base branch
from
fix/config-parse-validate
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
67 commits
Select commit
Hold shift + click to select a range
6eb6dd0
Set newer expectations
paulo-ferraz-oliveira da75963
Expect to move keys (and default handling) to elvis_config
paulo-ferraz-oliveira 9d596a4
Approach our expectations on continuing validation
paulo-ferraz-oliveira 38f0ae4
Implement mechanism to prevent re-validation
paulo-ferraz-oliveira 60d2d0b
Go back to elvis_core as is: leave validation to elvis_config
paulo-ferraz-oliveira 6bf4ceb
Make it easier to debug and formulate newer implementation
paulo-ferraz-oliveira 2f5b2b7
Doc. it for consumers
paulo-ferraz-oliveira 1658690
Prepare for further validation
paulo-ferraz-oliveira 16e475b
Trim to useful API
paulo-ferraz-oliveira d11c2f8
Doc. it a little better
paulo-ferraz-oliveira 65e98c5
Export used type
paulo-ferraz-oliveira 4183e74
Respect current constraints
paulo-ferraz-oliveira 94bf88b
Adapt to current API
paulo-ferraz-oliveira bf33731
Expect test results to remain the same (adapt to current implementation)
paulo-ferraz-oliveira 3392690
Allow elvis_rule to validate an input 2/3-tuple
paulo-ferraz-oliveira 49018f6
Allow elvis_rule to validate an input ignorable
paulo-ferraz-oliveira 85517d6
Have notion of definition belong to appropriate namespace
paulo-ferraz-oliveira 642f85d
Allow for further config. validation
paulo-ferraz-oliveira 27005e6
Validate the configuration
paulo-ferraz-oliveira 60bef3f
Act on test results and prepare for final touches
paulo-ferraz-oliveira b3dfaa3
Act on Xref results
paulo-ferraz-oliveira a686d63
Fix for erl_files_test trim'ing
paulo-ferraz-oliveira 9803ffc
Don't be afraid to write text as it's supposed to be read
paulo-ferraz-oliveira 42fc5ce
Just because something sounds similar...
paulo-ferraz-oliveira 651c604
Care more about how it's read that correct form
paulo-ferraz-oliveira d7da54f
Be more correct
paulo-ferraz-oliveira 48be7f6
Use ?MODULE less
paulo-ferraz-oliveira ee5b093
Drop unused test code
paulo-ferraz-oliveira 0734f2d
Allow xref'ing further
paulo-ferraz-oliveira 540b064
Make it compilation error -free
paulo-ferraz-oliveira 836f494
Ease it again!
paulo-ferraz-oliveira 5d4664f
Go with no-throw-but-error, by default
paulo-ferraz-oliveira b08309d
Have `elvis_core on elvis_core` work
paulo-ferraz-oliveira 76328fb
Re-read README and act on expected output
paulo-ferraz-oliveira 2b0ba4b
Don't change if we don't have to
paulo-ferraz-oliveira 39d3cbe
Rename it for clarity
paulo-ferraz-oliveira 85d72d7
Use it if available, and drop custom ignore_xref
paulo-ferraz-oliveira 7cb4cc7
Spec it for consumption
paulo-ferraz-oliveira 961d118
Add convenience elvis_config API
paulo-ferraz-oliveira 9e3c7ef
Fix default configuration
paulo-ferraz-oliveira 1767ba4
Add a note on default configuration to the README
paulo-ferraz-oliveira 797de2b
Make for easier-to-follow output
paulo-ferraz-oliveira d839029
Adapt new entrypoint
paulo-ferraz-oliveira adf86c2
Adapt to Elvis (temporarily?)
paulo-ferraz-oliveira 7afc514
Fix API per consumption
paulo-ferraz-oliveira a7d49d7
Act on dogfooding
paulo-ferraz-oliveira ae1bd21
Typo
paulo-ferraz-oliveira 3bb94be
Make it easier to follow
paulo-ferraz-oliveira 39a4da2
Add a bit more higher-level validation to proceed further
paulo-ferraz-oliveira 3ce87b3
Match on what we expect to
paulo-ferraz-oliveira 00c9d8e
Make it prettier
paulo-ferraz-oliveira 890e739
Tweak for a "better" default (?)
paulo-ferraz-oliveira 50f1839
Previous errors weren't actually `error`, but `notice`
paulo-ferraz-oliveira d5c5ba1
Respect expected verbosity
paulo-ferraz-oliveira 7fd2482
Fix broken rule result
paulo-ferraz-oliveira d1b2e68
Adapt to actual usage
paulo-ferraz-oliveira 23a91f3
rebar3 fmt it!
paulo-ferraz-oliveira 8d4b07d
Remove extraneous ~n
paulo-ferraz-oliveira 37da2b7
Initialise the elvis_config_SUITE
paulo-ferraz-oliveira e68cd26
Don't ignore stuff we don't generate any more
paulo-ferraz-oliveira c41293d
Further minor tweaks on output
paulo-ferraz-oliveira 9710c29
Fix for test results
paulo-ferraz-oliveira 63d1355
Fix for test results
paulo-ferraz-oliveira 5588551
Act on review comment
paulo-ferraz-oliveira 6e862cc
Fix it
paulo-ferraz-oliveira 2bf6711
Minor tweak for test results
paulo-ferraz-oliveira 1fa8791
Throw earlier when elvis.config exists but is invalid Erlang
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,7 +3,6 @@ _build/ | |
| doc/ | ||
| /rebar3.crashdump | ||
| .rebar3/ | ||
| logs | ||
| test/**/*.beam | ||
| test/logs/ | ||
| _checkouts/ | ||
|
|
||
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
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.
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.