linthis 0.0.13__tar.gz → 0.2.1__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.
- {linthis-0.0.13 → linthis-0.2.1}/Cargo.lock +355 -2
- {linthis-0.0.13 → linthis-0.2.1}/Cargo.toml +5 -1
- {linthis-0.0.13 → linthis-0.2.1}/PKG-INFO +1 -1
- {linthis-0.0.13 → linthis-0.2.1}/jetbrains-linthis/build.gradle.kts +5 -4
- {linthis-0.0.13 → linthis-0.2.1}/jetbrains-linthis/src/main/kotlin/com/mojeter/linthis/plugin/LinthisStreamConnectionProvider.kt +17 -2
- {linthis-0.0.13 → linthis-0.2.1}/jetbrains-linthis/src/main/kotlin/com/mojeter/linthis/plugin/actions/LinthisFormatAction.kt +1 -1
- {linthis-0.0.13 → linthis-0.2.1}/jetbrains-linthis/src/main/kotlin/com/mojeter/linthis/plugin/listeners/LinthisDocumentListener.kt +1 -1
- {linthis-0.0.13 → linthis-0.2.1}/jetbrains-linthis/src/main/kotlin/com/mojeter/linthis/plugin/settings/LinthisSettings.kt +5 -0
- {linthis-0.0.13 → linthis-0.2.1}/jetbrains-linthis/src/main/kotlin/com/mojeter/linthis/plugin/settings/LinthisSettingsConfigurable.kt +14 -0
- {linthis-0.0.13 → linthis-0.2.1}/jetbrains-linthis/src/main/kotlin/com/mojeter/linthis/plugin/util/LinthisExecutor.kt +19 -6
- {linthis-0.0.13 → linthis-0.2.1}/jetbrains-linthis/src/main/resources/META-INF/plugin.xml +10 -3
- linthis-0.2.1/jetbrains-linthis/src/main/resources/META-INF/pluginIcon.svg +29 -0
- linthis-0.2.1/jetbrains-linthis/src/main/resources/META-INF/pluginIcon_dark.svg +29 -0
- {linthis-0.0.13 → linthis-0.2.1}/nvim-linthis/README.md +64 -10
- {linthis-0.0.13 → linthis-0.2.1}/nvim-linthis/doc/linthis.txt +1 -1
- {linthis-0.0.13 → linthis-0.2.1}/nvim-linthis/lua/linthis/init.lua +186 -10
- {linthis-0.0.13 → linthis-0.2.1}/nvim-linthis/plugin/linthis.vim +3 -3
- {linthis-0.0.13 → linthis-0.2.1}/pyproject.toml +1 -1
- {linthis-0.0.13 → linthis-0.2.1}/scripts/release.sh +3 -3
- linthis-0.2.1/src/ai/context.rs +371 -0
- linthis-0.2.1/src/ai/mod.rs +41 -0
- linthis-0.2.1/src/ai/prompts.rs +610 -0
- linthis-0.2.1/src/ai/provider.rs +544 -0
- linthis-0.2.1/src/ai/suggestions.rs +869 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/checkers/cpp.rs +50 -5
- {linthis-0.0.13 → linthis-0.2.1}/src/checkers/python.rs +21 -1
- {linthis-0.0.13 → linthis-0.2.1}/src/checkers/typescript.rs +66 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/cli/commands.rs +259 -10
- linthis-0.2.1/src/cli/complexity.rs +150 -0
- linthis-0.2.1/src/cli/fix.rs +539 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/cli/helpers.rs +27 -3
- {linthis-0.0.13 → linthis-0.2.1}/src/cli/hook.rs +6 -6
- linthis-0.2.1/src/cli/license.rs +128 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/cli/mod.rs +7 -4
- linthis-0.2.1/src/cli/security.rs +148 -0
- linthis-0.2.1/src/complexity/analyzer.rs +384 -0
- linthis-0.2.1/src/complexity/languages/go.rs +376 -0
- linthis-0.2.1/src/complexity/languages/java.rs +451 -0
- linthis-0.2.1/src/complexity/languages/mod.rs +23 -0
- linthis-0.2.1/src/complexity/languages/python.rs +373 -0
- linthis-0.2.1/src/complexity/languages/rust.rs +438 -0
- linthis-0.2.1/src/complexity/languages/typescript.rs +392 -0
- linthis-0.2.1/src/complexity/metrics.rs +308 -0
- linthis-0.2.1/src/complexity/mod.rs +46 -0
- linthis-0.2.1/src/complexity/report.rs +450 -0
- linthis-0.2.1/src/complexity/thresholds.rs +213 -0
- linthis-0.2.1/src/interactive/ai_fix.rs +1343 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/interactive/menu.rs +43 -4
- {linthis-0.0.13 → linthis-0.2.1}/src/interactive/mod.rs +3 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/lib.rs +4 -0
- linthis-0.2.1/src/license/languages/go.rs +171 -0
- linthis-0.2.1/src/license/languages/java.rs +254 -0
- linthis-0.2.1/src/license/languages/mod.rs +23 -0
- linthis-0.2.1/src/license/languages/node.rs +170 -0
- linthis-0.2.1/src/license/languages/python.rs +169 -0
- linthis-0.2.1/src/license/languages/rust.rs +170 -0
- linthis-0.2.1/src/license/mod.rs +49 -0
- linthis-0.2.1/src/license/policy.rs +339 -0
- linthis-0.2.1/src/license/report.rs +293 -0
- linthis-0.2.1/src/license/scanner.rs +280 -0
- linthis-0.2.1/src/license/spdx.rs +304 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/main.rs +232 -58
- {linthis-0.0.13 → linthis-0.2.1}/src/plugin/fetcher.rs +60 -4
- {linthis-0.0.13 → linthis-0.2.1}/src/plugin/mod.rs +54 -1
- linthis-0.2.1/src/security/advisories.rs +278 -0
- linthis-0.2.1/src/security/languages/go.rs +288 -0
- linthis-0.2.1/src/security/languages/java.rs +278 -0
- linthis-0.2.1/src/security/languages/mod.rs +23 -0
- linthis-0.2.1/src/security/languages/node.rs +236 -0
- linthis-0.2.1/src/security/languages/python.rs +193 -0
- linthis-0.2.1/src/security/languages/rust.rs +258 -0
- linthis-0.2.1/src/security/mod.rs +48 -0
- linthis-0.2.1/src/security/report.rs +370 -0
- linthis-0.2.1/src/security/scanner.rs +351 -0
- linthis-0.2.1/src/security/vulnerability.rs +257 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/utils/output.rs +42 -45
- {linthis-0.0.13 → linthis-0.2.1}/vscode-linthis/.vscodeignore +2 -0
- linthis-0.2.1/vscode-linthis/icon.png +0 -0
- linthis-0.2.1/vscode-linthis/icon.svg +30 -0
- {linthis-0.0.13 → linthis-0.2.1}/vscode-linthis/package.json +7 -18
- {linthis-0.0.13 → linthis-0.2.1}/vscode-linthis/src/extension.ts +113 -60
- linthis-0.0.13/src/cli/fix.rs +0 -119
- linthis-0.0.13/vscode-linthis/icon.png +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/.github/workflows/release.yml +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/.gitignore +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/.readthedocs.yaml +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/CHANGELOG.md +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/README.md +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/defaults/.clang-tidy +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/defaults/config.toml +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/dev.sh +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/docs/assets/README.md +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/docs/assets/favicon.svg +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/docs/assets/logo.svg +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/docs/assets/preview.html +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/docs/config-cli-design.md +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/docs/development/changelog.md +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/docs/development/changelog.zh.md +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/docs/development/contributing.md +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/docs/development/contributing.zh.md +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/docs/development/roadmap.md +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/docs/development/roadmap.zh.md +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/docs/editors/vscode.md +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/docs/editors/vscode.zh.md +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/docs/features/auto-sync.md +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/docs/features/auto-sync.zh.md +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/docs/features/git-hooks.md +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/docs/features/git-hooks.zh.md +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/docs/features/plugins.md +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/docs/features/plugins.zh.md +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/docs/features/self-update.md +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/docs/features/self-update.zh.md +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/docs/features/watch-mode.md +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/docs/features/watch-mode.zh.md +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/docs/getting-started/configuration.md +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/docs/getting-started/configuration.zh.md +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/docs/getting-started/installation.md +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/docs/getting-started/installation.zh.md +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/docs/getting-started/quickstart.md +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/docs/getting-started/quickstart.zh.md +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/docs/index.md +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/docs/index.zh.md +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/docs/init-hooks-design.md +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/docs/languages/cpp.md +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/docs/languages/cpp.zh.md +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/docs/languages/csharp.md +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/docs/languages/csharp.zh.md +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/docs/languages/dart.md +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/docs/languages/dart.zh.md +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/docs/languages/go.md +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/docs/languages/go.zh.md +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/docs/languages/index.md +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/docs/languages/index.zh.md +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/docs/languages/java.md +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/docs/languages/java.zh.md +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/docs/languages/javascript.md +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/docs/languages/javascript.zh.md +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/docs/languages/kotlin.md +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/docs/languages/kotlin.zh.md +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/docs/languages/lua.md +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/docs/languages/lua.zh.md +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/docs/languages/objc.md +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/docs/languages/objc.zh.md +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/docs/languages/php.md +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/docs/languages/php.zh.md +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/docs/languages/python.md +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/docs/languages/python.zh.md +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/docs/languages/ruby.md +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/docs/languages/ruby.zh.md +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/docs/languages/rust.md +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/docs/languages/rust.zh.md +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/docs/languages/scala.md +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/docs/languages/scala.zh.md +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/docs/languages/shell.md +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/docs/languages/shell.zh.md +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/docs/languages/swift.md +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/docs/languages/swift.zh.md +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/docs/languages/typescript.md +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/docs/languages/typescript.zh.md +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/docs/plan-ruff-integration.md +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/docs/reference/cli.md +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/docs/reference/cli.zh.md +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/docs/reference/configuration.md +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/docs/reference/configuration.zh.md +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/docs/requirements.txt +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/docs/tasks.md +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/jetbrains-linthis/.gitignore +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/jetbrains-linthis/PUBLISHING.md +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/jetbrains-linthis/PUBLISHING.zh.md +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/jetbrains-linthis/README.md +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/jetbrains-linthis/docs/images/settings.png +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/jetbrains-linthis/docs/images/tools-menu.png +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/jetbrains-linthis/gradle/wrapper/gradle-wrapper.jar +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/jetbrains-linthis/gradle/wrapper/gradle-wrapper.properties +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/jetbrains-linthis/gradle.properties +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/jetbrains-linthis/gradlew +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/jetbrains-linthis/gradlew.bat +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/jetbrains-linthis/settings.gradle.kts +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/jetbrains-linthis/src/main/kotlin/com/mojeter/linthis/plugin/LinthisLanguageClient.kt +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/jetbrains-linthis/src/main/kotlin/com/mojeter/linthis/plugin/LinthisLanguageServerFactory.kt +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/jetbrains-linthis/src/main/kotlin/com/mojeter/linthis/plugin/LinthisStartupListener.kt +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/jetbrains-linthis/src/main/kotlin/com/mojeter/linthis/plugin/actions/LinthisLintAction.kt +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/jetbrains-linthis/src/main/kotlin/com/mojeter/linthis/plugin/listeners/LinthisFileOpenListener.kt +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/jetbrains-linthis/src/main/resources/images/settings.png +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/jetbrains-linthis/src/main/resources/messages/LinthisBundle.properties +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/mkdocs.yml +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/nvim-linthis/LICENSE +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/nvim-linthis/PUBLISHING.md +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/nvim-linthis/PUBLISHING.zh.md +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/nvim-linthis/lua/linthis/config.lua +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/nvim-linthis/test.sh +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/benchmark.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/cache/hash.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/cache/mod.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/cache/storage.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/cache/types.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/checkers/csharp.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/checkers/dart.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/checkers/go.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/checkers/java.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/checkers/kotlin.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/checkers/lua.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/checkers/mod.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/checkers/php.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/checkers/ruby.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/checkers/rust.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/checkers/scala.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/checkers/shell.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/checkers/swift.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/checkers/traits.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/cli/cache.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/cli/doctor.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/cli/init.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/cli/paths.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/cli/plugin.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/cli/recheck.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/cli/report.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/cli/runner.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/cli/watch.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/config/cli.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/config/migrate/converters/eslint.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/config/migrate/converters/mod.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/config/migrate/converters/prettier.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/config/migrate/converters/python.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/config/migrate/detect.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/config/migrate/mod.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/config/migrate/parsers/eslint.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/config/migrate/parsers/mod.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/config/migrate/parsers/prettier.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/config/migrate/parsers/python.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/config/migrate/validate.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/config/mod.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/fixers/cpplint.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/fixers/mod.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/fixers/source.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/formatters/cpp.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/formatters/csharp.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/formatters/dart.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/formatters/go.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/formatters/java.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/formatters/kotlin.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/formatters/lua.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/formatters/mod.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/formatters/php.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/formatters/python.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/formatters/ruby.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/formatters/rust.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/formatters/scala.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/formatters/shell.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/formatters/swift.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/formatters/traits.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/formatters/typescript.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/interactive/editor.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/interactive/nolint.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/interactive/quickfix.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/lsp/diagnostics.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/lsp/document.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/lsp/mod.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/lsp/server.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/plugin/auto_sync.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/plugin/cache.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/plugin/config_manager.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/plugin/loader.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/plugin/manifest.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/plugin/registry.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/presets/mod.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/reports/consistency.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/reports/html.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/reports/mod.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/reports/statistics.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/reports/templates.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/reports/trends.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/rules/config.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/rules/custom_checker.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/rules/filter.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/rules/mod.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/self_update.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/templates/linter_configs.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/templates/mod.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/templates/plugin_templates.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/templates/readme.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/tui/app.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/tui/event.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/tui/mod.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/tui/ui.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/tui/widgets/file_tree.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/tui/widgets/help.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/tui/widgets/issue_list.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/tui/widgets/mod.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/tui/widgets/status_bar.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/utils/language.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/utils/mod.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/utils/types.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/utils/unicode.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/utils/walker.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/watch/debounce.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/watch/mod.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/watch/notifications.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/watch/state.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/src/watch/watcher.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/test-plugin-check/README.md +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/test-plugin-check/linthis-plugin.toml +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/tests/cli_tests.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/tests/fixtures/python/bad.py +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/tests/fixtures/python/good.py +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/tests/fixtures/python/unformatted.py +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/tests/fixtures/rust/bad.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/tests/fixtures/test-plugin/linthis-plugin.toml +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/tests/fixtures/test-plugin/python/ruff.toml +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/tests/fixtures/test-plugin/rust/clippy.toml +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/tests/fixtures/test-plugin/rust/rustfmt.toml +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/tests/fixtures/us1/good.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/tests/fixtures/us1/unformatted.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/tests/integration/cache_tests.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/tests/integration/check_tests.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/tests/integration/common.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/tests/integration/config_tests.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/tests/integration/error_tests.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/tests/integration/format_tests.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/tests/integration/language_tests.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/tests/integration/mod.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/tests/integration/plugin_tests.rs +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/vscode-linthis/.gitignore +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/vscode-linthis/.linthis.toml +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/vscode-linthis/CHANGELOG.md +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/vscode-linthis/LICENSE +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/vscode-linthis/PUBLISHING.md +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/vscode-linthis/PUBLISHING.zh.md +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/vscode-linthis/README.md +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/vscode-linthis/package-lock.json +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/vscode-linthis/src/test/runTest.ts +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/vscode-linthis/src/test/suite/extension.test.ts +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/vscode-linthis/src/test/suite/index.ts +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/vscode-linthis/tsconfig.json +0 -0
- {linthis-0.0.13 → linthis-0.2.1}/vscode-linthis/webpack.config.js +0 -0
|
@@ -246,6 +246,12 @@ version = "1.5.0"
|
|
|
246
246
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
247
247
|
checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8"
|
|
248
248
|
|
|
249
|
+
[[package]]
|
|
250
|
+
name = "base64"
|
|
251
|
+
version = "0.21.7"
|
|
252
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
253
|
+
checksum = "9d297deb1925b89f2ccc13d7635fa0714f12c87adce1c75356b39ca9b7178567"
|
|
254
|
+
|
|
249
255
|
[[package]]
|
|
250
256
|
name = "bitflags"
|
|
251
257
|
version = "1.3.2"
|
|
@@ -429,6 +435,16 @@ dependencies = [
|
|
|
429
435
|
"crossbeam-utils",
|
|
430
436
|
]
|
|
431
437
|
|
|
438
|
+
[[package]]
|
|
439
|
+
name = "core-foundation"
|
|
440
|
+
version = "0.9.4"
|
|
441
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
442
|
+
checksum = "91e195e091a93c46f7102ec7818a2aa394e1e1771c3ab4825963fa03e45afb8f"
|
|
443
|
+
dependencies = [
|
|
444
|
+
"core-foundation-sys",
|
|
445
|
+
"libc",
|
|
446
|
+
]
|
|
447
|
+
|
|
432
448
|
[[package]]
|
|
433
449
|
name = "core-foundation-sys"
|
|
434
450
|
version = "0.8.7"
|
|
@@ -598,6 +614,15 @@ version = "1.15.0"
|
|
|
598
614
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
599
615
|
checksum = "48c757948c5ede0e46177b7add2e67155f70e33c07fea8284df6576da70b3719"
|
|
600
616
|
|
|
617
|
+
[[package]]
|
|
618
|
+
name = "encoding_rs"
|
|
619
|
+
version = "0.8.35"
|
|
620
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
621
|
+
checksum = "75030f3c4f45dafd7586dd6780965a8c7e8e285a5ecb86713e63a79c5b2766f3"
|
|
622
|
+
dependencies = [
|
|
623
|
+
"cfg-if",
|
|
624
|
+
]
|
|
625
|
+
|
|
601
626
|
[[package]]
|
|
602
627
|
name = "endi"
|
|
603
628
|
version = "1.1.1"
|
|
@@ -699,6 +724,12 @@ version = "0.1.5"
|
|
|
699
724
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
700
725
|
checksum = "3a3076410a55c90011c298b04d0cfa770b00fa04e1e3c97d3f6c9de105a03844"
|
|
701
726
|
|
|
727
|
+
[[package]]
|
|
728
|
+
name = "fnv"
|
|
729
|
+
version = "1.0.7"
|
|
730
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
731
|
+
checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"
|
|
732
|
+
|
|
702
733
|
[[package]]
|
|
703
734
|
name = "foldhash"
|
|
704
735
|
version = "0.1.5"
|
|
@@ -859,6 +890,25 @@ dependencies = [
|
|
|
859
890
|
"regex-syntax 0.8.8",
|
|
860
891
|
]
|
|
861
892
|
|
|
893
|
+
[[package]]
|
|
894
|
+
name = "h2"
|
|
895
|
+
version = "0.3.27"
|
|
896
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
897
|
+
checksum = "0beca50380b1fc32983fc1cb4587bfa4bb9e78fc259aad4a0032d2080309222d"
|
|
898
|
+
dependencies = [
|
|
899
|
+
"bytes",
|
|
900
|
+
"fnv",
|
|
901
|
+
"futures-core",
|
|
902
|
+
"futures-sink",
|
|
903
|
+
"futures-util",
|
|
904
|
+
"http",
|
|
905
|
+
"indexmap 2.12.1",
|
|
906
|
+
"slab",
|
|
907
|
+
"tokio",
|
|
908
|
+
"tokio-util",
|
|
909
|
+
"tracing",
|
|
910
|
+
]
|
|
911
|
+
|
|
862
912
|
[[package]]
|
|
863
913
|
name = "hashbrown"
|
|
864
914
|
version = "0.12.3"
|
|
@@ -921,18 +971,84 @@ version = "0.4.3"
|
|
|
921
971
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
922
972
|
checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70"
|
|
923
973
|
|
|
974
|
+
[[package]]
|
|
975
|
+
name = "http"
|
|
976
|
+
version = "0.2.12"
|
|
977
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
978
|
+
checksum = "601cbb57e577e2f5ef5be8e7b83f0f63994f25aa94d673e54a92d5c516d101f1"
|
|
979
|
+
dependencies = [
|
|
980
|
+
"bytes",
|
|
981
|
+
"fnv",
|
|
982
|
+
"itoa",
|
|
983
|
+
]
|
|
984
|
+
|
|
985
|
+
[[package]]
|
|
986
|
+
name = "http-body"
|
|
987
|
+
version = "0.4.6"
|
|
988
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
989
|
+
checksum = "7ceab25649e9960c0311ea418d17bee82c0dcec1bd053b5f9a66e265a693bed2"
|
|
990
|
+
dependencies = [
|
|
991
|
+
"bytes",
|
|
992
|
+
"http",
|
|
993
|
+
"pin-project-lite",
|
|
994
|
+
]
|
|
995
|
+
|
|
924
996
|
[[package]]
|
|
925
997
|
name = "httparse"
|
|
926
998
|
version = "1.10.1"
|
|
927
999
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
928
1000
|
checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87"
|
|
929
1001
|
|
|
1002
|
+
[[package]]
|
|
1003
|
+
name = "httpdate"
|
|
1004
|
+
version = "1.0.3"
|
|
1005
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1006
|
+
checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9"
|
|
1007
|
+
|
|
930
1008
|
[[package]]
|
|
931
1009
|
name = "humantime"
|
|
932
1010
|
version = "2.3.0"
|
|
933
1011
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
934
1012
|
checksum = "135b12329e5e3ce057a9f972339ea52bc954fe1e9358ef27f95e89716fbc5424"
|
|
935
1013
|
|
|
1014
|
+
[[package]]
|
|
1015
|
+
name = "hyper"
|
|
1016
|
+
version = "0.14.32"
|
|
1017
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1018
|
+
checksum = "41dfc780fdec9373c01bae43289ea34c972e40ee3c9f6b3c8801a35f35586ce7"
|
|
1019
|
+
dependencies = [
|
|
1020
|
+
"bytes",
|
|
1021
|
+
"futures-channel",
|
|
1022
|
+
"futures-core",
|
|
1023
|
+
"futures-util",
|
|
1024
|
+
"h2",
|
|
1025
|
+
"http",
|
|
1026
|
+
"http-body",
|
|
1027
|
+
"httparse",
|
|
1028
|
+
"httpdate",
|
|
1029
|
+
"itoa",
|
|
1030
|
+
"pin-project-lite",
|
|
1031
|
+
"socket2 0.5.10",
|
|
1032
|
+
"tokio",
|
|
1033
|
+
"tower-service",
|
|
1034
|
+
"tracing",
|
|
1035
|
+
"want",
|
|
1036
|
+
]
|
|
1037
|
+
|
|
1038
|
+
[[package]]
|
|
1039
|
+
name = "hyper-rustls"
|
|
1040
|
+
version = "0.24.2"
|
|
1041
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1042
|
+
checksum = "ec3efd23720e2049821a693cbc7e65ea87c72f1c58ff2f9522ff332b1491e590"
|
|
1043
|
+
dependencies = [
|
|
1044
|
+
"futures-util",
|
|
1045
|
+
"http",
|
|
1046
|
+
"hyper",
|
|
1047
|
+
"rustls",
|
|
1048
|
+
"tokio",
|
|
1049
|
+
"tokio-rustls",
|
|
1050
|
+
]
|
|
1051
|
+
|
|
936
1052
|
[[package]]
|
|
937
1053
|
name = "iana-time-zone"
|
|
938
1054
|
version = "0.1.64"
|
|
@@ -1127,6 +1243,12 @@ dependencies = [
|
|
|
1127
1243
|
"syn",
|
|
1128
1244
|
]
|
|
1129
1245
|
|
|
1246
|
+
[[package]]
|
|
1247
|
+
name = "ipnet"
|
|
1248
|
+
version = "2.11.0"
|
|
1249
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1250
|
+
checksum = "469fb0b9cefa57e3ef31275ee7cacb78f2fdca44e4765491884a2b119d4eb130"
|
|
1251
|
+
|
|
1130
1252
|
[[package]]
|
|
1131
1253
|
name = "is-terminal"
|
|
1132
1254
|
version = "0.4.17"
|
|
@@ -1208,7 +1330,7 @@ dependencies = [
|
|
|
1208
1330
|
|
|
1209
1331
|
[[package]]
|
|
1210
1332
|
name = "linthis"
|
|
1211
|
-
version = "0.
|
|
1333
|
+
version = "0.2.1"
|
|
1212
1334
|
dependencies = [
|
|
1213
1335
|
"anyhow",
|
|
1214
1336
|
"async-trait",
|
|
@@ -1227,6 +1349,7 @@ dependencies = [
|
|
|
1227
1349
|
"ratatui",
|
|
1228
1350
|
"rayon",
|
|
1229
1351
|
"regex",
|
|
1352
|
+
"reqwest",
|
|
1230
1353
|
"serde",
|
|
1231
1354
|
"serde_json",
|
|
1232
1355
|
"serde_yaml",
|
|
@@ -1323,6 +1446,12 @@ dependencies = [
|
|
|
1323
1446
|
"autocfg",
|
|
1324
1447
|
]
|
|
1325
1448
|
|
|
1449
|
+
[[package]]
|
|
1450
|
+
name = "mime"
|
|
1451
|
+
version = "0.3.17"
|
|
1452
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1453
|
+
checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a"
|
|
1454
|
+
|
|
1326
1455
|
[[package]]
|
|
1327
1456
|
name = "mio"
|
|
1328
1457
|
version = "0.8.11"
|
|
@@ -1727,6 +1856,61 @@ version = "0.8.8"
|
|
|
1727
1856
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1728
1857
|
checksum = "7a2d987857b319362043e95f5353c0535c1f58eec5336fdfcf626430af7def58"
|
|
1729
1858
|
|
|
1859
|
+
[[package]]
|
|
1860
|
+
name = "reqwest"
|
|
1861
|
+
version = "0.11.27"
|
|
1862
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1863
|
+
checksum = "dd67538700a17451e7cba03ac727fb961abb7607553461627b97de0b89cf4a62"
|
|
1864
|
+
dependencies = [
|
|
1865
|
+
"base64",
|
|
1866
|
+
"bytes",
|
|
1867
|
+
"encoding_rs",
|
|
1868
|
+
"futures-core",
|
|
1869
|
+
"futures-util",
|
|
1870
|
+
"h2",
|
|
1871
|
+
"http",
|
|
1872
|
+
"http-body",
|
|
1873
|
+
"hyper",
|
|
1874
|
+
"hyper-rustls",
|
|
1875
|
+
"ipnet",
|
|
1876
|
+
"js-sys",
|
|
1877
|
+
"log",
|
|
1878
|
+
"mime",
|
|
1879
|
+
"once_cell",
|
|
1880
|
+
"percent-encoding",
|
|
1881
|
+
"pin-project-lite",
|
|
1882
|
+
"rustls",
|
|
1883
|
+
"rustls-pemfile",
|
|
1884
|
+
"serde",
|
|
1885
|
+
"serde_json",
|
|
1886
|
+
"serde_urlencoded",
|
|
1887
|
+
"sync_wrapper",
|
|
1888
|
+
"system-configuration",
|
|
1889
|
+
"tokio",
|
|
1890
|
+
"tokio-rustls",
|
|
1891
|
+
"tower-service",
|
|
1892
|
+
"url",
|
|
1893
|
+
"wasm-bindgen",
|
|
1894
|
+
"wasm-bindgen-futures",
|
|
1895
|
+
"web-sys",
|
|
1896
|
+
"webpki-roots",
|
|
1897
|
+
"winreg",
|
|
1898
|
+
]
|
|
1899
|
+
|
|
1900
|
+
[[package]]
|
|
1901
|
+
name = "ring"
|
|
1902
|
+
version = "0.17.14"
|
|
1903
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1904
|
+
checksum = "a4689e6c2294d81e88dc6261c768b63bc4fcdb852be6d1352498b114f61383b7"
|
|
1905
|
+
dependencies = [
|
|
1906
|
+
"cc",
|
|
1907
|
+
"cfg-if",
|
|
1908
|
+
"getrandom 0.2.16",
|
|
1909
|
+
"libc",
|
|
1910
|
+
"untrusted",
|
|
1911
|
+
"windows-sys 0.52.0",
|
|
1912
|
+
]
|
|
1913
|
+
|
|
1730
1914
|
[[package]]
|
|
1731
1915
|
name = "rustix"
|
|
1732
1916
|
version = "0.38.44"
|
|
@@ -1753,6 +1937,37 @@ dependencies = [
|
|
|
1753
1937
|
"windows-sys 0.61.2",
|
|
1754
1938
|
]
|
|
1755
1939
|
|
|
1940
|
+
[[package]]
|
|
1941
|
+
name = "rustls"
|
|
1942
|
+
version = "0.21.12"
|
|
1943
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1944
|
+
checksum = "3f56a14d1f48b391359b22f731fd4bd7e43c97f3c50eee276f3aa09c94784d3e"
|
|
1945
|
+
dependencies = [
|
|
1946
|
+
"log",
|
|
1947
|
+
"ring",
|
|
1948
|
+
"rustls-webpki",
|
|
1949
|
+
"sct",
|
|
1950
|
+
]
|
|
1951
|
+
|
|
1952
|
+
[[package]]
|
|
1953
|
+
name = "rustls-pemfile"
|
|
1954
|
+
version = "1.0.4"
|
|
1955
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1956
|
+
checksum = "1c74cae0a4cf6ccbbf5f359f08efdf8ee7e1dc532573bf0db71968cb56b1448c"
|
|
1957
|
+
dependencies = [
|
|
1958
|
+
"base64",
|
|
1959
|
+
]
|
|
1960
|
+
|
|
1961
|
+
[[package]]
|
|
1962
|
+
name = "rustls-webpki"
|
|
1963
|
+
version = "0.101.7"
|
|
1964
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1965
|
+
checksum = "8b6275d1ee7a1cd780b64aca7726599a1dbc893b1e64144529e55c3c2f745765"
|
|
1966
|
+
dependencies = [
|
|
1967
|
+
"ring",
|
|
1968
|
+
"untrusted",
|
|
1969
|
+
]
|
|
1970
|
+
|
|
1756
1971
|
[[package]]
|
|
1757
1972
|
name = "rustversion"
|
|
1758
1973
|
version = "1.0.22"
|
|
@@ -1780,6 +1995,16 @@ version = "1.2.0"
|
|
|
1780
1995
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1781
1996
|
checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
|
|
1782
1997
|
|
|
1998
|
+
[[package]]
|
|
1999
|
+
name = "sct"
|
|
2000
|
+
version = "0.7.1"
|
|
2001
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2002
|
+
checksum = "da046153aa2352493d6cb7da4b6e5c0c057d8a1d0a9aa8560baffdd945acd414"
|
|
2003
|
+
dependencies = [
|
|
2004
|
+
"ring",
|
|
2005
|
+
"untrusted",
|
|
2006
|
+
]
|
|
2007
|
+
|
|
1783
2008
|
[[package]]
|
|
1784
2009
|
name = "serde"
|
|
1785
2010
|
version = "1.0.228"
|
|
@@ -1832,6 +2057,18 @@ dependencies = [
|
|
|
1832
2057
|
"syn",
|
|
1833
2058
|
]
|
|
1834
2059
|
|
|
2060
|
+
[[package]]
|
|
2061
|
+
name = "serde_urlencoded"
|
|
2062
|
+
version = "0.7.1"
|
|
2063
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2064
|
+
checksum = "d3491c14715ca2294c4d6a88f15e84739788c1d030eed8c110436aafdaa2f3fd"
|
|
2065
|
+
dependencies = [
|
|
2066
|
+
"form_urlencoded",
|
|
2067
|
+
"itoa",
|
|
2068
|
+
"ryu",
|
|
2069
|
+
"serde",
|
|
2070
|
+
]
|
|
2071
|
+
|
|
1835
2072
|
[[package]]
|
|
1836
2073
|
name = "serde_yaml"
|
|
1837
2074
|
version = "0.9.17"
|
|
@@ -1900,6 +2137,16 @@ version = "1.15.1"
|
|
|
1900
2137
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1901
2138
|
checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03"
|
|
1902
2139
|
|
|
2140
|
+
[[package]]
|
|
2141
|
+
name = "socket2"
|
|
2142
|
+
version = "0.5.10"
|
|
2143
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2144
|
+
checksum = "e22376abed350d73dd1cd119b57ffccad95b4e585a7cda43e286245ce23c0678"
|
|
2145
|
+
dependencies = [
|
|
2146
|
+
"libc",
|
|
2147
|
+
"windows-sys 0.52.0",
|
|
2148
|
+
]
|
|
2149
|
+
|
|
1903
2150
|
[[package]]
|
|
1904
2151
|
name = "socket2"
|
|
1905
2152
|
version = "0.6.1"
|
|
@@ -1967,6 +2214,12 @@ dependencies = [
|
|
|
1967
2214
|
"unicode-ident",
|
|
1968
2215
|
]
|
|
1969
2216
|
|
|
2217
|
+
[[package]]
|
|
2218
|
+
name = "sync_wrapper"
|
|
2219
|
+
version = "0.1.2"
|
|
2220
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2221
|
+
checksum = "2047c6ded9c721764247e62cd3b03c09ffc529b2ba5b10ec482ae507a4a70160"
|
|
2222
|
+
|
|
1970
2223
|
[[package]]
|
|
1971
2224
|
name = "synstructure"
|
|
1972
2225
|
version = "0.13.2"
|
|
@@ -1978,6 +2231,27 @@ dependencies = [
|
|
|
1978
2231
|
"syn",
|
|
1979
2232
|
]
|
|
1980
2233
|
|
|
2234
|
+
[[package]]
|
|
2235
|
+
name = "system-configuration"
|
|
2236
|
+
version = "0.5.1"
|
|
2237
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2238
|
+
checksum = "ba3a3adc5c275d719af8cb4272ea1c4a6d668a777f37e115f6d11ddbc1c8e0e7"
|
|
2239
|
+
dependencies = [
|
|
2240
|
+
"bitflags 1.3.2",
|
|
2241
|
+
"core-foundation",
|
|
2242
|
+
"system-configuration-sys",
|
|
2243
|
+
]
|
|
2244
|
+
|
|
2245
|
+
[[package]]
|
|
2246
|
+
name = "system-configuration-sys"
|
|
2247
|
+
version = "0.5.0"
|
|
2248
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2249
|
+
checksum = "a75fb188eb626b924683e3b95e3a48e63551fcfb51949de2f06a9d91dbee93c9"
|
|
2250
|
+
dependencies = [
|
|
2251
|
+
"core-foundation-sys",
|
|
2252
|
+
"libc",
|
|
2253
|
+
]
|
|
2254
|
+
|
|
1981
2255
|
[[package]]
|
|
1982
2256
|
name = "tauri-winrt-notification"
|
|
1983
2257
|
version = "0.7.2"
|
|
@@ -2093,7 +2367,7 @@ dependencies = [
|
|
|
2093
2367
|
"parking_lot",
|
|
2094
2368
|
"pin-project-lite",
|
|
2095
2369
|
"signal-hook-registry",
|
|
2096
|
-
"socket2",
|
|
2370
|
+
"socket2 0.6.1",
|
|
2097
2371
|
"tokio-macros",
|
|
2098
2372
|
"windows-sys 0.61.2",
|
|
2099
2373
|
]
|
|
@@ -2109,6 +2383,16 @@ dependencies = [
|
|
|
2109
2383
|
"syn",
|
|
2110
2384
|
]
|
|
2111
2385
|
|
|
2386
|
+
[[package]]
|
|
2387
|
+
name = "tokio-rustls"
|
|
2388
|
+
version = "0.24.1"
|
|
2389
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2390
|
+
checksum = "c28327cf380ac148141087fbfb9de9d7bd4e84ab5d2c28fbc911d753de8a7081"
|
|
2391
|
+
dependencies = [
|
|
2392
|
+
"rustls",
|
|
2393
|
+
"tokio",
|
|
2394
|
+
]
|
|
2395
|
+
|
|
2112
2396
|
[[package]]
|
|
2113
2397
|
name = "tokio-util"
|
|
2114
2398
|
version = "0.7.18"
|
|
@@ -2276,6 +2560,12 @@ dependencies = [
|
|
|
2276
2560
|
"once_cell",
|
|
2277
2561
|
]
|
|
2278
2562
|
|
|
2563
|
+
[[package]]
|
|
2564
|
+
name = "try-lock"
|
|
2565
|
+
version = "0.2.5"
|
|
2566
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2567
|
+
checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b"
|
|
2568
|
+
|
|
2279
2569
|
[[package]]
|
|
2280
2570
|
name = "uds_windows"
|
|
2281
2571
|
version = "1.1.0"
|
|
@@ -2322,6 +2612,12 @@ version = "0.2.11"
|
|
|
2322
2612
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2323
2613
|
checksum = "673aac59facbab8a9007c7f6108d11f63b603f7cabff99fabf650fea5c32b861"
|
|
2324
2614
|
|
|
2615
|
+
[[package]]
|
|
2616
|
+
name = "untrusted"
|
|
2617
|
+
version = "0.9.0"
|
|
2618
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2619
|
+
checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1"
|
|
2620
|
+
|
|
2325
2621
|
[[package]]
|
|
2326
2622
|
name = "url"
|
|
2327
2623
|
version = "2.5.8"
|
|
@@ -2368,6 +2664,15 @@ dependencies = [
|
|
|
2368
2664
|
"winapi-util",
|
|
2369
2665
|
]
|
|
2370
2666
|
|
|
2667
|
+
[[package]]
|
|
2668
|
+
name = "want"
|
|
2669
|
+
version = "0.3.1"
|
|
2670
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2671
|
+
checksum = "bfa7760aed19e106de2c7c0b581b509f2f25d3dacaf737cb82ac61bc6d760b0e"
|
|
2672
|
+
dependencies = [
|
|
2673
|
+
"try-lock",
|
|
2674
|
+
]
|
|
2675
|
+
|
|
2371
2676
|
[[package]]
|
|
2372
2677
|
name = "wasi"
|
|
2373
2678
|
version = "0.11.1+wasi-snapshot-preview1"
|
|
@@ -2396,6 +2701,19 @@ dependencies = [
|
|
|
2396
2701
|
"wasm-bindgen-shared",
|
|
2397
2702
|
]
|
|
2398
2703
|
|
|
2704
|
+
[[package]]
|
|
2705
|
+
name = "wasm-bindgen-futures"
|
|
2706
|
+
version = "0.4.56"
|
|
2707
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2708
|
+
checksum = "836d9622d604feee9e5de25ac10e3ea5f2d65b41eac0d9ce72eb5deae707ce7c"
|
|
2709
|
+
dependencies = [
|
|
2710
|
+
"cfg-if",
|
|
2711
|
+
"js-sys",
|
|
2712
|
+
"once_cell",
|
|
2713
|
+
"wasm-bindgen",
|
|
2714
|
+
"web-sys",
|
|
2715
|
+
]
|
|
2716
|
+
|
|
2399
2717
|
[[package]]
|
|
2400
2718
|
name = "wasm-bindgen-macro"
|
|
2401
2719
|
version = "0.2.106"
|
|
@@ -2428,6 +2746,22 @@ dependencies = [
|
|
|
2428
2746
|
"unicode-ident",
|
|
2429
2747
|
]
|
|
2430
2748
|
|
|
2749
|
+
[[package]]
|
|
2750
|
+
name = "web-sys"
|
|
2751
|
+
version = "0.3.83"
|
|
2752
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2753
|
+
checksum = "9b32828d774c412041098d182a8b38b16ea816958e07cf40eec2bc080ae137ac"
|
|
2754
|
+
dependencies = [
|
|
2755
|
+
"js-sys",
|
|
2756
|
+
"wasm-bindgen",
|
|
2757
|
+
]
|
|
2758
|
+
|
|
2759
|
+
[[package]]
|
|
2760
|
+
name = "webpki-roots"
|
|
2761
|
+
version = "0.25.4"
|
|
2762
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2763
|
+
checksum = "5f20c57d8d7db6d3b86154206ae5d8fba62dd39573114de97c2cb0578251f8e1"
|
|
2764
|
+
|
|
2431
2765
|
[[package]]
|
|
2432
2766
|
name = "winapi"
|
|
2433
2767
|
version = "0.3.9"
|
|
@@ -2607,6 +2941,15 @@ dependencies = [
|
|
|
2607
2941
|
"windows-targets 0.48.5",
|
|
2608
2942
|
]
|
|
2609
2943
|
|
|
2944
|
+
[[package]]
|
|
2945
|
+
name = "windows-sys"
|
|
2946
|
+
version = "0.52.0"
|
|
2947
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
2948
|
+
checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d"
|
|
2949
|
+
dependencies = [
|
|
2950
|
+
"windows-targets 0.52.6",
|
|
2951
|
+
]
|
|
2952
|
+
|
|
2610
2953
|
[[package]]
|
|
2611
2954
|
name = "windows-sys"
|
|
2612
2955
|
version = "0.59.0"
|
|
@@ -2847,6 +3190,16 @@ dependencies = [
|
|
|
2847
3190
|
"memchr",
|
|
2848
3191
|
]
|
|
2849
3192
|
|
|
3193
|
+
[[package]]
|
|
3194
|
+
name = "winreg"
|
|
3195
|
+
version = "0.50.0"
|
|
3196
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
3197
|
+
checksum = "524e57b2c537c0f9b1e69f1965311ec12182b4122e45035b1508cd24d2adadb1"
|
|
3198
|
+
dependencies = [
|
|
3199
|
+
"cfg-if",
|
|
3200
|
+
"windows-sys 0.48.0",
|
|
3201
|
+
]
|
|
3202
|
+
|
|
2850
3203
|
[[package]]
|
|
2851
3204
|
name = "wit-bindgen"
|
|
2852
3205
|
version = "0.46.0"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[package]
|
|
2
2
|
name = "linthis"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.2.1"
|
|
4
4
|
edition = "2021"
|
|
5
5
|
authors = ["zhlinh"]
|
|
6
6
|
description = "A fast, cross-platform multi-language linter and formatter"
|
|
@@ -39,6 +39,10 @@ colored = "2.0"
|
|
|
39
39
|
# Regex
|
|
40
40
|
regex = "1.8"
|
|
41
41
|
|
|
42
|
+
# HTTP client (for AI API calls)
|
|
43
|
+
# Use rustls-tls to avoid OpenSSL dependency on Linux
|
|
44
|
+
reqwest = { version = "0.11", default-features = false, features = ["blocking", "json", "rustls-tls"] }
|
|
45
|
+
|
|
42
46
|
# Glob pattern matching
|
|
43
47
|
globset = "0.4"
|
|
44
48
|
|
|
@@ -5,7 +5,7 @@ plugins {
|
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
group = "com.mojeter.linthis"
|
|
8
|
-
version = "0.0
|
|
8
|
+
version = "0.1.0"
|
|
9
9
|
|
|
10
10
|
repositories {
|
|
11
11
|
mavenCentral()
|
|
@@ -22,13 +22,14 @@ dependencies {
|
|
|
22
22
|
intellijPlatform {
|
|
23
23
|
intellijIdeaCommunity("2024.1")
|
|
24
24
|
bundledPlugin("com.intellij.java")
|
|
25
|
+
// LSP4IJ plugin from JetBrains Marketplace (required dependency)
|
|
26
|
+
// The plugin() declaration makes LSP4IJ classes available for compilation
|
|
27
|
+
plugin("com.redhat.devtools.lsp4ij", "0.11.0")
|
|
25
28
|
pluginVerifier()
|
|
26
29
|
zipSigner()
|
|
27
30
|
}
|
|
28
31
|
|
|
29
|
-
// LSP4IJ
|
|
30
|
-
compileOnly("com.redhat.devtools.intellij:lsp4ij:0.13.0")
|
|
31
|
-
// Eclipse LSP4J (LSP4IJ's dependency)
|
|
32
|
+
// Eclipse LSP4J (LSP4IJ's transitive dependency, needed for LSP types)
|
|
32
33
|
compileOnly("org.eclipse.lsp4j:org.eclipse.lsp4j:0.23.1")
|
|
33
34
|
}
|
|
34
35
|
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
package com.mojeter.linthis.plugin
|
|
8
8
|
|
|
9
9
|
import com.intellij.openapi.project.Project
|
|
10
|
+
import com.mojeter.linthis.plugin.settings.LinthisSettings
|
|
10
11
|
import com.redhat.devtools.lsp4ij.server.ProcessStreamConnectionProvider
|
|
11
12
|
import java.io.File
|
|
12
13
|
|
|
@@ -31,8 +32,22 @@ class LinthisStreamConnectionProvider(private val project: Project) : ProcessStr
|
|
|
31
32
|
}
|
|
32
33
|
|
|
33
34
|
private fun buildCommand(): List<String> {
|
|
34
|
-
val
|
|
35
|
-
|
|
35
|
+
val settings = LinthisSettings.getInstance(project)
|
|
36
|
+
val linthisPath = if (settings.linthisPath.isNotBlank()) {
|
|
37
|
+
settings.linthisPath
|
|
38
|
+
} else {
|
|
39
|
+
findLinthisExecutable()
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
val commands = mutableListOf(linthisPath, "lsp")
|
|
43
|
+
|
|
44
|
+
// Add --use-plugin if configured
|
|
45
|
+
if (settings.usePlugin.isNotBlank()) {
|
|
46
|
+
commands.add("--use-plugin")
|
|
47
|
+
commands.add(settings.usePlugin)
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
return commands
|
|
36
51
|
}
|
|
37
52
|
|
|
38
53
|
/**
|
|
@@ -49,7 +49,7 @@ class LinthisFormatAction : AnAction(), DumbAware {
|
|
|
49
49
|
// Run linthis format
|
|
50
50
|
ApplicationManager.getApplication().executeOnPooledThread {
|
|
51
51
|
LOG.warn("Running format on file: ${file.path}")
|
|
52
|
-
val result = LinthisExecutor.format(file.path, project.basePath, settings.linthisPath)
|
|
52
|
+
val result = LinthisExecutor.format(file.path, project.basePath, settings.linthisPath, settings.usePlugin)
|
|
53
53
|
|
|
54
54
|
ApplicationManager.getApplication().invokeLater {
|
|
55
55
|
if (result.success) {
|
|
@@ -81,7 +81,7 @@ class LinthisDocumentListener : FileDocumentManagerListener {
|
|
|
81
81
|
LOG.warn("Running format on save for: ${file.path}")
|
|
82
82
|
|
|
83
83
|
// Format the file in-place (file is already saved to disk)
|
|
84
|
-
val result = LinthisExecutor.format(file.path, project.basePath, settings.linthisPath)
|
|
84
|
+
val result = LinthisExecutor.format(file.path, project.basePath, settings.linthisPath, settings.usePlugin)
|
|
85
85
|
|
|
86
86
|
if (result.success) {
|
|
87
87
|
LOG.warn("Format on save successful, reloading document")
|
|
@@ -28,6 +28,7 @@ class LinthisSettings : PersistentStateComponent<LinthisSettings.State> {
|
|
|
28
28
|
var lintOnSave: Boolean = true
|
|
29
29
|
var formatOnSave: Boolean = false
|
|
30
30
|
var linthisPath: String = ""
|
|
31
|
+
var usePlugin: String = ""
|
|
31
32
|
var additionalArgs: String = ""
|
|
32
33
|
}
|
|
33
34
|
|
|
@@ -53,6 +54,10 @@ class LinthisSettings : PersistentStateComponent<LinthisSettings.State> {
|
|
|
53
54
|
get() = myState.linthisPath
|
|
54
55
|
set(value) { myState.linthisPath = value }
|
|
55
56
|
|
|
57
|
+
var usePlugin: String
|
|
58
|
+
get() = myState.usePlugin
|
|
59
|
+
set(value) { myState.usePlugin = value }
|
|
60
|
+
|
|
56
61
|
var additionalArgs: String
|
|
57
62
|
get() = myState.additionalArgs
|
|
58
63
|
set(value) { myState.additionalArgs = value }
|