# apertium-lint
linter for Apertium source files
This package provides the command-line tool `apertium-lint` which statically analyzes Apertium source files for potential issues.
The linter can be run on a single file, giving output like
```
$ apertium-lint modes.xml
modes.xml
Error (install-deps) on line 8: Debug modes using files in .deps/ should not be installed.
Error (install-deps) on line 25: Debug modes using files in .deps/ should not be installed.
Error (install-deps) on line 91: Debug modes using files in .deps/ should not be installed.
Errors: 3 Warnings: 0 Suggestions: 0 Nitpicks: 0
```
or it can be run without arguments, which will apply it to the entire current directory
```
$ apertium-lint
./modes.xml
Error (install-deps) on line 8: Debug modes using files in .deps/ should not be installed.
Error (install-deps) on line 25: Debug modes using files in .deps/ should not be installed.
Error (install-deps) on line 91: Debug modes using files in .deps/ should not be installed.
./paper/paper.tex
Warning (unnorm) on line 113: Line contains non-normalized characters.
Errors: 3 Warnings: 1 Suggestions: 0 Nitpicks: 0
```
With option `-s`, statistics about the files will also be gathered.
```
$ apertium-lint -s apertium-kir.kir.twol
apertium-kir.kir.twol
Input alphabet symbols: 169
Output alphabet symbols: 139
Rules: 61
Sets: 35
Alphabet symbol pairs: 169
Errors: 0 Warnings: 0 Suggestions: 0 Nitpicks: 0
```
Raw data
{
"_id": null,
"home_page": "http://github.com/apertium/apertium-lint",
"name": "apertium-lint",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "apertium, linter",
"author": "Daniel Swanson",
"author_email": "apertium@dangswan.com",
"download_url": "https://files.pythonhosted.org/packages/96/b8/26ceb535361a8ee86e755070ff18ce243e115d0d0d04b67ca5ba181eee12/apertium_lint-1.0.8.tar.gz",
"platform": null,
"description": "# apertium-lint\nlinter for Apertium source files\n\nThis package provides the command-line tool `apertium-lint` which statically analyzes Apertium source files for potential issues.\n\nThe linter can be run on a single file, giving output like\n\n```\n$ apertium-lint modes.xml\nmodes.xml\nError (install-deps) on line 8: Debug modes using files in .deps/ should not be installed.\nError (install-deps) on line 25: Debug modes using files in .deps/ should not be installed.\nError (install-deps) on line 91: Debug modes using files in .deps/ should not be installed.\nErrors: 3 Warnings: 0 Suggestions: 0 Nitpicks: 0\n```\n\nor it can be run without arguments, which will apply it to the entire current directory\n\n```\n$ apertium-lint\n./modes.xml\nError (install-deps) on line 8: Debug modes using files in .deps/ should not be installed.\nError (install-deps) on line 25: Debug modes using files in .deps/ should not be installed.\nError (install-deps) on line 91: Debug modes using files in .deps/ should not be installed.\n./paper/paper.tex\nWarning (unnorm) on line 113: Line contains non-normalized characters.\nErrors: 3 Warnings: 1 Suggestions: 0 Nitpicks: 0\n```\n\nWith option `-s`, statistics about the files will also be gathered.\n\n```\n$ apertium-lint -s apertium-kir.kir.twol\napertium-kir.kir.twol\nInput alphabet symbols:\t169\nOutput alphabet symbols:\t139\nRules:\t61\nSets:\t35\nAlphabet symbol pairs:\t169\nErrors: 0 Warnings: 0 Suggestions: 0 Nitpicks: 0\n```\n",
"bugtrack_url": null,
"license": "GPLv3+",
"summary": "static analysis of Apertium files",
"version": "1.0.8",
"project_urls": {
"Homepage": "http://github.com/apertium/apertium-lint"
},
"split_keywords": [
"apertium",
" linter"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "7e7077d2b708b387dca236997eb5e14a7b4345a8b166ed3eeaed974477ac635c",
"md5": "72416304f5f7f2fa45f214bd4d47b143",
"sha256": "6c113d477669797edf427688cea236ac96f7a06eadf289a7066e5de0429ab37e"
},
"downloads": -1,
"filename": "apertium_lint-1.0.8-py3-none-any.whl",
"has_sig": false,
"md5_digest": "72416304f5f7f2fa45f214bd4d47b143",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 39974,
"upload_time": "2024-05-20T20:54:08",
"upload_time_iso_8601": "2024-05-20T20:54:08.095596Z",
"url": "https://files.pythonhosted.org/packages/7e/70/77d2b708b387dca236997eb5e14a7b4345a8b166ed3eeaed974477ac635c/apertium_lint-1.0.8-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "96b826ceb535361a8ee86e755070ff18ce243e115d0d0d04b67ca5ba181eee12",
"md5": "edcdacb562ea49def1b433617051645c",
"sha256": "fe2ed8f679f7fc745511b252f6f4179125ef527e38c1d68163c56011e324d608"
},
"downloads": -1,
"filename": "apertium_lint-1.0.8.tar.gz",
"has_sig": false,
"md5_digest": "edcdacb562ea49def1b433617051645c",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 32840,
"upload_time": "2024-05-20T20:54:09",
"upload_time_iso_8601": "2024-05-20T20:54:09.507189Z",
"url": "https://files.pythonhosted.org/packages/96/b8/26ceb535361a8ee86e755070ff18ce243e115d0d0d04b67ca5ba181eee12/apertium_lint-1.0.8.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-05-20 20:54:09",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "apertium",
"github_project": "apertium-lint",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "apertium-lint"
}