linthis 0.2.1__py3-none-win_amd64.whl → 0.5.0__py3-none-win_amd64.whl
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.
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: linthis
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.5.0
|
|
4
4
|
Classifier: Development Status :: 3 - Alpha
|
|
5
5
|
Classifier: Environment :: Console
|
|
6
6
|
Classifier: Intended Audience :: Developers
|
|
@@ -142,7 +142,7 @@ linthis supports Git-based configuration plugins for easy sharing of code standa
|
|
|
142
142
|
### Add Plugin
|
|
143
143
|
|
|
144
144
|
```bash
|
|
145
|
-
# Add plugin to project config (.linthis.toml)
|
|
145
|
+
# Add plugin to project config (.linthis/config.toml)
|
|
146
146
|
linthis plugin add <alias> <git-url>
|
|
147
147
|
|
|
148
148
|
# Example: Add a custom plugin
|
|
@@ -215,7 +215,13 @@ linthis plugin clean --all # Clean all caches
|
|
|
215
215
|
|
|
216
216
|
### Project Configuration
|
|
217
217
|
|
|
218
|
-
|
|
218
|
+
Use `linthis init` to create the configuration file:
|
|
219
|
+
|
|
220
|
+
```bash
|
|
221
|
+
linthis init
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
This creates `.linthis/config.toml` in your project root:
|
|
219
225
|
|
|
220
226
|
```toml
|
|
221
227
|
# Specify languages to check (omit for auto-detection)
|
|
@@ -259,10 +265,17 @@ Global configuration file is located at `~/.linthis/config.toml`, with the same
|
|
|
259
265
|
Configuration merge priority (from high to low):
|
|
260
266
|
|
|
261
267
|
1. **CLI Parameters**: `--option value`
|
|
262
|
-
2. **Project Config**: `.linthis.toml`
|
|
268
|
+
2. **Project Config**: `.linthis/config.toml`
|
|
263
269
|
3. **Global Config**: `~/.linthis/config.toml`
|
|
264
|
-
4. **
|
|
265
|
-
|
|
270
|
+
4. **Built-in Defaults**
|
|
271
|
+
|
|
272
|
+
For tool-specific configs (ruff.toml, .eslintrc.js, etc.), the priority is:
|
|
273
|
+
|
|
274
|
+
1. **Local manual configs** (highest) - ruff.toml, pyproject.toml, .eslintrc.js in project
|
|
275
|
+
2. **CLI plugin configs** - from `--use-plugin` option
|
|
276
|
+
3. **Project plugin configs** - from `.linthis/config.toml` plugins section
|
|
277
|
+
4. **Global plugin configs** - from `~/.linthis/config.toml` plugins
|
|
278
|
+
5. **Tool defaults** (lowest)
|
|
266
279
|
|
|
267
280
|
## Configuration Management
|
|
268
281
|
|
|
@@ -451,7 +464,7 @@ Migrated configurations are placed in `.linthis/configs/{language}/`:
|
|
|
451
464
|
Use the `init` subcommand to explicitly create configuration files:
|
|
452
465
|
|
|
453
466
|
```bash
|
|
454
|
-
# Create project config (.linthis.toml)
|
|
467
|
+
# Create project config (.linthis/config.toml)
|
|
455
468
|
linthis init
|
|
456
469
|
|
|
457
470
|
# Create global config (~/.linthis/config.toml)
|
|
@@ -466,7 +479,7 @@ linthis --init
|
|
|
466
479
|
|
|
467
480
|
When using the `config` command, configuration files are automatically created if they don't exist:
|
|
468
481
|
|
|
469
|
-
- **Project Config**: Creates `.linthis.toml` in current directory
|
|
482
|
+
- **Project Config**: Creates `.linthis/config.toml` in current directory
|
|
470
483
|
- **Global Config**: Creates `config.toml` in `~/.linthis/` directory
|
|
471
484
|
|
|
472
485
|
All modifications preserve TOML file format and comments.
|
|
@@ -487,7 +500,7 @@ All modifications preserve TOML file format and comments.
|
|
|
487
500
|
| `-v` | `--verbose` | Verbose output | `-v` |
|
|
488
501
|
| `-q` | `--quiet` | Quiet mode (errors only) | `-q` |
|
|
489
502
|
| | `--config` | Specify config file path | `--config custom.toml` |
|
|
490
|
-
| | `--init` | Initialize .linthis.toml config file
|
|
503
|
+
| | `--init` | Initialize .linthis/config.toml config file | `--init` |
|
|
491
504
|
| | `--preset` | Format preset | `--preset google` |
|
|
492
505
|
| | `--no-default-excludes` | Disable default exclude rules | `--no-default-excludes` |
|
|
493
506
|
| | `--no-gitignore` | Disable .gitignore rules | `--no-gitignore` |
|
|
@@ -536,7 +549,7 @@ All modifications preserve TOML file format and comments.
|
|
|
536
549
|
|
|
537
550
|
**Created configuration files**:
|
|
538
551
|
|
|
539
|
-
- Without `-g`: Creates `.linthis.toml` (current directory)
|
|
552
|
+
- Without `-g`: Creates `.linthis/config.toml` (current directory)
|
|
540
553
|
- With `-g`: Creates `~/.linthis/config.toml` (global config)
|
|
541
554
|
|
|
542
555
|
### Hook Subcommand
|
|
@@ -568,19 +581,26 @@ All modifications preserve TOML file format and comments.
|
|
|
568
581
|
|
|
569
582
|
## Supported Languages
|
|
570
583
|
|
|
571
|
-
| Language
|
|
572
|
-
|
|
|
573
|
-
| Rust
|
|
574
|
-
| Python
|
|
575
|
-
| TypeScript
|
|
576
|
-
| JavaScript
|
|
577
|
-
| Go
|
|
578
|
-
| Java
|
|
579
|
-
| C
|
|
580
|
-
|
|
|
581
|
-
|
|
|
582
|
-
|
|
|
583
|
-
|
|
|
584
|
+
| Language | Linter | Formatter |
|
|
585
|
+
| ----------- | ----------------------------- | ------------------ |
|
|
586
|
+
| Rust | clippy | rustfmt |
|
|
587
|
+
| Python | ruff, pylint, flake8 | ruff, black |
|
|
588
|
+
| TypeScript | eslint | prettier |
|
|
589
|
+
| JavaScript | eslint | prettier |
|
|
590
|
+
| Go | golangci-lint | gofmt |
|
|
591
|
+
| Java | checkstyle | google-java-format |
|
|
592
|
+
| C | clang-tidy, cppcheck | clang-format |
|
|
593
|
+
| C++ | clang-tidy, cpplint, cppcheck | clang-format |
|
|
594
|
+
| Objective-C | clang-tidy | clang-format |
|
|
595
|
+
| Swift | swiftlint | swift-format |
|
|
596
|
+
| Kotlin | detekt | ktlint |
|
|
597
|
+
| Lua | luacheck | stylua |
|
|
598
|
+
| Dart | dart analyze | dart format |
|
|
599
|
+
| Shell/Bash | shellcheck | shfmt |
|
|
600
|
+
| Ruby | rubocop | rubocop |
|
|
601
|
+
| PHP | phpcs | php-cs-fixer |
|
|
602
|
+
| Scala | scalafix | scalafmt |
|
|
603
|
+
| C# | dotnet format | dotnet format |
|
|
584
604
|
|
|
585
605
|
## Editor Plugins
|
|
586
606
|
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
linthis-0.5.0.data\scripts\linthis.exe,sha256=GZlJblkXek4iYNhnbguJApP4x0GPpIyKFDC89SsOurQ,15356416
|
|
2
|
+
linthis-0.5.0.dist-info\METADATA,sha256=uhDym9up9vK77mEDL3ThK1Iau-iVAo1JxWqtYr7Q2-o,27332
|
|
3
|
+
linthis-0.5.0.dist-info\WHEEL,sha256=jsSEiVNsW1dJj5gDaReR40i7mhgBjWtms6nAD6EViXU,94
|
|
4
|
+
linthis-0.5.0.dist-info\RECORD,,
|
linthis-0.2.1.dist-info/RECORD
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
linthis-0.2.1.data\scripts\linthis.exe,sha256=SerZsvqcBbE8dzQ0Q16csD8iiuDw9dCRiCQxR8d3Xu8,15170560
|
|
2
|
-
linthis-0.2.1.dist-info\METADATA,sha256=_cwMxN7bCREI3_KGhPpYcTmm7HDAY-qMfMLMHyg6he8,26254
|
|
3
|
-
linthis-0.2.1.dist-info\WHEEL,sha256=jsSEiVNsW1dJj5gDaReR40i7mhgBjWtms6nAD6EViXU,94
|
|
4
|
-
linthis-0.2.1.dist-info\RECORD,,
|
|
File without changes
|