-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Move test-specific rebar.config options to the test profile * Trim .gitignore to bare requirements for a rebar3 project * Update some CI versions * Tweak dialyzer options * underspecs allows for stricts typespecs, which is good * no_return prevents a class of warnings we might want to be aware of * Analyse it with XRef * markdownlint it! * YAMLlint it! * Prefer ex_doc to EDoc Also adds a much-deserved badge to README.md * Analyse further We also add `no_unknown` to Dialyzer (because `unknown` is default in OTP 26), so we can fix errors locally without having to wait for CI (if locally you're using OTP 25, and CI fails in OTP 26, that is) * Fix as per CI: Warning: ... is undefined function (Xref)
- Loading branch information
1 parent
edf814f
commit 6023c2c
Showing
18 changed files
with
161 additions
and
105 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--- | ||
name: Lint | ||
|
||
"on": [push, pull_request] | ||
|
||
jobs: | ||
lint: | ||
name: Lint | ||
|
||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
# uses .markdownlint.yml for configuration | ||
- name: markdownlint | ||
uses: DavidAnson/markdownlint-cli2-action@v11 | ||
with: | ||
globs: | | ||
.github/**/*.md | ||
*.md | ||
- name: yamllint | ||
uses: ibiqlik/action-yamllint@v3 | ||
with: | ||
file_or_dir: | | ||
.github/**/*.yml | ||
.*.yml | ||
strict: true | ||
config_file: .yamllint.yml |
This file contains 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 |
---|---|---|
@@ -1,18 +1,5 @@ | ||
rebar3.crashdump | ||
.rebar3 | ||
_* | ||
.eunit | ||
*.o | ||
*.beam | ||
*.plt | ||
erl_crash.dump | ||
.concrete/DEV_MODE | ||
|
||
.rebar | ||
rel/ | ||
ebin/ | ||
|
||
_build | ||
_checkouts | ||
doc/ | ||
rebar3 |
This file contains 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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
default: true | ||
MD013: | ||
line_length: 100 |
This file contains 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
extends: default | ||
rules: | ||
line-length: | ||
max: 100 |
This file contains 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 |
---|---|---|
@@ -1 +1,3 @@ | ||
# Changelog | ||
|
||
See the [Releases](../../releases) page. |
This file contains 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 |
---|---|---|
|
@@ -55,7 +55,7 @@ further defined and clarified by project maintainers. | |
## Enforcement | ||
|
||
Instances of abusive, harassing, or otherwise unacceptable behavior may be | ||
reported by contacting the project team at [email protected]. All | ||
reported by contacting the project team at <[email protected]>. All | ||
complaints will be reviewed and investigated and will result in a response that | ||
is deemed necessary and appropriate to the circumstances. The project team is | ||
obligated to maintain confidentiality with regard to the reporter of an incident. | ||
|
@@ -67,10 +67,10 @@ members of the project's leadership. | |
|
||
## Attribution | ||
|
||
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, | ||
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html | ||
This Code of Conduct is adapted from the [Contributor Covenant][homepage], | ||
version 1.4, available at <https://www.contributor-covenant.org/version/1/4/code-of-conduct.html> | ||
|
||
[homepage]: https://www.contributor-covenant.org | ||
|
||
For answers to common questions about this code of conduct, see | ||
https://www.contributor-covenant.org/faq | ||
<https://www.contributor-covenant.org/faq> |
This file contains 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 |
---|---|---|
|
@@ -5,17 +5,17 @@ helps, and credit will always be given. | |
|
||
You can contribute in many ways: | ||
|
||
Types of Contributions | ||
---------------------- | ||
## Types of Contributions | ||
|
||
### Report Bugs | ||
|
||
Report bugs at https://github.com/AdRoll/rebar3_depup/issues. | ||
Report bugs at <https://github.com/AdRoll/rebar3_depup/issues>. | ||
|
||
If you are reporting a bug, please include: | ||
|
||
* Your operating system name and version. | ||
* Any details about your local setup that might be helpful in troubleshooting (OTP version, rebar3 version, sample code, etc). | ||
* Any details about your local setup that might be helpful in troubleshooting | ||
(OTP version, rebar3 version, sample code, etc). | ||
* Detailed steps to reproduce the bug. | ||
|
||
### Fix Bugs | ||
|
@@ -36,17 +36,18 @@ articles, and such. | |
|
||
### Submit Feedback | ||
|
||
The best way to send feedback is to file an issue at https://github.com/AdRoll/rebar3_depup/issues. | ||
The best way to send feedback is to file an issue at <https://github.com/AdRoll/rebar3_depup/issues>. | ||
|
||
If you are proposing a feature: | ||
|
||
* Explain in detail how it would work. | ||
* Keep the scope as narrow as possible, to make it easier to implement. | ||
* Remember that this is a volunteer-driven project, and that contributions are welcome :) | ||
|
||
Get Started! | ||
------------ | ||
* Remember that this is a volunteer-driven project, and that contributions are | ||
welcome :) | ||
|
||
<!-- markdownlint-disable MD026 # Trailing punctuation in heading --> | ||
## Get Started! | ||
<!-- markdownlint-enable MD026 --> | ||
Ready to contribute? Here's how to set up `rebar3_depup` for local development. | ||
|
||
1. Fork the `rebar3_depup` repo on GitHub. | ||
|
@@ -55,7 +56,7 @@ Ready to contribute? Here's how to set up `rebar3_depup` for local development. | |
|
||
`$ git clone [email protected]:your_name_here/rebar3_depup.git` | ||
|
||
3. Compile the project, assuming you rebar3 and OTP 21 installed, you can run: | ||
3. Compile the project, assuming you rebar3 and OTP 24 installed, you can run: | ||
|
||
`$ rebar3 compile` | ||
|
||
|
@@ -65,20 +66,21 @@ Ready to contribute? Here's how to set up `rebar3_depup` for local development. | |
|
||
Now you can make your changes locally. | ||
|
||
5. When you're done making changes, check that your changes pass the tests by running `rebar3 test`. You might have to run it twice, if the `dialyzer` step fails while building the PLT. It's a known annoyance, sorry about that. | ||
5. When you're done making changes, check that your changes pass the tests | ||
by running `rebar3 test`. You might have to run it twice, if the `dialyzer` | ||
step fails while building the PLT. It's a known annoyance, sorry about that. | ||
|
||
6. Commit your changes and push your branch to GitHub: | ||
|
||
```bash | ||
$ git add . | ||
$ git commit -m "Your detailed description of your changes." | ||
$ git push origin name-of-your-bugfix-or-feature | ||
git add . | ||
git commit -m "Your detailed description of your changes." | ||
git push origin name-of-your-bugfix-or-feature | ||
``` | ||
|
||
7. Submit a pull request through the GitHub website. | ||
|
||
Pull Request Guidelines | ||
----------------------- | ||
## Pull Request Guidelines | ||
|
||
Before you submit a pull request, check that it meets these guidelines: | ||
|
||
|
This file contains 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.
Oops, something went wrong.