|
| 1 | +{ |
| 2 | + "$schema": "https://developer.microsoft.com/json-schemas/heft/v0/heft-plugin.schema.json", |
| 3 | + |
| 4 | + "taskPlugins": [ |
| 5 | + { |
| 6 | + "pluginName": "cargo-test-plugin", |
| 7 | + "entryPoint": "./lib/CargoTestPlugin", |
| 8 | + "optionsSchema": "./lib/schemas/cargo-test.schema.json", |
| 9 | + |
| 10 | + "parameterScope": "cargo-test", |
| 11 | + "parameters": [ |
| 12 | + { |
| 13 | + "longName": "--release", |
| 14 | + "parameterKind": "flag", |
| 15 | + "description": "Run cargo test in release mode." |
| 16 | + }, |
| 17 | + { |
| 18 | + "longName": "--workspace", |
| 19 | + "parameterKind": "flag", |
| 20 | + "description": "Run tests for all packages in the workspace." |
| 21 | + } |
| 22 | + ] |
| 23 | + }, |
| 24 | + { |
| 25 | + "pluginName": "cargo-build-plugin", |
| 26 | + "entryPoint": "./lib/CargoBuildPlugin", |
| 27 | + "optionsSchema": "./lib/schemas/cargo-build.schema.json", |
| 28 | + |
| 29 | + "parameterScope": "cargo-build", |
| 30 | + "parameters": [ |
| 31 | + { |
| 32 | + "longName": "--release", |
| 33 | + "parameterKind": "flag", |
| 34 | + "description": "Run cargo build in release mode." |
| 35 | + }, |
| 36 | + { |
| 37 | + "longName": "--workspace", |
| 38 | + "parameterKind": "flag", |
| 39 | + "description": "Build all packages in the workspace." |
| 40 | + } |
| 41 | + ] |
| 42 | + }, |
| 43 | + { |
| 44 | + "pluginName": "cargo-clippy-plugin", |
| 45 | + "entryPoint": "./lib/CargoClippyPlugin", |
| 46 | + "optionsSchema": "./lib/schemas/cargo-clippy.schema.json", |
| 47 | + |
| 48 | + "parameterScope": "cargo-clippy", |
| 49 | + "parameters": [ |
| 50 | + { |
| 51 | + "longName": "--release", |
| 52 | + "parameterKind": "flag", |
| 53 | + "description": "Run cargo clippy in release mode." |
| 54 | + }, |
| 55 | + { |
| 56 | + "longName": "--workspace", |
| 57 | + "parameterKind": "flag", |
| 58 | + "description": "Run clippy for all packages in the workspace." |
| 59 | + }, |
| 60 | + { |
| 61 | + "longName": "--fix", |
| 62 | + "parameterKind": "flag", |
| 63 | + "description": "Automatically apply suggested fixes." |
| 64 | + }, |
| 65 | + { |
| 66 | + "longName": "--warnings-as-errors", |
| 67 | + "parameterKind": "flag", |
| 68 | + "description": "Treat warnings as errors." |
| 69 | + } |
| 70 | + ] |
| 71 | + }, |
| 72 | + { |
| 73 | + "pluginName": "cargo-fmt-plugin", |
| 74 | + "entryPoint": "./lib/CargoFmtPlugin", |
| 75 | + "optionsSchema": "./lib/schemas/cargo-fmt.schema.json", |
| 76 | + |
| 77 | + "parameterScope": "cargo-fmt", |
| 78 | + "parameters": [ |
| 79 | + { |
| 80 | + "longName": "--workspace", |
| 81 | + "parameterKind": "flag", |
| 82 | + "description": "Format all packages in the workspace." |
| 83 | + }, |
| 84 | + { |
| 85 | + "longName": "--check", |
| 86 | + "parameterKind": "flag", |
| 87 | + "description": "Run in check mode (no files will be modified)." |
| 88 | + } |
| 89 | + ] |
| 90 | + }, |
| 91 | + { |
| 92 | + "pluginName": "cargo-lint-plugin", |
| 93 | + "entryPoint": "./lib/CargoLintPlugin", |
| 94 | + "optionsSchema": "./lib/schemas/cargo-lint.schema.json", |
| 95 | + |
| 96 | + "parameterScope": "cargo-lint", |
| 97 | + "parameters": [ |
| 98 | + { |
| 99 | + "longName": "--release", |
| 100 | + "parameterKind": "flag", |
| 101 | + "description": "Run cargo clippy in release mode." |
| 102 | + }, |
| 103 | + { |
| 104 | + "longName": "--workspace", |
| 105 | + "parameterKind": "flag", |
| 106 | + "description": "Lint all packages in the workspace." |
| 107 | + }, |
| 108 | + { |
| 109 | + "longName": "--warnings-as-errors", |
| 110 | + "parameterKind": "flag", |
| 111 | + "description": "Treat clippy warnings as errors." |
| 112 | + }, |
| 113 | + { |
| 114 | + "longName": "--skip-fmt", |
| 115 | + "parameterKind": "flag", |
| 116 | + "description": "Skip the cargo fmt check step." |
| 117 | + }, |
| 118 | + { |
| 119 | + "longName": "--skip-clippy", |
| 120 | + "parameterKind": "flag", |
| 121 | + "description": "Skip the cargo clippy step." |
| 122 | + } |
| 123 | + ] |
| 124 | + } |
| 125 | + ] |
| 126 | +} |
0 commit comments