-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add lint to project and fix warnings
Signed-off-by: Arthur Diniz <[email protected]>
- Loading branch information
1 parent
78ac479
commit ea192a3
Showing
2 changed files
with
28 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -113,6 +113,21 @@ script: | |
./tests/tests.sh | ||
``` | ||
|
||
# Lint | ||
|
||
To lint the shell scripts, you need to install `shellcheck` and `checkbashisms`. Those tools will check the scripts for issues and ensure they follow best practices. | ||
|
||
- On Debian-like systems: `apt install shellcheck devscripts` | ||
- On Fedora-like systems: `dnf install shellcheck devscripts` | ||
|
||
After installation, you can run `shellcheck` and `checkbashisms` by executing the following commands: | ||
|
||
```sh | ||
shellcheck wcurl ./tests/* | ||
|
||
checkbashisms wcurl ./tests/* | ||
``` | ||
|
||
# Authors | ||
|
||
Samuel Henrique <[[email protected]](mailto:[email protected])> | ||
|
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