Skip to main content

prop-tool: Java *.properties file sync checker and syncing tool.

Project description

prop-tool logo

The *.properties file checker and syncing tool


master branch: Unit tests codecov Code lint MD Lint

development branch: Unit tests codecov Code lint MD Lint


Table of contents


Introduction

prop-tool is a small but powerful utility aimed at your projects' *.properties files. It looks like text based INI file, but it is even simpler and because to its simplicity, this file format is often used to keep the configurations or translations (i.e. in Java world). Example file:

# Example of *.properties file
programTitle = Prop-Tool v1.3
okButton = "OK"

The main role of prop-tool is to help you keep your *.properties files in order, ensuring all files are syntactically correct and all the translation files are in sync with base (main language) file. It also comes with huge set of various linters and checkers to guard quality of the files' contents. It can check for missing or dangling keys, inproper punctuation, open brackets, quotation marks and more. It can also automatically sync translation files quickly providing fresh template for your translators to work on.

$ prop-tool -b mark -l pl -v
Base: mark.properties
  Warnings: 1
    Brackets
      W: Line 3:16: No closing bracket for "<"
  PL: brackets_pl.properties
    Errors: 8, warnings: 3
      Sentence starts with different letter case.
        E: Line 8: "missingClosing" starts with lower-cased character. Expected UPPER-cased.
      Trailing white characters
        W: line 2: In comment: 2
        E: line 4: In "question" entry: 1
      Punctuation mismatch
        E: line 3: "exclamation" ends with " ". Expected "!".
        E: line 4: "newline" ends with "". Expected "\n".
      Bracket mismatch
        E: Line 2:1: "missingClosing": No closing bracket for "(".
        W: Line 3:16: No closing bracket for "<"
        E: Line 4:4: "missingOpening": No opening bracket matching ")".
      Quotation marks
        E: Line 12:5: "missingSingle": Quotation mark mismatch. Expected ", found `.
        E: Line 13:5: "remaining": Quotation mark mismatch. Expected ", found `.
        W: Line 14:11: No closing mark for ".

License

  • Written and copyrighted ©2021 by Marcin Orlowski <mail (#) marcinorlowski (.) com>
  • prop-tool is open-sourced software licensed under the MIT license

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

prop_tool-2.0.0-py3-none-any.whl (120.7 kB view details)

Uploaded Python 3

File details

Details for the file prop_tool-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: prop_tool-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 120.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.1.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.14

File hashes

Hashes for prop_tool-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1bfe195992bb60c963a1339c13997ff47299a78a7efdf4d5f042a8b36627b676
MD5 41a0a870e8679414a5cad88c5c7e4842
BLAKE2b-256 615fd3318d6b605031164a064a6f53431cf7cb372c31d3edb7e29e5c7ccc4837

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