bwq-lint

Crates.iobwq-lint
lib.rsbwq-lint
version0.2.0
created_at2025-06-25 02:50:39.887582+00
updated_at2025-06-25 07:27:22.189626+00
descriptionA linter and parser for Brandwatch query files (.bwq)
homepage
repositoryhttps://github.com/mmstroik/bwq-lint
max_upload_size
id1725258
size228,394
Milo Stroik (mmstroik)

documentation

README

bwq-lint

brandwatch boolean search query linter written in rust.

install

cargo install bwq-lint

usage

# lints current directory (recursively) by default
bwq-lint

# auto-detects input type (string, file, dir, glob)
bwq-lint "apple AND juice"     # query string
bwq-lint query.bwq             # file
bwq-lint tests/fixtures        # directory (recursive)
bwq-lint "*.bwq"               # glob pattern

# warnings shown by default, use --no-warnings to suppress
bwq-lint --no-warnings

operators

boolean: AND, OR, NOT proximity: ~, NEAR/x, NEAR/xf wildcards: *, ? fields: title:, site:, rating:[1 TO 5] special: {case}, #hashtag, @mention, <<<comments>>>

run bwq-lint examples for more

Commit count: 0

cargo fmt