{"id":26699053,"url":"https://github.com/darmiel/fff-ir-lint","last_synced_at":"2025-04-13T05:50:23.458Z","repository":{"id":113679687,"uuid":"537423196","full_name":"darmiel/fff-ir-lint","owner":"darmiel","description":"FlipperFormat .ir Lint | Detect common mistakes in .ir files","archived":false,"fork":false,"pushed_at":"2023-08-21T20:21:26.000Z","size":469,"stargazers_count":12,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-05-01T14:13:48.485Z","etag":null,"topics":["flipper","flipper-zero","flipperzero","hacktoberfest"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/darmiel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-09-16T11:11:21.000Z","updated_at":"2024-04-20T10:22:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"7a7a2b41-c6be-49b2-9b56-be2da4fe400a","html_url":"https://github.com/darmiel/fff-ir-lint","commit_stats":{"total_commits":19,"total_committers":3,"mean_commits":6.333333333333333,"dds":0.4736842105263158,"last_synced_commit":"71ab6a634912a786133e4c57289b635fccac0854"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darmiel%2Ffff-ir-lint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darmiel%2Ffff-ir-lint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darmiel%2Ffff-ir-lint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darmiel%2Ffff-ir-lint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/darmiel","download_url":"https://codeload.github.com/darmiel/fff-ir-lint/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248670501,"owners_count":21142901,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["flipper","flipper-zero","flipperzero","hacktoberfest"],"created_at":"2025-03-26T22:27:04.094Z","updated_at":"2025-04-13T05:50:23.432Z","avatar_url":"https://github.com/darmiel.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Header-Dark](./assets/bg_dark.png#gh-dark-mode-only)\n![Header-Light](./assets/bg_light.png#gh-light-mode-only)\n\n# fff-ir-lint\n\nFinds common mistakes in `.ir` files ([FlipperFormat](https://github.com/Eng1n33r/flipperzero-firmware/tree/dev/lib/flipper_format)).\n\n**DOES NOT AUTOMATICALLY FIX ANY ERRORS**\n\n## Usage\n\n```shell\n$ python3 main.py \u003cformat\u003e [file 1] [file 2] ... [file n]\n$ python3 main.py \u003cformat\u003e 'glob:**/*.ir'\n```\n\n\u003e **Note**: You can use glob-pattern by prefixing `glob:`\n\n## Formats\n\n### GitHub\n\n\u003e Specify `github` or `github2` *(newer)* for format\n\n![GitHub-Dark](./assets/gh_dark.png#gh-dark-mode-only)\n![GitHub-Light](./assets/gh_light.png#gh-light-mode-only)\n\n### Simple\n\n\u003e Specify `simple` for format\n\n```\n→ python3 main.py simple remote.ir\n*********************************\n[lint] checking 'remote.ir' [1/1]\nError in line 19\n'protocol:NEC'\n         ↑\n         [error]: space missing after ':'\n[suggested] 'protocol: NEC'\n---\nError in line 19\n'protocol:NEC'\n ↑↑↑↑↑↑↑↑\n [error]: key 'type' expected\n[suggested] 'type: ...'\n---\n[lint] found 2 warnings/errors in file.\n*********************************\n```\n\n## CI/CD\n\nAn example GitHub Actions Workflow can be found [here](./examples/gh_actions_pr_lint_review.yaml).\n\nThe linter should work in a CI/CD pipeline.\nJust put the example in your repo under the `.github/workflows` directory and \n[enable](https://docs.github.com/en/actions/managing-workflow-runs/disabling-and-enabling-a-workflow)\nactions in the repo if necessary.\n\nIf a pull request is created in which `.ir` files are modified, the linter checks the modified (or newly created) `.ir` files.\n\nIf errors are found, they are appended as a comment to the PR and the PR is set to **Requested Changes**.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarmiel%2Ffff-ir-lint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdarmiel%2Ffff-ir-lint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarmiel%2Ffff-ir-lint/lists"}