apertium-lint


Nameapertium-lint JSON
Version 1.0.7 PyPI version JSON
download
home_pagehttp://github.com/apertium/apertium-lint
Summarystatic analysis of Apertium files
upload_time2024-01-06 19:23:05
maintainer
docs_urlNone
authorDaniel Swanson
requires_python
licenseGPLv3+
keywords apertium linter
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "apertium,linter",
    "author": "Daniel Swanson",
    "author_email": "apertium@dangswan.com",
    "download_url": "https://files.pythonhosted.org/packages/8a/ca/6a70a6dde182b42fc973a428a89161f88c92df1e70f1c4a5fa107c0a23cd/apertium_lint-1.0.7.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.7",
    "project_urls": {
        "Homepage": "http://github.com/apertium/apertium-lint"
    },
    "split_keywords": [
        "apertium",
        "linter"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e078dbae48c5f628dee378fae72e6a04e18559906a7332f085dc3f117bef71e1",
                "md5": "061a8c2e4fc4c7cf25081ddc926a7c86",
                "sha256": "040d85c05db036682083eb4841bdac5fc653d4408c22cd9dab57f17fbdabdfc3"
            },
            "downloads": -1,
            "filename": "apertium_lint-1.0.7-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "061a8c2e4fc4c7cf25081ddc926a7c86",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 39448,
            "upload_time": "2024-01-06T19:23:04",
            "upload_time_iso_8601": "2024-01-06T19:23:04.291483Z",
            "url": "https://files.pythonhosted.org/packages/e0/78/dbae48c5f628dee378fae72e6a04e18559906a7332f085dc3f117bef71e1/apertium_lint-1.0.7-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8aca6a70a6dde182b42fc973a428a89161f88c92df1e70f1c4a5fa107c0a23cd",
                "md5": "55347f30b035f90faae37a1aed6c30fc",
                "sha256": "b0383d12e7826ba4354d9f87b397fbcaf6b97325e6aacdfdbc6c62d741e3f170"
            },
            "downloads": -1,
            "filename": "apertium_lint-1.0.7.tar.gz",
            "has_sig": false,
            "md5_digest": "55347f30b035f90faae37a1aed6c30fc",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 32365,
            "upload_time": "2024-01-06T19:23:05",
            "upload_time_iso_8601": "2024-01-06T19:23:05.974876Z",
            "url": "https://files.pythonhosted.org/packages/8a/ca/6a70a6dde182b42fc973a428a89161f88c92df1e70f1c4a5fa107c0a23cd/apertium_lint-1.0.7.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-01-06 19:23:05",
    "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"
}
        
Elapsed time: 0.17075s