curly-message-lint 1.0.0rc0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- curly_message_lint-1.0.0rc0/LICENSE +21 -0
- curly_message_lint-1.0.0rc0/PKG-INFO +109 -0
- curly_message_lint-1.0.0rc0/README.md +87 -0
- curly_message_lint-1.0.0rc0/THIRD-PARTY-NOTICES.md +113 -0
- curly_message_lint-1.0.0rc0/pyproject.toml +37 -0
- curly_message_lint-1.0.0rc0/rust/CHANGELOG.md +32 -0
- curly_message_lint-1.0.0rc0/rust/Cargo.lock +377 -0
- curly_message_lint-1.0.0rc0/rust/Cargo.toml +64 -0
- curly_message_lint-1.0.0rc0/rust/LICENSE +21 -0
- curly_message_lint-1.0.0rc0/rust/README.md +191 -0
- curly_message_lint-1.0.0rc0/rust/cldr/LICENSE +41 -0
- curly_message_lint-1.0.0rc0/rust/cldr/aliases.json +5366 -0
- curly_message_lint-1.0.0rc0/rust/cldr/ordinals.json +416 -0
- curly_message_lint-1.0.0rc0/rust/cldr/plurals.json +957 -0
- curly_message_lint-1.0.0rc0/rust/src/bin/curly-lint/host.rs +236 -0
- curly_message_lint-1.0.0rc0/rust/src/bin/curly-lint/main.rs +35 -0
- curly_message_lint-1.0.0rc0/rust/src/catalogue.rs +840 -0
- curly_message_lint-1.0.0rc0/rust/src/cldr.rs +498 -0
- curly_message_lint-1.0.0rc0/rust/src/command.rs +1244 -0
- curly_message_lint-1.0.0rc0/rust/src/finding.rs +67 -0
- curly_message_lint-1.0.0rc0/rust/src/lib.rs +35 -0
- curly_message_lint-1.0.0rc0/rust/src/locale.rs +358 -0
- curly_message_lint-1.0.0rc0/rust/src/message.rs +580 -0
- curly_message_lint-1.0.0rc0/rust/src/plural.rs +329 -0
- curly_message_lint-1.0.0rc0/rust/src/read.rs +683 -0
- curly_message_lint-1.0.0rc0/rust/src/rules.rs +144 -0
- curly_message_lint-1.0.0rc0/rust/src/tag.rs +179 -0
- curly_message_lint-1.0.0rc0/rust/src/tree.rs +164 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 G.A.W.Group, s.r.o.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: curly-message-lint
|
|
3
|
+
Version: 1.0.0rc0
|
|
4
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
5
|
+
Classifier: Environment :: Console
|
|
6
|
+
Classifier: Intended Audience :: Developers
|
|
7
|
+
Classifier: Topic :: Software Development :: Internationalization
|
|
8
|
+
Classifier: Topic :: Software Development :: Localization
|
|
9
|
+
Classifier: Topic :: Software Development :: Quality Assurance
|
|
10
|
+
License-File: LICENSE
|
|
11
|
+
License-File: THIRD-PARTY-NOTICES.md
|
|
12
|
+
Summary: The curly-lint command, a linter for the Curly Message Format, as a native program.
|
|
13
|
+
Keywords: curly-message,i18n,lint,translation,catalogue
|
|
14
|
+
Home-Page: https://curlymessage.dev/
|
|
15
|
+
License-Expression: MIT AND Unicode-3.0 AND Apache-2.0 WITH LLVM-exception
|
|
16
|
+
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
|
|
17
|
+
Project-URL: Changelog, https://github.com/curly-message/lint/blob/main/python/CHANGELOG.md
|
|
18
|
+
Project-URL: Homepage, https://curlymessage.dev/
|
|
19
|
+
Project-URL: Issues, https://github.com/curly-message/spec/issues
|
|
20
|
+
Project-URL: Repository, https://github.com/curly-message/lint
|
|
21
|
+
|
|
22
|
+
# curly-message-lint
|
|
23
|
+
|
|
24
|
+
[](https://pypi.org/project/curly-message-lint/)
|
|
25
|
+
[](https://github.com/curly-message/lint/actions/workflows/tests-python.yml)
|
|
26
|
+
|
|
27
|
+
The `curly-lint` command, the linter for the
|
|
28
|
+
[Curly Message Format](https://github.com/curly-message/spec), for projects
|
|
29
|
+
that install their tools from PyPI. It finds what renders other than its
|
|
30
|
+
author meant in the messages of JSON catalogue files, before anyone renders
|
|
31
|
+
them.
|
|
32
|
+
|
|
33
|
+
```text
|
|
34
|
+
$ curly-lint "locales/{locale}/{namespace}.json"
|
|
35
|
+
locales/cs/common.json:3:17 error `cs` puts 0.5, 1.5 and 2.5 in `many`, and this selection has no `many` option, so those take the fallback chain. missing-category
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
The package holds the command alone, as a native program: the binary of the
|
|
39
|
+
Rust crate
|
|
40
|
+
[`curly-message-lint`](https://github.com/curly-message/lint/tree/main/rust),
|
|
41
|
+
built for each platform below. It runs no Python and has no Python API, so it
|
|
42
|
+
installs into any environment, whatever its Python. This version carries
|
|
43
|
+
the command of `curly-message-lint` 1.0.0, and the
|
|
44
|
+
[changelog](https://github.com/curly-message/lint/blob/main/python/CHANGELOG.md)
|
|
45
|
+
names the crate's version each release carries.
|
|
46
|
+
|
|
47
|
+
## Install
|
|
48
|
+
|
|
49
|
+
```sh
|
|
50
|
+
pipx install curly-message-lint
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
or `uv tool install curly-message-lint`, or `pip install curly-message-lint`
|
|
54
|
+
into a project's environment; `uvx --from curly-message-lint curly-lint`
|
|
55
|
+
runs it without installing it.
|
|
56
|
+
|
|
57
|
+
A wheel is published for each of:
|
|
58
|
+
|
|
59
|
+
| Platform | Wheel |
|
|
60
|
+
|----------|-------|
|
|
61
|
+
| Linux on x86-64 and on ARM64, with glibc 2.17 or newer | `manylinux_2_17_x86_64`, `manylinux_2_17_aarch64` |
|
|
62
|
+
| Linux on x86-64 and on ARM64, with musl 1.2 or newer, as Alpine has it | `musllinux_1_2_x86_64`, `musllinux_1_2_aarch64` |
|
|
63
|
+
| macOS 10.12 or newer on Intel, macOS 11 or newer on Apple silicon | `macosx_10_12_x86_64`, `macosx_11_0_arm64` |
|
|
64
|
+
| Windows on x86-64 and on ARM64 | `win_amd64`, `win_arm64` |
|
|
65
|
+
|
|
66
|
+
Each is tested on its platform before it is published. Elsewhere, the
|
|
67
|
+
installer builds the command from the sdist, with the Rust it finds on the
|
|
68
|
+
`PATH`, which is to be 1.88 or newer, or, where it finds none, with the
|
|
69
|
+
latest stable Rust that the build backend first installs into the user's
|
|
70
|
+
cache. That build is tested on Linux with Rust 1.88. On Windows it links the
|
|
71
|
+
C runtime into the command, as the wheels do, unless `RUSTFLAGS` or
|
|
72
|
+
`CARGO_ENCODED_RUSTFLAGS` is set, which takes the place of the flag that
|
|
73
|
+
does it.
|
|
74
|
+
|
|
75
|
+
## The command line
|
|
76
|
+
|
|
77
|
+
```sh
|
|
78
|
+
curly-lint "locales/{locale}/{namespace}.json"
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
The command is the crate's, with the same arguments, report and exit codes.
|
|
82
|
+
`curly-lint --help` prints the arguments, the
|
|
83
|
+
[npm package's README](https://github.com/curly-message/lint/tree/main/lint#the-command-line)
|
|
84
|
+
says how a pattern reads a file's locale and namespace off its path, what the
|
|
85
|
+
report holds and what each exit code means, and the
|
|
86
|
+
[crate's README](https://github.com/curly-message/lint/tree/main/rust#the-command-line)
|
|
87
|
+
says how the native command differs from the npm package's: plural rules are
|
|
88
|
+
those of the Unicode CLDR 48 the crate carries, not those of a runtime's
|
|
89
|
+
`Intl`. The
|
|
90
|
+
[rules](https://github.com/curly-message/lint/tree/main/lint#rules) are
|
|
91
|
+
described in the npm package's README.
|
|
92
|
+
|
|
93
|
+
## Benchmark
|
|
94
|
+
|
|
95
|
+
`sh bench/prepare.sh && node bench/harness.mjs`, run from this directory
|
|
96
|
+
on Linux or macOS with [uv](https://docs.astral.sh/uv/), Rust and Node,
|
|
97
|
+
builds the wheel and the sdist for that machine, installs the wheel, and measures the size of
|
|
98
|
+
each, the files the wheel holds, and two times of the installed command.
|
|
99
|
+
`node bench/harness.mjs --compare <dir>` sets it beside the package prepared
|
|
100
|
+
the same way at `<dir>`.
|
|
101
|
+
|
|
102
|
+
## License
|
|
103
|
+
|
|
104
|
+
[MIT](https://github.com/curly-message/lint/blob/main/python/LICENSE). The
|
|
105
|
+
command holds the Unicode CLDR's plural rules and language aliases, under the
|
|
106
|
+
Unicode License v3, and the code it is built with under the terms
|
|
107
|
+
[THIRD-PARTY-NOTICES.md](https://github.com/curly-message/lint/blob/main/python/THIRD-PARTY-NOTICES.md)
|
|
108
|
+
lists; each wheel holds both files.
|
|
109
|
+
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
# curly-message-lint
|
|
2
|
+
|
|
3
|
+
[](https://pypi.org/project/curly-message-lint/)
|
|
4
|
+
[](https://github.com/curly-message/lint/actions/workflows/tests-python.yml)
|
|
5
|
+
|
|
6
|
+
The `curly-lint` command, the linter for the
|
|
7
|
+
[Curly Message Format](https://github.com/curly-message/spec), for projects
|
|
8
|
+
that install their tools from PyPI. It finds what renders other than its
|
|
9
|
+
author meant in the messages of JSON catalogue files, before anyone renders
|
|
10
|
+
them.
|
|
11
|
+
|
|
12
|
+
```text
|
|
13
|
+
$ curly-lint "locales/{locale}/{namespace}.json"
|
|
14
|
+
locales/cs/common.json:3:17 error `cs` puts 0.5, 1.5 and 2.5 in `many`, and this selection has no `many` option, so those take the fallback chain. missing-category
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
The package holds the command alone, as a native program: the binary of the
|
|
18
|
+
Rust crate
|
|
19
|
+
[`curly-message-lint`](https://github.com/curly-message/lint/tree/main/rust),
|
|
20
|
+
built for each platform below. It runs no Python and has no Python API, so it
|
|
21
|
+
installs into any environment, whatever its Python. This version carries
|
|
22
|
+
the command of `curly-message-lint` 1.0.0, and the
|
|
23
|
+
[changelog](https://github.com/curly-message/lint/blob/main/python/CHANGELOG.md)
|
|
24
|
+
names the crate's version each release carries.
|
|
25
|
+
|
|
26
|
+
## Install
|
|
27
|
+
|
|
28
|
+
```sh
|
|
29
|
+
pipx install curly-message-lint
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
or `uv tool install curly-message-lint`, or `pip install curly-message-lint`
|
|
33
|
+
into a project's environment; `uvx --from curly-message-lint curly-lint`
|
|
34
|
+
runs it without installing it.
|
|
35
|
+
|
|
36
|
+
A wheel is published for each of:
|
|
37
|
+
|
|
38
|
+
| Platform | Wheel |
|
|
39
|
+
|----------|-------|
|
|
40
|
+
| Linux on x86-64 and on ARM64, with glibc 2.17 or newer | `manylinux_2_17_x86_64`, `manylinux_2_17_aarch64` |
|
|
41
|
+
| Linux on x86-64 and on ARM64, with musl 1.2 or newer, as Alpine has it | `musllinux_1_2_x86_64`, `musllinux_1_2_aarch64` |
|
|
42
|
+
| macOS 10.12 or newer on Intel, macOS 11 or newer on Apple silicon | `macosx_10_12_x86_64`, `macosx_11_0_arm64` |
|
|
43
|
+
| Windows on x86-64 and on ARM64 | `win_amd64`, `win_arm64` |
|
|
44
|
+
|
|
45
|
+
Each is tested on its platform before it is published. Elsewhere, the
|
|
46
|
+
installer builds the command from the sdist, with the Rust it finds on the
|
|
47
|
+
`PATH`, which is to be 1.88 or newer, or, where it finds none, with the
|
|
48
|
+
latest stable Rust that the build backend first installs into the user's
|
|
49
|
+
cache. That build is tested on Linux with Rust 1.88. On Windows it links the
|
|
50
|
+
C runtime into the command, as the wheels do, unless `RUSTFLAGS` or
|
|
51
|
+
`CARGO_ENCODED_RUSTFLAGS` is set, which takes the place of the flag that
|
|
52
|
+
does it.
|
|
53
|
+
|
|
54
|
+
## The command line
|
|
55
|
+
|
|
56
|
+
```sh
|
|
57
|
+
curly-lint "locales/{locale}/{namespace}.json"
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
The command is the crate's, with the same arguments, report and exit codes.
|
|
61
|
+
`curly-lint --help` prints the arguments, the
|
|
62
|
+
[npm package's README](https://github.com/curly-message/lint/tree/main/lint#the-command-line)
|
|
63
|
+
says how a pattern reads a file's locale and namespace off its path, what the
|
|
64
|
+
report holds and what each exit code means, and the
|
|
65
|
+
[crate's README](https://github.com/curly-message/lint/tree/main/rust#the-command-line)
|
|
66
|
+
says how the native command differs from the npm package's: plural rules are
|
|
67
|
+
those of the Unicode CLDR 48 the crate carries, not those of a runtime's
|
|
68
|
+
`Intl`. The
|
|
69
|
+
[rules](https://github.com/curly-message/lint/tree/main/lint#rules) are
|
|
70
|
+
described in the npm package's README.
|
|
71
|
+
|
|
72
|
+
## Benchmark
|
|
73
|
+
|
|
74
|
+
`sh bench/prepare.sh && node bench/harness.mjs`, run from this directory
|
|
75
|
+
on Linux or macOS with [uv](https://docs.astral.sh/uv/), Rust and Node,
|
|
76
|
+
builds the wheel and the sdist for that machine, installs the wheel, and measures the size of
|
|
77
|
+
each, the files the wheel holds, and two times of the installed command.
|
|
78
|
+
`node bench/harness.mjs --compare <dir>` sets it beside the package prepared
|
|
79
|
+
the same way at `<dir>`.
|
|
80
|
+
|
|
81
|
+
## License
|
|
82
|
+
|
|
83
|
+
[MIT](https://github.com/curly-message/lint/blob/main/python/LICENSE). The
|
|
84
|
+
command holds the Unicode CLDR's plural rules and language aliases, under the
|
|
85
|
+
Unicode License v3, and the code it is built with under the terms
|
|
86
|
+
[THIRD-PARTY-NOTICES.md](https://github.com/curly-message/lint/blob/main/python/THIRD-PARTY-NOTICES.md)
|
|
87
|
+
lists; each wheel holds both files.
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
# Third-party notices
|
|
2
|
+
|
|
3
|
+
The `curly-lint` command each wheel of `curly-message-lint` holds is the
|
|
4
|
+
binary of the Rust crate
|
|
5
|
+
[`curly-message-lint`](https://github.com/curly-message/lint/tree/main/rust),
|
|
6
|
+
which is this package's own, built with what is listed here, each with the
|
|
7
|
+
terms it is taken under. The sdist holds the crate's source, its own data
|
|
8
|
+
included, and builds the same binary.
|
|
9
|
+
|
|
10
|
+
| Component | In | Terms | Copyright |
|
|
11
|
+
|-----------|----|-------|-----------|
|
|
12
|
+
| The plural rules and language aliases of the [Unicode CLDR](https://cldr.unicode.org/), the crate's `cldr/` | every wheel and the sdist | Unicode License v3 | Copyright © 2004-2025 Unicode, Inc. |
|
|
13
|
+
| [`curly-message-parser`](https://crates.io/crates/curly-message-parser) | every wheel | MIT | Copyright (c) 2026 G.A.W.Group, s.r.o. |
|
|
14
|
+
| [`unicode-properties`](https://crates.io/crates/unicode-properties) | every wheel | MIT, of MIT or Apache-2.0; its tables of character properties, generated from the Unicode Character Database, under the Unicode License v3 | Copyright (c) 2015 The Rust Project Developers; Copyright © 1991-2026 Unicode, Inc. |
|
|
15
|
+
| The Rust standard library (`core`, `alloc` and `std`), as the compiler that built the release carries it, with the crates it is built from but `compiler_builtins`, among them `hashbrown`, `gimli`, `addr2line`, `miniz_oxide` and `rustc-demangle` | every wheel | MIT, of the terms each offers beside it (Apache-2.0, and for `miniz_oxide` Zlib) | Copyrights in the Rust Standard Library are retained by their contributors; Copyright (c) 2016 Amanieu d'Antras; Copyright (c) 2015 The Rust Project Developers; Copyright (c) 2016-2018 The gimli Developers; Copyright (c) 2017 Frommi, Copyright 2013-2014 RAD Game Tools and Valve Software, Copyright 2010-2014 Rich Geldreich and Tenacious Software LLC; Copyright (c) 2014 Alex Crichton |
|
|
16
|
+
| [`compiler_builtins`](https://github.com/rust-lang/compiler-builtins), the crate of the standard library that ports LLVM's `compiler-rt` | every wheel | MIT AND Apache-2.0 WITH LLVM-exception | Copyright (c) The Rust Project Developers; Copyright (c) LLVM Project contributors |
|
|
17
|
+
| [LLVM's `libunwind`](https://github.com/llvm/llvm-project/tree/main/libunwind), the unwinder the binary is linked with | the `manylinux` and `musllinux` wheels | Apache-2.0 WITH LLVM-exception | Copyright (c) LLVM Project contributors |
|
|
18
|
+
| [musl](https://musl.libc.org/), the C library the binary is linked with statically | the `musllinux` wheels | MIT | Copyright © 2005-2020 Rich Felker, et al.; in the `musllinux_1_2_aarch64` wheel, its AArch64 `memcpy` and `memset` (`src/string/aarch64/*`), Copyright © 1999-2019, Arm Limited |
|
|
19
|
+
|
|
20
|
+
The `manylinux` wheels call the glibc of the system they run on, linked
|
|
21
|
+
dynamically, and hold of it only its start files and, from its
|
|
22
|
+
`libc_nonshared.a`, `__libc_csu_init`, `__libc_csu_fini` and the wrappers
|
|
23
|
+
`stat64`, `fstat64`, `lstat64` and `fstatat64`, which glibc's license lets
|
|
24
|
+
a program that links them carry without condition; the `macosx` wheels call
|
|
25
|
+
the system's `libSystem`, linked dynamically, and hold none of it. The
|
|
26
|
+
`win` wheels hold Microsoft's C runtime, linked statically so that a
|
|
27
|
+
Windows without the Visual C++ redistributable runs the command: its
|
|
28
|
+
`libcmt` and `libvcruntime`, under the terms of the Visual C++ build tools,
|
|
29
|
+
and the Universal C Runtime's `libucrt`, under the terms of the Windows
|
|
30
|
+
SDK.
|
|
31
|
+
|
|
32
|
+
## MIT License
|
|
33
|
+
|
|
34
|
+
For each component above taken under MIT, with its copyright notice:
|
|
35
|
+
|
|
36
|
+
```
|
|
37
|
+
Permission is hereby granted, free of charge, to any
|
|
38
|
+
person obtaining a copy of this software and associated
|
|
39
|
+
documentation files (the "Software"), to deal in the
|
|
40
|
+
Software without restriction, including without
|
|
41
|
+
limitation the rights to use, copy, modify, merge,
|
|
42
|
+
publish, distribute, sublicense, and/or sell copies of
|
|
43
|
+
the Software, and to permit persons to whom the Software
|
|
44
|
+
is furnished to do so, subject to the following
|
|
45
|
+
conditions:
|
|
46
|
+
|
|
47
|
+
The above copyright notice and this permission notice
|
|
48
|
+
shall be included in all copies or substantial portions
|
|
49
|
+
of the Software.
|
|
50
|
+
|
|
51
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
|
|
52
|
+
ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
|
|
53
|
+
TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
|
|
54
|
+
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
|
|
55
|
+
SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
56
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
57
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
|
|
58
|
+
IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
59
|
+
DEALINGS IN THE SOFTWARE.
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
## Apache License 2.0 with the LLVM exception
|
|
63
|
+
|
|
64
|
+
`compiler_builtins` and `libunwind` are compiled into the binary, and the
|
|
65
|
+
exception the LLVM Project adds to the Apache License 2.0 lets their
|
|
66
|
+
compiled form be redistributed embedded so without the notices of its
|
|
67
|
+
sections 4(a), 4(b) and 4(d). The license and the exception are at
|
|
68
|
+
<https://llvm.org/LICENSE.txt>.
|
|
69
|
+
|
|
70
|
+
## Unicode License v3
|
|
71
|
+
|
|
72
|
+
```
|
|
73
|
+
UNICODE LICENSE V3
|
|
74
|
+
|
|
75
|
+
COPYRIGHT AND PERMISSION NOTICE
|
|
76
|
+
|
|
77
|
+
Copyright © 1991-2026 Unicode, Inc.
|
|
78
|
+
Copyright © 2004-2025 Unicode, Inc.
|
|
79
|
+
|
|
80
|
+
NOTICE TO USER: Carefully read the following legal agreement. BY
|
|
81
|
+
DOWNLOADING, INSTALLING, COPYING OR OTHERWISE USING DATA FILES, AND/OR
|
|
82
|
+
SOFTWARE, YOU UNEQUIVOCALLY ACCEPT, AND AGREE TO BE BOUND BY, ALL OF THE
|
|
83
|
+
TERMS AND CONDITIONS OF THIS AGREEMENT. IF YOU DO NOT AGREE, DO NOT
|
|
84
|
+
DOWNLOAD, INSTALL, COPY, DISTRIBUTE OR USE THE DATA FILES OR SOFTWARE.
|
|
85
|
+
|
|
86
|
+
Permission is hereby granted, free of charge, to any person obtaining a
|
|
87
|
+
copy of data files and any associated documentation (the "Data Files") or
|
|
88
|
+
software and any associated documentation (the "Software") to deal in the
|
|
89
|
+
Data Files or Software without restriction, including without limitation
|
|
90
|
+
the rights to use, copy, modify, merge, publish, distribute, and/or sell
|
|
91
|
+
copies of the Data Files or Software, and to permit persons to whom the
|
|
92
|
+
Data Files or Software are furnished to do so, provided that either (a)
|
|
93
|
+
this copyright and permission notice appear with all copies of the Data
|
|
94
|
+
Files or Software, or (b) this copyright and permission notice appear in
|
|
95
|
+
associated Documentation.
|
|
96
|
+
|
|
97
|
+
THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
|
|
98
|
+
KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
99
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF
|
|
100
|
+
THIRD PARTY RIGHTS.
|
|
101
|
+
|
|
102
|
+
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS NOTICE
|
|
103
|
+
BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES,
|
|
104
|
+
OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
|
105
|
+
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
|
|
106
|
+
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THE DATA
|
|
107
|
+
FILES OR SOFTWARE.
|
|
108
|
+
|
|
109
|
+
Except as contained in this notice, the name of a copyright holder shall
|
|
110
|
+
not be used in advertising or otherwise to promote the sale, use or other
|
|
111
|
+
dealings in these Data Files or Software without prior written
|
|
112
|
+
authorization of the copyright holder.
|
|
113
|
+
```
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["maturin>=1.16,<2"]
|
|
3
|
+
build-backend = "maturin"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "curly-message-lint"
|
|
7
|
+
version = "1.0.0rc0"
|
|
8
|
+
description = "The curly-lint command, a linter for the Curly Message Format, as a native program."
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
license = "MIT AND Unicode-3.0 AND Apache-2.0 WITH LLVM-exception"
|
|
11
|
+
license-files = ["LICENSE", "THIRD-PARTY-NOTICES.md"]
|
|
12
|
+
keywords = ["curly-message", "i18n", "lint", "translation", "catalogue"]
|
|
13
|
+
classifiers = [
|
|
14
|
+
"Development Status :: 5 - Production/Stable",
|
|
15
|
+
"Environment :: Console",
|
|
16
|
+
"Intended Audience :: Developers",
|
|
17
|
+
"Topic :: Software Development :: Internationalization",
|
|
18
|
+
"Topic :: Software Development :: Localization",
|
|
19
|
+
"Topic :: Software Development :: Quality Assurance",
|
|
20
|
+
]
|
|
21
|
+
|
|
22
|
+
[project.urls]
|
|
23
|
+
Homepage = "https://curlymessage.dev/"
|
|
24
|
+
Repository = "https://github.com/curly-message/lint"
|
|
25
|
+
Changelog = "https://github.com/curly-message/lint/blob/main/python/CHANGELOG.md"
|
|
26
|
+
Issues = "https://github.com/curly-message/spec/issues"
|
|
27
|
+
|
|
28
|
+
# The crate's `curly-lint` binary, as a script of the wheel: the wheel runs no
|
|
29
|
+
# Python, so it is tagged `py3-none` and states no Python it requires.
|
|
30
|
+
[tool.maturin]
|
|
31
|
+
bindings = "bin"
|
|
32
|
+
locked = true
|
|
33
|
+
strip = true
|
|
34
|
+
# The C runtime linked into the command on Windows, which a clean Windows
|
|
35
|
+
# does not carry as a DLL; read by a build from the sdist too.
|
|
36
|
+
config = ["target.'cfg(all(windows, target_env = \"msvc\"))'.rustflags = ['-Ctarget-feature=+crt-static']"]
|
|
37
|
+
manifest-path = "rust/Cargo.toml"
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 1.0.0
|
|
4
|
+
|
|
5
|
+
The first version: the linter for messages and catalogues of the Curly
|
|
6
|
+
Message Format in Rust, as a library and as the `curly-lint` command.
|
|
7
|
+
|
|
8
|
+
* **Every rule of `@curly-message/lint`**, answering each case of the fixture
|
|
9
|
+
set as it does: the rules a message decides on its own, those a locale
|
|
10
|
+
decides, and those a catalogue decides.
|
|
11
|
+
* **`lint_entries_uncompared`** lints a list of entries as `lint_entries`
|
|
12
|
+
does, but compares no locale with the source one, for a catalogue known
|
|
13
|
+
only in part.
|
|
14
|
+
* **`read_catalogue`** reads a JSON catalogue and says where each string
|
|
15
|
+
stands, past its escape sequences, up to 512 levels deep and up to
|
|
16
|
+
the first string that is not well-formed Unicode text.
|
|
17
|
+
Each string lists its escape sequences, `Located::escapes`, by which a
|
|
18
|
+
host that counts other units than bytes locates it.
|
|
19
|
+
* **`curly-lint`** is the command of `@curly-message/lint` as a native
|
|
20
|
+
program: the same arguments, report and exit codes. It hands its `Host`
|
|
21
|
+
the report a problem at a time, as JSON as well as text, so that the
|
|
22
|
+
report is never held whole.
|
|
23
|
+
* **Plural rules are handed in.** A rule asks them through `Plurals`: `Cldr`,
|
|
24
|
+
the rules of the Unicode CLDR 48 the crate carries with the `cldr` feature,
|
|
25
|
+
a `Table` of rules stated as data, or a host's own. They are asked only
|
|
26
|
+
for a locale tag that is well-formed, as `Intl` takes one, so a host's
|
|
27
|
+
`Intl` is never handed one it would refuse.
|
|
28
|
+
A `Plurals` that gives a `KeptCategories` from `kept()`, as `Cldr` does,
|
|
29
|
+
is asked about a locale once for as long as it keeps it, not once a call.
|
|
30
|
+
* **Offsets count bytes** of the message or the file, where the npm
|
|
31
|
+
package counts UTF-16 code units; the command's columns count UTF-16 code
|
|
32
|
+
units, as an editor does.
|