Skip to main content

static analysis of Apertium files

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

apertium_lint-1.0.10.tar.gz (33.9 kB view details)

Uploaded Source

Built Distribution

apertium_lint-1.0.10-py3-none-any.whl (41.4 kB view details)

Uploaded Python 3

File details

Details for the file apertium_lint-1.0.10.tar.gz.

File metadata

  • Download URL: apertium_lint-1.0.10.tar.gz
  • Upload date:
  • Size: 33.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for apertium_lint-1.0.10.tar.gz
Algorithm Hash digest
SHA256 144fccbd6781af8dfa6929af70356d6b7bae1c677608b4dffc11b00bc14dd5ab
MD5 e5c1a1b3cbabc1387e44bb1e12def9ba
BLAKE2b-256 55b3fce84e31193b77f7c83d1f3928706a1f8077d2c8da9461bd206943bc9943

See more details on using hashes here.

File details

Details for the file apertium_lint-1.0.10-py3-none-any.whl.

File metadata

  • Download URL: apertium_lint-1.0.10-py3-none-any.whl
  • Upload date:
  • Size: 41.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for apertium_lint-1.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 ff207e9cedf8815de57bdb6e4ca57f3c6fbdd6261171252b7cbee4064338efbf
MD5 0676e500e73f203887928d31460495b1
BLAKE2b-256 ff4a8ead2f562dad8d584d5ce075fafb30777962b5190477df09b59bdec14f5b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page