linthis 0.3.0__py3-none-win_amd64.whl → 0.5.1__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: linthis
3
- Version: 0.3.0
3
+ Version: 0.5.1
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
- Create `.linthis.toml` in your project root:
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. **Plugin Config**: Plugins in sources array (later ones override earlier ones)
265
- 5. **Built-in Defaults**
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 | `--init` |
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 | Linter | Formatter |
572
- | ---------- | -------------------- | ------------------ |
573
- | Rust | clippy | rustfmt |
574
- | Python | pylint, flake8, ruff | black, ruff |
575
- | TypeScript | eslint | prettier |
576
- | JavaScript | eslint | prettier |
577
- | Go | golangci-lint | gofmt |
578
- | Java | checkstyle | google-java-format |
579
- | C++ | cpplint, cppcheck | clang-format |
580
- | Swift | swiftlint | swift-format |
581
- | Kotlin | detekt | ktlint |
582
- | Lua | luacheck | stylua |
583
- | Dart | dart analyze | dart format |
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.1.data\scripts\linthis.exe,sha256=kLeBWN4JpEfPOsmQKiK2kz0ptIy8wwHkkX0pMZe87qw,15533056
2
+ linthis-0.5.1.dist-info\METADATA,sha256=lmaeGRSUptz8uYQNuw3utwWcooBViZJ_exg6upM9mMI,27332
3
+ linthis-0.5.1.dist-info\WHEEL,sha256=jsSEiVNsW1dJj5gDaReR40i7mhgBjWtms6nAD6EViXU,94
4
+ linthis-0.5.1.dist-info\RECORD,,
@@ -1,4 +0,0 @@
1
- linthis-0.3.0.data\scripts\linthis.exe,sha256=upGsJUUjmhafAgHPosMfDSIdZ2ZPEw6-EW1QQEoKANE,15202816
2
- linthis-0.3.0.dist-info\METADATA,sha256=OEd77Cck220L-6i-QNB7rkBEBKHM3vVot3hsRDsx8EI,26254
3
- linthis-0.3.0.dist-info\WHEEL,sha256=jsSEiVNsW1dJj5gDaReR40i7mhgBjWtms6nAD6EViXU,94
4
- linthis-0.3.0.dist-info\RECORD,,