propertieslint

command module
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 22, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

README

GitHub Actions Codecov Renovate Go

propertieslint

Small Go CLI for linting Java-style .properties files.

Download

go install github.com/hanggrian/propertieslint@latest

Usage

The CLI walks directories recursively and lints every .properties file it finds.

go run ./cmd/propertieslint ./path/to/dir

It accepts -c or --config and reads a JSON file with rule toggles. If no config path is supplied, it looks for .propertieslint.json in the current directory.

Example:

{
  "duplicate-key": false
}

Supported keys:

  • duplicate-blank-line: Multiple consecutive blank lines.
  • duplicate-key: Entries with duplicate keys.
  • invalid-escape: Entries with invalid escape sequences.
  • missing-separator: Entries without = or : separators.
  • missing-value: Entries with a key but no value.
  • no-leading-blank-line: No blank line at the beginning of the file.
  • trailing-newline: No newline at the end of the file.
  • unterminated-line-continuation: Entries with unterminated line continuations.
  • untrimmed-entry: Entries with leading or trailing whitespace.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL