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.8.tar.gz (32.8 kB view details)

Uploaded Source

Built Distribution

apertium_lint-1.0.8-py3-none-any.whl (40.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: apertium_lint-1.0.8.tar.gz
  • Upload date:
  • Size: 32.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for apertium_lint-1.0.8.tar.gz
Algorithm Hash digest
SHA256 fe2ed8f679f7fc745511b252f6f4179125ef527e38c1d68163c56011e324d608
MD5 edcdacb562ea49def1b433617051645c
BLAKE2b-256 96b826ceb535361a8ee86e755070ff18ce243e115d0d0d04b67ca5ba181eee12

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for apertium_lint-1.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 6c113d477669797edf427688cea236ac96f7a06eadf289a7066e5de0429ab37e
MD5 72416304f5f7f2fa45f214bd4d47b143
BLAKE2b-256 7e7077d2b708b387dca236997eb5e14a7b4345a8b166ed3eeaed974477ac635c

See more details on using hashes here.

Supported by

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