fff-ir-lint-0.0.1
توضیحات
.ir Linter for FFF
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | fff-ir-lint-0.0.1 |
| نام | fff-ir-lint |
| نسخه کتابخانه | 0.0.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | - |
| ایمیل نویسنده | darmiel <asdf@qwer.tz> |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/fff-ir-lint/ |
| مجوز | - |


# fff-ir-lint
Finds common mistakes in `.ir` files ([FlipperFormat](https://github.com/Eng1n33r/flipperzero-firmware/tree/dev/lib/flipper_format)).
**DOES NOT AUTOMATICALLY FIX ANY ERRORS**
## Usage
```shell
$ python3 main.py <format> [file 1] [file 2] ... [file n]
$ python3 main.py <format> 'glob:**/*.ir'
```
> **Note**: You can use glob-pattern by prefixing `glob:`
## Formats
### GitHub
> Specify `github` or `github2` *(newer)* for format


### Simple
> Specify `simple` for format
```
→ python3 main.py simple remote.ir
*********************************
[lint] checking 'remote.ir' [1/1]
Error in line 19
'protocol:NEC'
↑
[error]: space missing after ':'
[suggested] 'protocol: NEC'
---
Error in line 19
'protocol:NEC'
↑↑↑↑↑↑↑↑
[error]: key 'type' expected
[suggested] 'type: ...'
---
[lint] found 2 warnings/errors in file.
*********************************
```
## CI/CD
An example GitHub Actions Workflow can be found [here](./examples/gh_actions_pr_lint_review.yaml).
The linter should work in a CI/CD pipeline.
Just put the example in your repo under the `.github/workflows` directory and
[enable](https://docs.github.com/en/actions/managing-workflow-runs/disabling-and-enabling-a-workflow)
actions in the repo if necessary.
If a pull request is created in which `.ir` files are modified, the linter checks the modified (or newly created) `.ir` files.
If errors are found, they are appended as a comment to the PR and the PR is set to **Requested Changes**.
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7 | Python |
نحوه نصب
نصب پکیج whl fff-ir-lint-0.0.1:
pip install fff-ir-lint-0.0.1.whl
نصب پکیج tar.gz fff-ir-lint-0.0.1:
pip install fff-ir-lint-0.0.1.tar.gz