2016-04-28 23:36:20 +02:00
|
|
|
# YunoHost apps package linter
|
2016-01-25 12:52:18 +01:00
|
|
|
|
2016-04-28 23:36:20 +02:00
|
|
|
Linter for YunoHost applications packages
|
2016-01-25 12:52:18 +01:00
|
|
|
|
2017-01-27 22:04:34 +01:00
|
|
|
## Usage
|
2016-01-25 12:52:18 +01:00
|
|
|
|
2016-11-25 16:24:03 +01:00
|
|
|
```bash
|
2016-04-28 19:15:41 +02:00
|
|
|
git clone https://github.com/YunoHost/package_linter
|
|
|
|
cd package_linter
|
2016-01-25 12:52:18 +01:00
|
|
|
git clone https://github.com/<account>/<app>_ynh
|
2016-04-28 23:36:54 +02:00
|
|
|
./package_linter.py <app>_ynh
|
2016-01-25 12:52:18 +01:00
|
|
|
```
|
|
|
|
|
|
|
|
## Checks
|
|
|
|
|
|
|
|
* Check missing files
|
2017-02-04 08:50:11 +01:00
|
|
|
- Check sources mangement
|
2016-01-25 12:52:18 +01:00
|
|
|
* Check manifest
|
|
|
|
* syntax
|
|
|
|
* missing fields
|
2016-02-17 18:51:42 +01:00
|
|
|
* missing type
|
2016-01-25 12:52:18 +01:00
|
|
|
* (field value)
|
|
|
|
* Check scripts
|
|
|
|
* warn missing sudo before commands
|
|
|
|
* make sure verifications are done before modifications on the system
|
2016-11-25 16:24:03 +01:00
|
|
|
* check non usage of helpers and propose them
|
2017-01-28 11:52:22 +01:00
|
|
|
- check 'set -eu' usage
|
2016-01-25 17:04:46 +01:00
|
|
|
|
|
|
|
## License
|
|
|
|
|
2017-01-27 22:04:34 +01:00
|
|
|
* GNU AGPLv3
|