diff --git a/CHANGELOG.md b/CHANGELOG.md index 0137cfd9..e2e5b152 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,8 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). #### [Unreleased](https://github.com/hougesen/mdsf/compare/v0.4.1...HEAD) +- feat: add metadata to plugin command schema [`68cc23a`](https://github.com/hougesen/mdsf/commit/68cc23a3b49c07d5de314492ad286155c126f90c) + #### [v0.4.1](https://github.com/hougesen/mdsf/compare/v0.4.0...v0.4.1) > 18 January 2025 diff --git a/codegen/src/tools.rs b/codegen/src/tools.rs index 06dce479..5801b1f9 100644 --- a/codegen/src/tools.rs +++ b/codegen/src/tools.rs @@ -4,38 +4,35 @@ use convert_case::{Case, Casing}; const INDENT: &str = " "; -#[derive(Debug, serde::Deserialize, schemars::JsonSchema, Hash)] +#[derive(Debug, serde::Deserialize, schemars::JsonSchema, Hash, Clone)] #[schemars(deny_unknown_fields)] -pub struct ToolTest { +pub struct ToolCommandTest { /// Codeblock language used when generating tests pub language: String, - pub command: String, - pub test_input: String, pub test_output: String, } -#[derive(Debug, serde::Deserialize, schemars::JsonSchema)] +#[derive(Debug, serde::Deserialize, schemars::JsonSchema, Clone)] #[schemars(deny_unknown_fields)] pub struct ToolCommand { - pub command: Vec, + pub arguments: Vec, #[expect(unused)] pub ignore_output: bool, #[expect(unused)] - pub description: String, + pub description: Option, #[expect(unused)] - pub homepage: String, + pub homepage: Option, - #[expect(unused)] - pub tests: Vec, + pub tests: Option>, } -#[derive(Debug, serde::Deserialize, schemars::JsonSchema)] +#[derive(Debug, serde::Deserialize, schemars::JsonSchema, Clone)] #[schemars(deny_unknown_fields)] pub struct Tool { #[expect(unused)] @@ -61,8 +58,6 @@ pub struct Tool { pub categories: std::collections::HashSet, pub languages: std::collections::HashSet, - - pub tests: Option>, } #[derive(Debug)] @@ -99,12 +94,14 @@ impl Tool { ) } - fn generate_test(&self, test: &ToolTest) -> (String, String) { + fn generate_test(&self, command: &str, test: &ToolCommandTest) -> (String, String) { let mut hasher = DefaultHasher::new(); + test.hash(&mut hasher); + let id = format!("{:x}", hasher.finish()); - let module_name = self.get_command_name(&test.command).to_case(Case::Snake); + let module_name = self.get_command_name(command).to_case(Case::Snake); let language = test.language.to_case(Case::Snake); @@ -140,17 +137,6 @@ impl Tool { fn generate(&self) -> Vec { let mut all_commands = Vec::new(); - let mut generated_tests: std::collections::HashMap> = - std::collections::HashMap::new(); - - if let Some(tests) = &self.tests { - for test in tests { - let (module, code) = self.generate_test(test); - - generated_tests.entry(module).or_default().push(code); - } - } - for (cmd, options) in &self.commands { let command_name = self.get_command_name(cmd); @@ -187,7 +173,7 @@ impl Tool { let mut args_includes_path = false; let string_args = options - .command + .arguments .iter() .map(|arg| { if arg == "$PATH" { @@ -218,15 +204,20 @@ impl Tool { let module_name = command_name.to_case(Case::Snake); - let tests = generated_tests - .remove(&module_name) + let mut tests = options + .tests + .clone() .unwrap_or_default() - .join("\n\n"); + .iter() + .map(|test| self.generate_test(cmd, test).1) + .collect::>(); let tests = if tests.is_empty() { String::new() } else { - format!("\n{tests}\n") + tests.sort_unstable(); + + format!("\n{}\n", tests.join("\n\n")) }; let code = format!( @@ -278,13 +269,11 @@ mod test_{module_name} {{{tests}}} if cmd.is_empty() { "" } else { ":" }, cmd ), - args: options.command.clone(), + args: options.arguments.clone(), binary: self.binary.clone(), }); } - assert!(generated_tests.is_empty()); - all_commands } } diff --git a/mdsf/src/tools/alejandra.rs b/mdsf/src/tools/alejandra.rs index 3d4c9ef3..51952260 100644 --- a/mdsf/src/tools/alejandra.rs +++ b/mdsf/src/tools/alejandra.rs @@ -34,7 +34,7 @@ pub fn run(file_path: &std::path::Path) -> Result<(bool, Option), MdsfEr #[cfg(test)] mod test_alejandra { #[test_with::executable(alejandra)] - fn test_alejandra_nix_7414a8a930f85473() { + fn test_alejandra_nix_f38bff8f20c2aa02() { let input = r#"{ lib, buildPythonPackage, fetchFromGitHub, redis }: diff --git a/mdsf/src/tools/auto_optional.rs b/mdsf/src/tools/auto_optional.rs index 1bc919e7..75a2c769 100644 --- a/mdsf/src/tools/auto_optional.rs +++ b/mdsf/src/tools/auto_optional.rs @@ -33,7 +33,7 @@ pub fn run(file_path: &std::path::Path) -> Result<(bool, Option), MdsfEr #[cfg(test)] mod test_auto_optional { #[test_with::executable(auto-optional)] - fn test_auto_optional_python_8164e93f38554b33() { + fn test_auto_optional_python_c43199b18f48026d() { let input = r#"def foo(bar: str = None): pass "#; diff --git a/mdsf/src/tools/autoflake.rs b/mdsf/src/tools/autoflake.rs index 4824665d..cc432972 100644 --- a/mdsf/src/tools/autoflake.rs +++ b/mdsf/src/tools/autoflake.rs @@ -35,7 +35,7 @@ pub fn run(file_path: &std::path::Path) -> Result<(bool, Option), MdsfEr #[cfg(test)] mod test_autoflake { #[test_with::executable(autoflake)] - fn test_autoflake_python_a7a00a63bb271a62() { + fn test_autoflake_python_27cfd9b948e80d7f() { let input = r#"import math import re import os diff --git a/mdsf/src/tools/autopep_8.rs b/mdsf/src/tools/autopep_8.rs index d31e4c88..6bc0de40 100644 --- a/mdsf/src/tools/autopep_8.rs +++ b/mdsf/src/tools/autopep_8.rs @@ -34,7 +34,7 @@ pub fn run(file_path: &std::path::Path) -> Result<(bool, Option), MdsfEr #[cfg(test)] mod test_autopep_8 { #[test_with::executable(autopep8)] - fn test_autopep_8_python_32e3f57971ad5635() { + fn test_autopep_8_python_a868b5ad9905fc3f() { let input = r#"def add( a: int , b:int)->int: return a+b"#; let output = r#"def add(a: int, b: int) -> int: return a+b "#; diff --git a/mdsf/src/tools/beautysh.rs b/mdsf/src/tools/beautysh.rs index db4dfa35..c230aacb 100644 --- a/mdsf/src/tools/beautysh.rs +++ b/mdsf/src/tools/beautysh.rs @@ -33,20 +33,20 @@ pub fn run(file_path: &std::path::Path) -> Result<(bool, Option), MdsfEr #[cfg(test)] mod test_beautysh { #[test_with::executable(beautysh)] - fn test_beautysh_shell_cb36b80a8b253f58() { - let input = r#"#!/bin/shell + fn test_beautysh_bash_a6831a7ad31bd0a6() { + let input = r#"#!/bin/bash add() { echo "$1" + "$2" } "#; - let output = r#"#!/bin/shell + let output = r#"#!/bin/bash add() { echo "$1" + "$2" } "#; - let file_ext = crate::fttype::get_file_extension("shell"); + let file_ext = crate::fttype::get_file_extension("bash"); let snippet = crate::execution::setup_snippet(input, &file_ext).expect("it to create a snippet file"); let result = crate::tools::beautysh::run(snippet.path()) @@ -57,20 +57,20 @@ add() { } #[test_with::executable(beautysh)] - fn test_beautysh_bash_256eb200f416406f() { - let input = r#"#!/bin/bash + fn test_beautysh_shell_f8c934ee37e2888() { + let input = r#"#!/bin/shell add() { echo "$1" + "$2" } "#; - let output = r#"#!/bin/bash + let output = r#"#!/bin/shell add() { echo "$1" + "$2" } "#; - let file_ext = crate::fttype::get_file_extension("bash"); + let file_ext = crate::fttype::get_file_extension("shell"); let snippet = crate::execution::setup_snippet(input, &file_ext).expect("it to create a snippet file"); let result = crate::tools::beautysh::run(snippet.path()) diff --git a/mdsf/src/tools/biome_format.rs b/mdsf/src/tools/biome_format.rs index 704e4596..39d6bf8c 100644 --- a/mdsf/src/tools/biome_format.rs +++ b/mdsf/src/tools/biome_format.rs @@ -39,23 +39,20 @@ pub fn run(file_path: &std::path::Path) -> Result<(bool, Option), MdsfEr #[cfg(test)] mod test_biome_format { #[test_with::executable(npx)] - fn test_biome_format_json_844b1c8732d73ac3() { + fn test_biome_format_javascript_4845e9b01c23667f() { let input = r#" - { - "key": "value", - "key2": [ - "value2", - "value3", - 1 - , null] - } - "#; - let output = r#"{ - "key": "value", - "key2": ["value2", "value3", 1, null] + async function asyncAddition( + a,b + ) { + return a+b + } + + "#; + let output = r#"async function asyncAddition(a, b) { + return a + b; } "#; - let file_ext = crate::fttype::get_file_extension("json"); + let file_ext = crate::fttype::get_file_extension("javascript"); let snippet = crate::execution::setup_snippet(input, &file_ext).expect("it to create a snippet file"); let result = crate::tools::biome_format::run(snippet.path()) @@ -66,20 +63,23 @@ mod test_biome_format { } #[test_with::executable(npx)] - fn test_biome_format_javascript_8a9233d85bad9eb0() { + fn test_biome_format_json_90a326e29048e3cd() { let input = r#" - async function asyncAddition( - a,b - ) { - return a+b - } - - "#; - let output = r#"async function asyncAddition(a, b) { - return a + b; + { + "key": "value", + "key2": [ + "value2", + "value3", + 1 + , null] + } + "#; + let output = r#"{ + "key": "value", + "key2": ["value2", "value3", 1, null] } "#; - let file_ext = crate::fttype::get_file_extension("javascript"); + let file_ext = crate::fttype::get_file_extension("json"); let snippet = crate::execution::setup_snippet(input, &file_ext).expect("it to create a snippet file"); let result = crate::tools::biome_format::run(snippet.path()) @@ -90,7 +90,7 @@ mod test_biome_format { } #[test_with::executable(npx)] - fn test_biome_format_typescript_5d686094d584dd57() { + fn test_biome_format_typescript_8154bfdbd3b72275() { let input = r#" async function asyncAddition( a:number,b:number diff --git a/mdsf/src/tools/black.rs b/mdsf/src/tools/black.rs index 78271167..e0388893 100644 --- a/mdsf/src/tools/black.rs +++ b/mdsf/src/tools/black.rs @@ -34,7 +34,7 @@ pub fn run(file_path: &std::path::Path) -> Result<(bool, Option), MdsfEr #[cfg(test)] mod test_black { #[test_with::executable(black)] - fn test_black_python_8156ff26fe126797() { + fn test_black_python_229ec2b01c2bfe3c() { let input = r#"def add( a: int , b:int)->int: return a+b"#; let output = r#"def add(a: int, b: int) -> int: return a + b diff --git a/mdsf/src/tools/blade_formatter.rs b/mdsf/src/tools/blade_formatter.rs index 03d36570..38b4e8f0 100644 --- a/mdsf/src/tools/blade_formatter.rs +++ b/mdsf/src/tools/blade_formatter.rs @@ -38,7 +38,7 @@ pub fn run(file_path: &std::path::Path) -> Result<(bool, Option), MdsfEr #[cfg(test)] mod test_blade_formatter { #[test_with::executable(npx)] - fn test_blade_formatter_blade_9d6620376a93202f() { + fn test_blade_formatter_blade_9ddeaf972bfb08c1() { let input = r#"@extends('frontend.layouts.app') @section('title') foo @endsection diff --git a/mdsf/src/tools/blue.rs b/mdsf/src/tools/blue.rs index 63728d36..0d96f8a0 100644 --- a/mdsf/src/tools/blue.rs +++ b/mdsf/src/tools/blue.rs @@ -34,7 +34,7 @@ pub fn run(file_path: &std::path::Path) -> Result<(bool, Option), MdsfEr #[cfg(test)] mod test_blue { #[test_with::executable(blue)] - fn test_blue_python_8156ff26fe126797() { + fn test_blue_python_229ec2b01c2bfe3c() { let input = r#"def add( a: int , b:int)->int: return a+b"#; let output = r#"def add(a: int, b: int) -> int: return a + b diff --git a/mdsf/src/tools/brunette.rs b/mdsf/src/tools/brunette.rs index 222f4d28..a3a4275e 100644 --- a/mdsf/src/tools/brunette.rs +++ b/mdsf/src/tools/brunette.rs @@ -34,7 +34,7 @@ pub fn run(file_path: &std::path::Path) -> Result<(bool, Option), MdsfEr #[cfg(test)] mod test_brunette { #[test_with::executable(brunette)] - fn test_brunette_python_8156ff26fe126797() { + fn test_brunette_python_229ec2b01c2bfe3c() { let input = r#"def add( a: int , b:int)->int: return a+b"#; let output = r#"def add(a: int, b: int) -> int: return a + b diff --git a/mdsf/src/tools/buf_format.rs b/mdsf/src/tools/buf_format.rs index 7d61f131..a9ea9131 100644 --- a/mdsf/src/tools/buf_format.rs +++ b/mdsf/src/tools/buf_format.rs @@ -39,7 +39,7 @@ pub fn run(file_path: &std::path::Path) -> Result<(bool, Option), MdsfEr #[cfg(test)] mod test_buf_format { #[test_with::executable(npx)] - fn test_buf_format_protobuf_a873b41888af5cc8() { + fn test_buf_format_protobuf_10af516c8a015ab5() { let input = r#"service SearchService { rpc Search (SearchRequest) returns (SearchResponse); }"#; diff --git a/mdsf/src/tools/cabal_format.rs b/mdsf/src/tools/cabal_format.rs index 4b8d7de8..9018e6f4 100644 --- a/mdsf/src/tools/cabal_format.rs +++ b/mdsf/src/tools/cabal_format.rs @@ -34,7 +34,7 @@ pub fn run(file_path: &std::path::Path) -> Result<(bool, Option), MdsfEr #[cfg(test)] mod test_cabal_format { #[test_with::executable(cabal)] - fn test_cabal_format_cabal_6118c31ea8b76f3b() { + fn test_cabal_format_cabal_38e9e2aad5619a6a() { let input = r#"cabal-version: 2.4 name: mdsf version: 0 diff --git a/mdsf/src/tools/clang_format.rs b/mdsf/src/tools/clang_format.rs index b889852c..65f8c99f 100644 --- a/mdsf/src/tools/clang_format.rs +++ b/mdsf/src/tools/clang_format.rs @@ -34,68 +34,7 @@ pub fn run(file_path: &std::path::Path) -> Result<(bool, Option), MdsfEr #[cfg(test)] mod test_clang_format { #[test_with::executable(clang-format)] - fn test_clang_format_java_56a62ce0f4293397() { - let input = r#"class HelloWorld { - public static void main(String[] args) { - System.out.println("Hello"); - System.out.println("World!"); - } -}"#; - let output = r#"class HelloWorld { - public static void main(String[] args) { - System.out.println("Hello"); - System.out.println("World!"); - } -}"#; - let file_ext = crate::fttype::get_file_extension("java"); - let snippet = - crate::execution::setup_snippet(input, &file_ext).expect("it to create a snippet file"); - let result = crate::tools::clang_format::run(snippet.path()) - .expect("it to be successful") - .1 - .expect("it to be some"); - assert_eq!(result, output); - } - - #[test_with::executable(clang-format)] - fn test_clang_format_protobuf_8967048ff2c45c73() { - let input = r#"service SearchService { - rpc Search (SearchRequest) returns (SearchResponse); - }"#; - let output = - r#"service SearchService { rpc Search(SearchRequest) returns (SearchResponse); }"#; - let file_ext = crate::fttype::get_file_extension("protobuf"); - let snippet = - crate::execution::setup_snippet(input, &file_ext).expect("it to create a snippet file"); - let result = crate::tools::clang_format::run(snippet.path()) - .expect("it to be successful") - .1 - .expect("it to be some"); - assert_eq!(result, output); - } - - #[test_with::executable(clang-format)] - fn test_clang_format_objective_c_77f568b4af5fdd33() { - let input = r#"int add(int a,int b){ - a - a ; - return a + b; - }"#; - let output = r#"int add(int a, int b) { - a - a; - return a + b; -}"#; - let file_ext = crate::fttype::get_file_extension("objective-c"); - let snippet = - crate::execution::setup_snippet(input, &file_ext).expect("it to create a snippet file"); - let result = crate::tools::clang_format::run(snippet.path()) - .expect("it to be successful") - .1 - .expect("it to be some"); - assert_eq!(result, output); - } - - #[test_with::executable(clang-format)] - fn test_clang_format_c_ebcda1b4a3453a22() { + fn test_clang_format_c_bb10810bd7d8a71() { let input = r#"int add(int a,int b){ a-b; return a + b; @@ -115,7 +54,7 @@ mod test_clang_format { } #[test_with::executable(clang-format)] - fn test_clang_format_cpp_aa26ef5d3b486fa3() { + fn test_clang_format_cpp_8a39c61364dbbe50() { let input = r#"int add(int a,int b){ a-b; return a + b; @@ -135,7 +74,7 @@ mod test_clang_format { } #[test_with::executable(clang-format)] - fn test_clang_format_csharp_4b24af46e6e7e5b1() { + fn test_clang_format_csharp_8ebf20c1ddcd1aeb() { let input = r#"namespace Mdsf { class Adder { public static int add(int a,int b) { @@ -163,7 +102,51 @@ class Adder { } #[test_with::executable(clang-format)] - fn test_clang_format_json_796eb2fbbe25c660() { + fn test_clang_format_java_c4fcc280a3a8aac0() { + let input = r#"class HelloWorld { + public static void main(String[] args) { + System.out.println("Hello"); + System.out.println("World!"); + } +}"#; + let output = r#"class HelloWorld { + public static void main(String[] args) { + System.out.println("Hello"); + System.out.println("World!"); + } +}"#; + let file_ext = crate::fttype::get_file_extension("java"); + let snippet = + crate::execution::setup_snippet(input, &file_ext).expect("it to create a snippet file"); + let result = crate::tools::clang_format::run(snippet.path()) + .expect("it to be successful") + .1 + .expect("it to be some"); + assert_eq!(result, output); + } + + #[test_with::executable(clang-format)] + fn test_clang_format_javascript_d6184d76490772e9() { + let input = r#" async function asyncAddition( a,b) { + a * b; + return a+b + } "#; + let output = r#"async function asyncAddition(a, b) { + a * b; + return a + b +}"#; + let file_ext = crate::fttype::get_file_extension("javascript"); + let snippet = + crate::execution::setup_snippet(input, &file_ext).expect("it to create a snippet file"); + let result = crate::tools::clang_format::run(snippet.path()) + .expect("it to be successful") + .1 + .expect("it to be some"); + assert_eq!(result, output); + } + + #[test_with::executable(clang-format)] + fn test_clang_format_json_574b008e140f1be6() { let input = r#" { "key": "value", "key2": ["value2", "value3", 1 , null] @@ -188,16 +171,33 @@ class Adder { } #[test_with::executable(clang-format)] - fn test_clang_format_javascript_f95471d07b1cc14a() { - let input = r#" async function asyncAddition( a,b) { - a * b; - return a+b - } "#; - let output = r#"async function asyncAddition(a, b) { - a * b; - return a + b + fn test_clang_format_objective_c_3d56455568c6e83f() { + let input = r#"int add(int a,int b){ + a - a ; + return a + b; + }"#; + let output = r#"int add(int a, int b) { + a - a; + return a + b; }"#; - let file_ext = crate::fttype::get_file_extension("javascript"); + let file_ext = crate::fttype::get_file_extension("objective-c"); + let snippet = + crate::execution::setup_snippet(input, &file_ext).expect("it to create a snippet file"); + let result = crate::tools::clang_format::run(snippet.path()) + .expect("it to be successful") + .1 + .expect("it to be some"); + assert_eq!(result, output); + } + + #[test_with::executable(clang-format)] + fn test_clang_format_protobuf_7be6def196942f83() { + let input = r#"service SearchService { + rpc Search (SearchRequest) returns (SearchResponse); + }"#; + let output = + r#"service SearchService { rpc Search(SearchRequest) returns (SearchResponse); }"#; + let file_ext = crate::fttype::get_file_extension("protobuf"); let snippet = crate::execution::setup_snippet(input, &file_ext).expect("it to create a snippet file"); let result = crate::tools::clang_format::run(snippet.path()) diff --git a/mdsf/src/tools/cljstyle.rs b/mdsf/src/tools/cljstyle.rs index 07af8b07..8fa027d8 100644 --- a/mdsf/src/tools/cljstyle.rs +++ b/mdsf/src/tools/cljstyle.rs @@ -34,7 +34,7 @@ pub fn run(file_path: &std::path::Path) -> Result<(bool, Option), MdsfEr #[cfg(test)] mod test_cljstyle { #[test_with::executable(cljstyle)] - fn test_cljstyle_clojure_26e7059ba406f68a() { + fn test_cljstyle_clojure_92fbb2f42ebeeb2e() { let input = r#"( ns foo.bar.baz "some doc" (:require (foo.bar [abc :as abc] diff --git a/mdsf/src/tools/crystal_format.rs b/mdsf/src/tools/crystal_format.rs index a7de9c43..32bbb234 100644 --- a/mdsf/src/tools/crystal_format.rs +++ b/mdsf/src/tools/crystal_format.rs @@ -35,7 +35,7 @@ pub fn run(file_path: &std::path::Path) -> Result<(bool, Option), MdsfEr #[cfg(test)] mod test_crystal_format { #[test_with::executable(crystal)] - fn test_crystal_format_crystal_b07d827cb202b868() { + fn test_crystal_format_crystal_e0f2d532cd984bee() { let input = r#"def add(a, b) return a + b end"#; let output = r#"def add(a, b) return a + b diff --git a/mdsf/src/tools/csharpier.rs b/mdsf/src/tools/csharpier.rs index 7789933c..02158772 100644 --- a/mdsf/src/tools/csharpier.rs +++ b/mdsf/src/tools/csharpier.rs @@ -34,7 +34,7 @@ pub fn run(file_path: &std::path::Path) -> Result<(bool, Option), MdsfEr #[cfg(test)] mod test_csharpier { #[test_with::executable(dotnet)] - fn test_csharpier_csharp_257c6494c2fdb601() { + fn test_csharpier_csharp_a79aa94ad2d86b6c() { let input = r#"namespace Mdsf { class Adder { public static int add(int a,int b) { diff --git a/mdsf/src/tools/css_beautify.rs b/mdsf/src/tools/css_beautify.rs index ccfa747f..022c6016 100644 --- a/mdsf/src/tools/css_beautify.rs +++ b/mdsf/src/tools/css_beautify.rs @@ -41,7 +41,7 @@ pub fn run(file_path: &std::path::Path) -> Result<(bool, Option), MdsfEr #[cfg(test)] mod test_css_beautify { #[test_with::executable(npx)] - fn test_css_beautify_css_aab2b2c4580e23ff() { + fn test_css_beautify_css_5ad41f26f69aea3e() { let input = r#"h1 {color: blue;} p {color: red;}"#; let output = r#"h1 { color: blue; diff --git a/mdsf/src/tools/csscomb.rs b/mdsf/src/tools/csscomb.rs index e925fe21..7c354e60 100644 --- a/mdsf/src/tools/csscomb.rs +++ b/mdsf/src/tools/csscomb.rs @@ -38,7 +38,7 @@ pub fn run(file_path: &std::path::Path) -> Result<(bool, Option), MdsfEr #[cfg(test)] mod test_csscomb { #[test_with::executable(npx)] - fn test_csscomb_css_b8e303ad59d84518() { + fn test_csscomb_css_bed67a883a4a1aae() { let input = r#"h1 {color: blue;} p {color: red;}"#; let output = r#"h1 diff --git a/mdsf/src/tools/dart_format.rs b/mdsf/src/tools/dart_format.rs index 00a0ec4f..06ca03b1 100644 --- a/mdsf/src/tools/dart_format.rs +++ b/mdsf/src/tools/dart_format.rs @@ -34,7 +34,7 @@ pub fn run(file_path: &std::path::Path) -> Result<(bool, Option), MdsfEr #[cfg(test)] mod test_dart_format { #[test_with::executable(dart)] - fn test_dart_format_dart_495c80b98b2895d1() { + fn test_dart_format_dart_1e68d7619b4be391() { let input = r#"class Adder { int add(int a, int b) { return a + b; } } "#; let output = r#"class Adder { int add(int a, int b) { diff --git a/mdsf/src/tools/deno_fmt.rs b/mdsf/src/tools/deno_fmt.rs index 315e5c24..6f658a8b 100644 --- a/mdsf/src/tools/deno_fmt.rs +++ b/mdsf/src/tools/deno_fmt.rs @@ -35,7 +35,7 @@ pub fn run(file_path: &std::path::Path) -> Result<(bool, Option), MdsfEr #[cfg(test)] mod test_deno_fmt { #[test_with::executable(deno)] - fn test_deno_fmt_javascript_6af09f449da7b713() { + fn test_deno_fmt_javascript_d7445fa122fcd5cc() { let input = r#" async function asyncAddition(a,b){ return a+b @@ -57,30 +57,7 @@ mod test_deno_fmt { } #[test_with::executable(deno)] - fn test_deno_fmt_typescript_ffa7d1d3b3f83061() { - let input = r#" - async function asyncAddition( a: number,b:number ) :Promise< number> - { - return a+b - } - - "#; - let output = r#"async function asyncAddition(a: number, b: number): Promise { - return a + b; -} -"#; - let file_ext = crate::fttype::get_file_extension("typescript"); - let snippet = - crate::execution::setup_snippet(input, &file_ext).expect("it to create a snippet file"); - let result = crate::tools::deno_fmt::run(snippet.path()) - .expect("it to be successful") - .1 - .expect("it to be some"); - assert_eq!(result, output); - } - - #[test_with::executable(deno)] - fn test_deno_fmt_json_b43d30c1ef02ddc5() { + fn test_deno_fmt_json_d426a9ade74002d2() { let input = r#" { "key": "value", @@ -110,4 +87,27 @@ mod test_deno_fmt { .expect("it to be some"); assert_eq!(result, output); } + + #[test_with::executable(deno)] + fn test_deno_fmt_typescript_857476c85438ce71() { + let input = r#" + async function asyncAddition( a: number,b:number ) :Promise< number> + { + return a+b + } + + "#; + let output = r#"async function asyncAddition(a: number, b: number): Promise { + return a + b; +} +"#; + let file_ext = crate::fttype::get_file_extension("typescript"); + let snippet = + crate::execution::setup_snippet(input, &file_ext).expect("it to create a snippet file"); + let result = crate::tools::deno_fmt::run(snippet.path()) + .expect("it to be successful") + .1 + .expect("it to be some"); + assert_eq!(result, output); + } } diff --git a/mdsf/src/tools/efmt.rs b/mdsf/src/tools/efmt.rs index 45dbcadc..5831ca75 100644 --- a/mdsf/src/tools/efmt.rs +++ b/mdsf/src/tools/efmt.rs @@ -34,7 +34,7 @@ pub fn run(file_path: &std::path::Path) -> Result<(bool, Option), MdsfEr #[cfg(test)] mod test_efmt { #[test_with::executable(efmt)] - fn test_efmt_erlang_cf3d86b4ee700703() { + fn test_efmt_erlang_d4d88e49805fdb39() { let input = r#"what_is(Erlang) -> case Erlang of movie->[hello(mike,joe,robert),credits]; language->formatting_arguments end ."#; diff --git a/mdsf/src/tools/elm_format.rs b/mdsf/src/tools/elm_format.rs index 897104c2..0afa5a36 100644 --- a/mdsf/src/tools/elm_format.rs +++ b/mdsf/src/tools/elm_format.rs @@ -39,7 +39,7 @@ pub fn run(file_path: &std::path::Path) -> Result<(bool, Option), MdsfEr #[cfg(test)] mod test_elm_format { #[test_with::executable(npx)] - fn test_elm_format_elm_9f391a2c84be9c5d() { + fn test_elm_format_elm_4e120501af0177c4() { let input = r#"import Html exposing (text) diff --git a/mdsf/src/tools/erlfmt.rs b/mdsf/src/tools/erlfmt.rs index e85224b6..35abcff4 100644 --- a/mdsf/src/tools/erlfmt.rs +++ b/mdsf/src/tools/erlfmt.rs @@ -34,7 +34,7 @@ pub fn run(file_path: &std::path::Path) -> Result<(bool, Option), MdsfEr #[cfg(test)] mod test_erlfmt { #[test_with::executable(erlfmt)] - fn test_erlfmt_erlang_45509eadfba807b7() { + fn test_erlfmt_erlang_61f4ac26ad7484d2() { let input = r#"what_is(Erlang) -> case Erlang of movie->[hello(mike,joe,robert),credits]; language->formatting_arguments end ."#; diff --git a/mdsf/src/tools/fantomas.rs b/mdsf/src/tools/fantomas.rs index ea55cfe6..ebdde519 100644 --- a/mdsf/src/tools/fantomas.rs +++ b/mdsf/src/tools/fantomas.rs @@ -33,7 +33,7 @@ pub fn run(file_path: &std::path::Path) -> Result<(bool, Option), MdsfEr #[cfg(test)] mod test_fantomas { #[test_with::executable(fantomas)] - fn test_fantomas_fsharp_d8e0eb8709917550() { + fn test_fantomas_fsharp_f3cb7f290d0660d3() { let input = r#" let add a b = a + b "#; diff --git a/mdsf/src/tools/fourmolu.rs b/mdsf/src/tools/fourmolu.rs index 7dea3c2f..ea1c3f2a 100644 --- a/mdsf/src/tools/fourmolu.rs +++ b/mdsf/src/tools/fourmolu.rs @@ -34,7 +34,7 @@ pub fn run(file_path: &std::path::Path) -> Result<(bool, Option), MdsfEr #[cfg(test)] mod test_fourmolu { #[test_with::executable(fourmolu)] - fn test_fourmolu_haskell_17266c3830e2881f() { + fn test_fourmolu_haskell_718612a8aa064d19() { let input = r#" addNumbers::Int->Int->Int addNumbers a b = do diff --git a/mdsf/src/tools/fprettify.rs b/mdsf/src/tools/fprettify.rs index df8157cb..5ca007a1 100644 --- a/mdsf/src/tools/fprettify.rs +++ b/mdsf/src/tools/fprettify.rs @@ -33,7 +33,7 @@ pub fn run(file_path: &std::path::Path) -> Result<(bool, Option), MdsfEr #[cfg(test)] mod test_fprettify { #[test_with::executable(fprettify)] - fn test_fprettify_fortran_7ba994e3a8ec6fb9() { + fn test_fprettify_fortran_e500b54621ef1a7a() { let input = r#"program demo integer :: endif,if,elseif integer,DIMENSION(2) :: function diff --git a/mdsf/src/tools/gleam_format.rs b/mdsf/src/tools/gleam_format.rs index 0da8fcfa..04490c1e 100644 --- a/mdsf/src/tools/gleam_format.rs +++ b/mdsf/src/tools/gleam_format.rs @@ -34,7 +34,7 @@ pub fn run(file_path: &std::path::Path) -> Result<(bool, Option), MdsfEr #[cfg(test)] mod test_gleam_format { #[test_with::executable(gleam)] - fn test_gleam_format_gleam_9c5e4d5beea89da5() { + fn test_gleam_format_gleam_d23656d11ef3a81d() { let input = r#"pub fn add(a:Int,b:Int)->Int{a+b}"#; let output = r#"pub fn add(a: Int, b: Int) -> Int { a + b diff --git a/mdsf/src/tools/gofmt.rs b/mdsf/src/tools/gofmt.rs index a62ad225..392b200e 100644 --- a/mdsf/src/tools/gofmt.rs +++ b/mdsf/src/tools/gofmt.rs @@ -34,7 +34,7 @@ pub fn run(file_path: &std::path::Path) -> Result<(bool, Option), MdsfEr #[cfg(test)] mod test_gofmt { #[test_with::executable(gofmt)] - fn test_gofmt_go_55cb48704ff9049a() { + fn test_gofmt_go_3b56f602fe22977b() { let input = r#"package main func add(a int , b int ) int { diff --git a/mdsf/src/tools/gofumpt.rs b/mdsf/src/tools/gofumpt.rs index 9254e9e5..bbff2c7a 100644 --- a/mdsf/src/tools/gofumpt.rs +++ b/mdsf/src/tools/gofumpt.rs @@ -34,7 +34,7 @@ pub fn run(file_path: &std::path::Path) -> Result<(bool, Option), MdsfEr #[cfg(test)] mod test_gofumpt { #[test_with::executable(gofumpt)] - fn test_gofumpt_go_55cb48704ff9049a() { + fn test_gofumpt_go_3b56f602fe22977b() { let input = r#"package main func add(a int , b int ) int { diff --git a/mdsf/src/tools/goimports.rs b/mdsf/src/tools/goimports.rs index 68ec3eaa..a12814c3 100644 --- a/mdsf/src/tools/goimports.rs +++ b/mdsf/src/tools/goimports.rs @@ -34,7 +34,7 @@ pub fn run(file_path: &std::path::Path) -> Result<(bool, Option), MdsfEr #[cfg(test)] mod test_goimports { #[test_with::executable(goimports)] - fn test_goimports_go_5a6f7904f97fef89() { + fn test_goimports_go_4af43f410d7fff15() { let input = r#"package main import ( diff --git a/mdsf/src/tools/golines.rs b/mdsf/src/tools/golines.rs index 1e73d9e1..84a175e4 100644 --- a/mdsf/src/tools/golines.rs +++ b/mdsf/src/tools/golines.rs @@ -34,7 +34,7 @@ pub fn run(file_path: &std::path::Path) -> Result<(bool, Option), MdsfEr #[cfg(test)] mod test_golines { #[test_with::executable(golines)] - fn test_golines_go_5a6f7904f97fef89() { + fn test_golines_go_4af43f410d7fff15() { let input = r#"package main import ( diff --git a/mdsf/src/tools/google_java_format.rs b/mdsf/src/tools/google_java_format.rs index 44c1f645..713fe51d 100644 --- a/mdsf/src/tools/google_java_format.rs +++ b/mdsf/src/tools/google_java_format.rs @@ -34,7 +34,7 @@ pub fn run(file_path: &std::path::Path) -> Result<(bool, Option), MdsfEr #[cfg(test)] mod test_google_java_format { #[test_with::executable(google-java-format)] - fn test_google_java_format_java_a4b164e8d054f296() { + fn test_google_java_format_java_9d3ffaedafc37e65() { let input = r#"class HelloWorld { public static void main(String[] args) { System.out.println("Hello"); diff --git a/mdsf/src/tools/grain_format.rs b/mdsf/src/tools/grain_format.rs index 3468ea7d..9e9fd104 100644 --- a/mdsf/src/tools/grain_format.rs +++ b/mdsf/src/tools/grain_format.rs @@ -36,7 +36,7 @@ pub fn run(file_path: &std::path::Path) -> Result<(bool, Option), MdsfEr #[cfg(test)] mod test_grain_format { #[test_with::executable(grain)] - fn test_grain_format_grain_e559d211c80bb5e9() { + fn test_grain_format_grain_68b6e8ad56bbb476() { let input = r#"module Hello print("Hello, world!") diff --git a/mdsf/src/tools/hindent.rs b/mdsf/src/tools/hindent.rs index 87868054..6a573583 100644 --- a/mdsf/src/tools/hindent.rs +++ b/mdsf/src/tools/hindent.rs @@ -33,7 +33,7 @@ pub fn run(file_path: &std::path::Path) -> Result<(bool, Option), MdsfEr #[cfg(test)] mod test_hindent { #[test_with::executable(hindent)] - fn test_hindent_haskell_ac29c367ac432382() { + fn test_hindent_haskell_c34a44cf19c5fdd7() { let input = r#" addNumbers::Int->Int->Int addNumbers a b = do diff --git a/mdsf/src/tools/html_beautify.rs b/mdsf/src/tools/html_beautify.rs index f457d5de..bea94b94 100644 --- a/mdsf/src/tools/html_beautify.rs +++ b/mdsf/src/tools/html_beautify.rs @@ -41,7 +41,7 @@ pub fn run(file_path: &std::path::Path) -> Result<(bool, Option), MdsfEr #[cfg(test)] mod test_html_beautify { #[test_with::executable(npx)] - fn test_html_beautify_html_c5f5b2c7987f4c83() { + fn test_html_beautify_html_63850f31f2ef5caf() { let input = r#"

Mads was here diff --git a/mdsf/src/tools/htmlbeautifier.rs b/mdsf/src/tools/htmlbeautifier.rs index eae9544d..87312068 100644 --- a/mdsf/src/tools/htmlbeautifier.rs +++ b/mdsf/src/tools/htmlbeautifier.rs @@ -33,7 +33,7 @@ pub fn run(file_path: &std::path::Path) -> Result<(bool, Option), MdsfEr #[cfg(test)] mod test_htmlbeautifier { #[test_with::executable(htmlbeautifier)] - fn test_htmlbeautifier_html_14e9e2f8775d3c5f() { + fn test_htmlbeautifier_html_7e86d833d3fbf4e3() { let input = r#"

Mads was here diff --git a/mdsf/src/tools/isort.rs b/mdsf/src/tools/isort.rs index 5b936346..fbe71c1c 100644 --- a/mdsf/src/tools/isort.rs +++ b/mdsf/src/tools/isort.rs @@ -34,7 +34,7 @@ pub fn run(file_path: &std::path::Path) -> Result<(bool, Option), MdsfEr #[cfg(test)] mod test_isort { #[test_with::executable(isort)] - fn test_isort_python_7be36b03fc0282f6() { + fn test_isort_python_e2ac93e0195d9bc1() { let input = r#"from q import d import b import a diff --git a/mdsf/src/tools/juliaformatter_jl.rs b/mdsf/src/tools/juliaformatter_jl.rs index 765c2e03..c49ae025 100644 --- a/mdsf/src/tools/juliaformatter_jl.rs +++ b/mdsf/src/tools/juliaformatter_jl.rs @@ -35,7 +35,7 @@ pub fn run(file_path: &std::path::Path) -> Result<(bool, Option), MdsfEr #[cfg(test)] mod test_juliaformatter_jl { #[test_with::executable(julia)] - fn test_juliaformatter_jl_julia_8a1deea7a4602ffc() { + fn test_juliaformatter_jl_julia_6775294e3dc9244() { let input = r#"function add( a:: Int32, b::Int32 ) c = a+ b return c diff --git a/mdsf/src/tools/just.rs b/mdsf/src/tools/just.rs index 4bd5a755..4d4746f0 100644 --- a/mdsf/src/tools/just.rs +++ b/mdsf/src/tools/just.rs @@ -36,7 +36,7 @@ pub fn run(file_path: &std::path::Path) -> Result<(bool, Option), MdsfEr #[cfg(test)] mod test_just { #[test_with::executable(just)] - fn test_just_just_9b41f21e8fb1339f() { + fn test_just_just_ef70afaf3ede68b9() { let input = r#"build: cargo build cargo build --release diff --git a/mdsf/src/tools/kcl_fmt.rs b/mdsf/src/tools/kcl_fmt.rs index 89b451c7..dfc4966a 100644 --- a/mdsf/src/tools/kcl_fmt.rs +++ b/mdsf/src/tools/kcl_fmt.rs @@ -34,7 +34,7 @@ pub fn run(file_path: &std::path::Path) -> Result<(bool, Option), MdsfEr #[cfg(test)] mod test_kcl_fmt { #[test_with::executable(kcl)] - fn test_kcl_fmt_kcl_3716a11e97bc80e() { + fn test_kcl_fmt_kcl_83078615f65197d1() { let input = r#"apiVersion = "apps/v1" kind = "Deployment" metadata = { diff --git a/mdsf/src/tools/ktfmt.rs b/mdsf/src/tools/ktfmt.rs index e98b8871..021ab91d 100644 --- a/mdsf/src/tools/ktfmt.rs +++ b/mdsf/src/tools/ktfmt.rs @@ -35,7 +35,7 @@ pub fn run(file_path: &std::path::Path) -> Result<(bool, Option), MdsfEr #[cfg(test)] mod test_ktfmt { #[test_with::executable(ktfmt)] - fn test_ktfmt_kotlin_7d325e7993e3e956() { + fn test_ktfmt_kotlin_396c64cb15f3d642() { let input = r#" fun add(a:Int ,b:Int ):Int { return a + b } diff --git a/mdsf/src/tools/ktlint.rs b/mdsf/src/tools/ktlint.rs index dc7f3834..d91d3f40 100644 --- a/mdsf/src/tools/ktlint.rs +++ b/mdsf/src/tools/ktlint.rs @@ -35,7 +35,7 @@ pub fn run(file_path: &std::path::Path) -> Result<(bool, Option), MdsfEr #[cfg(test)] mod test_ktlint { #[test_with::executable(ktlint)] - fn test_ktlint_kotlin_a260d95cd982ccac() { + fn test_ktlint_kotlin_65d99b8b0b9bf8e1() { let input = r#" fun add(a:Int ,b:Int ):Int { return a + b } diff --git a/mdsf/src/tools/luaformatter.rs b/mdsf/src/tools/luaformatter.rs index 739ed5b3..26b9ee75 100644 --- a/mdsf/src/tools/luaformatter.rs +++ b/mdsf/src/tools/luaformatter.rs @@ -34,7 +34,7 @@ pub fn run(file_path: &std::path::Path) -> Result<(bool, Option), MdsfEr #[cfg(test)] mod test_luaformatter { #[test_with::executable(lua-format)] - fn test_luaformatter_lua_acabd7c8fbe45244() { + fn test_luaformatter_lua_df0e81b2c9a1a835() { let input = r#" local function add ( a , b diff --git a/mdsf/src/tools/markdownfmt.rs b/mdsf/src/tools/markdownfmt.rs index 0471cf52..12f3ac45 100644 --- a/mdsf/src/tools/markdownfmt.rs +++ b/mdsf/src/tools/markdownfmt.rs @@ -34,7 +34,7 @@ pub fn run(file_path: &std::path::Path) -> Result<(bool, Option), MdsfEr #[cfg(test)] mod test_markdownfmt { #[test_with::executable(markdownfmt)] - fn test_markdownfmt_markdown_671fb185b2d76b82() { + fn test_markdownfmt_markdown_9b495bc15a7833bc() { let input = r#"# hello w world this text has weird spacing diff --git a/mdsf/src/tools/mix_format.rs b/mdsf/src/tools/mix_format.rs index 989495ee..4a2f4ca6 100644 --- a/mdsf/src/tools/mix_format.rs +++ b/mdsf/src/tools/mix_format.rs @@ -34,7 +34,7 @@ pub fn run(file_path: &std::path::Path) -> Result<(bool, Option), MdsfEr #[cfg(test)] mod test_mix_format { #[test_with::executable(mix)] - fn test_mix_format_elixir_54691abaa0a6996f() { + fn test_mix_format_elixir_ab535c627dfb140() { let input = r#" def add(a , b ) do a + b end diff --git a/mdsf/src/tools/nimpretty.rs b/mdsf/src/tools/nimpretty.rs index 74344ed0..b30ca0b0 100644 --- a/mdsf/src/tools/nimpretty.rs +++ b/mdsf/src/tools/nimpretty.rs @@ -33,7 +33,7 @@ pub fn run(file_path: &std::path::Path) -> Result<(bool, Option), MdsfEr #[cfg(test)] mod test_nimpretty { #[test_with::executable(nimpretty)] - fn test_nimpretty_nim_8bff7df4f0c46bbe() { + fn test_nimpretty_nim_2c41c79e1d74972a() { let input = r#"proc add( a :int , b:int ) : int = return a + b "#; let output = r#"proc add(a: int, b: int): int = diff --git a/mdsf/src/tools/nixfmt.rs b/mdsf/src/tools/nixfmt.rs index 94639f77..12073068 100644 --- a/mdsf/src/tools/nixfmt.rs +++ b/mdsf/src/tools/nixfmt.rs @@ -33,7 +33,7 @@ pub fn run(file_path: &std::path::Path) -> Result<(bool, Option), MdsfEr #[cfg(test)] mod test_nixfmt { #[test_with::executable(nixfmt)] - fn test_nixfmt_nix_fe6b7a2ad3c26e53() { + fn test_nixfmt_nix_c01c4e4dcc81ab28() { let input = r#"{ lib, buildPythonPackage, fetchFromGitHub, redis }: buildPythonPackage rec { diff --git a/mdsf/src/tools/nixpkgs_fmt.rs b/mdsf/src/tools/nixpkgs_fmt.rs index 92f3c7a2..3b29f484 100644 --- a/mdsf/src/tools/nixpkgs_fmt.rs +++ b/mdsf/src/tools/nixpkgs_fmt.rs @@ -33,7 +33,7 @@ pub fn run(file_path: &std::path::Path) -> Result<(bool, Option), MdsfEr #[cfg(test)] mod test_nixpkgs_fmt { #[test_with::executable(nixpkgs-fmt)] - fn test_nixpkgs_fmt_nix_80e79e7e2446f823() { + fn test_nixpkgs_fmt_nix_36a22e30dae799c5() { let input = r#"{ lib, buildPythonPackage, fetchFromGitHub, redis }: diff --git a/mdsf/src/tools/npm_groovy_lint.rs b/mdsf/src/tools/npm_groovy_lint.rs index 68652dfc..b70b8099 100644 --- a/mdsf/src/tools/npm_groovy_lint.rs +++ b/mdsf/src/tools/npm_groovy_lint.rs @@ -38,7 +38,7 @@ pub fn run(file_path: &std::path::Path) -> Result<(bool, Option), MdsfEr #[cfg(test)] mod test_npm_groovy_lint { #[test_with::executable(npx)] - fn test_npm_groovy_lint_groovy_9484173186968a23() { + fn test_npm_groovy_lint_groovy_2dc2be09d8013576() { let input = r#" def add(a, b) { return a + b } diff --git a/mdsf/src/tools/ocamlformat.rs b/mdsf/src/tools/ocamlformat.rs index 45346647..aac6418a 100644 --- a/mdsf/src/tools/ocamlformat.rs +++ b/mdsf/src/tools/ocamlformat.rs @@ -36,7 +36,7 @@ pub fn run(file_path: &std::path::Path) -> Result<(bool, Option), MdsfEr #[cfg(test)] mod test_ocamlformat { #[test_with::executable(ocamlformat)] - fn test_ocamlformat_ocaml_a4abcc4d5c3404c0() { + fn test_ocamlformat_ocaml_5f599d285848218() { let input = r#" let add a b = a + b "#; diff --git a/mdsf/src/tools/ocp_indent.rs b/mdsf/src/tools/ocp_indent.rs index fc7206c3..efa6e6ba 100644 --- a/mdsf/src/tools/ocp_indent.rs +++ b/mdsf/src/tools/ocp_indent.rs @@ -34,7 +34,7 @@ pub fn run(file_path: &std::path::Path) -> Result<(bool, Option), MdsfEr #[cfg(test)] mod test_ocp_indent { #[test_with::executable(ocp-indent)] - fn test_ocp_indent_ocaml_5904945f3cb9a254() { + fn test_ocp_indent_ocaml_87a2cd7557f7a90b() { let input = r#" let add a b = a + b diff --git a/mdsf/src/tools/ormolu.rs b/mdsf/src/tools/ormolu.rs index 9cd5f445..ab06cb59 100644 --- a/mdsf/src/tools/ormolu.rs +++ b/mdsf/src/tools/ormolu.rs @@ -35,7 +35,7 @@ pub fn run(file_path: &std::path::Path) -> Result<(bool, Option), MdsfEr #[cfg(test)] mod test_ormolu { #[test_with::executable(ormolu)] - fn test_ormolu_haskell_ac29c367ac432382() { + fn test_ormolu_haskell_c34a44cf19c5fdd7() { let input = r#" addNumbers::Int->Int->Int addNumbers a b = do diff --git a/mdsf/src/tools/prettier.rs b/mdsf/src/tools/prettier.rs index dede11b8..1743c119 100644 --- a/mdsf/src/tools/prettier.rs +++ b/mdsf/src/tools/prettier.rs @@ -42,23 +42,20 @@ pub fn run(file_path: &std::path::Path) -> Result<(bool, Option), MdsfEr #[cfg(test)] mod test_prettier { #[test_with::executable(npx)] - fn test_prettier_json_f5f65734d7c4115b() { + fn test_prettier_javascript_f38217e7df306e3e() { let input = r#" - { - "key": "value", - "key2": [ - "value2", - "value3", - 1 - , null] - } - "#; - let output = r#"{ - "key": "value", - "key2": ["value2", "value3", 1, null] + async function asyncAddition( + a,b + ) { + return a+b + } + + "#; + let output = r#"async function asyncAddition(a, b) { + return a + b; } "#; - let file_ext = crate::fttype::get_file_extension("json"); + let file_ext = crate::fttype::get_file_extension("javascript"); let snippet = crate::execution::setup_snippet(input, &file_ext).expect("it to create a snippet file"); let result = crate::tools::prettier::run(snippet.path()) @@ -69,20 +66,23 @@ mod test_prettier { } #[test_with::executable(npx)] - fn test_prettier_javascript_9a43c053e0ec1c29() { + fn test_prettier_json_8e1e8ed2224fd439() { let input = r#" - async function asyncAddition( - a,b - ) { - return a+b - } - - "#; - let output = r#"async function asyncAddition(a, b) { - return a + b; + { + "key": "value", + "key2": [ + "value2", + "value3", + 1 + , null] + } + "#; + let output = r#"{ + "key": "value", + "key2": ["value2", "value3", 1, null] } "#; - let file_ext = crate::fttype::get_file_extension("javascript"); + let file_ext = crate::fttype::get_file_extension("json"); let snippet = crate::execution::setup_snippet(input, &file_ext).expect("it to create a snippet file"); let result = crate::tools::prettier::run(snippet.path()) diff --git a/mdsf/src/tools/prisma_format.rs b/mdsf/src/tools/prisma_format.rs index ef9ea6c6..9672a210 100644 --- a/mdsf/src/tools/prisma_format.rs +++ b/mdsf/src/tools/prisma_format.rs @@ -39,7 +39,7 @@ pub fn run(file_path: &std::path::Path) -> Result<(bool, Option), MdsfEr #[cfg(test)] mod test_prisma_format { #[test_with::executable(npx)] - fn test_prisma_format_schema_f14c422420ff523a() { + fn test_prisma_format_schema_b6e70b1b6bb7472e() { let input = r#"datasource db { provider = "postgresql" url = env("DATABASE_URL") diff --git a/mdsf/src/tools/purs_tidy.rs b/mdsf/src/tools/purs_tidy.rs index 3def15ca..e4614bae 100644 --- a/mdsf/src/tools/purs_tidy.rs +++ b/mdsf/src/tools/purs_tidy.rs @@ -38,7 +38,7 @@ pub fn run(file_path: &std::path::Path) -> Result<(bool, Option), MdsfEr #[cfg(test)] mod test_purs_tidy { #[test_with::executable(npx)] - fn test_purs_tidy_purescript_810f9c067d5daeae() { + fn test_purs_tidy_purescript_c9e6831b630f7f08() { let input = r#"module Test.Main where import Prelude diff --git a/mdsf/src/tools/pycln.rs b/mdsf/src/tools/pycln.rs index 97a597b6..06326584 100644 --- a/mdsf/src/tools/pycln.rs +++ b/mdsf/src/tools/pycln.rs @@ -35,7 +35,7 @@ pub fn run(file_path: &std::path::Path) -> Result<(bool, Option), MdsfEr #[cfg(test)] mod test_pycln { #[test_with::executable(pycln)] - fn test_pycln_python_18c0cbd993b7da8d() { + fn test_pycln_python_21e4539a9b183542() { let input = r#"import math"#; let output = r#""#; let file_ext = crate::fttype::get_file_extension("python"); diff --git a/mdsf/src/tools/pyink.rs b/mdsf/src/tools/pyink.rs index e89ec1a5..f1e21e6d 100644 --- a/mdsf/src/tools/pyink.rs +++ b/mdsf/src/tools/pyink.rs @@ -34,7 +34,7 @@ pub fn run(file_path: &std::path::Path) -> Result<(bool, Option), MdsfEr #[cfg(test)] mod test_pyink { #[test_with::executable(pyink)] - fn test_pyink_python_8156ff26fe126797() { + fn test_pyink_python_229ec2b01c2bfe3c() { let input = r#"def add( a: int , b:int)->int: return a+b"#; let output = r#"def add(a: int, b: int) -> int: return a + b diff --git a/mdsf/src/tools/rescript_format.rs b/mdsf/src/tools/rescript_format.rs index 01cce920..9d6c803c 100644 --- a/mdsf/src/tools/rescript_format.rs +++ b/mdsf/src/tools/rescript_format.rs @@ -38,7 +38,7 @@ pub fn run(file_path: &std::path::Path) -> Result<(bool, Option), MdsfEr #[cfg(test)] mod test_rescript_format { #[test_with::executable(npx)] - fn test_rescript_format_rescript_e6b1178b0353559b() { + fn test_rescript_format_rescript_59c7490e2a041de3() { let input = r#"module Button = { @react.component let make = (~count) => { diff --git a/mdsf/src/tools/roc_format.rs b/mdsf/src/tools/roc_format.rs index 7da6aa69..f6c0595e 100644 --- a/mdsf/src/tools/roc_format.rs +++ b/mdsf/src/tools/roc_format.rs @@ -34,7 +34,7 @@ pub fn run(file_path: &std::path::Path) -> Result<(bool, Option), MdsfEr #[cfg(test)] mod test_roc_format { #[test_with::executable(roc)] - fn test_roc_format_roc_4560f2fcd4696027() { + fn test_roc_format_roc_1204aa2d8186919d() { let input = r#"app "helloWorld" packages { pf: "https://github.com/roc-lang/" } imports [pf.Stdout] diff --git a/mdsf/src/tools/rubocop.rs b/mdsf/src/tools/rubocop.rs index cfbaf0f3..555eb813 100644 --- a/mdsf/src/tools/rubocop.rs +++ b/mdsf/src/tools/rubocop.rs @@ -37,7 +37,7 @@ pub fn run(file_path: &std::path::Path) -> Result<(bool, Option), MdsfEr #[cfg(test)] mod test_rubocop { #[test_with::executable(rubocop)] - fn test_rubocop_ruby_1ad1609b5c92bd46() { + fn test_rubocop_ruby_d2b8a6db3c8eee1c() { let input = r#"def add( a , b ) return a + b end"#; diff --git a/mdsf/src/tools/rubyfmt.rs b/mdsf/src/tools/rubyfmt.rs index afa7e824..73fcffaf 100644 --- a/mdsf/src/tools/rubyfmt.rs +++ b/mdsf/src/tools/rubyfmt.rs @@ -34,7 +34,7 @@ pub fn run(file_path: &std::path::Path) -> Result<(bool, Option), MdsfEr #[cfg(test)] mod test_rubyfmt { #[test_with::executable(rubyfmt)] - fn test_rubyfmt_ruby_1ad1609b5c92bd46() { + fn test_rubyfmt_ruby_d2b8a6db3c8eee1c() { let input = r#"def add( a , b ) return a + b end"#; diff --git a/mdsf/src/tools/ruff_format.rs b/mdsf/src/tools/ruff_format.rs index 9ff95ae8..95698fac 100644 --- a/mdsf/src/tools/ruff_format.rs +++ b/mdsf/src/tools/ruff_format.rs @@ -35,7 +35,7 @@ pub fn run(file_path: &std::path::Path) -> Result<(bool, Option), MdsfEr #[cfg(test)] mod test_ruff_format { #[test_with::executable(ruff)] - fn test_ruff_format_python_1e1accc4042dde4d() { + fn test_ruff_format_python_229ec2b01c2bfe3c() { let input = r#"def add( a: int , b:int)->int: return a+b"#; let output = r#"def add(a: int, b: int) -> int: return a + b diff --git a/mdsf/src/tools/rufo.rs b/mdsf/src/tools/rufo.rs index baa88ad0..fa807bd2 100644 --- a/mdsf/src/tools/rufo.rs +++ b/mdsf/src/tools/rufo.rs @@ -34,7 +34,7 @@ pub fn run(file_path: &std::path::Path) -> Result<(bool, Option), MdsfEr #[cfg(test)] mod test_rufo { #[test_with::executable(rufo)] - fn test_rufo_ruby_1ad1609b5c92bd46() { + fn test_rufo_ruby_d2b8a6db3c8eee1c() { let input = r#"def add( a , b ) return a + b end"#; diff --git a/mdsf/src/tools/rustfmt.rs b/mdsf/src/tools/rustfmt.rs index e18396e4..7b171b84 100644 --- a/mdsf/src/tools/rustfmt.rs +++ b/mdsf/src/tools/rustfmt.rs @@ -36,7 +36,7 @@ pub fn run(file_path: &std::path::Path) -> Result<(bool, Option), MdsfEr #[cfg(test)] mod test_rustfmt { #[test_with::executable(rustfmt)] - fn test_rustfmt_rust_e83ee9b650ec4907() { + fn test_rustfmt_rust_70ad564760e773e9() { let input = r#"pub async fn add( a: i32, diff --git a/mdsf/src/tools/scalafmt.rs b/mdsf/src/tools/scalafmt.rs index 086ee394..7275811b 100644 --- a/mdsf/src/tools/scalafmt.rs +++ b/mdsf/src/tools/scalafmt.rs @@ -36,7 +36,7 @@ pub fn run(file_path: &std::path::Path) -> Result<(bool, Option), MdsfEr #[cfg(test)] mod test_scalafmt { #[test_with::executable(scalafmt)] - fn test_scalafmt_scala_f3726f9b9a0f9066() { + fn test_scalafmt_scala_cbd61c065383c05b() { let input = r#"object Addition { def main() = { println(1 + 3) diff --git a/mdsf/src/tools/shfmt.rs b/mdsf/src/tools/shfmt.rs index 26942345..468f5b50 100644 --- a/mdsf/src/tools/shfmt.rs +++ b/mdsf/src/tools/shfmt.rs @@ -34,10 +34,10 @@ pub fn run(file_path: &std::path::Path) -> Result<(bool, Option), MdsfEr #[cfg(test)] mod test_shfmt { #[test_with::executable(shfmt)] - fn test_shfmt_shell_748705c22ee4696f() { + fn test_shfmt_bash_9334f16dadf8ef68() { let input = r#" -#!/bin/sh +#!/bin/bash add () { echo "$1" + "$2" @@ -51,13 +51,13 @@ mod test_shfmt { "#; - let output = r#"#!/bin/sh + let output = r#"#!/bin/bash add() { echo "$1" + "$2" } "#; - let file_ext = crate::fttype::get_file_extension("shell"); + let file_ext = crate::fttype::get_file_extension("bash"); let snippet = crate::execution::setup_snippet(input, &file_ext).expect("it to create a snippet file"); let result = crate::tools::shfmt::run(snippet.path()) @@ -68,10 +68,10 @@ add() { } #[test_with::executable(shfmt)] - fn test_shfmt_bash_32fda4fa46e3b132() { + fn test_shfmt_shell_9c24a79abf093e10() { let input = r#" -#!/bin/bash +#!/bin/sh add () { echo "$1" + "$2" @@ -85,13 +85,13 @@ add() { "#; - let output = r#"#!/bin/bash + let output = r#"#!/bin/sh add() { echo "$1" + "$2" } "#; - let file_ext = crate::fttype::get_file_extension("bash"); + let file_ext = crate::fttype::get_file_extension("shell"); let snippet = crate::execution::setup_snippet(input, &file_ext).expect("it to create a snippet file"); let result = crate::tools::shfmt::run(snippet.path()) @@ -102,7 +102,7 @@ add() { } #[test_with::executable(shfmt)] - fn test_shfmt_zsh_69eb75793ed195db() { + fn test_shfmt_zsh_63d80ef78ac08ee0() { let input = r#" #!/bin/zsh diff --git a/mdsf/src/tools/sql_formatter.rs b/mdsf/src/tools/sql_formatter.rs index 4f212249..d7c96a25 100644 --- a/mdsf/src/tools/sql_formatter.rs +++ b/mdsf/src/tools/sql_formatter.rs @@ -38,7 +38,7 @@ pub fn run(file_path: &std::path::Path) -> Result<(bool, Option), MdsfEr #[cfg(test)] mod test_sql_formatter { #[test_with::executable(npx)] - fn test_sql_formatter_sql_ff38558c05531d22() { + fn test_sql_formatter_sql_85ac36a4bf14f957() { let input = r#"SELECT * FROM tbl WHERE foo = 'bar';"#; let output = r#"SELECT * diff --git a/mdsf/src/tools/sqlfluff_format.rs b/mdsf/src/tools/sqlfluff_format.rs index 809fa379..d10530cb 100644 --- a/mdsf/src/tools/sqlfluff_format.rs +++ b/mdsf/src/tools/sqlfluff_format.rs @@ -36,7 +36,7 @@ pub fn run(file_path: &std::path::Path) -> Result<(bool, Option), MdsfEr #[cfg(test)] mod test_sqlfluff_format { #[test_with::executable(sqlfluff)] - fn test_sqlfluff_format_sql_7d0d03aa13961f14() { + fn test_sqlfluff_format_sql_55c68b000536eccf() { let input = r#"SELECT * FROM tbl WHERE foo = 'bar'; "#; let output = r#"SELECT * FROM tbl diff --git a/mdsf/src/tools/standardrb.rs b/mdsf/src/tools/standardrb.rs index b8dc19e5..7dad79a6 100644 --- a/mdsf/src/tools/standardrb.rs +++ b/mdsf/src/tools/standardrb.rs @@ -34,7 +34,7 @@ pub fn run(file_path: &std::path::Path) -> Result<(bool, Option), MdsfEr #[cfg(test)] mod test_standardrb { #[test_with::executable(standardrb)] - fn test_standardrb_ruby_76a5c42ce4f02c1e() { + fn test_standardrb_ruby_bec6c50c1664b6ed() { let input = r#"def add( a , b ) return a + b end"#; diff --git a/mdsf/src/tools/stylefmt.rs b/mdsf/src/tools/stylefmt.rs index 28502e11..54b5f2c0 100644 --- a/mdsf/src/tools/stylefmt.rs +++ b/mdsf/src/tools/stylefmt.rs @@ -37,86 +37,7 @@ pub fn run(file_path: &std::path::Path) -> Result<(bool, Option), MdsfEr #[cfg(test)] mod test_stylefmt { #[test_with::executable(npx)] - fn test_stylefmt_scss_5380282054996922() { - let input = r#"// mixin for clearfix - - - @mixin clearfix () { &:before, - &:after { - content:" "; - display : table; } - - &:after {clear: both;} - }.class -{ - padding:10px;@include clearfix();} - .base { color: red; } - -// placeholder -%base -{ - - -padding: 12px -} - -.foo{ -@extend .base;} - -.bar - { @extend %base; - -} -"#; - let output = r#"// mixin for clearfix - - -@mixin clearfix() { - &:before, - &:after { - content: " "; - display: table; - } - - &:after { - clear: both; - } -} - -.class { - padding: 10px; - @include clearfix(); -} - -.base { - color: red; -} - -// placeholder -%base { - padding: 12px; -} - -.foo { - @extend .base; -} - -.bar { - @extend %base; -} -"#; - let file_ext = crate::fttype::get_file_extension("scss"); - let snippet = - crate::execution::setup_snippet(input, &file_ext).expect("it to create a snippet file"); - let result = crate::tools::stylefmt::run(snippet.path()) - .expect("it to be successful") - .1 - .expect("it to be some"); - assert_eq!(result, output); - } - - #[test_with::executable(npx)] - fn test_stylefmt_css_81da43099ca5b775() { + fn test_stylefmt_css_ed4f8407afa6d974() { let input = r#"/* custom properties */ :root{--fontSize: 1rem; --mainColor :#12345678; @@ -238,4 +159,83 @@ table { .expect("it to be some"); assert_eq!(result, output); } + + #[test_with::executable(npx)] + fn test_stylefmt_scss_d3c6918bf17af7f3() { + let input = r#"// mixin for clearfix + + + @mixin clearfix () { &:before, + &:after { + content:" "; + display : table; } + + &:after {clear: both;} + }.class +{ + padding:10px;@include clearfix();} + .base { color: red; } + +// placeholder +%base +{ + + +padding: 12px +} + +.foo{ +@extend .base;} + +.bar + { @extend %base; + +} +"#; + let output = r#"// mixin for clearfix + + +@mixin clearfix() { + &:before, + &:after { + content: " "; + display: table; + } + + &:after { + clear: both; + } +} + +.class { + padding: 10px; + @include clearfix(); +} + +.base { + color: red; +} + +// placeholder +%base { + padding: 12px; +} + +.foo { + @extend .base; +} + +.bar { + @extend %base; +} +"#; + let file_ext = crate::fttype::get_file_extension("scss"); + let snippet = + crate::execution::setup_snippet(input, &file_ext).expect("it to create a snippet file"); + let result = crate::tools::stylefmt::run(snippet.path()) + .expect("it to be successful") + .1 + .expect("it to be some"); + assert_eq!(result, output); + } } diff --git a/mdsf/src/tools/stylish_haskell.rs b/mdsf/src/tools/stylish_haskell.rs index b4c6f2dc..f772504f 100644 --- a/mdsf/src/tools/stylish_haskell.rs +++ b/mdsf/src/tools/stylish_haskell.rs @@ -34,7 +34,7 @@ pub fn run(file_path: &std::path::Path) -> Result<(bool, Option), MdsfEr #[cfg(test)] mod test_stylish_haskell { #[test_with::executable(stylish-haskell)] - fn test_stylish_haskell_haskell_4a3c9bc0988c66ac() { + fn test_stylish_haskell_haskell_9589647c4239e2dd() { let input = r#"addNumbers::Int->Int->Int addNumbers a b = do a + b diff --git a/mdsf/src/tools/stylua.rs b/mdsf/src/tools/stylua.rs index 39d17470..0497322f 100644 --- a/mdsf/src/tools/stylua.rs +++ b/mdsf/src/tools/stylua.rs @@ -38,7 +38,7 @@ pub fn run(file_path: &std::path::Path) -> Result<(bool, Option), MdsfEr #[cfg(test)] mod test_stylua { #[test_with::executable(npx)] - fn test_stylua_lua_b52fd6a9ff258ae5() { + fn test_stylua_lua_ab45775f0dc2fcca() { let input = r#" local function add ( a , b diff --git a/mdsf/src/tools/superhtml_fmt.rs b/mdsf/src/tools/superhtml_fmt.rs index 79eaead2..681af513 100644 --- a/mdsf/src/tools/superhtml_fmt.rs +++ b/mdsf/src/tools/superhtml_fmt.rs @@ -34,7 +34,7 @@ pub fn run(file_path: &std::path::Path) -> Result<(bool, Option), MdsfEr #[cfg(test)] mod test_superhtml_fmt { #[test_with::executable(superhtml)] - fn test_superhtml_fmt_html_f02aafa10348b00e() { + fn test_superhtml_fmt_html_8183dae6d1f190e1() { let input = r#"

Mads was here diff --git a/mdsf/src/tools/swift_format.rs b/mdsf/src/tools/swift_format.rs index f019e5f6..3de93976 100644 --- a/mdsf/src/tools/swift_format.rs +++ b/mdsf/src/tools/swift_format.rs @@ -34,7 +34,7 @@ pub fn run(file_path: &std::path::Path) -> Result<(bool, Option), MdsfEr #[cfg(test)] mod test_swift_format { #[test_with::executable(swift-format)] - fn test_swift_format_swift_dd49f5b0939c875() { + fn test_swift_format_swift_5717762df3975151() { let input = r#" func add(a:Int ,b:Int)->Int { return a + b }"#; diff --git a/mdsf/src/tools/swiftformat.rs b/mdsf/src/tools/swiftformat.rs index ce4bc234..6d90bff4 100644 --- a/mdsf/src/tools/swiftformat.rs +++ b/mdsf/src/tools/swiftformat.rs @@ -34,7 +34,7 @@ pub fn run(file_path: &std::path::Path) -> Result<(bool, Option), MdsfEr #[cfg(test)] mod test_swiftformat { #[test_with::executable(swiftformat)] - fn test_swiftformat_swift_dd49f5b0939c875() { + fn test_swiftformat_swift_5717762df3975151() { let input = r#" func add(a:Int ,b:Int)->Int { return a + b }"#; diff --git a/mdsf/src/tools/taplo.rs b/mdsf/src/tools/taplo.rs index 252c638c..7ce1db61 100644 --- a/mdsf/src/tools/taplo.rs +++ b/mdsf/src/tools/taplo.rs @@ -38,7 +38,7 @@ pub fn run(file_path: &std::path::Path) -> Result<(bool, Option), MdsfEr #[cfg(test)] mod test_taplo { #[test_with::executable(npx)] - fn test_taplo_toml_6676000e3e397416() { + fn test_taplo_toml_f9c7870e88d1963c() { let input = r#" package = "mdsf" author = "Mads Hougesen" "#; diff --git a/mdsf/src/tools/terraform_fmt.rs b/mdsf/src/tools/terraform_fmt.rs index 09109203..c82d36f3 100644 --- a/mdsf/src/tools/terraform_fmt.rs +++ b/mdsf/src/tools/terraform_fmt.rs @@ -35,7 +35,7 @@ pub fn run(file_path: &std::path::Path) -> Result<(bool, Option), MdsfEr #[cfg(test)] mod test_terraform_fmt { #[test_with::executable(terraform)] - fn test_terraform_fmt_tf_9c8301e7bcb0dc4e() { + fn test_terraform_fmt_tf_2c1d9f26008080c1() { let input = r#"resource "aws_instance" "example" { ami = "abc123" diff --git a/mdsf/src/tools/tofu_fmt.rs b/mdsf/src/tools/tofu_fmt.rs index d8c61c44..ca71a86d 100644 --- a/mdsf/src/tools/tofu_fmt.rs +++ b/mdsf/src/tools/tofu_fmt.rs @@ -35,7 +35,7 @@ pub fn run(file_path: &std::path::Path) -> Result<(bool, Option), MdsfEr #[cfg(test)] mod test_tofu_fmt { #[test_with::executable(tofu)] - fn test_tofu_fmt_terraform_35979ec99d0c4a75() { + fn test_tofu_fmt_terraform_ad45c247a9c563a1() { let input = r#"resource "aws_instance" "example" { ami = "abc123" diff --git a/mdsf/src/tools/topiary.rs b/mdsf/src/tools/topiary.rs index 3fcdf52f..b265e315 100644 --- a/mdsf/src/tools/topiary.rs +++ b/mdsf/src/tools/topiary.rs @@ -34,7 +34,7 @@ pub fn run(file_path: &std::path::Path) -> Result<(bool, Option), MdsfEr #[cfg(test)] mod test_topiary { #[test_with::executable(topiary)] - fn test_topiary_json_c86508ab2158059c() { + fn test_topiary_json_d426a9ade74002d2() { let input = r#" { "key": "value", diff --git a/mdsf/src/tools/typos.rs b/mdsf/src/tools/typos.rs index f07f5e54..827d0831 100644 --- a/mdsf/src/tools/typos.rs +++ b/mdsf/src/tools/typos.rs @@ -36,7 +36,7 @@ pub fn run(file_path: &std::path::Path) -> Result<(bool, Option), MdsfEr #[cfg(test)] mod test_typos { #[test_with::executable(typos)] - fn test_typos_python_636c8d43b894867c() { + fn test_typos_python_cba663e4f5e54b7f() { let input = r#"anouncement"#; let output = r#"announcement"#; let file_ext = crate::fttype::get_file_extension("python"); diff --git a/mdsf/src/tools/usort.rs b/mdsf/src/tools/usort.rs index 9c06b6a9..65e065db 100644 --- a/mdsf/src/tools/usort.rs +++ b/mdsf/src/tools/usort.rs @@ -34,7 +34,7 @@ pub fn run(file_path: &std::path::Path) -> Result<(bool, Option), MdsfEr #[cfg(test)] mod test_usort { #[test_with::executable(usort)] - fn test_usort_python_7be36b03fc0282f6() { + fn test_usort_python_e2ac93e0195d9bc1() { let input = r#"from q import d import b import a diff --git a/mdsf/src/tools/veryl_fmt.rs b/mdsf/src/tools/veryl_fmt.rs index 75d0697b..977cf8a7 100644 --- a/mdsf/src/tools/veryl_fmt.rs +++ b/mdsf/src/tools/veryl_fmt.rs @@ -34,7 +34,7 @@ pub fn run(file_path: &std::path::Path) -> Result<(bool, Option), MdsfEr #[cfg(test)] mod test_veryl_fmt { #[test_with::executable(veryl)] - fn test_veryl_fmt_veryl_cc7688e3f0f92902() { + fn test_veryl_fmt_veryl_529de9cf882c5a00() { let input = r#"/// documentation comment by markdown format /// * list item1 /// * list item2 diff --git a/mdsf/src/tools/xmlformat.rs b/mdsf/src/tools/xmlformat.rs index 2e69e158..7ef0e1a0 100644 --- a/mdsf/src/tools/xmlformat.rs +++ b/mdsf/src/tools/xmlformat.rs @@ -34,7 +34,7 @@ pub fn run(file_path: &std::path::Path) -> Result<(bool, Option), MdsfEr #[cfg(test)] mod test_xmlformat { #[test_with::executable(xmlformat)] - fn test_xmlformat_xml_58da858506aaf78() { + fn test_xmlformat_xml_5e39abb678e63c0b() { let input = r#" Tove diff --git a/mdsf/src/tools/xmllint.rs b/mdsf/src/tools/xmllint.rs index f7d7fd3a..b500f139 100644 --- a/mdsf/src/tools/xmllint.rs +++ b/mdsf/src/tools/xmllint.rs @@ -36,7 +36,7 @@ pub fn run(file_path: &std::path::Path) -> Result<(bool, Option), MdsfEr #[cfg(test)] mod test_xmllint { #[test_with::executable(xmllint)] - fn test_xmllint_xml_fac728c35ade6967() { + fn test_xmllint_xml_29dedc18db9d2e97() { let input = r#" Tove diff --git a/mdsf/src/tools/yamlfix.rs b/mdsf/src/tools/yamlfix.rs index 6a5108cf..71853816 100644 --- a/mdsf/src/tools/yamlfix.rs +++ b/mdsf/src/tools/yamlfix.rs @@ -33,7 +33,7 @@ pub fn run(file_path: &std::path::Path) -> Result<(bool, Option), MdsfEr #[cfg(test)] mod test_yamlfix { #[test_with::executable(yamlfix)] - fn test_yamlfix_yaml_8eb4e8fae2581384() { + fn test_yamlfix_yaml_9fcbc943bcaf9d7f() { let input = r#" diff --git a/mdsf/src/tools/yamlfmt.rs b/mdsf/src/tools/yamlfmt.rs index 4f941ae2..d2694ab4 100644 --- a/mdsf/src/tools/yamlfmt.rs +++ b/mdsf/src/tools/yamlfmt.rs @@ -34,7 +34,7 @@ pub fn run(file_path: &std::path::Path) -> Result<(bool, Option), MdsfEr #[cfg(test)] mod test_yamlfmt { #[test_with::executable(yamlfmt)] - fn test_yamlfmt_yaml_a98a52941e8d2fd4() { + fn test_yamlfmt_yaml_5f37046bfdc59220() { let input = r#" diff --git a/mdsf/src/tools/yapf.rs b/mdsf/src/tools/yapf.rs index ce173dde..a0e1834d 100644 --- a/mdsf/src/tools/yapf.rs +++ b/mdsf/src/tools/yapf.rs @@ -34,7 +34,7 @@ pub fn run(file_path: &std::path::Path) -> Result<(bool, Option), MdsfEr #[cfg(test)] mod test_yapf { #[test_with::executable(yapf)] - fn test_yapf_python_8156ff26fe126797() { + fn test_yapf_python_229ec2b01c2bfe3c() { let input = r#"def add( a: int , b:int)->int: return a+b"#; let output = r#"def add(a: int, b: int) -> int: return a + b diff --git a/mdsf/src/tools/yew_fmt.rs b/mdsf/src/tools/yew_fmt.rs index e6e33923..19b59893 100644 --- a/mdsf/src/tools/yew_fmt.rs +++ b/mdsf/src/tools/yew_fmt.rs @@ -36,7 +36,7 @@ pub fn run(file_path: &std::path::Path) -> Result<(bool, Option), MdsfEr #[cfg(test)] mod test_yew_fmt { #[test_with::executable(yew-fmt)] - fn test_yew_fmt_rust_e83ee9b650ec4907() { + fn test_yew_fmt_rust_70ad564760e773e9() { let input = r#"pub async fn add( a: i32, diff --git a/mdsf/src/tools/zig_fmt.rs b/mdsf/src/tools/zig_fmt.rs index 675b6368..b8929fd7 100644 --- a/mdsf/src/tools/zig_fmt.rs +++ b/mdsf/src/tools/zig_fmt.rs @@ -34,7 +34,7 @@ pub fn run(file_path: &std::path::Path) -> Result<(bool, Option), MdsfEr #[cfg(test)] mod test_zig_fmt { #[test_with::executable(zig)] - fn test_zig_fmt_zig_c392cb7c52bb9cc8() { + fn test_zig_fmt_zig_8151c333113cef41() { let input = r#" fn add (a : i32 , b : i32 ) i32 { return a + b ; diff --git a/mdsf/src/tools/zprint.rs b/mdsf/src/tools/zprint.rs index 04e6e7a3..14611cab 100644 --- a/mdsf/src/tools/zprint.rs +++ b/mdsf/src/tools/zprint.rs @@ -34,7 +34,7 @@ pub fn run(file_path: &std::path::Path) -> Result<(bool, Option), MdsfEr #[cfg(test)] mod test_zprint { #[test_with::executable(zprint)] - fn test_zprint_clojure_34d0f9927a4f588d() { + fn test_zprint_clojure_81eb4a785de214e8() { let input = r#"(defn change-start-column [new-start-column style-vec [inline-comment-index start-column spaces-before :as comment-vec]] (if (zero? inline-comment-index) style-vec (let [delta-spaces (- new-start-column start-column) new-spaces diff --git a/tools/actionlint/plugin.json b/tools/actionlint/plugin.json index b5e6ff05..46b36f4a 100644 --- a/tools/actionlint/plugin.json +++ b/tools/actionlint/plugin.json @@ -4,18 +4,11 @@ "categories": ["linter"], "commands": { "": { - "command": ["$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["$PATH"], + "ignore_output": false } }, "description": "Static checker for GitHub Actions workflow files", "homepage": "https://github.com/rhysd/actionlint", - "languages": ["yaml"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["yaml"] } diff --git a/tools/alejandra/plugin.json b/tools/alejandra/plugin.json index 3ec1ec42..5a76d168 100644 --- a/tools/alejandra/plugin.json +++ b/tools/alejandra/plugin.json @@ -4,25 +4,18 @@ "categories": ["formatter"], "commands": { "": { - "command": ["--quiet", "$PATH"], - "description": "", - "homepage": "", + "arguments": ["--quiet", "$PATH"], "ignore_output": false, - "tests": [] + "tests": [ + { + "language": "nix", + "test_input": "{\n lib, buildPythonPackage, fetchFromGitHub, redis }:\n\nbuildPythonPackage rec {\n pname = \"huey\";\n version = \"2.4.2\";\n\n src = fetchFromGitHub {\n owner = \"coleifer\";\n repo = pname;\n rev = version;\n sha256 = \"00fi04991skq61gjrmig8ry6936pc8zs7p8py8spfipbxf1irkjg\";\n };\n\n propagatedBuildInputs = [ redis ];\n\n # connects to redis\n doCheck = false;\n\n meta = with lib; {\n description = \"A little task queue for python\";\n homepage = \"https://github.com/coleifer/huey\";\n license = licenses.mit;\n maintainers = [ maintainers.globin ];\n };\n}\n", + "test_output": "{\n lib,\n buildPythonPackage,\n fetchFromGitHub,\n redis,\n}:\nbuildPythonPackage rec {\n pname = \"huey\";\n version = \"2.4.2\";\n\n src = fetchFromGitHub {\n owner = \"coleifer\";\n repo = pname;\n rev = version;\n sha256 = \"00fi04991skq61gjrmig8ry6936pc8zs7p8py8spfipbxf1irkjg\";\n };\n\n propagatedBuildInputs = [redis];\n\n # connects to redis\n doCheck = false;\n\n meta = with lib; {\n description = \"A little task queue for python\";\n homepage = \"https://github.com/coleifer/huey\";\n license = licenses.mit;\n maintainers = [maintainers.globin];\n };\n}\n" + } + ] } }, "description": "The Uncompromising Nix Code Formatter", "homepage": "https://github.com/kamadorueda/alejandra", - "languages": ["nix"], - "name": null, - "npm": null, - "php": null, - "tests": [ - { - "command": "", - "language": "nix", - "test_input": "{\n lib, buildPythonPackage, fetchFromGitHub, redis }:\n\nbuildPythonPackage rec {\n pname = \"huey\";\n version = \"2.4.2\";\n\n src = fetchFromGitHub {\n owner = \"coleifer\";\n repo = pname;\n rev = version;\n sha256 = \"00fi04991skq61gjrmig8ry6936pc8zs7p8py8spfipbxf1irkjg\";\n };\n\n propagatedBuildInputs = [ redis ];\n\n # connects to redis\n doCheck = false;\n\n meta = with lib; {\n description = \"A little task queue for python\";\n homepage = \"https://github.com/coleifer/huey\";\n license = licenses.mit;\n maintainers = [ maintainers.globin ];\n };\n}\n", - "test_output": "{\n lib,\n buildPythonPackage,\n fetchFromGitHub,\n redis,\n}:\nbuildPythonPackage rec {\n pname = \"huey\";\n version = \"2.4.2\";\n\n src = fetchFromGitHub {\n owner = \"coleifer\";\n repo = pname;\n rev = version;\n sha256 = \"00fi04991skq61gjrmig8ry6936pc8zs7p8py8spfipbxf1irkjg\";\n };\n\n propagatedBuildInputs = [redis];\n\n # connects to redis\n doCheck = false;\n\n meta = with lib; {\n description = \"A little task queue for python\";\n homepage = \"https://github.com/coleifer/huey\";\n license = licenses.mit;\n maintainers = [maintainers.globin];\n };\n}\n" - } - ] + "languages": ["nix"] } diff --git a/tools/ameba/plugin.json b/tools/ameba/plugin.json index d97d2da4..d701b9b9 100644 --- a/tools/ameba/plugin.json +++ b/tools/ameba/plugin.json @@ -4,18 +4,11 @@ "categories": ["linter"], "commands": { "": { - "command": ["--fix", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["--fix", "$PATH"], + "ignore_output": false } }, "description": "A static code analysis tool for Crystal", "homepage": "https://github.com/crystal-ameba/ameba", - "languages": ["crystal"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["crystal"] } diff --git a/tools/ansible-lint/plugin.json b/tools/ansible-lint/plugin.json index 742df374..653591fd 100644 --- a/tools/ansible-lint/plugin.json +++ b/tools/ansible-lint/plugin.json @@ -4,18 +4,11 @@ "categories": ["linter"], "commands": { "": { - "command": ["$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["$PATH"], + "ignore_output": false } }, "description": "ansible-lint checks playbooks for practices and behavior that could potentially be improved and can fix some of the most common ones for you", "homepage": "https://github.com/ansible/ansible-lint", - "languages": ["ansible"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["ansible"] } diff --git a/tools/asmfmt/plugin.json b/tools/asmfmt/plugin.json index 1768b64b..2850774a 100644 --- a/tools/asmfmt/plugin.json +++ b/tools/asmfmt/plugin.json @@ -4,18 +4,11 @@ "categories": ["formatter"], "commands": { "": { - "command": ["-w", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["-w", "$PATH"], + "ignore_output": false } }, "description": "Go Assembler Formatter", "homepage": "https://github.com/klauspost/asmfmt", - "languages": ["go"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["go"] } diff --git a/tools/astyle/plugin.json b/tools/astyle/plugin.json index 11f30ccc..f989b6c9 100644 --- a/tools/astyle/plugin.json +++ b/tools/astyle/plugin.json @@ -4,18 +4,11 @@ "categories": ["formatter"], "commands": { "": { - "command": ["--quiet", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["--quiet", "$PATH"], + "ignore_output": false } }, "description": "A Free, Fast, and Small Automatic Formatter for C, C++, C++/CLI, Objective-C, C#, and Java Source Code", "homepage": "https://gitlab.com/saalen/astyle", - "languages": ["objective-c", "c#", "c++", "java", "c"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["objective-c", "c#", "c++", "java", "c"] } diff --git a/tools/auto-optional/plugin.json b/tools/auto-optional/plugin.json index 25a94fa3..fc65e243 100644 --- a/tools/auto-optional/plugin.json +++ b/tools/auto-optional/plugin.json @@ -4,25 +4,18 @@ "categories": ["formatter"], "commands": { "": { - "command": ["$PATH"], - "description": "", - "homepage": "", + "arguments": ["$PATH"], "ignore_output": false, - "tests": [] + "tests": [ + { + "language": "python", + "test_input": "def foo(bar: str = None):\n pass\n", + "test_output": "from typing import Optional\ndef foo(bar: Optional[str] = None):\n pass\n" + } + ] } }, "description": "Adds the Optional type-hint to arguments where the default value is None", "homepage": "https://github.com/Luttik/auto-optional", - "languages": ["python"], - "name": null, - "npm": null, - "php": null, - "tests": [ - { - "command": "", - "language": "python", - "test_input": "def foo(bar: str = None):\n pass\n", - "test_output": "from typing import Optional\ndef foo(bar: Optional[str] = None):\n pass\n" - } - ] + "languages": ["python"] } diff --git a/tools/autocorrect/plugin.json b/tools/autocorrect/plugin.json index a02c6fcf..b86a1c70 100644 --- a/tools/autocorrect/plugin.json +++ b/tools/autocorrect/plugin.json @@ -4,18 +4,11 @@ "categories": ["autocorrection"], "commands": { "": { - "command": ["--fix", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["--fix", "$PATH"], + "ignore_output": false } }, "description": "A linter and formatter to help you to improve copywriting, correct spaces, words, and punctuations between CJK (Chinese, Japanese, Korean)", "homepage": "https://github.com/huacnlee/autocorrect", - "languages": [], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": [] } diff --git a/tools/autoflake/plugin.json b/tools/autoflake/plugin.json index af404c11..a5ee0b71 100644 --- a/tools/autoflake/plugin.json +++ b/tools/autoflake/plugin.json @@ -4,25 +4,18 @@ "categories": ["linter"], "commands": { "": { - "command": ["--quiet", "--in-place", "$PATH"], - "description": "", - "homepage": "", + "arguments": ["--quiet", "--in-place", "$PATH"], "ignore_output": false, - "tests": [] + "tests": [ + { + "language": "python", + "test_input": "import math\nimport re\nimport os\nimport random\nimport multiprocessing\nimport grp, pwd, platform\nimport subprocess, sys\n\n\ndef foo():\n from abc import ABCMeta, WeakSet\n try:\n import multiprocessing\n print(multiprocessing.cpu_count())\n except ImportError as exception:\n print(sys.version)\n return math.pi\n", + "test_output": "import math\nimport sys\n\n\ndef foo():\n try:\n import multiprocessing\n print(multiprocessing.cpu_count())\n except ImportError as exception:\n print(sys.version)\n return math.pi\n" + } + ] } }, "description": "Removes unused imports and unused variables as reported by pyflakes", "homepage": "https://github.com/pycqa/autoflake", - "languages": ["python"], - "name": null, - "npm": null, - "php": null, - "tests": [ - { - "command": "", - "language": "python", - "test_input": "import math\nimport re\nimport os\nimport random\nimport multiprocessing\nimport grp, pwd, platform\nimport subprocess, sys\n\n\ndef foo():\n from abc import ABCMeta, WeakSet\n try:\n import multiprocessing\n print(multiprocessing.cpu_count())\n except ImportError as exception:\n print(sys.version)\n return math.pi\n", - "test_output": "import math\nimport sys\n\n\ndef foo():\n try:\n import multiprocessing\n print(multiprocessing.cpu_count())\n except ImportError as exception:\n print(sys.version)\n return math.pi\n" - } - ] + "languages": ["python"] } diff --git a/tools/autopep8/plugin.json b/tools/autopep8/plugin.json index da3ee245..3728a3e5 100644 --- a/tools/autopep8/plugin.json +++ b/tools/autopep8/plugin.json @@ -4,25 +4,18 @@ "categories": ["formatter"], "commands": { "": { - "command": ["--in-place", "$PATH"], - "description": "", - "homepage": "", + "arguments": ["--in-place", "$PATH"], "ignore_output": false, - "tests": [] + "tests": [ + { + "language": "python", + "test_input": "def add( a: int , b:int)->int: return a+b", + "test_output": "def add(a: int, b: int) -> int: return a+b\n" + } + ] } }, "description": "A tool that automatically formats Python code to conform to the PEP 8 style guid", "homepage": "https://github.com/hhatto/autopep8", - "languages": ["python"], - "name": null, - "npm": null, - "php": null, - "tests": [ - { - "command": "", - "language": "python", - "test_input": "def add( a: int , b:int)->int: return a+b", - "test_output": "def add(a: int, b: int) -> int: return a+b\n" - } - ] + "languages": ["python"] } diff --git a/tools/beancount-black/plugin.json b/tools/beancount-black/plugin.json index a1422ccb..773eea50 100644 --- a/tools/beancount-black/plugin.json +++ b/tools/beancount-black/plugin.json @@ -4,18 +4,12 @@ "categories": ["formatter"], "commands": { "": { - "command": ["$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["$PATH"], + "ignore_output": false } }, "description": "Opinionated code formatter, just like Python's black code formatter but for Beancount", "homepage": "https://github.com/LaunchPlatform/beancount-black", "languages": ["beancount"], - "name": "beancount-black", - "npm": null, - "php": null, - "tests": [] + "name": "beancount-black" } diff --git a/tools/beautysh/plugin.json b/tools/beautysh/plugin.json index af078970..519b2f5f 100644 --- a/tools/beautysh/plugin.json +++ b/tools/beautysh/plugin.json @@ -4,31 +4,23 @@ "categories": ["formatter"], "commands": { "": { - "command": ["$PATH"], - "description": "", - "homepage": "", + "arguments": ["$PATH"], "ignore_output": false, - "tests": [] + "tests": [ + { + "language": "shell", + "test_input": "#!/bin/shell\n\n add() {\n echo \"$1\" + \"$2\"\n }\n", + "test_output": "#!/bin/shell\n\nadd() {\n echo \"$1\" + \"$2\"\n}\n" + }, + { + "language": "bash", + "test_input": "#!/bin/bash\n\n add() {\n echo \"$1\" + \"$2\"\n }\n", + "test_output": "#!/bin/bash\n\nadd() {\n echo \"$1\" + \"$2\"\n}\n" + } + ] } }, "description": "A Bash beautifier for the masses", "homepage": "https://pypi.org/project/beautysh/", - "languages": ["bash", "shell"], - "name": null, - "npm": null, - "php": null, - "tests": [ - { - "command": "", - "language": "shell", - "test_input": "#!/bin/shell\n\n add() {\n echo \"$1\" + \"$2\"\n }\n", - "test_output": "#!/bin/shell\n\nadd() {\n echo \"$1\" + \"$2\"\n}\n" - }, - { - "command": "", - "language": "bash", - "test_input": "#!/bin/bash\n\n add() {\n echo \"$1\" + \"$2\"\n }\n", - "test_output": "#!/bin/bash\n\nadd() {\n echo \"$1\" + \"$2\"\n}\n" - } - ] + "languages": ["bash", "shell"] } diff --git a/tools/bibtex-tidy/plugin.json b/tools/bibtex-tidy/plugin.json index 09d3980f..f6589e9a 100644 --- a/tools/bibtex-tidy/plugin.json +++ b/tools/bibtex-tidy/plugin.json @@ -4,18 +4,11 @@ "categories": ["formatter"], "commands": { "": { - "command": ["-m", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["-m", "$PATH"], + "ignore_output": false } }, "description": "Cleaner and Formatter for BibTeX files", "homepage": "https://github.com/FlamingTempura/bibtex-tidy", - "languages": ["bibtex"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["bibtex"] } diff --git a/tools/bicep/plugin.json b/tools/bicep/plugin.json index 5742b1c4..99c15788 100644 --- a/tools/bicep/plugin.json +++ b/tools/bicep/plugin.json @@ -4,18 +4,11 @@ "categories": ["formatter"], "commands": { "format": { - "command": ["format", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["format", "$PATH"], + "ignore_output": false } }, "description": "Bicep is a declarative language for describing and deploying Azure resources", "homepage": "https://github.com/Azure/bicep", - "languages": ["bicep"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["bicep"] } diff --git a/tools/biome/plugin.json b/tools/biome/plugin.json index 0db00b69..0a6e051e 100644 --- a/tools/biome/plugin.json +++ b/tools/biome/plugin.json @@ -4,51 +4,37 @@ "categories": ["formatter", "linter"], "commands": { "check": { - "command": ["check", "--write", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["check", "--write", "$PATH"], + "ignore_output": false }, "format": { - "command": ["format", "--write", "$PATH"], - "description": "", - "homepage": "", + "arguments": ["format", "--write", "$PATH"], "ignore_output": false, - "tests": [] + "tests": [ + { + "language": "json", + "test_input": "\n {\n \"key\": \"value\",\n \"key2\": [\n \"value2\",\n \"value3\",\n 1\n , null]\n }\n ", + "test_output": "{\n\t\"key\": \"value\",\n\t\"key2\": [\"value2\", \"value3\", 1, null]\n}\n" + }, + { + "language": "javascript", + "test_input": "\n async function asyncAddition(\n a,b\n ) {\n return a+b\n }\n\n ", + "test_output": "async function asyncAddition(a, b) {\n\treturn a + b;\n}\n" + }, + { + "language": "typescript", + "test_input": "\n async function asyncAddition(\n a:number,b:number\n ) :Promise<\nnumber>\n {\n return a+b\n }\n\n ", + "test_output": "async function asyncAddition(a: number, b: number): Promise {\n\treturn a + b;\n}\n" + } + ] }, "lint": { - "command": ["lint", "--write", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["lint", "--write", "$PATH"], + "ignore_output": false } }, "description": "One toolchain for your web project", "homepage": "https://github.com/biomejs/biome", "languages": ["json", "typescript", "javascript", "vue"], - "name": null, - "npm": "@biomejs/biome", - "php": null, - "tests": [ - { - "command": "format", - "language": "json", - "test_input": "\n {\n \"key\": \"value\",\n \"key2\": [\n \"value2\",\n \"value3\",\n 1\n , null]\n }\n ", - "test_output": "{\n\t\"key\": \"value\",\n\t\"key2\": [\"value2\", \"value3\", 1, null]\n}\n" - }, - { - "command": "format", - "language": "javascript", - "test_input": "\n async function asyncAddition(\n a,b\n ) {\n return a+b\n }\n\n ", - "test_output": "async function asyncAddition(a, b) {\n\treturn a + b;\n}\n" - }, - { - "command": "format", - "language": "typescript", - "test_input": "\n async function asyncAddition(\n a:number,b:number\n ) :Promise<\nnumber>\n {\n return a+b\n }\n\n ", - "test_output": "async function asyncAddition(a: number, b: number): Promise {\n\treturn a + b;\n}\n" - } - ] + "npm": "@biomejs/biome" } diff --git a/tools/black/plugin.json b/tools/black/plugin.json index 9cebc80a..41999765 100644 --- a/tools/black/plugin.json +++ b/tools/black/plugin.json @@ -4,25 +4,18 @@ "categories": ["formatter"], "commands": { "": { - "command": ["--quiet", "$PATH"], - "description": "", - "homepage": "", + "arguments": ["--quiet", "$PATH"], "ignore_output": false, - "tests": [] + "tests": [ + { + "language": "python", + "test_input": "def add( a: int , b:int)->int: return a+b", + "test_output": "def add(a: int, b: int) -> int:\n return a + b\n" + } + ] } }, "description": "The uncompromising Python code formatter", "homepage": "https://github.com/psf/black", - "languages": ["python"], - "name": null, - "npm": null, - "php": null, - "tests": [ - { - "command": "", - "language": "python", - "test_input": "def add( a: int , b:int)->int: return a+b", - "test_output": "def add(a: int, b: int) -> int:\n return a + b\n" - } - ] + "languages": ["python"] } diff --git a/tools/blade-formatter/plugin.json b/tools/blade-formatter/plugin.json index ff5484bd..61f42ab0 100644 --- a/tools/blade-formatter/plugin.json +++ b/tools/blade-formatter/plugin.json @@ -4,25 +4,19 @@ "categories": ["formatter"], "commands": { "": { - "command": ["--write", "$PATH"], - "description": "", - "homepage": "", + "arguments": ["--write", "$PATH"], "ignore_output": false, - "tests": [] + "tests": [ + { + "language": "blade", + "test_input": "@extends('frontend.layouts.app')\n@section('title') foo\n@endsection\n@section('content')\n

\n
\n
\n
\n

@lang('users.index')

\n
\n
\n
    \n @foreach($users as $user)\n
  • \n \"branch_arrow\"\n {{ link_to_route(\"frontend.users.user.show\",$users[\"name\"],$users['_id']) }}\n
  • \n @endforeach\n
\n
\n @can('create', App\\Models\\User::class)\n {!! link_to_route(\"frontend.users.user.create\",__('users.create'),[1,2,3],['class' => 'btn']) !!}\n @endcan\n
\n
\n
\n
\n@endsection\n@section('footer')\n@stop", + "test_output": "@extends('frontend.layouts.app')\n@section('title') foo\n@endsection\n@section('content')\n
\n
\n
\n
\n

@lang('users.index')

\n
\n
\n
    \n @foreach ($users as $user)\n
  • \n \"branch_arrow\"\n {{ link_to_route('frontend.users.user.show', $users['name'], $users['_id']) }}\n
  • \n @endforeach\n
\n
\n @can('create', App\\Models\\User::class)\n {!! link_to_route('frontend.users.user.create', __('users.create'), [1, 2, 3], ['class' => 'btn']) !!}\n @endcan\n
\n
\n
\n
\n@endsection\n@section('footer')\n@stop\n" + } + ] } }, "description": "An opinionated blade template formatter for Laravel that respects readability", "homepage": "https://github.com/shufo/blade-formatter", "languages": ["laravel", "blade", "php"], - "name": null, - "npm": "blade-formatter", - "php": null, - "tests": [ - { - "command": "", - "language": "blade", - "test_input": "@extends('frontend.layouts.app')\n@section('title') foo\n@endsection\n@section('content')\n
\n
\n
\n
\n

@lang('users.index')

\n
\n
\n
    \n @foreach($users as $user)\n
  • \n \"branch_arrow\"\n {{ link_to_route(\"frontend.users.user.show\",$users[\"name\"],$users['_id']) }}\n
  • \n @endforeach\n
\n
\n @can('create', App\\Models\\User::class)\n {!! link_to_route(\"frontend.users.user.create\",__('users.create'),[1,2,3],['class' => 'btn']) !!}\n @endcan\n
\n
\n
\n
\n@endsection\n@section('footer')\n@stop", - "test_output": "@extends('frontend.layouts.app')\n@section('title') foo\n@endsection\n@section('content')\n
\n
\n
\n
\n

@lang('users.index')

\n
\n
\n
    \n @foreach ($users as $user)\n
  • \n \"branch_arrow\"\n {{ link_to_route('frontend.users.user.show', $users['name'], $users['_id']) }}\n
  • \n @endforeach\n
\n
\n @can('create', App\\Models\\User::class)\n {!! link_to_route('frontend.users.user.create', __('users.create'), [1, 2, 3], ['class' => 'btn']) !!}\n @endcan\n
\n
\n
\n
\n@endsection\n@section('footer')\n@stop\n" - } - ] + "npm": "blade-formatter" } diff --git a/tools/blue/plugin.json b/tools/blue/plugin.json index 5067f61e..63f27f17 100644 --- a/tools/blue/plugin.json +++ b/tools/blue/plugin.json @@ -4,25 +4,18 @@ "categories": ["formatter"], "commands": { "": { - "command": ["--quiet", "$PATH"], - "description": "", - "homepage": "", + "arguments": ["--quiet", "$PATH"], "ignore_output": false, - "tests": [] + "tests": [ + { + "language": "python", + "test_input": "def add( a: int , b:int)->int: return a+b", + "test_output": "def add(a: int, b: int) -> int:\n return a + b\n" + } + ] } }, "description": "The slightly less uncompromising Python code formatter", "homepage": "https://github.com/grantjenks/blue", - "languages": ["python"], - "name": null, - "npm": null, - "php": null, - "tests": [ - { - "command": "", - "language": "python", - "test_input": "def add( a: int , b:int)->int: return a+b", - "test_output": "def add(a: int, b: int) -> int:\n return a + b\n" - } - ] + "languages": ["python"] } diff --git a/tools/bpfmt/plugin.json b/tools/bpfmt/plugin.json index 83aa111a..0ed8d504 100644 --- a/tools/bpfmt/plugin.json +++ b/tools/bpfmt/plugin.json @@ -4,18 +4,11 @@ "categories": ["formatter"], "commands": { "": { - "command": ["-w", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["-w", "$PATH"], + "ignore_output": false } }, "description": "A formatter for Blueprint files", "homepage": "https://source.android.com/docs/setup/reference/androidbp#formatter", - "languages": ["blueprint"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["blueprint"] } diff --git a/tools/brighterscript-formatter/plugin.json b/tools/brighterscript-formatter/plugin.json index f59aee00..7fe756c1 100644 --- a/tools/brighterscript-formatter/plugin.json +++ b/tools/brighterscript-formatter/plugin.json @@ -4,18 +4,12 @@ "categories": ["formatter"], "commands": { "": { - "command": ["$PATH", "--write"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["$PATH", "--write"], + "ignore_output": false } }, "description": "A code formatter for BrightScript and BrighterScript", "homepage": "https://github.com/rokucommunity/brighterscript-formatter", "languages": ["brighterscript", "brightscript"], - "name": null, - "npm": "brighterscript-formatter", - "php": null, - "tests": [] + "npm": "brighterscript-formatter" } diff --git a/tools/brittany/plugin.json b/tools/brittany/plugin.json index 2206c8cc..1ff58e5d 100644 --- a/tools/brittany/plugin.json +++ b/tools/brittany/plugin.json @@ -4,18 +4,11 @@ "categories": ["formatter"], "commands": { "": { - "command": ["--write-mode=inplace", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["--write-mode=inplace", "$PATH"], + "ignore_output": false } }, "description": "A Haskell source code formatter", "homepage": "https://github.com/lspitzner/brittany", - "languages": ["haskell"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["haskell"] } diff --git a/tools/brunette/plugin.json b/tools/brunette/plugin.json index a406e988..8dada991 100644 --- a/tools/brunette/plugin.json +++ b/tools/brunette/plugin.json @@ -4,25 +4,18 @@ "categories": ["formatter"], "commands": { "": { - "command": ["--quiet", "$PATH"], - "description": "", - "homepage": "", + "arguments": ["--quiet", "$PATH"], "ignore_output": false, - "tests": [] + "tests": [ + { + "language": "python", + "test_input": "def add( a: int , b:int)->int: return a+b", + "test_output": "def add(a: int, b: int) -> int:\n return a + b\n" + } + ] } }, "description": "A best practice Python code formatter", "homepage": "https://github.com/odwyersoftware/brunette", - "languages": ["python"], - "name": null, - "npm": null, - "php": null, - "tests": [ - { - "command": "", - "language": "python", - "test_input": "def add( a: int , b:int)->int: return a+b", - "test_output": "def add(a: int, b: int) -> int:\n return a + b\n" - } - ] + "languages": ["python"] } diff --git a/tools/bslint/plugin.json b/tools/bslint/plugin.json index 82d99bc0..63373843 100644 --- a/tools/bslint/plugin.json +++ b/tools/bslint/plugin.json @@ -4,18 +4,12 @@ "categories": ["linter"], "commands": { "": { - "command": ["--fix", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["--fix", "$PATH"], + "ignore_output": false } }, "description": "A linter for BrightScript and BrighterScript", "homepage": "https://github.com/rokucommunity/bslint", "languages": ["brightscript", "brightscripter"], - "name": null, - "npm": "bslint", - "php": null, - "tests": [] + "npm": "bslint" } diff --git a/tools/buf/plugin.json b/tools/buf/plugin.json index 7059223c..48495127 100644 --- a/tools/buf/plugin.json +++ b/tools/buf/plugin.json @@ -4,25 +4,19 @@ "categories": ["formatter"], "commands": { "format": { - "command": ["format", "--write", "$PATH"], - "description": "", - "homepage": "", + "arguments": ["format", "--write", "$PATH"], "ignore_output": false, - "tests": [] + "tests": [ + { + "language": "protobuf", + "test_input": "service SearchService {\n rpc Search (SearchRequest) returns (SearchResponse);\n }", + "test_output": "service SearchService {\n rpc Search(SearchRequest) returns (SearchResponse);\n}\n" + } + ] } }, "description": "The best way of working with Protocol Buffers", "homepage": "https://buf.build/docs/reference/cli/buf/format/", "languages": ["protobuf"], - "name": null, - "npm": "@bufbuild/buf", - "php": null, - "tests": [ - { - "command": "format", - "language": "protobuf", - "test_input": "service SearchService {\n rpc Search (SearchRequest) returns (SearchResponse);\n }", - "test_output": "service SearchService {\n rpc Search(SearchRequest) returns (SearchResponse);\n}\n" - } - ] + "npm": "@bufbuild/buf" } diff --git a/tools/buildifier/plugin.json b/tools/buildifier/plugin.json index bd069172..ee7dce40 100644 --- a/tools/buildifier/plugin.json +++ b/tools/buildifier/plugin.json @@ -4,18 +4,11 @@ "categories": ["formatter"], "commands": { "": { - "command": ["$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["$PATH"], + "ignore_output": false } }, "description": "A bazel BUILD file formatter and", "homepage": "https://github.com/bazelbuild/buildtools", - "languages": ["bazel"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["bazel"] } diff --git a/tools/cabal-fmt/plugin.json b/tools/cabal-fmt/plugin.json index 140d25d8..c64077ff 100644 --- a/tools/cabal-fmt/plugin.json +++ b/tools/cabal-fmt/plugin.json @@ -4,18 +4,11 @@ "categories": ["formatter"], "commands": { "": { - "command": ["--inplace", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["--inplace", "$PATH"], + "ignore_output": false } }, "description": "An experiment of formatting .cabal files", "homepage": "https://github.com/phadej/cabal-fmt", - "languages": ["cabal"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["cabal"] } diff --git a/tools/cabal-prettify/plugin.json b/tools/cabal-prettify/plugin.json index efc59785..76a3ef7d 100644 --- a/tools/cabal-prettify/plugin.json +++ b/tools/cabal-prettify/plugin.json @@ -4,18 +4,11 @@ "categories": ["formatter"], "commands": { "": { - "command": ["$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["$PATH"], + "ignore_output": false } }, "description": "Prettify your Cabal package configuration files", "homepage": "https://github.com/kindaro/cabal-prettify", - "languages": ["cabal"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["cabal"] } diff --git a/tools/cabal/plugin.json b/tools/cabal/plugin.json index 19553e4a..85e4dffd 100644 --- a/tools/cabal/plugin.json +++ b/tools/cabal/plugin.json @@ -4,25 +4,18 @@ "categories": ["formatter"], "commands": { "format": { - "command": ["format", "$PATH"], - "description": "", - "homepage": "", + "arguments": ["format", "$PATH"], "ignore_output": false, - "tests": [] + "tests": [ + { + "language": "cabal", + "test_input": "cabal-version: 2.4\nname: mdsf\nversion: 0\n\nexecutable msdf\n default-language: Haskell2010\n hs-source-dirs: src\n main-is: Mdsf.hs\n build-depends: base >=4.11 && <4.13, pretty >=1.1.3.6 && <1.2, bytestring, Cabal ^>=2.5, containers ^>=0.5.11.0 || ^>=0.6.0.1\n other-extensions:\n DeriveFunctor FlexibleContexts ExistentialQuantification OverloadedStrings\n RankNTypes", + "test_output": "cabal-version: 2.4\nname: mdsf\nversion: 0\n\nexecutable msdf\n main-is: Mdsf.hs\n hs-source-dirs: src\n default-language: Haskell2010\n other-extensions:\n DeriveFunctor FlexibleContexts ExistentialQuantification\n OverloadedStrings RankNTypes\n\n build-depends:\n base >=4.11 && <4.13,\n pretty >=1.1.3.6 && <1.2,\n bytestring,\n Cabal ^>=2.5,\n containers ^>=0.5.11.0 || ^>=0.6.0.1\n" + } + ] } }, "description": "Cabal is a system for building and packaging Haskell libraries and programs", "homepage": "https://www.haskell.org/cabal/", - "languages": ["cabal"], - "name": null, - "npm": null, - "php": null, - "tests": [ - { - "command": "format", - "language": "cabal", - "test_input": "cabal-version: 2.4\nname: mdsf\nversion: 0\n\nexecutable msdf\n default-language: Haskell2010\n hs-source-dirs: src\n main-is: Mdsf.hs\n build-depends: base >=4.11 && <4.13, pretty >=1.1.3.6 && <1.2, bytestring, Cabal ^>=2.5, containers ^>=0.5.11.0 || ^>=0.6.0.1\n other-extensions:\n DeriveFunctor FlexibleContexts ExistentialQuantification OverloadedStrings\n RankNTypes", - "test_output": "cabal-version: 2.4\nname: mdsf\nversion: 0\n\nexecutable msdf\n main-is: Mdsf.hs\n hs-source-dirs: src\n default-language: Haskell2010\n other-extensions:\n DeriveFunctor FlexibleContexts ExistentialQuantification\n OverloadedStrings RankNTypes\n\n build-depends:\n base >=4.11 && <4.13,\n pretty >=1.1.3.6 && <1.2,\n bytestring,\n Cabal ^>=2.5,\n containers ^>=0.5.11.0 || ^>=0.6.0.1\n" - } - ] + "languages": ["cabal"] } diff --git a/tools/caddy/plugin.json b/tools/caddy/plugin.json index 85771cf4..dd2f7dca 100644 --- a/tools/caddy/plugin.json +++ b/tools/caddy/plugin.json @@ -4,18 +4,11 @@ "categories": ["formatter"], "commands": { "fmt": { - "command": ["fmt", "$PATH", "-w"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["fmt", "$PATH", "-w"], + "ignore_output": false } }, "description": "Formats or prettifies a Caddyfile", "homepage": "https://caddyserver.com/docs/command-line#caddy-fmt", - "languages": ["caddy"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["caddy"] } diff --git a/tools/caramel/plugin.json b/tools/caramel/plugin.json index 943541ec..98bb0d45 100644 --- a/tools/caramel/plugin.json +++ b/tools/caramel/plugin.json @@ -4,18 +4,11 @@ "categories": ["formatter"], "commands": { "fmt": { - "command": ["fmt", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["fmt", "$PATH"], + "ignore_output": false } }, "description": "Formatter for the Caramel programming language", "homepage": "https://caramel.run/", - "languages": ["caramel"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["caramel"] } diff --git a/tools/clang-format/plugin.json b/tools/clang-format/plugin.json index e3adffcd..a1803ffb 100644 --- a/tools/clang-format/plugin.json +++ b/tools/clang-format/plugin.json @@ -4,11 +4,50 @@ "categories": ["formatter"], "commands": { "": { - "command": ["-i", "$PATH"], - "description": "", - "homepage": "", + "arguments": ["-i", "$PATH"], "ignore_output": false, - "tests": [] + "tests": [ + { + "language": "java", + "test_input": "class HelloWorld {\n public static void main(String[] args) {\n System.out.println(\"Hello\");\n System.out.println(\"World!\");\n }\n}", + "test_output": "class HelloWorld {\n public static void main(String[] args) {\n System.out.println(\"Hello\");\n System.out.println(\"World!\");\n }\n}" + }, + { + "language": "protobuf", + "test_input": "service SearchService {\n rpc Search (SearchRequest) returns (SearchResponse);\n }", + "test_output": "service SearchService { rpc Search(SearchRequest) returns (SearchResponse); }" + }, + { + "language": "objective-c", + "test_input": "int add(int a,int b){\n a - a ;\n return a + b;\n }", + "test_output": "int add(int a, int b) {\n a - a;\n return a + b;\n}" + }, + { + "language": "c", + "test_input": "int add(int a,int b){\n a-b;\n return a + b;\n }", + "test_output": "int add(int a, int b) {\n a - b;\n return a + b;\n}" + }, + { + "language": "cpp", + "test_input": "int add(int a,int b){\n a-b;\n return a + b;\n }", + "test_output": "int add(int a, int b) {\n a - b;\n return a + b;\n}" + }, + { + "language": "csharp", + "test_input": "namespace Mdsf {\n class Adder {\n public static int add(int a,int b) {\n a-b ;\n return a + b;\n }\n }\n } ", + "test_output": "namespace Mdsf {\nclass Adder {\n public static int add(int a, int b) {\n a - b;\n return a + b;\n }\n}\n}" + }, + { + "language": "json", + "test_input": " {\n \"key\": \"value\",\n \"key2\": [\"value2\", \"value3\", 1 , null]\n } ", + "test_output": "{\n \"key\": \"value\",\n \"key2\": [\n \"value2\",\n \"value3\",\n 1,\n null\n ]\n}" + }, + { + "language": "javascript", + "test_input": " async function asyncAddition( a,b) {\n a * b;\n return a+b\n } ", + "test_output": "async function asyncAddition(a, b) {\n a * b;\n return a + b\n}" + } + ] } }, "description": "A tool to format C/C++/Java/JavaScript/JSON/Objective-C/Protobuf/C# code", @@ -22,58 +61,5 @@ "c", "objective-c", "javascript" - ], - "name": null, - "npm": null, - "php": null, - "tests": [ - { - "command": "", - "language": "java", - "test_input": "class HelloWorld {\n public static void main(String[] args) {\n System.out.println(\"Hello\");\n System.out.println(\"World!\");\n }\n}", - "test_output": "class HelloWorld {\n public static void main(String[] args) {\n System.out.println(\"Hello\");\n System.out.println(\"World!\");\n }\n}" - }, - { - "command": "", - "language": "protobuf", - "test_input": "service SearchService {\n rpc Search (SearchRequest) returns (SearchResponse);\n }", - "test_output": "service SearchService { rpc Search(SearchRequest) returns (SearchResponse); }" - }, - { - "command": "", - "language": "objective-c", - "test_input": "int add(int a,int b){\n a - a ;\n return a + b;\n }", - "test_output": "int add(int a, int b) {\n a - a;\n return a + b;\n}" - }, - { - "command": "", - "language": "c", - "test_input": "int add(int a,int b){\n a-b;\n return a + b;\n }", - "test_output": "int add(int a, int b) {\n a - b;\n return a + b;\n}" - }, - { - "command": "", - "language": "cpp", - "test_input": "int add(int a,int b){\n a-b;\n return a + b;\n }", - "test_output": "int add(int a, int b) {\n a - b;\n return a + b;\n}" - }, - { - "command": "", - "language": "csharp", - "test_input": "namespace Mdsf {\n class Adder {\n public static int add(int a,int b) {\n a-b ;\n return a + b;\n }\n }\n } ", - "test_output": "namespace Mdsf {\nclass Adder {\n public static int add(int a, int b) {\n a - b;\n return a + b;\n }\n}\n}" - }, - { - "command": "", - "language": "json", - "test_input": " {\n \"key\": \"value\",\n \"key2\": [\"value2\", \"value3\", 1 , null]\n } ", - "test_output": "{\n \"key\": \"value\",\n \"key2\": [\n \"value2\",\n \"value3\",\n 1,\n null\n ]\n}" - }, - { - "command": "", - "language": "javascript", - "test_input": " async function asyncAddition( a,b) {\n a * b;\n return a+b\n } ", - "test_output": "async function asyncAddition(a, b) {\n a * b;\n return a + b\n}" - } ] } diff --git a/tools/clang-tidy/plugin.json b/tools/clang-tidy/plugin.json index cbd44003..99ff9eb9 100644 --- a/tools/clang-tidy/plugin.json +++ b/tools/clang-tidy/plugin.json @@ -4,18 +4,11 @@ "categories": ["linter"], "commands": { "": { - "command": ["--fix", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["--fix", "$PATH"], + "ignore_output": false } }, "description": "clang-tidy is a clang-based C++ “linter” tool", "homepage": "https://clang.llvm.org/extra/clang-tidy/", - "languages": ["c++"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["c++"] } diff --git a/tools/cljfmt/plugin.json b/tools/cljfmt/plugin.json index b24ae9a6..c0df3f25 100644 --- a/tools/cljfmt/plugin.json +++ b/tools/cljfmt/plugin.json @@ -4,18 +4,11 @@ "categories": ["formatter"], "commands": { "fix": { - "command": ["fix", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["fix", "$PATH"], + "ignore_output": false } }, "description": "A tool for formatting Clojure code", "homepage": "https://github.com/weavejester/cljfmt", - "languages": ["clojure"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["clojure"] } diff --git a/tools/cljstyle/plugin.json b/tools/cljstyle/plugin.json index 5ad40290..ad852980 100644 --- a/tools/cljstyle/plugin.json +++ b/tools/cljstyle/plugin.json @@ -4,25 +4,18 @@ "categories": ["formatter"], "commands": { "": { - "command": ["fix", "$PATH"], - "description": "", - "homepage": "", + "arguments": ["fix", "$PATH"], "ignore_output": false, - "tests": [] + "tests": [ + { + "language": "clojure", + "test_input": "( ns\n foo.bar.baz \"some doc\"\n (:require (foo.bar [abc :as abc]\n def))\n (:use foo.bar.qux)\n (:import foo.bar.qux.Foo\n ;; Need this for the thing\n foo.bar.qux.Bar)\n )\n\n(defn hello \"says hi\" (\n [] (hello \"world\")\n ) ([name]\n ( println \"Hello,\" name )\n ))", + "test_output": "(ns foo.bar.baz\n \"some doc\"\n (:require\n [foo.bar.abc :as abc]\n [foo.bar.def]\n [foo.bar.qux :refer :all])\n (:import\n (foo.bar.qux\n ;; Need this for the thing\n Bar\n Foo)))\n\n\n(defn hello\n \"says hi\"\n ([] (hello \"world\"))\n ([name]\n (println \"Hello,\" name)))\n" + } + ] } }, "description": "A tool for formatting Clojure code", "homepage": "https://github.com/greglook/cljstyle", - "languages": ["clojure"], - "name": null, - "npm": null, - "php": null, - "tests": [ - { - "command": "", - "language": "clojure", - "test_input": "( ns\n foo.bar.baz \"some doc\"\n (:require (foo.bar [abc :as abc]\n def))\n (:use foo.bar.qux)\n (:import foo.bar.qux.Foo\n ;; Need this for the thing\n foo.bar.qux.Bar)\n )\n\n(defn hello \"says hi\" (\n [] (hello \"world\")\n ) ([name]\n ( println \"Hello,\" name )\n ))", - "test_output": "(ns foo.bar.baz\n \"some doc\"\n (:require\n [foo.bar.abc :as abc]\n [foo.bar.def]\n [foo.bar.qux :refer :all])\n (:import\n (foo.bar.qux\n ;; Need this for the thing\n Bar\n Foo)))\n\n\n(defn hello\n \"says hi\"\n ([] (hello \"world\"))\n ([name]\n (println \"Hello,\" name)))\n" - } - ] + "languages": ["clojure"] } diff --git a/tools/cmake-format/plugin.json b/tools/cmake-format/plugin.json index 1f6dd83a..26a54521 100644 --- a/tools/cmake-format/plugin.json +++ b/tools/cmake-format/plugin.json @@ -4,18 +4,11 @@ "categories": ["formatter"], "commands": { "": { - "command": ["-i", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["-i", "$PATH"], + "ignore_output": false } }, "description": "cmake-format can format your listfiles nicely so that they don’t look like crap", "homepage": "https://cmake-format.readthedocs.io/en/latest/cmake-format.html", - "languages": ["cmake"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["cmake"] } diff --git a/tools/codespell/plugin.json b/tools/codespell/plugin.json index a2a5eb27..a7b9f720 100644 --- a/tools/codespell/plugin.json +++ b/tools/codespell/plugin.json @@ -4,18 +4,11 @@ "categories": ["autocorrection"], "commands": { "": { - "command": ["$PATH", "--check-hidden", "--write-changes"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["$PATH", "--check-hidden", "--write-changes"], + "ignore_output": false } }, "description": "Check code for common misspellings", "homepage": "https://github.com/codespell-project/codespell", - "languages": [], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": [] } diff --git a/tools/crlfmt/plugin.json b/tools/crlfmt/plugin.json index 3e53d646..fcd81785 100644 --- a/tools/crlfmt/plugin.json +++ b/tools/crlfmt/plugin.json @@ -4,18 +4,11 @@ "categories": ["formatter"], "commands": { "": { - "command": ["-w", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["-w", "$PATH"], + "ignore_output": false } }, "description": "Formatter for CockroachDB's additions to the Go style guide", "homepage": "https://github.com/cockroachdb/crlfmt", - "languages": ["go"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["go"] } diff --git a/tools/crystal/plugin.json b/tools/crystal/plugin.json index 2a2b6170..86fbcb9d 100644 --- a/tools/crystal/plugin.json +++ b/tools/crystal/plugin.json @@ -4,25 +4,18 @@ "categories": ["formatter"], "commands": { "format": { - "command": ["tool", "format", "$PATH"], - "description": "", - "homepage": "", + "arguments": ["tool", "format", "$PATH"], "ignore_output": false, - "tests": [] + "tests": [ + { + "language": "crystal", + "test_input": "def add(a, b) return a + b end", + "test_output": "def add(a, b)\n return a + b\nend\n" + } + ] } }, "description": "Tools for the Crystal programming language", "homepage": "https://crystal-lang.org/", - "languages": ["crystal"], - "name": null, - "npm": null, - "php": null, - "tests": [ - { - "command": "format", - "language": "crystal", - "test_input": "def add(a, b) return a + b end", - "test_output": "def add(a, b)\n return a + b\nend\n" - } - ] + "languages": ["crystal"] } diff --git a/tools/csharpier/plugin.json b/tools/csharpier/plugin.json index 6ce23f9d..30f274ed 100644 --- a/tools/csharpier/plugin.json +++ b/tools/csharpier/plugin.json @@ -4,25 +4,19 @@ "categories": ["formatter"], "commands": { "": { - "command": ["csharpier", "$PATH"], - "description": "", - "homepage": "", + "arguments": ["csharpier", "$PATH"], "ignore_output": false, - "tests": [] + "tests": [ + { + "language": "csharp", + "test_input": "namespace Mdsf {\n class Adder {\n public static int add(int a,int b) {\n var c=a+b ;\n return c ;\n }\n }\n } ", + "test_output": "namespace Mdsf\n{\n class Adder\n {\n public static int add(int a, int b)\n {\n var c = a + b;\n return c;\n }\n }\n}\n" + } + ] } }, "description": "An Opinionated Code Formatter for C#", "homepage": "https://csharpier.com/", "languages": ["c#"], - "name": "csharpier", - "npm": null, - "php": null, - "tests": [ - { - "command": "", - "language": "csharp", - "test_input": "namespace Mdsf {\n class Adder {\n public static int add(int a,int b) {\n var c=a+b ;\n return c ;\n }\n }\n } ", - "test_output": "namespace Mdsf\n{\n class Adder\n {\n public static int add(int a, int b)\n {\n var c = a + b;\n return c;\n }\n }\n}\n" - } - ] + "name": "csharpier" } diff --git a/tools/css-beautify/plugin.json b/tools/css-beautify/plugin.json index df6f3e87..402447e6 100644 --- a/tools/css-beautify/plugin.json +++ b/tools/css-beautify/plugin.json @@ -4,25 +4,19 @@ "categories": ["formatter"], "commands": { "": { - "command": ["-r", "--type", "css", "-f", "$PATH"], - "description": "", - "homepage": "", + "arguments": ["-r", "--type", "css", "-f", "$PATH"], "ignore_output": false, - "tests": [] + "tests": [ + { + "language": "css", + "test_input": "h1 {color: blue;} p {color: red;}", + "test_output": "h1 {\n color: blue;\n}\n\np {\n color: red;\n}" + } + ] } }, "description": "A css formatter", "homepage": "https://github.com/beautifier/js-beautify?tab=readme-ov-file#css--html", "languages": ["css"], - "name": null, - "npm": "js-beautify", - "php": null, - "tests": [ - { - "command": "", - "language": "css", - "test_input": "h1 {color: blue;} p {color: red;}", - "test_output": "h1 {\n color: blue;\n}\n\np {\n color: red;\n}" - } - ] + "npm": "js-beautify" } diff --git a/tools/csscomb/plugin.json b/tools/csscomb/plugin.json index 049936c1..cdd3590d 100644 --- a/tools/csscomb/plugin.json +++ b/tools/csscomb/plugin.json @@ -4,25 +4,19 @@ "categories": ["formatter"], "commands": { "": { - "command": ["-t", "$PATH"], - "description": "", - "homepage": "", + "arguments": ["-t", "$PATH"], "ignore_output": false, - "tests": [] + "tests": [ + { + "language": "css", + "test_input": "h1 {color: blue;}\np {color: red;}", + "test_output": "h1\n{\n color: blue;\n}\np\n{\n color: red;\n}\n" + } + ] } }, "description": "CSS coding style formatter", "homepage": "https://github.com/csscomb/csscomb.js", "languages": ["css"], - "name": null, - "npm": "csscomb", - "php": null, - "tests": [ - { - "command": "", - "language": "css", - "test_input": "h1 {color: blue;}\np {color: red;}", - "test_output": "h1\n{\n color: blue;\n}\np\n{\n color: red;\n}\n" - } - ] + "npm": "csscomb" } diff --git a/tools/csslint/plugin.json b/tools/csslint/plugin.json index 2875aaa1..34d36a8c 100644 --- a/tools/csslint/plugin.json +++ b/tools/csslint/plugin.json @@ -4,18 +4,12 @@ "categories": ["linter"], "commands": { "": { - "command": ["--quiet", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["--quiet", "$PATH"], + "ignore_output": false } }, "description": "Automated linting of Cascading Stylesheets", "homepage": "https://github.com/CSSLint/csslint", "languages": ["css"], - "name": null, - "npm": "csslint", - "php": null, - "tests": [] + "npm": "csslint" } diff --git a/tools/curlylint/plugin.json b/tools/curlylint/plugin.json index 45757ae3..0fb845bb 100644 --- a/tools/curlylint/plugin.json +++ b/tools/curlylint/plugin.json @@ -4,18 +4,11 @@ "categories": ["linter"], "commands": { "": { - "command": ["-q", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["-q", "$PATH"], + "ignore_output": false } }, "description": "Experimental HTML templates linting for Jinja, Nunjucks, Django templates, Twig, Liquid", "homepage": "https://github.com/thibaudcolas/curlylint", - "languages": ["nunjucks", "django", "jinja", "liquid", "twig"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["nunjucks", "django", "jinja", "liquid", "twig"] } diff --git a/tools/d2/plugin.json b/tools/d2/plugin.json index 1be7604f..ee93562c 100644 --- a/tools/d2/plugin.json +++ b/tools/d2/plugin.json @@ -4,18 +4,11 @@ "categories": ["formatter"], "commands": { "fmt": { - "command": ["fmt", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["fmt", "$PATH"], + "ignore_output": false } }, "description": "Formatter for the d2 language", "homepage": "https://d2lang.com/", - "languages": ["d2"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["d2"] } diff --git a/tools/dart/plugin.json b/tools/dart/plugin.json index a04eac2d..026b3f4b 100644 --- a/tools/dart/plugin.json +++ b/tools/dart/plugin.json @@ -4,32 +4,22 @@ "categories": ["linter", "formatter"], "commands": { "fix": { - "command": ["fix", "--apply", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["fix", "--apply", "$PATH"], + "ignore_output": false }, "format": { - "command": ["format", "$PATH"], - "description": "", - "homepage": "", + "arguments": ["format", "$PATH"], "ignore_output": false, - "tests": [] + "tests": [ + { + "language": "dart", + "test_input": "class Adder { int add(int a, int b) { return a + b; } } ", + "test_output": "class Adder {\n int add(int a, int b) {\n return a + b;\n }\n}\n" + } + ] } }, "description": "Formatter and linter for Dart", "homepage": "https://dart.dev/tools", - "languages": ["dart", "flutter"], - "name": null, - "npm": null, - "php": null, - "tests": [ - { - "command": "format", - "language": "dart", - "test_input": "class Adder { int add(int a, int b) { return a + b; } } ", - "test_output": "class Adder {\n int add(int a, int b) {\n return a + b;\n }\n}\n" - } - ] + "languages": ["dart", "flutter"] } diff --git a/tools/dcm/plugin.json b/tools/dcm/plugin.json index 063b27b6..b4818a58 100644 --- a/tools/dcm/plugin.json +++ b/tools/dcm/plugin.json @@ -4,25 +4,15 @@ "categories": ["linter", "formatter"], "commands": { "fix": { - "command": ["fix", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["fix", "$PATH"], + "ignore_output": false }, "format": { - "command": ["format", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["format", "$PATH"], + "ignore_output": false } }, "description": "Code Quality Tool for Flutter Developers", "homepage": "https://dcm.dev/", - "languages": ["flutter", "dart"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["flutter", "dart"] } diff --git a/tools/deadnix/plugin.json b/tools/deadnix/plugin.json index 19a33f94..83b7c66c 100644 --- a/tools/deadnix/plugin.json +++ b/tools/deadnix/plugin.json @@ -4,18 +4,11 @@ "categories": ["linter"], "commands": { "": { - "command": ["-q", "--edit", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["-q", "--edit", "$PATH"], + "ignore_output": false } }, "description": "Scan Nix files for dead code", "homepage": "https://github.com/astro/deadnix", - "languages": ["nix"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["nix"] } diff --git a/tools/deno/plugin.json b/tools/deno/plugin.json index 77617e54..5b7971b0 100644 --- a/tools/deno/plugin.json +++ b/tools/deno/plugin.json @@ -4,44 +4,32 @@ "categories": ["formatter", "linter"], "commands": { "fmt": { - "command": ["fmt", "--quiet", "$PATH"], - "description": "", - "homepage": "", + "arguments": ["fmt", "--quiet", "$PATH"], "ignore_output": false, - "tests": [] + "tests": [ + { + "language": "javascript", + "test_input": "\n async function asyncAddition(a,b){\n return a+b\n }\n\n ", + "test_output": "async function asyncAddition(a, b) {\n return a + b;\n}\n" + }, + { + "language": "typescript", + "test_input": "\n async function asyncAddition( a: \tnumber,b:number ) :Promise< number>\n {\n return a+b\n }\n\n ", + "test_output": "async function asyncAddition(a: number, b: number): Promise {\n return a + b;\n}\n" + }, + { + "language": "json", + "test_input": "\n {\n \"key\": \"value\",\n \"key2\": [\n \"value2\",\n \"value3\",\n 1\n , null]\n }\n ", + "test_output": "{\n \"key\": \"value\",\n \"key2\": [\n \"value2\",\n \"value3\",\n 1,\n null\n ]\n}\n" + } + ] }, "lint": { - "command": ["lint", "--fix", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["lint", "--fix", "$PATH"], + "ignore_output": false } }, "description": "Formatter and linter for JavaScript and TypeScript", "homepage": "https://docs.deno.com/runtime/reference/cli/", - "languages": ["typescript", "javascript", "json"], - "name": null, - "npm": null, - "php": null, - "tests": [ - { - "command": "fmt", - "language": "javascript", - "test_input": "\n async function asyncAddition(a,b){\n return a+b\n }\n\n ", - "test_output": "async function asyncAddition(a, b) {\n return a + b;\n}\n" - }, - { - "command": "fmt", - "language": "typescript", - "test_input": "\n async function asyncAddition( a: \tnumber,b:number ) :Promise< number>\n {\n return a+b\n }\n\n ", - "test_output": "async function asyncAddition(a: number, b: number): Promise {\n return a + b;\n}\n" - }, - { - "command": "fmt", - "language": "json", - "test_input": "\n {\n \"key\": \"value\",\n \"key2\": [\n \"value2\",\n \"value3\",\n 1\n , null]\n }\n ", - "test_output": "{\n \"key\": \"value\",\n \"key2\": [\n \"value2\",\n \"value3\",\n 1,\n null\n ]\n}\n" - } - ] + "languages": ["typescript", "javascript", "json"] } diff --git a/tools/dfmt/plugin.json b/tools/dfmt/plugin.json index b941faf2..839423a9 100644 --- a/tools/dfmt/plugin.json +++ b/tools/dfmt/plugin.json @@ -4,18 +4,11 @@ "categories": ["formatter"], "commands": { "": { - "command": ["-i", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["-i", "$PATH"], + "ignore_output": false } }, "description": "Dfmt is a formatter for D source code", "homepage": "https://github.com/dlang-community/dfmt", - "languages": ["d"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["d"] } diff --git a/tools/dhall/plugin.json b/tools/dhall/plugin.json index 8cba4e07..addc8f7d 100644 --- a/tools/dhall/plugin.json +++ b/tools/dhall/plugin.json @@ -4,18 +4,11 @@ "categories": ["formatter"], "commands": { "": { - "command": ["format", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["format", "$PATH"], + "ignore_output": false } }, "description": "Format Dhall files", "homepage": "https://dhall-lang.org/", - "languages": ["dhall"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["dhall"] } diff --git a/tools/djade/plugin.json b/tools/djade/plugin.json index 66986e46..5d34ce9b 100644 --- a/tools/djade/plugin.json +++ b/tools/djade/plugin.json @@ -4,18 +4,11 @@ "categories": ["formatter"], "commands": { "": { - "command": ["$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["$PATH"], + "ignore_output": false } }, "description": "A Django template formatter", "homepage": "https://github.com/adamchainz/djade", - "languages": ["python", "django"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["python", "django"] } diff --git a/tools/djlint/plugin.json b/tools/djlint/plugin.json index 1fd8ce96..d403c00f 100644 --- a/tools/djlint/plugin.json +++ b/tools/djlint/plugin.json @@ -4,18 +4,11 @@ "categories": ["formatter", "linter"], "commands": { "": { - "command": ["$PATH", "--reformat"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["$PATH", "--reformat"], + "ignore_output": false } }, "description": "Lint & Format HTML Templates", "homepage": "https://www.djlint.com/", - "languages": ["jinja", "mustache", "twig", "handlebars", "html", "nunjucks"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["jinja", "mustache", "twig", "handlebars", "html", "nunjucks"] } diff --git a/tools/docformatter/plugin.json b/tools/docformatter/plugin.json index f5e81e07..72de9305 100644 --- a/tools/docformatter/plugin.json +++ b/tools/docformatter/plugin.json @@ -4,18 +4,11 @@ "categories": ["formatter"], "commands": { "": { - "command": ["--in-place", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["--in-place", "$PATH"], + "ignore_output": false } }, "description": "Formats docstrings to follow PEP 257", "homepage": "https://pypi.org/project/docformatter/", - "languages": ["python"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["python"] } diff --git a/tools/dockfmt/plugin.json b/tools/dockfmt/plugin.json index 0421e9c8..6af0b819 100644 --- a/tools/dockfmt/plugin.json +++ b/tools/dockfmt/plugin.json @@ -4,18 +4,11 @@ "categories": ["formatter"], "commands": { "": { - "command": ["fmt", "-w", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["fmt", "-w", "$PATH"], + "ignore_output": false } }, "description": "Dockerfile format and parser. Like `gofmt` but for Dockerfiles", "homepage": "https://github.com/jessfraz/dockfmt", - "languages": ["docker"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["docker"] } diff --git a/tools/docstrfmt/plugin.json b/tools/docstrfmt/plugin.json index ba1b5550..7671307a 100644 --- a/tools/docstrfmt/plugin.json +++ b/tools/docstrfmt/plugin.json @@ -4,18 +4,11 @@ "categories": ["formatter"], "commands": { "": { - "command": ["$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["$PATH"], + "ignore_output": false } }, "description": "A formatter for Sphinx flavored reStructuredText", "homepage": "https://pypi.org/project/docstrfmt/", - "languages": ["reStructuredText", "python", "Sphinx"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["reStructuredText", "python", "Sphinx"] } diff --git a/tools/doctoc/plugin.json b/tools/doctoc/plugin.json index 125cd526..90480cbd 100644 --- a/tools/doctoc/plugin.json +++ b/tools/doctoc/plugin.json @@ -4,18 +4,12 @@ "categories": ["formatter"], "commands": { "": { - "command": ["$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["$PATH"], + "ignore_output": false } }, "description": "Generates table of contents for markdown files", "homepage": "https://github.com/thlorenz/doctoc", "languages": ["markdown"], - "name": null, - "npm": "doctoc", - "php": null, - "tests": [] + "npm": "doctoc" } diff --git a/tools/dotenv-linter/plugin.json b/tools/dotenv-linter/plugin.json index 29f23adb..dfd51654 100644 --- a/tools/dotenv-linter/plugin.json +++ b/tools/dotenv-linter/plugin.json @@ -4,18 +4,11 @@ "categories": ["linter"], "commands": { "fix": { - "command": ["fix", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["fix", "$PATH"], + "ignore_output": false } }, "description": "Lightning-fast linter for .env files", "homepage": "https://github.com/dotenv-linter/dotenv-linter", - "languages": ["env"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["env"] } diff --git a/tools/dprint/plugin.json b/tools/dprint/plugin.json index 755bb18a..c0a1915d 100644 --- a/tools/dprint/plugin.json +++ b/tools/dprint/plugin.json @@ -4,18 +4,12 @@ "categories": ["formatter"], "commands": { "fmt": { - "command": ["fmt", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["fmt", "$PATH"], + "ignore_output": false } }, "description": "A pluggable and configurable code formatting platform written in Rust", "homepage": "https://dprint.dev/", "languages": [], - "name": null, - "npm": "dprint", - "php": null, - "tests": [] + "npm": "dprint" } diff --git a/tools/easy-coding-standard/plugin.json b/tools/easy-coding-standard/plugin.json index e50d7f7b..915f2db4 100644 --- a/tools/easy-coding-standard/plugin.json +++ b/tools/easy-coding-standard/plugin.json @@ -4,18 +4,13 @@ "categories": ["linter", "formatter"], "commands": { "": { - "command": ["check", "$PATH", "--fix", "--no-interaction"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["check", "$PATH", "--fix", "--no-interaction"], + "ignore_output": false } }, "description": "The Easiest way to add coding standard to your PHP project", "homepage": "https://github.com/easy-coding-standard/easy-coding-standard", "languages": ["php"], "name": "easy-coding-standard", - "npm": null, - "php": "ecs", - "tests": [] + "php": "ecs" } diff --git a/tools/efmt/plugin.json b/tools/efmt/plugin.json index ff66c581..8dff65c8 100644 --- a/tools/efmt/plugin.json +++ b/tools/efmt/plugin.json @@ -4,25 +4,18 @@ "categories": ["formatter"], "commands": { "": { - "command": ["-w", "$PATH"], - "description": "", - "homepage": "", + "arguments": ["-w", "$PATH"], "ignore_output": false, - "tests": [] + "tests": [ + { + "language": "erlang", + "test_input": "what_is(Erlang) ->\ncase Erlang of movie->[hello(mike,joe,robert),credits]; language->formatting_arguments end\n.", + "test_output": "what_is(Erlang) ->\n case Erlang of movie -> [hello(mike, joe, robert), credits]; language -> formatting_arguments end.\n" + } + ] } }, "description": "Erlang code formatter", "homepage": "https://github.com/sile/efmt", - "languages": ["erlang"], - "name": null, - "npm": null, - "php": null, - "tests": [ - { - "command": "", - "language": "erlang", - "test_input": "what_is(Erlang) ->\ncase Erlang of movie->[hello(mike,joe,robert),credits]; language->formatting_arguments end\n.", - "test_output": "what_is(Erlang) ->\n case Erlang of movie -> [hello(mike, joe, robert), credits]; language -> formatting_arguments end.\n" - } - ] + "languages": ["erlang"] } diff --git a/tools/elm-format/plugin.json b/tools/elm-format/plugin.json index 2cad0237..3b8ee953 100644 --- a/tools/elm-format/plugin.json +++ b/tools/elm-format/plugin.json @@ -4,25 +4,19 @@ "categories": ["formatter"], "commands": { "": { - "command": ["--elm-version=0.19", "--yes", "$PATH"], - "description": "", - "homepage": "", + "arguments": ["--elm-version=0.19", "--yes", "$PATH"], "ignore_output": false, - "tests": [] + "tests": [ + { + "language": "elm", + "test_input": "import Html exposing (text)\n\n\nmain =\n text \"Hello!\"\n\n\n ", + "test_output": "module Main exposing (main)\n\nimport Html exposing (text)\n\n\nmain =\n text \"Hello!\"\n" + } + ] } }, "description": "elm-format formats Elm source code according to a standard set of rules based on the official Elm Style Guide", "homepage": "https://github.com/avh4/elm-format", "languages": ["elm"], - "name": null, - "npm": "elm-format", - "php": null, - "tests": [ - { - "command": "", - "language": "elm", - "test_input": "import Html exposing (text)\n\n\nmain =\n text \"Hello!\"\n\n\n ", - "test_output": "module Main exposing (main)\n\nimport Html exposing (text)\n\n\nmain =\n text \"Hello!\"\n" - } - ] + "npm": "elm-format" } diff --git a/tools/erb-formatter/plugin.json b/tools/erb-formatter/plugin.json index b782d817..19e678ae 100644 --- a/tools/erb-formatter/plugin.json +++ b/tools/erb-formatter/plugin.json @@ -4,18 +4,12 @@ "categories": ["formatter"], "commands": { "": { - "command": ["$PATH", "--write"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["$PATH", "--write"], + "ignore_output": false } }, "description": "Format ERB files with speed and precision", "homepage": "https://github.com/nebulab/erb-formatter", "languages": ["ruby", "erb"], - "name": "erb-formatter", - "npm": null, - "php": null, - "tests": [] + "name": "erb-formatter" } diff --git a/tools/erlfmt/plugin.json b/tools/erlfmt/plugin.json index d8258e18..84fe829e 100644 --- a/tools/erlfmt/plugin.json +++ b/tools/erlfmt/plugin.json @@ -4,25 +4,18 @@ "categories": ["formatter"], "commands": { "": { - "command": ["-w", "$PATH_STRING"], - "description": "", - "homepage": "", + "arguments": ["-w", "$PATH_STRING"], "ignore_output": false, - "tests": [] + "tests": [ + { + "language": "erlang", + "test_input": "what_is(Erlang) ->\ncase Erlang of movie->[hello(mike,joe,robert),credits]; language->formatting_arguments end\n.", + "test_output": "what_is(Erlang) ->\n case Erlang of\n movie -> [hello(mike, joe, robert), credits];\n language -> no_more_formatting_arguments\n end." + } + ] } }, "description": "An automated code formatter for Erlang", "homepage": "https://github.com/WhatsApp/erlfmt", - "languages": ["erlang"], - "name": null, - "npm": null, - "php": null, - "tests": [ - { - "command": "", - "language": "erlang", - "test_input": "what_is(Erlang) ->\ncase Erlang of movie->[hello(mike,joe,robert),credits]; language->formatting_arguments end\n.", - "test_output": "what_is(Erlang) ->\n case Erlang of\n movie -> [hello(mike, joe, robert), credits];\n language -> no_more_formatting_arguments\n end." - } - ] + "languages": ["erlang"] } diff --git a/tools/eslint/plugin.json b/tools/eslint/plugin.json index 432ecf1d..809da213 100644 --- a/tools/eslint/plugin.json +++ b/tools/eslint/plugin.json @@ -4,18 +4,12 @@ "categories": ["linter"], "commands": { "": { - "command": ["--fix", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["--fix", "$PATH"], + "ignore_output": false } }, "description": "Find and fix problems in your JavaScript code", "homepage": "https://github.com/eslint/eslint/", "languages": ["javascript", "typescript"], - "name": null, - "npm": "eslint", - "php": null, - "tests": [] + "npm": "eslint" } diff --git a/tools/fantomas/plugin.json b/tools/fantomas/plugin.json index b71b9b2f..88dd9b70 100644 --- a/tools/fantomas/plugin.json +++ b/tools/fantomas/plugin.json @@ -4,25 +4,18 @@ "categories": ["formatter"], "commands": { "": { - "command": ["$PATH"], - "description": "", - "homepage": "", + "arguments": ["$PATH"], "ignore_output": false, - "tests": [] + "tests": [ + { + "language": "fsharp", + "test_input": "\nlet add a b = a + b\n ", + "test_output": "let add a b = a + b\n" + } + ] } }, "description": "FSharp source code formatter", "homepage": "https://github.com/fsprojects/fantomas", - "languages": ["fsharp"], - "name": null, - "npm": null, - "php": null, - "tests": [ - { - "command": "", - "language": "fsharp", - "test_input": "\nlet add a b = a + b\n ", - "test_output": "let add a b = a + b\n" - } - ] + "languages": ["fsharp"] } diff --git a/tools/fish_indent/plugin.json b/tools/fish_indent/plugin.json index 57b035cc..bcc5fac9 100644 --- a/tools/fish_indent/plugin.json +++ b/tools/fish_indent/plugin.json @@ -4,18 +4,11 @@ "categories": ["formatter"], "commands": { "": { - "command": ["-w", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["-w", "$PATH"], + "ignore_output": false } }, "description": "Fish indenter and prettifier", "homepage": "https://fishshell.com/docs/current/cmds/fish_indent.html", - "languages": ["fish"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["fish"] } diff --git a/tools/fixjson/plugin.json b/tools/fixjson/plugin.json index 54caf329..f891efd0 100644 --- a/tools/fixjson/plugin.json +++ b/tools/fixjson/plugin.json @@ -4,18 +4,12 @@ "categories": ["linter", "formatter"], "commands": { "": { - "command": ["-w", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["-w", "$PATH"], + "ignore_output": false } }, "description": "JSON Fixer for Humans using (relaxed) JSON5", "homepage": "https://github.com/rhysd/fixjson", "languages": ["json5", "json"], - "name": null, - "npm": "fixjson", - "php": null, - "tests": [] + "npm": "fixjson" } diff --git a/tools/floskell/plugin.json b/tools/floskell/plugin.json index 8cbef5cd..8cf7fac6 100644 --- a/tools/floskell/plugin.json +++ b/tools/floskell/plugin.json @@ -4,18 +4,11 @@ "categories": ["formatter"], "commands": { "": { - "command": ["$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["$PATH"], + "ignore_output": false } }, "description": "Floskell is a flexible Haskell source code pretty printer", "homepage": "https://github.com/ennocramer/floskell", - "languages": ["haskell"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["haskell"] } diff --git a/tools/fnlfmt/plugin.json b/tools/fnlfmt/plugin.json index 6089ee8b..a5e3be9b 100644 --- a/tools/fnlfmt/plugin.json +++ b/tools/fnlfmt/plugin.json @@ -4,18 +4,11 @@ "categories": ["formatter"], "commands": { "": { - "command": ["$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["$PATH"], + "ignore_output": false } }, "description": "A formatter for Fennel code", "homepage": "https://git.sr.ht/~technomancy/fnlfmt", - "languages": ["fennel"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["fennel"] } diff --git a/tools/forge/plugin.json b/tools/forge/plugin.json index 6514a55b..33b1fa81 100644 --- a/tools/forge/plugin.json +++ b/tools/forge/plugin.json @@ -4,18 +4,11 @@ "categories": ["formatter"], "commands": { "fmt": { - "command": ["fmt", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["fmt", "$PATH"], + "ignore_output": false } }, "description": "A Solidity formatter", "homepage": "https://github.com/foundry-rs/foundry", - "languages": ["solidity"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["solidity"] } diff --git a/tools/fourmolu/plugin.json b/tools/fourmolu/plugin.json index 77e3413e..28785ba8 100644 --- a/tools/fourmolu/plugin.json +++ b/tools/fourmolu/plugin.json @@ -4,25 +4,18 @@ "categories": ["formatter"], "commands": { "": { - "command": ["-i", "$PATH"], - "description": "", - "homepage": "", + "arguments": ["-i", "$PATH"], "ignore_output": false, - "tests": [] + "tests": [ + { + "language": "haskell", + "test_input": "\naddNumbers::Int->Int->Int\naddNumbers a b = do\n a + b\n ", + "test_output": "addNumbers :: Int -> Int -> Int\naddNumbers a b = do\n a + b\n" + } + ] } }, "description": "A formatter for Haskell source code", "homepage": "https://hackage.haskell.org/package/fourmolu", - "languages": ["haskell"], - "name": null, - "npm": null, - "php": null, - "tests": [ - { - "command": "", - "language": "haskell", - "test_input": "\naddNumbers::Int->Int->Int\naddNumbers a b = do\n a + b\n ", - "test_output": "addNumbers :: Int -> Int -> Int\naddNumbers a b = do\n a + b\n" - } - ] + "languages": ["haskell"] } diff --git a/tools/fprettify/plugin.json b/tools/fprettify/plugin.json index 62c3d6f8..21a121e2 100644 --- a/tools/fprettify/plugin.json +++ b/tools/fprettify/plugin.json @@ -4,25 +4,18 @@ "categories": ["formatter"], "commands": { "": { - "command": ["$PATH"], - "description": "", - "homepage": "", + "arguments": ["$PATH"], "ignore_output": false, - "tests": [] + "tests": [ + { + "language": "fortran", + "test_input": "program demo\ninteger :: endif,if,elseif\ninteger,DIMENSION(2) :: function\nendif=3;if=2\nif(endif==2)then\nendif=5\nelseif=if+4*(endif+&\n2**10)\nelseif(endif==3)then\nfunction(if)=endif/elseif\nprint*,endif\nendif\nend program", + "test_output": "program demo\n integer :: endif, if, elseif\n integer, DIMENSION(2) :: function\n endif = 3; if = 2\n if (endif == 2) then\n endif = 5\n elseif = if + 4*(endif + &\n 2**10)\n elseif (endif == 3) then\n function(if) = endif/elseif\n print *, endif\n end if\nend program\n" + } + ] } }, "description": "Auto-formatter for modern Fortran source code", "homepage": "https://github.com/fortran-lang/fprettify", - "languages": ["fortran"], - "name": null, - "npm": null, - "php": null, - "tests": [ - { - "command": "", - "language": "fortran", - "test_input": "program demo\ninteger :: endif,if,elseif\ninteger,DIMENSION(2) :: function\nendif=3;if=2\nif(endif==2)then\nendif=5\nelseif=if+4*(endif+&\n2**10)\nelseif(endif==3)then\nfunction(if)=endif/elseif\nprint*,endif\nendif\nend program", - "test_output": "program demo\n integer :: endif, if, elseif\n integer, DIMENSION(2) :: function\n endif = 3; if = 2\n if (endif == 2) then\n endif = 5\n elseif = if + 4*(endif + &\n 2**10)\n elseif (endif == 3) then\n function(if) = endif/elseif\n print *, endif\n end if\nend program\n" - } - ] + "languages": ["fortran"] } diff --git a/tools/futhark/plugin.json b/tools/futhark/plugin.json index daf0e075..0a836baa 100644 --- a/tools/futhark/plugin.json +++ b/tools/futhark/plugin.json @@ -4,18 +4,11 @@ "categories": ["formatter"], "commands": { "fmt": { - "command": ["fmt", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["fmt", "$PATH"], + "ignore_output": false } }, "description": "Code formatter for the furhark programming language", "homepage": "https://futhark.readthedocs.io/en/latest/man/futhark-fmt.html", - "languages": ["futhark"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["futhark"] } diff --git a/tools/gci/plugin.json b/tools/gci/plugin.json index 50e0e7f9..0524236a 100644 --- a/tools/gci/plugin.json +++ b/tools/gci/plugin.json @@ -4,18 +4,11 @@ "categories": ["formatter"], "commands": { "": { - "command": ["write", "--skip-generated", "--skip-vender", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["write", "--skip-generated", "--skip-vender", "$PATH"], + "ignore_output": false } }, "description": "GCI, a tool that control golang package import order and make it always deterministic", "homepage": "https://github.com/daixiang0/gci", - "languages": ["go"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["go"] } diff --git a/tools/gdformat/plugin.json b/tools/gdformat/plugin.json index 0d593edc..84b8200e 100644 --- a/tools/gdformat/plugin.json +++ b/tools/gdformat/plugin.json @@ -4,18 +4,11 @@ "categories": ["formatter"], "commands": { "": { - "command": ["$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["$PATH"], + "ignore_output": false } }, "description": "GDScript linter", "homepage": "https://github.com/scony/godot-gdscript-toolkit", - "languages": ["gdscript"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["gdscript"] } diff --git a/tools/gersemi/plugin.json b/tools/gersemi/plugin.json index 52786af8..23c97f43 100644 --- a/tools/gersemi/plugin.json +++ b/tools/gersemi/plugin.json @@ -4,18 +4,11 @@ "categories": ["formatter"], "commands": { "": { - "command": ["-i", "-q", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["-i", "-q", "$PATH"], + "ignore_output": false } }, "description": "A formatter to make your CMake code the real treasure", "homepage": "https://github.com/blankspruce/gersemi", - "languages": ["cmake"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["cmake"] } diff --git a/tools/gleam/plugin.json b/tools/gleam/plugin.json index 63965821..5174ae7f 100644 --- a/tools/gleam/plugin.json +++ b/tools/gleam/plugin.json @@ -4,25 +4,18 @@ "categories": ["formatter"], "commands": { "format": { - "command": ["format", "$PATH"], - "description": "", - "homepage": "", + "arguments": ["format", "$PATH"], "ignore_output": false, - "tests": [] + "tests": [ + { + "language": "gleam", + "test_input": "pub fn add(a:Int,b:Int)->Int{a+b}", + "test_output": "pub fn add(a: Int, b: Int) -> Int {\n a + b\n}\n" + } + ] } }, "description": "Format Gleam source code", "homepage": "https://gleam.run", - "languages": ["gleam"], - "name": null, - "npm": null, - "php": null, - "tests": [ - { - "command": "format", - "language": "gleam", - "test_input": "pub fn add(a:Int,b:Int)->Int{a+b}", - "test_output": "pub fn add(a: Int, b: Int) -> Int {\n a + b\n}\n" - } - ] + "languages": ["gleam"] } diff --git a/tools/gluon/plugin.json b/tools/gluon/plugin.json index ae992be4..7f4b8af3 100644 --- a/tools/gluon/plugin.json +++ b/tools/gluon/plugin.json @@ -4,18 +4,11 @@ "categories": ["formatter"], "commands": { "fmt": { - "command": ["fmt", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["fmt", "$PATH"], + "ignore_output": false } }, "description": "Code formatting for the gluon programming language", "homepage": "https://github.com/gluon-lang/gluon", - "languages": ["gluon"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["gluon"] } diff --git a/tools/gofmt/plugin.json b/tools/gofmt/plugin.json index a9d99c28..19a1b2d4 100644 --- a/tools/gofmt/plugin.json +++ b/tools/gofmt/plugin.json @@ -4,25 +4,18 @@ "categories": ["formatter"], "commands": { "": { - "command": ["-w", "$PATH"], - "description": "", - "homepage": "", + "arguments": ["-w", "$PATH"], "ignore_output": false, - "tests": [] + "tests": [ + { + "language": "go", + "test_input": "package main\n\n func add(a int , b int ) int {\n return a + b\n }\n\n ", + "test_output": "package main\n\nfunc add(a int, b int) int {\n\treturn a + b\n}\n" + } + ] } }, "description": "Gofmt formats Go programs", "homepage": "https://pkg.go.dev/cmd/gofmt", - "languages": ["go"], - "name": null, - "npm": null, - "php": null, - "tests": [ - { - "command": "", - "language": "go", - "test_input": "package main\n\n func add(a int , b int ) int {\n return a + b\n }\n\n ", - "test_output": "package main\n\nfunc add(a int, b int) int {\n\treturn a + b\n}\n" - } - ] + "languages": ["go"] } diff --git a/tools/gofumpt/plugin.json b/tools/gofumpt/plugin.json index 6efd349e..aa042aa6 100644 --- a/tools/gofumpt/plugin.json +++ b/tools/gofumpt/plugin.json @@ -4,25 +4,18 @@ "categories": ["formatter"], "commands": { "": { - "command": ["-w", "$PATH"], - "description": "", - "homepage": "", + "arguments": ["-w", "$PATH"], "ignore_output": false, - "tests": [] + "tests": [ + { + "language": "go", + "test_input": "package main\n\n func add(a int , b int ) int {\n return a + b\n }\n\n ", + "test_output": "package main\n\nfunc add(a int, b int) int {\n\treturn a + b\n}\n" + } + ] } }, "description": "A stricter gofmt", "homepage": "https://github.com/mvdan/gofumpt", - "languages": ["go"], - "name": null, - "npm": null, - "php": null, - "tests": [ - { - "command": "", - "language": "go", - "test_input": "package main\n\n func add(a int , b int ) int {\n return a + b\n }\n\n ", - "test_output": "package main\n\nfunc add(a int, b int) int {\n\treturn a + b\n}\n" - } - ] + "languages": ["go"] } diff --git a/tools/goimports-reviser/plugin.json b/tools/goimports-reviser/plugin.json index 17820069..bdc46f3c 100644 --- a/tools/goimports-reviser/plugin.json +++ b/tools/goimports-reviser/plugin.json @@ -4,18 +4,11 @@ "categories": ["formatter"], "commands": { "": { - "command": ["-format", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["-format", "$PATH"], + "ignore_output": false } }, "description": "Right imports sorting & code formatting tool (goimports alternative)", "homepage": "https://github.com/incu6us/goimports-reviser", - "languages": ["go"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["go"] } diff --git a/tools/goimports/plugin.json b/tools/goimports/plugin.json index 868ab267..1074dfcd 100644 --- a/tools/goimports/plugin.json +++ b/tools/goimports/plugin.json @@ -4,25 +4,18 @@ "categories": ["formatter"], "commands": { "": { - "command": ["-w", "$PATH"], - "description": "", - "homepage": "", + "arguments": ["-w", "$PATH"], "ignore_output": false, - "tests": [] + "tests": [ + { + "language": "go", + "test_input": "package main\n\nimport (\n\t\"os\"\n\t\"fmt\"\n)\n\nfunc add(a int, b int) int {\n\tfmt.Print(a)\n\tfmt.Print(b)\n\treturn a + b\n}\n", + "test_output": "package main\n\nimport (\n\t\"fmt\"\n)\n\nfunc add(a int, b int) int {\n\tfmt.Print(a)\n\tfmt.Print(b)\n\treturn a + b\n}\n" + } + ] } }, "description": "goimports updates your Go import lines, adding missing ones and removing unreferenced ones", "homepage": "https://pkg.go.dev/golang.org/x/tools/cmd/goimports", - "languages": ["go"], - "name": null, - "npm": null, - "php": null, - "tests": [ - { - "command": "", - "language": "go", - "test_input": "package main\n\nimport (\n\t\"os\"\n\t\"fmt\"\n)\n\nfunc add(a int, b int) int {\n\tfmt.Print(a)\n\tfmt.Print(b)\n\treturn a + b\n}\n", - "test_output": "package main\n\nimport (\n\t\"fmt\"\n)\n\nfunc add(a int, b int) int {\n\tfmt.Print(a)\n\tfmt.Print(b)\n\treturn a + b\n}\n" - } - ] + "languages": ["go"] } diff --git a/tools/golines/plugin.json b/tools/golines/plugin.json index 47aa8522..d36bc18b 100644 --- a/tools/golines/plugin.json +++ b/tools/golines/plugin.json @@ -4,25 +4,18 @@ "categories": ["formatter"], "commands": { "": { - "command": ["-w", "$PATH"], - "description": "", - "homepage": "", + "arguments": ["-w", "$PATH"], "ignore_output": false, - "tests": [] + "tests": [ + { + "language": "go", + "test_input": "package main\n\nimport (\n\t\"os\"\n\t\"fmt\"\n)\n\nfunc add(a int, b int) int {\n\tfmt.Print(a)\n\tfmt.Print(b)\n\treturn a + b\n}\n", + "test_output": "package main\n\nimport (\n\t\"fmt\"\n)\n\nfunc add(a int, b int) int {\n\tfmt.Print(a)\n\tfmt.Print(b)\n\treturn a + b\n}\n" + } + ] } }, "description": "A golang formatter that fixes long lines", "homepage": "https://github.com/segmentio/golines", - "languages": ["go"], - "name": null, - "npm": null, - "php": null, - "tests": [ - { - "command": "", - "language": "go", - "test_input": "package main\n\nimport (\n\t\"os\"\n\t\"fmt\"\n)\n\nfunc add(a int, b int) int {\n\tfmt.Print(a)\n\tfmt.Print(b)\n\treturn a + b\n}\n", - "test_output": "package main\n\nimport (\n\t\"fmt\"\n)\n\nfunc add(a int, b int) int {\n\tfmt.Print(a)\n\tfmt.Print(b)\n\treturn a + b\n}\n" - } - ] + "languages": ["go"] } diff --git a/tools/google-java-format/plugin.json b/tools/google-java-format/plugin.json index bc0e3f6a..e4555def 100644 --- a/tools/google-java-format/plugin.json +++ b/tools/google-java-format/plugin.json @@ -4,25 +4,18 @@ "categories": ["formatter"], "commands": { "": { - "command": ["-i", "$PATH"], - "description": "", - "homepage": "", + "arguments": ["-i", "$PATH"], "ignore_output": false, - "tests": [] + "tests": [ + { + "language": "java", + "test_input": "class HelloWorld {\n public static void main(String[] args) {\n System.out.println(\"Hello\");\n System.out.println(\"World!\");\n }\n}", + "test_output": "class HelloWorld {\n public static void main(String[] args) {\n System.out.println(\"Hello\");\n System.out.println(\"World!\");\n }\n}\n" + } + ] } }, "description": "Reformats Java source code to comply with Google Java Style", "homepage": "https://github.com/google/google-java-format", - "languages": ["java"], - "name": null, - "npm": null, - "php": null, - "tests": [ - { - "command": "", - "language": "java", - "test_input": "class HelloWorld {\n public static void main(String[] args) {\n System.out.println(\"Hello\");\n System.out.println(\"World!\");\n }\n}", - "test_output": "class HelloWorld {\n public static void main(String[] args) {\n System.out.println(\"Hello\");\n System.out.println(\"World!\");\n }\n}\n" - } - ] + "languages": ["java"] } diff --git a/tools/grain/plugin.json b/tools/grain/plugin.json index 209d14dc..594ca8a3 100644 --- a/tools/grain/plugin.json +++ b/tools/grain/plugin.json @@ -4,25 +4,18 @@ "categories": ["formatter"], "commands": { "format": { - "command": ["format", "$PATH", "-o", "$PATH"], - "description": "", - "homepage": "", + "arguments": ["format", "$PATH", "-o", "$PATH"], "ignore_output": false, - "tests": [] + "tests": [ + { + "language": "grain", + "test_input": "module Hello\n\n print(\"Hello, world!\")\n", + "test_output": "module Hello\n\nprint(\"Hello, world!\")\n" + } + ] } }, "description": "Code formatter for the Grain programming language", "homepage": "https://grain-lang.org/docs/tooling/grain_cli", - "languages": ["grain"], - "name": null, - "npm": null, - "php": null, - "tests": [ - { - "command": "format", - "language": "grain", - "test_input": "module Hello\n\n print(\"Hello, world!\")\n", - "test_output": "module Hello\n\nprint(\"Hello, world!\")\n" - } - ] + "languages": ["grain"] } diff --git a/tools/hadolint/plugin.json b/tools/hadolint/plugin.json index d1be7536..9807305f 100644 --- a/tools/hadolint/plugin.json +++ b/tools/hadolint/plugin.json @@ -4,18 +4,11 @@ "categories": ["linter"], "commands": { "": { - "command": ["$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["$PATH"], + "ignore_output": false } }, "description": "Dockerfile linter, validate inline bash, written in Haskell", "homepage": "https://github.com/hadolint/hadolint", - "languages": ["dockerfile"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["dockerfile"] } diff --git a/tools/haml-lint/plugin.json b/tools/haml-lint/plugin.json index c8ff85e0..4f175041 100644 --- a/tools/haml-lint/plugin.json +++ b/tools/haml-lint/plugin.json @@ -4,18 +4,11 @@ "categories": ["linter"], "commands": { "": { - "command": ["--auto-correct", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["--auto-correct", "$PATH"], + "ignore_output": false } }, "description": "Tool for writing clean and consistent HAML", "homepage": "https://github.com/sds/haml-lint", - "languages": ["haml"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["haml"] } diff --git a/tools/hclfmt/plugin.json b/tools/hclfmt/plugin.json index 26332db2..6adb00fc 100644 --- a/tools/hclfmt/plugin.json +++ b/tools/hclfmt/plugin.json @@ -4,18 +4,11 @@ "categories": ["formatter"], "commands": { "": { - "command": ["-w", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["-w", "$PATH"], + "ignore_output": false } }, "description": "Formatter for hcl files", "homepage": "https://github.com/hashicorp/hcl", - "languages": ["hcl"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["hcl"] } diff --git a/tools/hfmt/plugin.json b/tools/hfmt/plugin.json index 41d2439a..59cbf848 100644 --- a/tools/hfmt/plugin.json +++ b/tools/hfmt/plugin.json @@ -4,18 +4,11 @@ "categories": ["formatter"], "commands": { "": { - "command": ["-w", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["-w", "$PATH"], + "ignore_output": false } }, "description": "Format Haskell programs. Inspired by the gofmt utility", "homepage": "https://github.com/danstiner/hfmt", - "languages": ["haskell"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["haskell"] } diff --git a/tools/hindent/plugin.json b/tools/hindent/plugin.json index 75f420a6..63edb93f 100644 --- a/tools/hindent/plugin.json +++ b/tools/hindent/plugin.json @@ -4,25 +4,18 @@ "categories": ["formatter"], "commands": { "": { - "command": ["$PATH"], - "description": "", - "homepage": "", + "arguments": ["$PATH"], "ignore_output": false, - "tests": [] + "tests": [ + { + "language": "haskell", + "test_input": "\naddNumbers::Int->Int->Int\naddNumbers a b = do\n a + b\n ", + "test_output": "addNumbers :: Int -> Int -> Int\naddNumbers a b = do\n a + b\n" + } + ] } }, "description": "Extensible Haskell pretty printer", "homepage": "https://github.com/mihaimaruseac/hindent", - "languages": ["haskell"], - "name": null, - "npm": null, - "php": null, - "tests": [ - { - "command": "", - "language": "haskell", - "test_input": "\naddNumbers::Int->Int->Int\naddNumbers a b = do\n a + b\n ", - "test_output": "addNumbers :: Int -> Int -> Int\naddNumbers a b = do\n a + b\n" - } - ] + "languages": ["haskell"] } diff --git a/tools/hlint/plugin.json b/tools/hlint/plugin.json index 6539978d..d57ccf72 100644 --- a/tools/hlint/plugin.json +++ b/tools/hlint/plugin.json @@ -4,18 +4,11 @@ "categories": ["linter"], "commands": { "": { - "command": ["--refactor", "-i", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["--refactor", "-i", "$PATH"], + "ignore_output": false } }, "description": "Haskell source code suggestions", "homepage": "https://github.com/ndmitchell/hlint", - "languages": ["haskell"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["haskell"] } diff --git a/tools/html-beautify/plugin.json b/tools/html-beautify/plugin.json index 08312144..d98f37e6 100644 --- a/tools/html-beautify/plugin.json +++ b/tools/html-beautify/plugin.json @@ -4,25 +4,19 @@ "categories": ["formatter"], "commands": { "": { - "command": ["-r", "--type", "html", "-f", "$PATH"], - "description": "", - "homepage": "", + "arguments": ["-r", "--type", "html", "-f", "$PATH"], "ignore_output": false, - "tests": [] + "tests": [ + { + "language": "html", + "test_input": "
\n

\n Mads was here\n

\n
", + "test_output": "
\n

\n Mads was here\n

\n
" + } + ] } }, "description": "A html formatter", "homepage": "https://github.com/beautifier/js-beautify?tab=readme-ov-file#css--html", "languages": ["html"], - "name": null, - "npm": "js-beautify", - "php": null, - "tests": [ - { - "command": "", - "language": "html", - "test_input": "
\n

\n Mads was here\n

\n
", - "test_output": "
\n

\n Mads was here\n

\n
" - } - ] + "npm": "js-beautify" } diff --git a/tools/htmlbeautifier/plugin.json b/tools/htmlbeautifier/plugin.json index b54dfe92..a8f7bf0a 100644 --- a/tools/htmlbeautifier/plugin.json +++ b/tools/htmlbeautifier/plugin.json @@ -4,25 +4,18 @@ "categories": ["formatter"], "commands": { "": { - "command": ["$PATH"], - "description": "", - "homepage": "", + "arguments": ["$PATH"], "ignore_output": false, - "tests": [] + "tests": [ + { + "language": "html", + "test_input": "
\n

\n Mads was here\n

\n
", + "test_output": "
\n

\n Mads was here\n

\n
\n" + } + ] } }, "description": "A normaliser/beautifier for HTML that also understands embedded Ruby. Ideal for tidying up Rails templates", "homepage": "https://github.com/threedaymonk/htmlbeautifier", - "languages": ["html", "erb", "ruby"], - "name": null, - "npm": null, - "php": null, - "tests": [ - { - "command": "", - "language": "html", - "test_input": "
\n

\n Mads was here\n

\n
", - "test_output": "
\n

\n Mads was here\n

\n
\n" - } - ] + "languages": ["html", "erb", "ruby"] } diff --git a/tools/htmlhint/plugin.json b/tools/htmlhint/plugin.json index 557fc864..2d5f459c 100644 --- a/tools/htmlhint/plugin.json +++ b/tools/htmlhint/plugin.json @@ -4,18 +4,12 @@ "categories": ["linter"], "commands": { "": { - "command": ["$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["$PATH"], + "ignore_output": false } }, "description": "The static code analysis tool you need for your HTML", "homepage": "https://github.com/HTMLHint/HTMLHint", "languages": ["html"], - "name": null, - "npm": "htmlhint", - "php": null, - "tests": [] + "npm": "htmlhint" } diff --git a/tools/imba/plugin.json b/tools/imba/plugin.json index 3a8ec7b3..6cc0f040 100644 --- a/tools/imba/plugin.json +++ b/tools/imba/plugin.json @@ -4,18 +4,12 @@ "categories": ["formatter"], "commands": { "fmt": { - "command": ["fmt", "-f", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["fmt", "-f", "$PATH"], + "ignore_output": false } }, "description": "A formatter for Imba", "homepage": "https://imba.io/", "languages": ["imba"], - "name": null, - "npm": "imba", - "php": null, - "tests": [] + "npm": "imba" } diff --git a/tools/inko/plugin.json b/tools/inko/plugin.json index b7166ccb..c7c3c65c 100644 --- a/tools/inko/plugin.json +++ b/tools/inko/plugin.json @@ -4,18 +4,11 @@ "categories": ["formatter"], "commands": { "fmt": { - "command": ["fmt", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["fmt", "$PATH"], + "ignore_output": false } }, "description": "Code formatter for the inko programming language", "homepage": "https://github.com/inko-lang/inko", - "languages": ["inko"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["inko"] } diff --git a/tools/isort/plugin.json b/tools/isort/plugin.json index ed586af6..19a53baa 100644 --- a/tools/isort/plugin.json +++ b/tools/isort/plugin.json @@ -4,25 +4,18 @@ "categories": ["formatter"], "commands": { "": { - "command": ["--quiet", "$PATH"], - "description": "", - "homepage": "", + "arguments": ["--quiet", "$PATH"], "ignore_output": false, - "tests": [] + "tests": [ + { + "language": "python", + "test_input": "from q import d\nimport b\nimport a\nimport c\n\n\ndef add(a: int, b: int) -> int:\n return a + b\n", + "test_output": "import a\nimport b\nimport c\nfrom q import d\n\n\ndef add(a: int, b: int) -> int:\n return a + b\n" + } + ] } }, "description": "A Python utility to sort imports", "homepage": "https://github.com/timothycrosley/isort", - "languages": ["python"], - "name": null, - "npm": null, - "php": null, - "tests": [ - { - "command": "", - "language": "python", - "test_input": "from q import d\nimport b\nimport a\nimport c\n\n\ndef add(a: int, b: int) -> int:\n return a + b\n", - "test_output": "import a\nimport b\nimport c\nfrom q import d\n\n\ndef add(a: int, b: int) -> int:\n return a + b\n" - } - ] + "languages": ["python"] } diff --git a/tools/joker/plugin.json b/tools/joker/plugin.json index 032207ff..c0fa31f4 100644 --- a/tools/joker/plugin.json +++ b/tools/joker/plugin.json @@ -4,18 +4,11 @@ "categories": ["formatter", "linter"], "commands": { "": { - "command": ["--format", "--write", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["--format", "--write", "$PATH"], + "ignore_output": false } }, "description": "Small Clojure interpreter, linter and formatter", "homepage": "https://github.com/candid82/joker", - "languages": ["clojure"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["clojure"] } diff --git a/tools/js-beautify/plugin.json b/tools/js-beautify/plugin.json index 613c532c..72b16e96 100644 --- a/tools/js-beautify/plugin.json +++ b/tools/js-beautify/plugin.json @@ -4,18 +4,12 @@ "categories": ["formatter"], "commands": { "": { - "command": ["-r", "--type", "js", "-f", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["-r", "--type", "js", "-f", "$PATH"], + "ignore_output": false } }, "description": "A JavaScript formatter", "homepage": "https://github.com/beautifier/js-beautify", "languages": ["javascript"], - "name": null, - "npm": "js-beautify", - "php": null, - "tests": [] + "npm": "js-beautify" } diff --git a/tools/json5format/plugin.json b/tools/json5format/plugin.json index cccf470f..8c3c880c 100644 --- a/tools/json5format/plugin.json +++ b/tools/json5format/plugin.json @@ -4,18 +4,11 @@ "categories": ["formatter"], "commands": { "": { - "command": ["-r", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["-r", "$PATH"], + "ignore_output": false } }, "description": "JSON5 (a.k.a., \"JSON for Humans\") formatter that preserves contextual comments", "homepage": "https://github.com/google/json5format", - "languages": ["json5", "json"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["json5", "json"] } diff --git a/tools/jsona/plugin.json b/tools/jsona/plugin.json index d48395f7..9a779b77 100644 --- a/tools/jsona/plugin.json +++ b/tools/jsona/plugin.json @@ -4,25 +4,15 @@ "categories": ["linter", "formatter"], "commands": { "format": { - "command": ["format", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["format", "$PATH"], + "ignore_output": false }, "lint": { - "command": ["lint", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["lint", "$PATH"], + "ignore_output": false } }, "description": "JSONA linter and formatter", "homepage": "https://github.com/jsona/jsona", - "languages": ["jsona"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["jsona"] } diff --git a/tools/jsonlint/plugin.json b/tools/jsonlint/plugin.json index 39d06527..436ee77c 100644 --- a/tools/jsonlint/plugin.json +++ b/tools/jsonlint/plugin.json @@ -4,18 +4,12 @@ "categories": ["formatter", "linter"], "commands": { "": { - "command": ["-i", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["-i", "$PATH"], + "ignore_output": false } }, "description": "A JSON parser and validator with a CLI", "homepage": "https://github.com/zaach/jsonlint", "languages": ["json"], - "name": null, - "npm": "jsonlint", - "php": null, - "tests": [] + "npm": "jsonlint" } diff --git a/tools/jsonnet-lint/plugin.json b/tools/jsonnet-lint/plugin.json index 5396a0e6..e846066a 100644 --- a/tools/jsonnet-lint/plugin.json +++ b/tools/jsonnet-lint/plugin.json @@ -4,18 +4,11 @@ "categories": ["linter"], "commands": { "": { - "command": ["$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["$PATH"], + "ignore_output": false } }, "description": "Linter for jsonnet files", "homepage": "https://jsonnet.org/learning/tools.html", - "languages": ["jsonnet"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["jsonnet"] } diff --git a/tools/jsonnetfmt/plugin.json b/tools/jsonnetfmt/plugin.json index baa3221d..0f4a3a66 100644 --- a/tools/jsonnetfmt/plugin.json +++ b/tools/jsonnetfmt/plugin.json @@ -4,18 +4,11 @@ "categories": ["formatter"], "commands": { "": { - "command": ["-i", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["-i", "$PATH"], + "ignore_output": false } }, "description": "Formatter for automatically fixing jsonnet stylistic problems", "homepage": "https://jsonnet.org/learning/tools.html", - "languages": ["jsonnet"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["jsonnet"] } diff --git a/tools/juliaformatter_jl/plugin.json b/tools/juliaformatter_jl/plugin.json index f71f4470..7d0e3388 100644 --- a/tools/juliaformatter_jl/plugin.json +++ b/tools/juliaformatter_jl/plugin.json @@ -4,28 +4,22 @@ "categories": ["formatter"], "commands": { "": { - "command": [ + "arguments": [ "-E", "using JuliaFormatter;format_file(\\\"{$PATH_STRING}\\\")" ], - "description": "", - "homepage": "", "ignore_output": false, - "tests": [] + "tests": [ + { + "language": "julia", + "test_input": "function add( a:: Int32, b::Int32 )\n c = a+ b\n return c\n end ", + "test_output": "function add(a::Int32, b::Int32)\n c = a + b\n return c\nend\n" + } + ] } }, "description": "An opinionated code formatter for Julia. Plot twist - the opinion is your own", "homepage": "https://github.com/domluna/JuliaFormatter.jl", "languages": ["julia"], - "name": "juliaformatter.jl", - "npm": null, - "php": null, - "tests": [ - { - "command": "", - "language": "julia", - "test_input": "function add( a:: Int32, b::Int32 )\n c = a+ b\n return c\n end ", - "test_output": "function add(a::Int32, b::Int32)\n c = a + b\n return c\nend\n" - } - ] + "name": "juliaformatter.jl" } diff --git a/tools/just/plugin.json b/tools/just/plugin.json index 11037d12..8b932760 100644 --- a/tools/just/plugin.json +++ b/tools/just/plugin.json @@ -4,25 +4,18 @@ "categories": ["formatter"], "commands": { "": { - "command": ["--fmt", "--unstable", "--justfile", "$PATH"], - "description": "", - "homepage": "", + "arguments": ["--fmt", "--unstable", "--justfile", "$PATH"], "ignore_output": false, - "tests": [] + "tests": [ + { + "language": "just", + "test_input": "build:\n cargo build\n cargo build --release\n ", + "test_output": "build:\n cargo build\n cargo build --release\n" + } + ] } }, "description": "A formatter for justfiles", "homepage": "https://github.com/casey/just", - "languages": ["just"], - "name": null, - "npm": null, - "php": null, - "tests": [ - { - "command": "", - "language": "just", - "test_input": "build:\n cargo build\n cargo build --release\n ", - "test_output": "build:\n cargo build\n cargo build --release\n" - } - ] + "languages": ["just"] } diff --git a/tools/kcl/plugin.json b/tools/kcl/plugin.json index 757c2eee..501b1feb 100644 --- a/tools/kcl/plugin.json +++ b/tools/kcl/plugin.json @@ -4,25 +4,18 @@ "categories": ["formatter"], "commands": { "fmt": { - "command": ["fmt", "$PATH"], - "description": "", - "homepage": "", + "arguments": ["fmt", "$PATH"], "ignore_output": false, - "tests": [] + "tests": [ + { + "language": "kcl", + "test_input": "apiVersion = \"apps/v1\"\r\nkind = \"Deployment\"\r\nmetadata = {\r\n name = \"nginx\"\r\n labels.app = \"nginx\"\r\n}\r\nspec = {\r\n replicas = 3\r\n selector.matchLabels = metadata.labels\r\n template.metadata.labels = metadata.labels\r\n template.spec.containers = [ {\r\n name = metadata.name\r\n image = \"${metadata.name}:1.14.2\"\r\n ports = [{ containerPort = 80}]\r\n }]\r\n}\r\n", + "test_output": "apiVersion = \"apps/v1\"\r\nkind = \"Deployment\"\r\nmetadata = {\r\n name = \"nginx\"\r\n labels.app = \"nginx\"\r\n}\r\nspec = {\r\n replicas = 3\r\n selector.matchLabels = metadata.labels\r\n template.metadata.labels = metadata.labels\r\n template.spec.containers = [{\r\n name = metadata.name\r\n image = \"${metadata.name}:1.14.2\"\r\n ports = [{containerPort = 80}]\r\n }]\r\n}\r\n" + } + ] } }, "description": "KCL Format tool supports reformatting KCL files to the standard code style", "homepage": "https://www.kcl-lang.io/docs/tools/cli/kcl/fmt", - "languages": ["kcl"], - "name": null, - "npm": null, - "php": null, - "tests": [ - { - "command": "fmt", - "language": "kcl", - "test_input": "apiVersion = \"apps/v1\"\r\nkind = \"Deployment\"\r\nmetadata = {\r\n name = \"nginx\"\r\n labels.app = \"nginx\"\r\n}\r\nspec = {\r\n replicas = 3\r\n selector.matchLabels = metadata.labels\r\n template.metadata.labels = metadata.labels\r\n template.spec.containers = [ {\r\n name = metadata.name\r\n image = \"${metadata.name}:1.14.2\"\r\n ports = [{ containerPort = 80}]\r\n }]\r\n}\r\n", - "test_output": "apiVersion = \"apps/v1\"\r\nkind = \"Deployment\"\r\nmetadata = {\r\n name = \"nginx\"\r\n labels.app = \"nginx\"\r\n}\r\nspec = {\r\n replicas = 3\r\n selector.matchLabels = metadata.labels\r\n template.metadata.labels = metadata.labels\r\n template.spec.containers = [{\r\n name = metadata.name\r\n image = \"${metadata.name}:1.14.2\"\r\n ports = [{containerPort = 80}]\r\n }]\r\n}\r\n" - } - ] + "languages": ["kcl"] } diff --git a/tools/kdlfmt/plugin.json b/tools/kdlfmt/plugin.json index 1f7cd867..bc17d939 100644 --- a/tools/kdlfmt/plugin.json +++ b/tools/kdlfmt/plugin.json @@ -4,18 +4,11 @@ "categories": ["formatter"], "commands": { "": { - "command": ["format", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["format", "$PATH"], + "ignore_output": false } }, "description": "A formatter for kdl documents", "homepage": "https://github.com/hougesen/kdlfmt", - "languages": ["kdl"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["kdl"] } diff --git a/tools/kdoc-formatter/plugin.json b/tools/kdoc-formatter/plugin.json index b9098134..3b6a2054 100644 --- a/tools/kdoc-formatter/plugin.json +++ b/tools/kdoc-formatter/plugin.json @@ -4,18 +4,11 @@ "categories": ["formatter"], "commands": { "": { - "command": ["--quiet", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["--quiet", "$PATH"], + "ignore_output": false } }, "description": "Reformats Kotlin KDoc comments, reflowing text and other cleanup", "homepage": "https://github.com/tnorbye/kdoc-formatter", - "languages": ["kotlin"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["kotlin"] } diff --git a/tools/ktfmt/plugin.json b/tools/ktfmt/plugin.json index ceca8651..15e82344 100644 --- a/tools/ktfmt/plugin.json +++ b/tools/ktfmt/plugin.json @@ -4,25 +4,18 @@ "categories": ["formatter"], "commands": { "": { - "command": ["--format", "--log-level=error", "$PATH"], - "description": "", - "homepage": "", + "arguments": ["--format", "--log-level=error", "$PATH"], "ignore_output": false, - "tests": [] + "tests": [ + { + "language": "kotlin", + "test_input": " fun add(a:Int ,b:Int ):Int {\n return a + b\n }\n ", + "test_output": "fun add(a: Int, b: Int): Int {\n return a + b\n}\n" + } + ] } }, "description": "program that reformats Kotlin source code to comply with the common community standard for Kotlin code conventions", "homepage": "https://github.com/facebook/ktfmt", - "languages": ["kotlin"], - "name": null, - "npm": null, - "php": null, - "tests": [ - { - "command": "", - "language": "kotlin", - "test_input": " fun add(a:Int ,b:Int ):Int {\n return a + b\n }\n ", - "test_output": "fun add(a: Int, b: Int): Int {\n return a + b\n}\n" - } - ] + "languages": ["kotlin"] } diff --git a/tools/ktlint/plugin.json b/tools/ktlint/plugin.json index 99a24e68..35cc1d4a 100644 --- a/tools/ktlint/plugin.json +++ b/tools/ktlint/plugin.json @@ -4,25 +4,18 @@ "categories": ["linter"], "commands": { "": { - "command": ["--format", "--log-level=error", "$PATH"], - "description": "", - "homepage": "", + "arguments": ["--format", "--log-level=error", "$PATH"], "ignore_output": false, - "tests": [] + "tests": [ + { + "language": "kotlin", + "test_input": " fun add(a:Int ,b:Int ):Int {\n return a + b\n }\n ", + "test_output": "\n\nfun add(\n a: Int,\n b: Int,\n): Int {\n return a + b\n}\n" + } + ] } }, "description": "An anti-bikeshedding Kotlin linter with built-in formatter", "homepage": "https://github.com/pinterest/ktlint", - "languages": ["kotlin"], - "name": null, - "npm": null, - "php": null, - "tests": [ - { - "command": "", - "language": "kotlin", - "test_input": " fun add(a:Int ,b:Int ):Int {\n return a + b\n }\n ", - "test_output": "\n\nfun add(\n a: Int,\n b: Int,\n): Int {\n return a + b\n}\n" - } - ] + "languages": ["kotlin"] } diff --git a/tools/kulala-fmt/plugin.json b/tools/kulala-fmt/plugin.json index d469d5b9..fbdcc3bb 100644 --- a/tools/kulala-fmt/plugin.json +++ b/tools/kulala-fmt/plugin.json @@ -4,18 +4,11 @@ "categories": ["formatter"], "commands": { "": { - "command": ["$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["$PATH"], + "ignore_output": false } }, "description": "An opinionated 🦄 .http and .rest 🐼 files linter 💄 and formatter ⚡", "homepage": "https://github.com/mistweaverco/kulala-fmt", - "languages": ["http"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["http"] } diff --git a/tools/leptosfmt/plugin.json b/tools/leptosfmt/plugin.json index 87bac638..35ce1d0b 100644 --- a/tools/leptosfmt/plugin.json +++ b/tools/leptosfmt/plugin.json @@ -4,18 +4,11 @@ "categories": ["formatter"], "commands": { "": { - "command": ["--quiet", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["--quiet", "$PATH"], + "ignore_output": false } }, "description": "A formatter for the leptos view! macro", "homepage": "https://github.com/bram209/leptosfmt", - "languages": ["rust"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["rust"] } diff --git a/tools/liquidsoap-prettier/plugin.json b/tools/liquidsoap-prettier/plugin.json index faff9e3e..ae4b0d49 100644 --- a/tools/liquidsoap-prettier/plugin.json +++ b/tools/liquidsoap-prettier/plugin.json @@ -4,18 +4,12 @@ "categories": ["formatter"], "commands": { "": { - "command": ["--write", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["--write", "$PATH"], + "ignore_output": false } }, "description": "Prettier plugin for liquidsoap script", "homepage": "https://github.com/savonet/liquidsoap-prettier", "languages": ["liquidsoap"], - "name": null, - "npm": "liquidsoap-prettier", - "php": null, - "tests": [] + "npm": "liquidsoap-prettier" } diff --git a/tools/luacheck/plugin.json b/tools/luacheck/plugin.json index 98dc7bb5..bb932f91 100644 --- a/tools/luacheck/plugin.json +++ b/tools/luacheck/plugin.json @@ -4,18 +4,11 @@ "categories": ["formatter"], "commands": { "": { - "command": ["$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["$PATH"], + "ignore_output": false } }, "description": "A tool for linting and static analysis of Lua code", "homepage": "https://github.com/lunarmodules/luacheck", - "languages": ["lua"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["lua"] } diff --git a/tools/luaformatter/plugin.json b/tools/luaformatter/plugin.json index f386f34b..4b6af960 100644 --- a/tools/luaformatter/plugin.json +++ b/tools/luaformatter/plugin.json @@ -4,25 +4,19 @@ "categories": ["formatter"], "commands": { "": { - "command": ["-i", "$PATH"], - "description": "", - "homepage": "", + "arguments": ["-i", "$PATH"], "ignore_output": false, - "tests": [] + "tests": [ + { + "language": "lua", + "test_input": "\n\n local function add ( a , b\n)\nlocal c=a+b\nreturn c\n\n\nend\n ", + "test_output": "local function add(a, b)\n local c = a + b\n return c\n\nend\n" + } + ] } }, "description": "Code formatter for Lua", "homepage": "https://github.com/Koihik/LuaFormatter", "languages": ["lua"], - "name": "luaformatter", - "npm": null, - "php": null, - "tests": [ - { - "command": "", - "language": "lua", - "test_input": "\n\n local function add ( a , b\n)\nlocal c=a+b\nreturn c\n\n\nend\n ", - "test_output": "local function add(a, b)\n local c = a + b\n return c\n\nend\n" - } - ] + "name": "luaformatter" } diff --git a/tools/markdownfmt/plugin.json b/tools/markdownfmt/plugin.json index aa21b3e3..14c8bf48 100644 --- a/tools/markdownfmt/plugin.json +++ b/tools/markdownfmt/plugin.json @@ -4,25 +4,18 @@ "categories": ["formatter"], "commands": { "": { - "command": ["-w", "$PATH"], - "description": "", - "homepage": "", + "arguments": ["-w", "$PATH"], "ignore_output": false, - "tests": [] + "tests": [ + { + "language": "markdown", + "test_input": "# hello w world\n\nthis text has weird spacing\n\n- first\n* second", + "test_output": "hello w world\n=============\n\nthis text has weird spacing\n\n-\tfirst\n-\tsecond\n" + } + ] } }, "description": "Like gofmt, but for Markdown", "homepage": "https://github.com/shurcooL/markdownfmt", - "languages": ["markdown"], - "name": null, - "npm": null, - "php": null, - "tests": [ - { - "command": "", - "language": "markdown", - "test_input": "# hello w world\n\nthis text has weird spacing\n\n- first\n* second", - "test_output": "hello w world\n=============\n\nthis text has weird spacing\n\n-\tfirst\n-\tsecond\n" - } - ] + "languages": ["markdown"] } diff --git a/tools/markdownlint-cli2/plugin.json b/tools/markdownlint-cli2/plugin.json index afcc7997..67c61aec 100644 --- a/tools/markdownlint-cli2/plugin.json +++ b/tools/markdownlint-cli2/plugin.json @@ -4,18 +4,12 @@ "categories": ["linter"], "commands": { "": { - "command": ["--fix", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["--fix", "$PATH"], + "ignore_output": false } }, "description": "A fast, flexible, configuration-based command-line interface for linting Markdown/CommonMark files with the markdownlint library", "homepage": "https://github.com/davidanson/markdownlint-cli2", "languages": ["markdown"], - "name": null, - "npm": "markdownlint-cli2", - "php": null, - "tests": [] + "npm": "markdownlint-cli2" } diff --git a/tools/markdownlint/plugin.json b/tools/markdownlint/plugin.json index e24930a4..12efc063 100644 --- a/tools/markdownlint/plugin.json +++ b/tools/markdownlint/plugin.json @@ -4,18 +4,12 @@ "categories": ["linter"], "commands": { "": { - "command": ["--fix", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["--fix", "$PATH"], + "ignore_output": false } }, "description": "A Node.js style checker and lint tool for Markdown/CommonMark files", "homepage": "https://github.com/davidanson/markdownlint", "languages": ["markdown"], - "name": null, - "npm": "markdownlint", - "php": null, - "tests": [] + "npm": "markdownlint" } diff --git a/tools/markuplint/plugin.json b/tools/markuplint/plugin.json index e3ddbf91..ec7e088e 100644 --- a/tools/markuplint/plugin.json +++ b/tools/markuplint/plugin.json @@ -4,18 +4,12 @@ "categories": ["linter"], "commands": { "": { - "command": ["--fix", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["--fix", "$PATH"], + "ignore_output": false } }, "description": "An HTML linter for all markup developers", "homepage": "https://markuplint.dev/", "languages": ["html"], - "name": null, - "npm": "markuplint", - "php": null, - "tests": [] + "npm": "markuplint" } diff --git a/tools/mdformat/plugin.json b/tools/mdformat/plugin.json index 48cc9be0..60664bb7 100644 --- a/tools/mdformat/plugin.json +++ b/tools/mdformat/plugin.json @@ -4,18 +4,11 @@ "categories": ["formatter"], "commands": { "": { - "command": ["$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["$PATH"], + "ignore_output": false } }, "description": "CommonMark compliant Markdown formatter", "homepage": "https://github.com/executablebooks/mdformat", - "languages": ["markdwon"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["markdwon"] } diff --git a/tools/mdslw/plugin.json b/tools/mdslw/plugin.json index 377b6970..9b4e7c1f 100644 --- a/tools/mdslw/plugin.json +++ b/tools/mdslw/plugin.json @@ -4,18 +4,11 @@ "categories": ["formatter"], "commands": { "": { - "command": ["$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["$PATH"], + "ignore_output": false } }, "description": "Prepare your markdown for easy diff'ing!", "homepage": "https://github.com/razziel89/mdslw", - "languages": ["markdown"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["markdown"] } diff --git a/tools/meson/plugin.json b/tools/meson/plugin.json index d1f4907a..1e53cb06 100644 --- a/tools/meson/plugin.json +++ b/tools/meson/plugin.json @@ -4,18 +4,11 @@ "categories": ["formatter"], "commands": { "fmt": { - "command": ["fmt", "-i", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["fmt", "-i", "$PATH"], + "ignore_output": false } }, "description": "Meson is an open source build system meant to be both extremely fast, and, even more importantly, as user friendly as possible", "homepage": "https://mesonbuild.com/", - "languages": ["meson"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["meson"] } diff --git a/tools/misspell/plugin.json b/tools/misspell/plugin.json index 5166883f..50b9b979 100644 --- a/tools/misspell/plugin.json +++ b/tools/misspell/plugin.json @@ -4,18 +4,11 @@ "categories": ["autocorrection"], "commands": { "": { - "command": ["-w", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["-w", "$PATH"], + "ignore_output": false } }, "description": "Correct commonly misspelled English words in source files", "homepage": "https://github.com/client9/misspell/", - "languages": [], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": [] } diff --git a/tools/mix/plugin.json b/tools/mix/plugin.json index 3658f521..a18278ec 100644 --- a/tools/mix/plugin.json +++ b/tools/mix/plugin.json @@ -4,25 +4,18 @@ "categories": ["formatter"], "commands": { "format": { - "command": ["format", "$PATH"], - "description": "", - "homepage": "", + "arguments": ["format", "$PATH"], "ignore_output": false, - "tests": [] + "tests": [ + { + "language": "elixir", + "test_input": "\n def add(a , b ) do a + b end\n\n", + "test_output": "def add(a, b) do\n a + b\nend\n" + } + ] } }, "description": "Code formatter for Elixir", "homepage": "https://hexdocs.pm/mix/main/Mix.Tasks.Format.html", - "languages": ["elixir"], - "name": null, - "npm": null, - "php": null, - "tests": [ - { - "command": "format", - "language": "elixir", - "test_input": "\n def add(a , b ) do a + b end\n\n", - "test_output": "def add(a, b) do\n a + b\nend\n" - } - ] + "languages": ["elixir"] } diff --git a/tools/mojo/plugin.json b/tools/mojo/plugin.json index af6ce17b..7f36ed5a 100644 --- a/tools/mojo/plugin.json +++ b/tools/mojo/plugin.json @@ -4,18 +4,11 @@ "categories": ["formatter"], "commands": { "format": { - "command": ["format", "-q", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["format", "-q", "$PATH"], + "ignore_output": false } }, "description": "Formats Mojo source files", "homepage": "https://docs.modular.com/mojo/cli/format", - "languages": ["mojo"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["mojo"] } diff --git a/tools/mypy/plugin.json b/tools/mypy/plugin.json index d9c70753..e2d41602 100644 --- a/tools/mypy/plugin.json +++ b/tools/mypy/plugin.json @@ -4,18 +4,11 @@ "categories": ["linter"], "commands": { "": { - "command": ["$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["$PATH"], + "ignore_output": false } }, "description": "Optional static typing for Python", "homepage": "https://github.com/python/mypy", - "languages": ["python"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["python"] } diff --git a/tools/nginxbeautifier/plugin.json b/tools/nginxbeautifier/plugin.json index 9111ae76..997d12bc 100644 --- a/tools/nginxbeautifier/plugin.json +++ b/tools/nginxbeautifier/plugin.json @@ -4,18 +4,12 @@ "categories": ["formatter"], "commands": { "": { - "command": ["$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["$PATH"], + "ignore_output": false } }, "description": "Format and beautify nginx config files", "homepage": "https://github.com/vasilevich/nginxbeautifier", "languages": ["nginx"], - "name": null, - "npm": "nginxbeautifier", - "php": null, - "tests": [] + "npm": "nginxbeautifier" } diff --git a/tools/nginxfmt/plugin.json b/tools/nginxfmt/plugin.json index a98b2dba..7e1625dd 100644 --- a/tools/nginxfmt/plugin.json +++ b/tools/nginxfmt/plugin.json @@ -4,18 +4,11 @@ "categories": ["formatter"], "commands": { "": { - "command": ["$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["$PATH"], + "ignore_output": false } }, "description": "nginx config file formatter/beautifier written in Python with no additional dependencies", "homepage": "https://github.com/slomkowski/nginx-config-formatter", - "languages": ["nginx"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["nginx"] } diff --git a/tools/nickel/plugin.json b/tools/nickel/plugin.json index 02cd9a61..51334393 100644 --- a/tools/nickel/plugin.json +++ b/tools/nickel/plugin.json @@ -4,18 +4,11 @@ "categories": ["formatter"], "commands": { "format": { - "command": ["format", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["format", "$PATH"], + "ignore_output": false } }, "description": "Better configuration for less", "homepage": "https://nickel-lang.org/", - "languages": ["nickel"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["nickel"] } diff --git a/tools/nimpretty/plugin.json b/tools/nimpretty/plugin.json index cee9808d..eb7a676b 100644 --- a/tools/nimpretty/plugin.json +++ b/tools/nimpretty/plugin.json @@ -4,25 +4,18 @@ "categories": ["formatter"], "commands": { "": { - "command": ["$PATH"], - "description": "", - "homepage": "", + "arguments": ["$PATH"], "ignore_output": false, - "tests": [] + "tests": [ + { + "language": "nim", + "test_input": "proc add( a :int , b:int ) : int =\n return a + b ", + "test_output": "proc add(a: int, b: int): int =\n return a + b\n" + } + ] } }, "description": "Code formatter for the Nim programming language", "homepage": "https://github.com/nim-lang/nim", - "languages": ["nim"], - "name": null, - "npm": null, - "php": null, - "tests": [ - { - "command": "", - "language": "nim", - "test_input": "proc add( a :int , b:int ) : int =\n return a + b ", - "test_output": "proc add(a: int, b: int): int =\n return a + b\n" - } - ] + "languages": ["nim"] } diff --git a/tools/nixfmt/plugin.json b/tools/nixfmt/plugin.json index fd8e6f3e..8789fbe9 100644 --- a/tools/nixfmt/plugin.json +++ b/tools/nixfmt/plugin.json @@ -4,25 +4,18 @@ "categories": ["formatter"], "commands": { "": { - "command": ["$PATH"], - "description": "", - "homepage": "", + "arguments": ["$PATH"], "ignore_output": false, - "tests": [] + "tests": [ + { + "language": "nix", + "test_input": "{ lib, buildPythonPackage, fetchFromGitHub, redis }:\n\nbuildPythonPackage rec {\n pname = \"huey\";\n version = \"2.4.2\";\n\n src = fetchFromGitHub {\n owner = \"coleifer\";\n repo = pname;\n rev = version;\n sha256 = \"00fi04991skq61gjrmig8ry6936pc8zs7p8py8spfipbxf1irkjg\";\n };\n\n propagatedBuildInputs = [ redis ];\n\n # connects to redis\n doCheck = false;\n\n meta = with lib; {\n description = \"A little task queue for python\";\n homepage = \"https://github.com/coleifer/huey\";\n license = licenses.mit;\n maintainers = [ maintainers.globin ];\n };\n}\n", + "test_output": "{ lib, buildPythonPackage, fetchFromGitHub, redis }:\n\nbuildPythonPackage rec {\n pname = \"huey\";\n version = \"2.4.2\";\n\n src = fetchFromGitHub {\n owner = \"coleifer\";\n repo = pname;\n rev = version;\n sha256 = \"00fi04991skq61gjrmig8ry6936pc8zs7p8py8spfipbxf1irkjg\";\n };\n\n propagatedBuildInputs = [ redis ];\n\n # connects to redis\n doCheck = false;\n\n meta = with lib; {\n description = \"A little task queue for python\";\n homepage = \"https://github.com/coleifer/huey\";\n license = licenses.mit;\n maintainers = [ maintainers.globin ];\n };\n}\n" + } + ] } }, "description": "The official (but not yet stable) formatter for Nix code", "homepage": "https://github.com/serokell/nixfmt", - "languages": ["nix"], - "name": null, - "npm": null, - "php": null, - "tests": [ - { - "command": "", - "language": "nix", - "test_input": "{ lib, buildPythonPackage, fetchFromGitHub, redis }:\n\nbuildPythonPackage rec {\n pname = \"huey\";\n version = \"2.4.2\";\n\n src = fetchFromGitHub {\n owner = \"coleifer\";\n repo = pname;\n rev = version;\n sha256 = \"00fi04991skq61gjrmig8ry6936pc8zs7p8py8spfipbxf1irkjg\";\n };\n\n propagatedBuildInputs = [ redis ];\n\n # connects to redis\n doCheck = false;\n\n meta = with lib; {\n description = \"A little task queue for python\";\n homepage = \"https://github.com/coleifer/huey\";\n license = licenses.mit;\n maintainers = [ maintainers.globin ];\n };\n}\n", - "test_output": "{ lib, buildPythonPackage, fetchFromGitHub, redis }:\n\nbuildPythonPackage rec {\n pname = \"huey\";\n version = \"2.4.2\";\n\n src = fetchFromGitHub {\n owner = \"coleifer\";\n repo = pname;\n rev = version;\n sha256 = \"00fi04991skq61gjrmig8ry6936pc8zs7p8py8spfipbxf1irkjg\";\n };\n\n propagatedBuildInputs = [ redis ];\n\n # connects to redis\n doCheck = false;\n\n meta = with lib; {\n description = \"A little task queue for python\";\n homepage = \"https://github.com/coleifer/huey\";\n license = licenses.mit;\n maintainers = [ maintainers.globin ];\n };\n}\n" - } - ] + "languages": ["nix"] } diff --git a/tools/nixpkgs-fmt/plugin.json b/tools/nixpkgs-fmt/plugin.json index 69b81ac6..7425c7ad 100644 --- a/tools/nixpkgs-fmt/plugin.json +++ b/tools/nixpkgs-fmt/plugin.json @@ -4,25 +4,18 @@ "categories": ["formatter"], "commands": { "": { - "command": ["$PATH"], - "description": "", - "homepage": "", + "arguments": ["$PATH"], "ignore_output": false, - "tests": [] + "tests": [ + { + "language": "nix", + "test_input": "{\n lib, buildPythonPackage, fetchFromGitHub, redis }:\n\nbuildPythonPackage rec {\n pname = \"huey\";\n version = \"2.4.2\";\n\n src = fetchFromGitHub {\n owner = \"coleifer\";\n repo = pname;\n rev = version;\n sha256 = \"00fi04991skq61gjrmig8ry6936pc8zs7p8py8spfipbxf1irkjg\";\n };\n\n propagatedBuildInputs = [ redis ];\n\n # connects to redis\n doCheck = false;\n\n meta = with lib; {\n description = \"A little task queue for python\";\n homepage = \"https://github.com/coleifer/huey\";\n license = licenses.mit;\n maintainers = [ maintainers.globin ];\n };\n}\n", + "test_output": "{ lib\n, buildPythonPackage\n, fetchFromGitHub\n, redis\n}:\n\nbuildPythonPackage rec {\n pname = \"huey\";\n version = \"2.4.2\";\n\n src = fetchFromGitHub {\n owner = \"coleifer\";\n repo = pname;\n rev = version;\n sha256 = \"00fi04991skq61gjrmig8ry6936pc8zs7p8py8spfipbxf1irkjg\";\n };\n\n propagatedBuildInputs = [ redis ];\n\n # connects to redis\n doCheck = false;\n\n meta = with lib; {\n description = \"A little task queue for python\";\n homepage = \"https://github.com/coleifer/huey\";\n license = licenses.mit;\n maintainers = [ maintainers.globin ];\n };\n}\n" + } + ] } }, "description": "Nix code formatter for nixpkgs", "homepage": "https://github.com/nix-community/nixpkgs-fmt", - "languages": ["nix"], - "name": null, - "npm": null, - "php": null, - "tests": [ - { - "command": "", - "language": "nix", - "test_input": "{\n lib, buildPythonPackage, fetchFromGitHub, redis }:\n\nbuildPythonPackage rec {\n pname = \"huey\";\n version = \"2.4.2\";\n\n src = fetchFromGitHub {\n owner = \"coleifer\";\n repo = pname;\n rev = version;\n sha256 = \"00fi04991skq61gjrmig8ry6936pc8zs7p8py8spfipbxf1irkjg\";\n };\n\n propagatedBuildInputs = [ redis ];\n\n # connects to redis\n doCheck = false;\n\n meta = with lib; {\n description = \"A little task queue for python\";\n homepage = \"https://github.com/coleifer/huey\";\n license = licenses.mit;\n maintainers = [ maintainers.globin ];\n };\n}\n", - "test_output": "{ lib\n, buildPythonPackage\n, fetchFromGitHub\n, redis\n}:\n\nbuildPythonPackage rec {\n pname = \"huey\";\n version = \"2.4.2\";\n\n src = fetchFromGitHub {\n owner = \"coleifer\";\n repo = pname;\n rev = version;\n sha256 = \"00fi04991skq61gjrmig8ry6936pc8zs7p8py8spfipbxf1irkjg\";\n };\n\n propagatedBuildInputs = [ redis ];\n\n # connects to redis\n doCheck = false;\n\n meta = with lib; {\n description = \"A little task queue for python\";\n homepage = \"https://github.com/coleifer/huey\";\n license = licenses.mit;\n maintainers = [ maintainers.globin ];\n };\n}\n" - } - ] + "languages": ["nix"] } diff --git a/tools/nomad/plugin.json b/tools/nomad/plugin.json index c10c02dd..cee48674 100644 --- a/tools/nomad/plugin.json +++ b/tools/nomad/plugin.json @@ -4,18 +4,11 @@ "categories": ["formatter"], "commands": { "fmt": { - "command": ["fmt", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["fmt", "$PATH"], + "ignore_output": false } }, "description": "CLI for HashiCorp Nomad", "homepage": "https://developer.hashicorp.com/nomad/docs/commands", - "languages": ["hcl"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["hcl"] } diff --git a/tools/nph/plugin.json b/tools/nph/plugin.json index 42ff2b9b..e7e07cb4 100644 --- a/tools/nph/plugin.json +++ b/tools/nph/plugin.json @@ -4,18 +4,11 @@ "categories": ["formatter"], "commands": { "": { - "command": ["$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["$PATH"], + "ignore_output": false } }, "description": "An opinionated code formatter for Nim", "homepage": "https://github.com/arnetheduck/nph", - "languages": ["nim"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["nim"] } diff --git a/tools/npm-groovy-lint/plugin.json b/tools/npm-groovy-lint/plugin.json index 43b3d20d..49d8653a 100644 --- a/tools/npm-groovy-lint/plugin.json +++ b/tools/npm-groovy-lint/plugin.json @@ -4,25 +4,19 @@ "categories": ["formatter", "linter"], "commands": { "": { - "command": ["--format", "$PATH"], - "description": "", - "homepage": "", + "arguments": ["--format", "$PATH"], "ignore_output": false, - "tests": [] + "tests": [ + { + "language": "groovy", + "test_input": " def add(a, b) {\n return a + b\n }\n\n assert add(1,2) == 3 ", + "test_output": "def add(a, b) {\n return a + b\n}\n\nassert add(1, 2) == 3\n" + } + ] } }, "description": "Lint, format and auto-fix your Groovy / Jenkinsfile / Gradle files", "homepage": "https://github.com/nvuillam/npm-groovy-lint", "languages": ["groovy"], - "name": null, - "npm": "npm-groovy-lint", - "php": null, - "tests": [ - { - "command": "", - "language": "groovy", - "test_input": " def add(a, b) {\n return a + b\n }\n\n assert add(1,2) == 3 ", - "test_output": "def add(a, b) {\n return a + b\n}\n\nassert add(1, 2) == 3\n" - } - ] + "npm": "npm-groovy-lint" } diff --git a/tools/nufmt/plugin.json b/tools/nufmt/plugin.json index ce270d75..7b398822 100644 --- a/tools/nufmt/plugin.json +++ b/tools/nufmt/plugin.json @@ -4,18 +4,11 @@ "categories": ["formatter"], "commands": { "": { - "command": ["$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["$PATH"], + "ignore_output": false } }, "description": "the nushell formatter", "homepage": "https://github.com/nushell/nufmt", - "languages": ["nushell"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["nushell"] } diff --git a/tools/ocamlformat/plugin.json b/tools/ocamlformat/plugin.json index 393c8756..4255de12 100644 --- a/tools/ocamlformat/plugin.json +++ b/tools/ocamlformat/plugin.json @@ -4,30 +4,23 @@ "categories": ["formatter"], "commands": { "": { - "command": [ + "arguments": [ "--ignore-invalid-option", "--inplace", "--enable-outside-detected-project", "$PATH" ], - "description": "", - "homepage": "", "ignore_output": false, - "tests": [] + "tests": [ + { + "language": "ocaml", + "test_input": "\nlet add a b = a + b\n ", + "test_output": "let add a b = a + b\n" + } + ] } }, "description": "Auto-formatter for OCaml code", "homepage": "https://github.com/ocaml-ppx/ocamlformat", - "languages": ["ocaml"], - "name": null, - "npm": null, - "php": null, - "tests": [ - { - "command": "", - "language": "ocaml", - "test_input": "\nlet add a b = a + b\n ", - "test_output": "let add a b = a + b\n" - } - ] + "languages": ["ocaml"] } diff --git a/tools/ocp-indent/plugin.json b/tools/ocp-indent/plugin.json index 059fb54c..2541b07d 100644 --- a/tools/ocp-indent/plugin.json +++ b/tools/ocp-indent/plugin.json @@ -4,25 +4,18 @@ "categories": ["formatter"], "commands": { "": { - "command": ["--inplace", "$PATH"], - "description": "", - "homepage": "", + "arguments": ["--inplace", "$PATH"], "ignore_output": false, - "tests": [] + "tests": [ + { + "language": "ocaml", + "test_input": "\nlet add a b\n = a + b\n ", + "test_output": "\nlet add a b\n = a + b\n" + } + ] } }, "description": "Indentation tool for OCaml", "homepage": "https://github.com/OCamlPro/ocp-indent", - "languages": ["ocaml"], - "name": null, - "npm": null, - "php": null, - "tests": [ - { - "command": "", - "language": "ocaml", - "test_input": "\nlet add a b\n = a + b\n ", - "test_output": "\nlet add a b\n = a + b\n" - } - ] + "languages": ["ocaml"] } diff --git a/tools/odinfmt/plugin.json b/tools/odinfmt/plugin.json index 640772ce..8e4b9590 100644 --- a/tools/odinfmt/plugin.json +++ b/tools/odinfmt/plugin.json @@ -4,18 +4,11 @@ "categories": ["formatter"], "commands": { "": { - "command": ["-w", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["-w", "$PATH"], + "ignore_output": false } }, "description": "Formatter for the Odin programming language", "homepage": "https://github.com/DanielGavin/ols", - "languages": ["odin"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["odin"] } diff --git a/tools/oelint-adv/plugin.json b/tools/oelint-adv/plugin.json index 8bd0e57d..170e6115 100644 --- a/tools/oelint-adv/plugin.json +++ b/tools/oelint-adv/plugin.json @@ -4,18 +4,11 @@ "categories": ["linter"], "commands": { "": { - "command": ["--fix", "--nobackup", "--quiet", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["--fix", "--nobackup", "--quiet", "$PATH"], + "ignore_output": false } }, "description": "Advanced oelint", "homepage": "https://github.com/priv-kweihmann/oelint-adv", - "languages": ["bitbake"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["bitbake"] } diff --git a/tools/opa/plugin.json b/tools/opa/plugin.json index 86f29c62..591b5fb9 100644 --- a/tools/opa/plugin.json +++ b/tools/opa/plugin.json @@ -4,18 +4,11 @@ "categories": ["formatter"], "commands": { "fmt": { - "command": ["fmt", "$PATH", "-w"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["fmt", "$PATH", "-w"], + "ignore_output": false } }, "description": "Format Rego source files", "homepage": "https://www.openpolicyagent.org/docs/latest/cli/", - "languages": ["rego"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["rego"] } diff --git a/tools/ormolu/plugin.json b/tools/ormolu/plugin.json index 8138789c..6d5c007e 100644 --- a/tools/ormolu/plugin.json +++ b/tools/ormolu/plugin.json @@ -4,25 +4,18 @@ "categories": ["formatter"], "commands": { "": { - "command": ["--mode", "inplace", "$PATH"], - "description": "", - "homepage": "", + "arguments": ["--mode", "inplace", "$PATH"], "ignore_output": false, - "tests": [] + "tests": [ + { + "language": "haskell", + "test_input": "\naddNumbers::Int->Int->Int\naddNumbers a b = do\n a + b\n ", + "test_output": "addNumbers :: Int -> Int -> Int\naddNumbers a b = do\n a + b\n" + } + ] } }, "description": "A formatter for Haskell source code", "homepage": "https://github.com/tweag/ormolu", - "languages": ["haskell"], - "name": null, - "npm": null, - "php": null, - "tests": [ - { - "command": "", - "language": "haskell", - "test_input": "\naddNumbers::Int->Int->Int\naddNumbers a b = do\n a + b\n ", - "test_output": "addNumbers :: Int -> Int -> Int\naddNumbers a b = do\n a + b\n" - } - ] + "languages": ["haskell"] } diff --git a/tools/oxlint/plugin.json b/tools/oxlint/plugin.json index d838eaec..2f2174aa 100644 --- a/tools/oxlint/plugin.json +++ b/tools/oxlint/plugin.json @@ -4,18 +4,12 @@ "categories": ["linter"], "commands": { "": { - "command": ["--fix", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["--fix", "$PATH"], + "ignore_output": false } }, "description": "Oxlint is designed to catch erroneous or useless code without requiring any configurations by default", "homepage": "https://oxc.rs/docs/guide/usage/linter.html", "languages": ["javascript", "typescript"], - "name": null, - "npm": "oxlint", - "php": null, - "tests": [] + "npm": "oxlint" } diff --git a/tools/packer/plugin.json b/tools/packer/plugin.json index 82ae1106..02435204 100644 --- a/tools/packer/plugin.json +++ b/tools/packer/plugin.json @@ -4,25 +4,15 @@ "categories": ["formatter"], "commands": { "fix": { - "command": ["fix", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["fix", "$PATH"], + "ignore_output": false }, "fmt": { - "command": ["fmt", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["fmt", "$PATH"], + "ignore_output": false } }, "description": "Packer is used to format HCL2 configuration files", "homepage": "https://developer.hashicorp.com/packer/docs/commands", - "languages": ["hcl"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["hcl"] } diff --git a/tools/perltidy/plugin.json b/tools/perltidy/plugin.json index 387f5cee..f3a39767 100644 --- a/tools/perltidy/plugin.json +++ b/tools/perltidy/plugin.json @@ -4,18 +4,11 @@ "categories": ["formatter"], "commands": { "": { - "command": ["-b", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["-b", "$PATH"], + "ignore_output": false } }, "description": "Perl::Tidy, a source code formatter for Perl", "homepage": "https://github.com/perltidy/perltidy", - "languages": ["perl"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["perl"] } diff --git a/tools/pg_format/plugin.json b/tools/pg_format/plugin.json index 8b1a5a74..e62ea28e 100644 --- a/tools/pg_format/plugin.json +++ b/tools/pg_format/plugin.json @@ -4,18 +4,11 @@ "categories": ["formatter"], "commands": { "": { - "command": ["--inplace", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["--inplace", "$PATH"], + "ignore_output": false } }, "description": "A PostgreSQL SQL syntax beautifier", "homepage": "https://github.com/darold/pgFormatter", - "languages": ["sql"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["sql"] } diff --git a/tools/php-cs-fixer/plugin.json b/tools/php-cs-fixer/plugin.json index d1b2ad3c..a3b6284d 100644 --- a/tools/php-cs-fixer/plugin.json +++ b/tools/php-cs-fixer/plugin.json @@ -4,18 +4,12 @@ "categories": ["formatter", "linter"], "commands": { "fix": { - "command": ["fix", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["fix", "$PATH"], + "ignore_output": false } }, "description": "A tool to automatically fix PHP Coding Standards issues", "homepage": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer", "languages": ["php"], - "name": null, - "npm": null, - "php": "php-cs-fixer", - "tests": [] + "php": "php-cs-fixer" } diff --git a/tools/phpcbf/plugin.json b/tools/phpcbf/plugin.json index babe33a7..4072e0c1 100644 --- a/tools/phpcbf/plugin.json +++ b/tools/phpcbf/plugin.json @@ -4,18 +4,12 @@ "categories": ["formatter"], "commands": { "": { - "command": ["$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["$PATH"], + "ignore_output": false } }, "description": "PHP Code Beautifier and Fixer fixes violations of a defined coding standard", "homepage": "https://phpqa.io/projects/phpcbf.html", "languages": ["php"], - "name": null, - "npm": null, - "php": "phpcbf", - "tests": [] + "php": "phpcbf" } diff --git a/tools/phpinsights/plugin.json b/tools/phpinsights/plugin.json index 2d2cb028..f0da4ef5 100644 --- a/tools/phpinsights/plugin.json +++ b/tools/phpinsights/plugin.json @@ -4,18 +4,12 @@ "categories": ["linter"], "commands": { "fix": { - "command": ["fix", "$PATH", "--no-interaction", "--quiet"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["fix", "$PATH", "--no-interaction", "--quiet"], + "ignore_output": false } }, "description": "Instant PHP quality checks from your console", "homepage": "https://github.com/nunomaduro/phpinsights", "languages": ["php"], - "name": null, - "npm": null, - "php": "phpinsights", - "tests": [] + "php": "phpinsights" } diff --git a/tools/pint/plugin.json b/tools/pint/plugin.json index 890be41f..07d2d0a4 100644 --- a/tools/pint/plugin.json +++ b/tools/pint/plugin.json @@ -4,18 +4,12 @@ "categories": ["formatter", "linter"], "commands": { "": { - "command": ["$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["$PATH"], + "ignore_output": false } }, "description": "Laravel Pint is an opinionated PHP code style fixer for minimalists", "homepage": "https://github.com/laravel/pint", "languages": ["php"], - "name": null, - "npm": null, - "php": "pint", - "tests": [] + "php": "pint" } diff --git a/tools/prettier/plugin.json b/tools/prettier/plugin.json index 16573a76..ac73ac6c 100644 --- a/tools/prettier/plugin.json +++ b/tools/prettier/plugin.json @@ -4,7 +4,7 @@ "categories": ["formatter"], "commands": { "": { - "command": [ + "arguments": [ "--embedded-language-formatting", "off", "--log-level", @@ -12,30 +12,23 @@ "--write", "$PATH" ], - "description": "", - "homepage": "", "ignore_output": false, - "tests": [] + "tests": [ + { + "language": "json", + "test_input": "\n {\n \"key\": \"value\",\n \"key2\": [\n \"value2\",\n \"value3\",\n 1\n , null]\n }\n ", + "test_output": "{\n \"key\": \"value\",\n \"key2\": [\"value2\", \"value3\", 1, null]\n}\n" + }, + { + "language": "javascript", + "test_input": "\n async function asyncAddition(\n a,b\n ) {\n return a+b\n }\n\n ", + "test_output": "async function asyncAddition(a, b) {\n return a + b;\n}\n" + } + ] } }, "description": "Prettier is an opinionated code formatter", "homepage": "https://github.com/prettier/prettier", "languages": ["json", "css", "typescript", "html", "javascript"], - "name": null, - "npm": "prettier", - "php": null, - "tests": [ - { - "command": "", - "language": "json", - "test_input": "\n {\n \"key\": \"value\",\n \"key2\": [\n \"value2\",\n \"value3\",\n 1\n , null]\n }\n ", - "test_output": "{\n \"key\": \"value\",\n \"key2\": [\"value2\", \"value3\", 1, null]\n}\n" - }, - { - "command": "", - "language": "javascript", - "test_input": "\n async function asyncAddition(\n a,b\n ) {\n return a+b\n }\n\n ", - "test_output": "async function asyncAddition(a, b) {\n return a + b;\n}\n" - } - ] + "npm": "prettier" } diff --git a/tools/pretty-php/plugin.json b/tools/pretty-php/plugin.json index eb711d4d..28f77ddc 100644 --- a/tools/pretty-php/plugin.json +++ b/tools/pretty-php/plugin.json @@ -4,18 +4,12 @@ "categories": ["formatter"], "commands": { "": { - "command": ["$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["$PATH"], + "ignore_output": false } }, "description": "The opinionated PHP code formatter", "homepage": "https://github.com/lkrms/pretty-php", "languages": ["php"], - "name": null, - "npm": null, - "php": "pretty-php", - "tests": [] + "php": "pretty-php" } diff --git a/tools/prettypst/plugin.json b/tools/prettypst/plugin.json index c9f8de6c..3ad515d5 100644 --- a/tools/prettypst/plugin.json +++ b/tools/prettypst/plugin.json @@ -4,18 +4,11 @@ "categories": ["formatter"], "commands": { "": { - "command": ["$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["$PATH"], + "ignore_output": false } }, "description": "Formatter for Typst", "homepage": "https://github.com/antonWetzel/prettypst", - "languages": ["typst"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["typst"] } diff --git a/tools/prisma/plugin.json b/tools/prisma/plugin.json index 96811211..4b42d01c 100644 --- a/tools/prisma/plugin.json +++ b/tools/prisma/plugin.json @@ -4,25 +4,19 @@ "categories": ["formatter"], "commands": { "format": { - "command": ["format", "--schema={$PATH_STRING}"], - "description": "", - "homepage": "", + "arguments": ["format", "--schema={$PATH_STRING}"], "ignore_output": false, - "tests": [] + "tests": [ + { + "language": "schema", + "test_input": "datasource db {\n provider = \"postgresql\"\n url = env(\"DATABASE_URL\")\n directUrl = env(\"DIRECT_DATABASE_URL\")\n}\n\n\n", + "test_output": "datasource db {\n provider = \"postgresql\"\n url = env(\"DATABASE_URL\")\n directUrl = env(\"DIRECT_DATABASE_URL\")\n}\n" + } + ] } }, "description": "Commands for interacting with the prisma ORM", "homepage": "https://www.prisma.io", "languages": ["prisma"], - "name": null, - "npm": "prisma", - "php": null, - "tests": [ - { - "command": "format", - "language": "schema", - "test_input": "datasource db {\n provider = \"postgresql\"\n url = env(\"DATABASE_URL\")\n directUrl = env(\"DIRECT_DATABASE_URL\")\n}\n\n\n", - "test_output": "datasource db {\n provider = \"postgresql\"\n url = env(\"DATABASE_URL\")\n directUrl = env(\"DIRECT_DATABASE_URL\")\n}\n" - } - ] + "npm": "prisma" } diff --git a/tools/protolint/plugin.json b/tools/protolint/plugin.json index e65be5b4..aa7ca91e 100644 --- a/tools/protolint/plugin.json +++ b/tools/protolint/plugin.json @@ -4,18 +4,11 @@ "categories": ["linter"], "commands": { "": { - "command": ["lint", "-fix", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["lint", "-fix", "$PATH"], + "ignore_output": false } }, "description": "A pluggable linter and fixer to enforce Protocol Buffer style and conventions", "homepage": "https://github.com/yoheimuta/protolint", - "languages": ["protobuf"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["protobuf"] } diff --git a/tools/ptop/plugin.json b/tools/ptop/plugin.json index 29c63f8f..3d1a69c0 100644 --- a/tools/ptop/plugin.json +++ b/tools/ptop/plugin.json @@ -4,18 +4,11 @@ "categories": ["formatter"], "commands": { "": { - "command": ["$PATH", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["$PATH", "$PATH"], + "ignore_output": false } }, "description": "Free Pascal source formatter", "homepage": "https://www.freepascal.org/tools/ptop.html", - "languages": ["pascal"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["pascal"] } diff --git a/tools/puppet-lint/plugin.json b/tools/puppet-lint/plugin.json index 00498687..d5b2dd94 100644 --- a/tools/puppet-lint/plugin.json +++ b/tools/puppet-lint/plugin.json @@ -4,18 +4,11 @@ "categories": ["linter"], "commands": { "": { - "command": ["--fix", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["--fix", "$PATH"], + "ignore_output": false } }, "description": "Check that your Puppet manifests conform to the style guide", "homepage": "https://github.com/puppetlabs/puppet-lint", - "languages": ["puppet"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["puppet"] } diff --git a/tools/purs-tidy/plugin.json b/tools/purs-tidy/plugin.json index 40bdab9e..764945db 100644 --- a/tools/purs-tidy/plugin.json +++ b/tools/purs-tidy/plugin.json @@ -4,25 +4,19 @@ "categories": ["formatter"], "commands": { "": { - "command": ["format-in-place", "$PATH"], - "description": "", - "homepage": "", + "arguments": ["format-in-place", "$PATH"], "ignore_output": false, - "tests": [] + "tests": [ + { + "language": "purescript", + "test_input": "module Test.Main where\n\nimport Prelude\n\nimport Effect (Effect)\nimport Effect.Class.Console (log)\n\nmain :: Effect Unit\nmain = do\n log \"You should add some tests.\"", + "test_output": "module Test.Main where\n\nimport Prelude\n\nimport Effect (Effect)\nimport Effect.Class.Console (log)\n\nmain :: Effect Unit\nmain = do\n log \"You should add some tests.\"" + } + ] } }, "description": "PureScript code formatter", "homepage": "https://github.com/natefaubion/purescript-tidy", "languages": ["purescript"], - "name": null, - "npm": "purs-tidy", - "php": null, - "tests": [ - { - "command": "", - "language": "purescript", - "test_input": "module Test.Main where\n\nimport Prelude\n\nimport Effect (Effect)\nimport Effect.Class.Console (log)\n\nmain :: Effect Unit\nmain = do\n log \"You should add some tests.\"", - "test_output": "module Test.Main where\n\nimport Prelude\n\nimport Effect (Effect)\nimport Effect.Class.Console (log)\n\nmain :: Effect Unit\nmain = do\n log \"You should add some tests.\"" - } - ] + "npm": "purs-tidy" } diff --git a/tools/purty/plugin.json b/tools/purty/plugin.json index 14f9af05..aaf013db 100644 --- a/tools/purty/plugin.json +++ b/tools/purty/plugin.json @@ -4,18 +4,12 @@ "categories": ["formatter"], "commands": { "": { - "command": ["--write", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["--write", "$PATH"], + "ignore_output": false } }, "description": "PureScript pretty-printer", "homepage": "https://gitlab.com/joneshf/purty", "languages": ["purescript"], - "name": null, - "npm": "purty", - "php": null, - "tests": [] + "npm": "purty" } diff --git a/tools/pycln/plugin.json b/tools/pycln/plugin.json index f17dd288..f1d0c415 100644 --- a/tools/pycln/plugin.json +++ b/tools/pycln/plugin.json @@ -4,25 +4,18 @@ "categories": ["formatter"], "commands": { "": { - "command": ["--no-gitignore", "--quiet", "$PATH"], - "description": "", - "homepage": "", + "arguments": ["--no-gitignore", "--quiet", "$PATH"], "ignore_output": false, - "tests": [] + "tests": [ + { + "language": "python", + "test_input": "import math", + "test_output": "" + } + ] } }, "description": "A formatter for finding and removing unused import statements", "homepage": "https://github.com/hadialqattan/pycln", - "languages": ["python"], - "name": null, - "npm": null, - "php": null, - "tests": [ - { - "command": "", - "language": "python", - "test_input": "import math", - "test_output": "" - } - ] + "languages": ["python"] } diff --git a/tools/pycodestyle/plugin.json b/tools/pycodestyle/plugin.json index 12b5c3ae..5b51ce29 100644 --- a/tools/pycodestyle/plugin.json +++ b/tools/pycodestyle/plugin.json @@ -4,18 +4,11 @@ "categories": ["linter"], "commands": { "": { - "command": ["$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["$PATH"], + "ignore_output": false } }, "description": "Simple Python style checker in one Python file", "homepage": "https://github.com/PyCQA/pycodestyle", - "languages": ["python"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["python"] } diff --git a/tools/pyink/plugin.json b/tools/pyink/plugin.json index 23788f22..8a07a508 100644 --- a/tools/pyink/plugin.json +++ b/tools/pyink/plugin.json @@ -4,25 +4,18 @@ "categories": ["formatter"], "commands": { "": { - "command": ["--quiet", "$PATH"], - "description": "", - "homepage": "", + "arguments": ["--quiet", "$PATH"], "ignore_output": false, - "tests": [] + "tests": [ + { + "language": "python", + "test_input": "def add( a: int , b:int)->int: return a+b", + "test_output": "def add(a: int, b: int) -> int:\n return a + b\n" + } + ] } }, "description": "Pyink is a Python formatter, forked from Black with a few different formatting behaviors", "homepage": "https://github.com/google/pyink", - "languages": ["python"], - "name": null, - "npm": null, - "php": null, - "tests": [ - { - "command": "", - "language": "python", - "test_input": "def add( a: int , b:int)->int: return a+b", - "test_output": "def add(a: int, b: int) -> int:\n return a + b\n" - } - ] + "languages": ["python"] } diff --git a/tools/pyment/plugin.json b/tools/pyment/plugin.json index 3b03f053..75d922a8 100644 --- a/tools/pyment/plugin.json +++ b/tools/pyment/plugin.json @@ -4,18 +4,11 @@ "categories": ["formatter"], "commands": { "": { - "command": ["-w", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["-w", "$PATH"], + "ignore_output": false } }, "description": "Format and convert Python docstrings and generates patches", "homepage": "https://github.com/dadadel/pyment", - "languages": ["python"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["python"] } diff --git a/tools/qmlfmt/plugin.json b/tools/qmlfmt/plugin.json index dde5b64d..32978bee 100644 --- a/tools/qmlfmt/plugin.json +++ b/tools/qmlfmt/plugin.json @@ -4,18 +4,11 @@ "categories": ["formatter"], "commands": { "": { - "command": ["-w", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["-w", "$PATH"], + "ignore_output": false } }, "description": "qmlfmt - command line application that formats QML files", "homepage": "https://github.com/jesperhh/qmlfmt", - "languages": ["qml"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["qml"] } diff --git a/tools/quick-lint-js/plugin.json b/tools/quick-lint-js/plugin.json index fb53168f..87922415 100644 --- a/tools/quick-lint-js/plugin.json +++ b/tools/quick-lint-js/plugin.json @@ -4,18 +4,12 @@ "categories": ["linter"], "commands": { "": { - "command": ["$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["$PATH"], + "ignore_output": false } }, "description": "quick-lint-js finds bugs in JavaScript programs", "homepage": "https://github.com/quick-lint/quick-lint-js", "languages": ["javascript"], - "name": null, - "npm": "quick-lint-js", - "php": null, - "tests": [] + "npm": "quick-lint-js" } diff --git a/tools/raco/plugin.json b/tools/raco/plugin.json index da3b44a7..839aa08f 100644 --- a/tools/raco/plugin.json +++ b/tools/raco/plugin.json @@ -4,18 +4,11 @@ "categories": ["formatter"], "commands": { "fmt": { - "command": ["fmt", "-i", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["fmt", "-i", "$PATH"], + "ignore_output": false } }, "description": "An extensible code formatter for Racket", "homepage": "https://docs.racket-lang.org/fmt/", - "languages": ["racket"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["racket"] } diff --git a/tools/refmt/plugin.json b/tools/refmt/plugin.json index 501bc6ba..2a1fb88d 100644 --- a/tools/refmt/plugin.json +++ b/tools/refmt/plugin.json @@ -4,18 +4,11 @@ "categories": ["formatter"], "commands": { "": { - "command": ["--in-place", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["--in-place", "$PATH"], + "ignore_output": false } }, "description": "refmt stands by Reason Formatter and it formats Reason programs, is a parser and pretty-printer for Reason", "homepage": "https://reasonml.github.io/docs/en/refmt", - "languages": ["reason"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["reason"] } diff --git a/tools/reformat-gherkin/plugin.json b/tools/reformat-gherkin/plugin.json index ab6a6ed0..d144f9f2 100644 --- a/tools/reformat-gherkin/plugin.json +++ b/tools/reformat-gherkin/plugin.json @@ -4,18 +4,11 @@ "categories": ["formatter"], "commands": { "": { - "command": ["$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["$PATH"], + "ignore_output": false } }, "description": "Reformat-gherkin automatically formats Gherkin files", "homepage": "https://github.com/ducminh-phan/reformat-gherkin", - "languages": ["gherkin"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["gherkin"] } diff --git a/tools/regal/plugin.json b/tools/regal/plugin.json index 825d1e54..f42d6bf2 100644 --- a/tools/regal/plugin.json +++ b/tools/regal/plugin.json @@ -4,25 +4,15 @@ "categories": ["linter"], "commands": { "fix": { - "command": ["fix", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["fix", "$PATH"], + "ignore_output": false }, "lint": { - "command": ["lint", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["lint", "$PATH"], + "ignore_output": false } }, "description": "Regal is a linter and language server for Rego, bringing your policy development experience to the next level", "homepage": "https://github.com/styrainc/regal", - "languages": ["rego"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["rego"] } diff --git a/tools/reorder-python-imports/plugin.json b/tools/reorder-python-imports/plugin.json index 1718fe4a..a301a02c 100644 --- a/tools/reorder-python-imports/plugin.json +++ b/tools/reorder-python-imports/plugin.json @@ -4,18 +4,11 @@ "categories": ["formatter"], "commands": { "": { - "command": ["$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["$PATH"], + "ignore_output": false } }, "description": "Rewrites source to reorder python imports", "homepage": "https://github.com/asottile/reorder-python-imports", - "languages": ["python"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["python"] } diff --git a/tools/rescript/plugin.json b/tools/rescript/plugin.json index b2a4bf01..e2908169 100644 --- a/tools/rescript/plugin.json +++ b/tools/rescript/plugin.json @@ -4,25 +4,19 @@ "categories": ["formatter"], "commands": { "format": { - "command": ["format", "$PATH"], - "description": "", - "homepage": "", + "arguments": ["format", "$PATH"], "ignore_output": false, - "tests": [] + "tests": [ + { + "language": "rescript", + "test_input": "module Button = {\n @react.component\n let make = (~count) => {\n let times = switch count {\n | 1 => \"once\"\n | 2 => \"twice\"\n | n => n->Int.toString ++ \" times\"\n }\n let text = `Click me ${times}`\n\n \n }\n}", + "test_output": "module Button = {\n @react.component\n let make = (~count) => {\n let times = switch count {\n | 1 => \"once\"\n | 2 => \"twice\"\n | n => n->Int.toString ++ \" times\"\n }\n let text = `Click me ${times}`\n\n \n }\n}\n" + } + ] } }, "description": "Formatter for ReScript", "homepage": "https://rescript-lang.org/", "languages": ["rescript"], - "name": null, - "npm": "rescript", - "php": null, - "tests": [ - { - "command": "format", - "language": "rescript", - "test_input": "module Button = {\n @react.component\n let make = (~count) => {\n let times = switch count {\n | 1 => \"once\"\n | 2 => \"twice\"\n | n => n->Int.toString ++ \" times\"\n }\n let text = `Click me ${times}`\n\n \n }\n}", - "test_output": "module Button = {\n @react.component\n let make = (~count) => {\n let times = switch count {\n | 1 => \"once\"\n | 2 => \"twice\"\n | n => n->Int.toString ++ \" times\"\n }\n let text = `Click me ${times}`\n\n \n }\n}\n" - } - ] + "npm": "rescript" } diff --git a/tools/roc/plugin.json b/tools/roc/plugin.json index 2b728247..99f7a4c7 100644 --- a/tools/roc/plugin.json +++ b/tools/roc/plugin.json @@ -4,25 +4,18 @@ "categories": ["formatter"], "commands": { "format": { - "command": ["format", "$PATH"], - "description": "", - "homepage": "", + "arguments": ["format", "$PATH"], "ignore_output": false, - "tests": [] + "tests": [ + { + "language": "roc", + "test_input": "app \"helloWorld\"\n packages { pf: \"https://github.com/roc-lang/\" }\n imports [pf.Stdout]\n provides [main] to pf\n\n\n\n\n\n\nmain =\n Stdout.line \"Hello, World!\"\n\n\n ", + "test_output": "app [main] { pf: platform \"https://github.com/roc-lang/\" }\n\nimport pf.Stdout\n\nmain =\n Stdout.line \"Hello, World!\"\n\n" + } + ] } }, "description": "Tools for the roc programming language", "homepage": "https://github.com/roc-lang/roc", - "languages": ["roc"], - "name": null, - "npm": null, - "php": null, - "tests": [ - { - "command": "format", - "language": "roc", - "test_input": "app \"helloWorld\"\n packages { pf: \"https://github.com/roc-lang/\" }\n imports [pf.Stdout]\n provides [main] to pf\n\n\n\n\n\n\nmain =\n Stdout.line \"Hello, World!\"\n\n\n ", - "test_output": "app [main] { pf: platform \"https://github.com/roc-lang/\" }\n\nimport pf.Stdout\n\nmain =\n Stdout.line \"Hello, World!\"\n\n" - } - ] + "languages": ["roc"] } diff --git a/tools/rstfmt/plugin.json b/tools/rstfmt/plugin.json index 897934f8..93c96ede 100644 --- a/tools/rstfmt/plugin.json +++ b/tools/rstfmt/plugin.json @@ -4,18 +4,11 @@ "categories": ["formatter"], "commands": { "": { - "command": ["$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["$PATH"], + "ignore_output": false } }, "description": "A formatter for reStructuredText", "homepage": "https://github.com/dzhu/rstfmt", - "languages": ["restructuredtext"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["restructuredtext"] } diff --git a/tools/rubocop/plugin.json b/tools/rubocop/plugin.json index 4dbbb849..881621f8 100644 --- a/tools/rubocop/plugin.json +++ b/tools/rubocop/plugin.json @@ -4,31 +4,24 @@ "categories": ["formatter", "linter"], "commands": { "": { - "command": [ + "arguments": [ "--fix-layout", "--autocorrect", "--format", "quiet", "$PATH" ], - "description": "", - "homepage": "", "ignore_output": false, - "tests": [] + "tests": [ + { + "language": "ruby", + "test_input": "def add( a , b )\n return a + b\n end", + "test_output": "def add(a, b)\n return a + b\nend\n" + } + ] } }, "description": "A Ruby static code analyzer and formatter, based on the community Ruby style guide", "homepage": "https://github.com/rubocop/rubocop", - "languages": ["ruby"], - "name": null, - "npm": null, - "php": null, - "tests": [ - { - "command": "", - "language": "ruby", - "test_input": "def add( a , b )\n return a + b\n end", - "test_output": "def add(a, b)\n return a + b\nend\n" - } - ] + "languages": ["ruby"] } diff --git a/tools/rubyfmt/plugin.json b/tools/rubyfmt/plugin.json index e49ea02f..d759e36f 100644 --- a/tools/rubyfmt/plugin.json +++ b/tools/rubyfmt/plugin.json @@ -4,25 +4,18 @@ "categories": ["formatter"], "commands": { "": { - "command": ["-i", "$PATH"], - "description": "", - "homepage": "", + "arguments": ["-i", "$PATH"], "ignore_output": false, - "tests": [] + "tests": [ + { + "language": "ruby", + "test_input": "def add( a , b )\n return a + b\n end", + "test_output": "def add(a, b)\n return a + b\nend\n" + } + ] } }, "description": "Ruby Autoformatter", "homepage": "https://github.com/fables-tales/rubyfmt", - "languages": ["ruby"], - "name": null, - "npm": null, - "php": null, - "tests": [ - { - "command": "", - "language": "ruby", - "test_input": "def add( a , b )\n return a + b\n end", - "test_output": "def add(a, b)\n return a + b\nend\n" - } - ] + "languages": ["ruby"] } diff --git a/tools/ruff/plugin.json b/tools/ruff/plugin.json index 7e6bf8ff..7ed8cdcf 100644 --- a/tools/ruff/plugin.json +++ b/tools/ruff/plugin.json @@ -4,32 +4,22 @@ "categories": ["linter", "formatter"], "commands": { "check": { - "command": ["check", "--fix", "--quiet", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["check", "--fix", "--quiet", "$PATH"], + "ignore_output": false }, "format": { - "command": ["format", "--quiet", "$PATH"], - "description": "", - "homepage": "", + "arguments": ["format", "--quiet", "$PATH"], "ignore_output": false, - "tests": [] + "tests": [ + { + "language": "python", + "test_input": "def add( a: int , b:int)->int: return a+b", + "test_output": "def add(a: int, b: int) -> int:\n return a + b\n" + } + ] } }, "description": "An extremely fast Python linter and code formatter, written in Rust", "homepage": "https://docs.astral.sh/ruff", - "languages": ["python"], - "name": null, - "npm": null, - "php": null, - "tests": [ - { - "command": "format", - "language": "python", - "test_input": "def add( a: int , b:int)->int: return a+b", - "test_output": "def add(a: int, b: int) -> int:\n return a + b\n" - } - ] + "languages": ["python"] } diff --git a/tools/rufo/plugin.json b/tools/rufo/plugin.json index 83f98d4c..9ca6d268 100644 --- a/tools/rufo/plugin.json +++ b/tools/rufo/plugin.json @@ -4,25 +4,18 @@ "categories": ["formatter"], "commands": { "": { - "command": ["--simple-exit", "$PATH"], - "description": "", - "homepage": "", + "arguments": ["--simple-exit", "$PATH"], "ignore_output": false, - "tests": [] + "tests": [ + { + "language": "ruby", + "test_input": "def add( a , b )\n return a + b\n end", + "test_output": "def add(a, b)\n return a + b\nend\n" + } + ] } }, "description": "The Ruby Formatter", "homepage": "https://github.com/ruby-formatter/rufo", - "languages": ["ruby"], - "name": null, - "npm": null, - "php": null, - "tests": [ - { - "command": "", - "language": "ruby", - "test_input": "def add( a , b )\n return a + b\n end", - "test_output": "def add(a, b)\n return a + b\nend\n" - } - ] + "languages": ["ruby"] } diff --git a/tools/rune/plugin.json b/tools/rune/plugin.json index d7cfcf8e..f7647c6c 100644 --- a/tools/rune/plugin.json +++ b/tools/rune/plugin.json @@ -4,18 +4,11 @@ "categories": ["formatter"], "commands": { "fmt": { - "command": ["fmt", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["fmt", "$PATH"], + "ignore_output": false } }, "description": "Tools for the Rune programming language", "homepage": "https://github.com/rune-rs/rune", - "languages": ["rune"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["rune"] } diff --git a/tools/rustfmt/plugin.json b/tools/rustfmt/plugin.json index 1e87e557..aa09cebf 100644 --- a/tools/rustfmt/plugin.json +++ b/tools/rustfmt/plugin.json @@ -4,25 +4,18 @@ "categories": ["formatter"], "commands": { "": { - "command": ["--edition", "2021", "--quiet", "$PATH"], - "description": "", - "homepage": "", + "arguments": ["--edition", "2021", "--quiet", "$PATH"], "ignore_output": false, - "tests": [] + "tests": [ + { + "language": "rust", + "test_input": "pub\n async\n fn add( a: i32,\n b:i32 )-> i32 {a+b}\n ", + "test_output": "pub async fn add(a: i32, b: i32) -> i32 {\n a + b\n}\n" + } + ] } }, "description": "The official code formatter for Rust", "homepage": "https://github.com/rust-lang/rustfmt", - "languages": ["rust"], - "name": null, - "npm": null, - "php": null, - "tests": [ - { - "command": "", - "language": "rust", - "test_input": "pub\n async\n fn add( a: i32,\n b:i32 )-> i32 {a+b}\n ", - "test_output": "pub async fn add(a: i32, b: i32) -> i32 {\n a + b\n}\n" - } - ] + "languages": ["rust"] } diff --git a/tools/rustywind/plugin.json b/tools/rustywind/plugin.json index 872f7631..964f1bd3 100644 --- a/tools/rustywind/plugin.json +++ b/tools/rustywind/plugin.json @@ -4,18 +4,11 @@ "categories": ["formatter"], "commands": { "": { - "command": ["--write", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["--write", "$PATH"], + "ignore_output": false } }, "description": "CLI for organizing Tailwind CSS classes", "homepage": "https://github.com/avencera/rustywind", - "languages": ["html"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["html"] } diff --git a/tools/salt-lint/plugin.json b/tools/salt-lint/plugin.json index 35f0ed57..45bd9a8e 100644 --- a/tools/salt-lint/plugin.json +++ b/tools/salt-lint/plugin.json @@ -4,18 +4,11 @@ "categories": ["linter"], "commands": { "": { - "command": ["$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["$PATH"], + "ignore_output": false } }, "description": "A command-line utility that checks for best practices in SaltStack", "homepage": "https://github.com/warpnet/salt-lint", - "languages": ["salt"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["salt"] } diff --git a/tools/scalafmt/plugin.json b/tools/scalafmt/plugin.json index 0c8e7910..fdbbe6fa 100644 --- a/tools/scalafmt/plugin.json +++ b/tools/scalafmt/plugin.json @@ -4,25 +4,18 @@ "categories": ["formatter"], "commands": { "": { - "command": ["--quiet", "--mode", "any", "$PATH"], - "description": "", - "homepage": "", + "arguments": ["--quiet", "--mode", "any", "$PATH"], "ignore_output": false, - "tests": [] + "tests": [ + { + "language": "scala", + "test_input": "object Addition {\n def main() = {\n println(1 + 3)\n }\n }", + "test_output": "object Addition {\n def main() = {\n println(1 + 3)\n }\n}\n" + } + ] } }, "description": "Code formatter for Scala", "homepage": "https://github.com/scalameta/scalafmt", - "languages": ["scala"], - "name": null, - "npm": null, - "php": null, - "tests": [ - { - "command": "", - "language": "scala", - "test_input": "object Addition {\n def main() = {\n println(1 + 3)\n }\n }", - "test_output": "object Addition {\n def main() = {\n println(1 + 3)\n }\n}\n" - } - ] + "languages": ["scala"] } diff --git a/tools/scalariform/plugin.json b/tools/scalariform/plugin.json index efb651b7..28387130 100644 --- a/tools/scalariform/plugin.json +++ b/tools/scalariform/plugin.json @@ -4,18 +4,11 @@ "categories": ["formatter"], "commands": { "": { - "command": ["$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["$PATH"], + "ignore_output": false } }, "description": "Scala source code formatter", "homepage": "https://github.com/scala-ide/scalariform", - "languages": ["scala"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["scala"] } diff --git a/tools/selene/plugin.json b/tools/selene/plugin.json index 5e231fb9..47814ab3 100644 --- a/tools/selene/plugin.json +++ b/tools/selene/plugin.json @@ -4,18 +4,11 @@ "categories": ["linter"], "commands": { "": { - "command": ["$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["$PATH"], + "ignore_output": false } }, "description": "A blazing-fast modern Lua linter written in Rust", "homepage": "https://github.com/Kampfkarren/selene", - "languages": ["lua"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["lua"] } diff --git a/tools/shellcheck/plugin.json b/tools/shellcheck/plugin.json index 899ea9fd..3f59b2e5 100644 --- a/tools/shellcheck/plugin.json +++ b/tools/shellcheck/plugin.json @@ -4,18 +4,11 @@ "categories": ["linter"], "commands": { "": { - "command": ["$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["$PATH"], + "ignore_output": false } }, "description": "ShellCheck, a static analysis tool for shell scripts", "homepage": "https://github.com/koalaman/shellcheck", - "languages": ["shell", "bash"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["shell", "bash"] } diff --git a/tools/shellharden/plugin.json b/tools/shellharden/plugin.json index c3011466..ab2a8191 100644 --- a/tools/shellharden/plugin.json +++ b/tools/shellharden/plugin.json @@ -4,18 +4,11 @@ "categories": ["linter"], "commands": { "": { - "command": ["--transform", "--replace", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["--transform", "--replace", "$PATH"], + "ignore_output": false } }, "description": "The corrective bash syntax highlighter", "homepage": "https://github.com/anordal/shellharden", - "languages": ["bash", "shell"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["bash", "shell"] } diff --git a/tools/shfmt/plugin.json b/tools/shfmt/plugin.json index 49d04d4b..684db4b8 100644 --- a/tools/shfmt/plugin.json +++ b/tools/shfmt/plugin.json @@ -4,37 +4,28 @@ "categories": ["formatter"], "commands": { "": { - "command": ["--write", "$PATH"], - "description": "", - "homepage": "", + "arguments": ["--write", "$PATH"], "ignore_output": false, - "tests": [] + "tests": [ + { + "language": "shell", + "test_input": "\n\n#!/bin/sh\n\n add () {\n echo \"$1\" + \"$2\"\n }\n\n\n\n\n\n\n\n\n", + "test_output": "#!/bin/sh\n\nadd() {\n\techo \"$1\" + \"$2\"\n}\n" + }, + { + "language": "bash", + "test_input": "\n\n#!/bin/bash\n\n add () {\n echo \"$1\" + \"$2\"\n }\n\n\n\n\n\n\n\n\n", + "test_output": "#!/bin/bash\n\nadd() {\n\techo \"$1\" + \"$2\"\n}\n" + }, + { + "language": "zsh", + "test_input": "\n\n#!/bin/zsh\n\n add () {\n echo \"$1\" + \"$2\"\n }\n\n\n\n\n\n\n\n\n", + "test_output": "#!/bin/zsh\n\nadd() {\n\techo \"$1\" + \"$2\"\n}\n" + } + ] } }, "description": "Shell script formatter", "homepage": "https://github.com/mvdan/sh", - "languages": ["shell"], - "name": null, - "npm": null, - "php": null, - "tests": [ - { - "command": "", - "language": "shell", - "test_input": "\n\n#!/bin/sh\n\n add () {\n echo \"$1\" + \"$2\"\n }\n\n\n\n\n\n\n\n\n", - "test_output": "#!/bin/sh\n\nadd() {\n\techo \"$1\" + \"$2\"\n}\n" - }, - { - "command": "", - "language": "bash", - "test_input": "\n\n#!/bin/bash\n\n add () {\n echo \"$1\" + \"$2\"\n }\n\n\n\n\n\n\n\n\n", - "test_output": "#!/bin/bash\n\nadd() {\n\techo \"$1\" + \"$2\"\n}\n" - }, - { - "command": "", - "language": "zsh", - "test_input": "\n\n#!/bin/zsh\n\n add () {\n echo \"$1\" + \"$2\"\n }\n\n\n\n\n\n\n\n\n", - "test_output": "#!/bin/zsh\n\nadd() {\n\techo \"$1\" + \"$2\"\n}\n" - } - ] + "languages": ["shell"] } diff --git a/tools/sleek/plugin.json b/tools/sleek/plugin.json index 3a32375a..224047f7 100644 --- a/tools/sleek/plugin.json +++ b/tools/sleek/plugin.json @@ -4,18 +4,11 @@ "categories": ["formatter"], "commands": { "": { - "command": ["$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["$PATH"], + "ignore_output": false } }, "description": "Sleek is a CLI tool for formatting SQL. It helps you maintain a consistent style across your SQL code, enhancing readability and productivity", "homepage": "https://github.com/nrempel/sleek", - "languages": ["sql"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["sql"] } diff --git a/tools/smlfmt/plugin.json b/tools/smlfmt/plugin.json index 1ad94e89..766d1396 100644 --- a/tools/smlfmt/plugin.json +++ b/tools/smlfmt/plugin.json @@ -4,18 +4,11 @@ "categories": ["formatter"], "commands": { "": { - "command": ["--force", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["--force", "$PATH"], + "ignore_output": false } }, "description": "A custom parser/auto-formatter for Standard ML", "homepage": "https://github.com/shwestrick/smlfmt", - "languages": ["standard-ml"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["standard-ml"] } diff --git a/tools/snakefmt/plugin.json b/tools/snakefmt/plugin.json index ade3df45..4bcaa2eb 100644 --- a/tools/snakefmt/plugin.json +++ b/tools/snakefmt/plugin.json @@ -4,18 +4,11 @@ "categories": ["formatter"], "commands": { "": { - "command": ["$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["$PATH"], + "ignore_output": false } }, "description": "The uncompromising Snakemake code formatter", "homepage": "https://github.com/snakemake/snakefmt", - "languages": ["snakemake"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["snakemake"] } diff --git a/tools/solhint/plugin.json b/tools/solhint/plugin.json index 52737418..82b77ba8 100644 --- a/tools/solhint/plugin.json +++ b/tools/solhint/plugin.json @@ -4,18 +4,12 @@ "categories": ["linter"], "commands": { "": { - "command": ["--quiet", "--fix", "--noPrompt", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["--quiet", "--fix", "--noPrompt", "$PATH"], + "ignore_output": false } }, "description": "Solhint is an open-source project to provide a linting utility for Solidity code", "homepage": "https://github.com/protofire/solhint", "languages": ["solidity"], - "name": null, - "npm": "solhint", - "php": null, - "tests": [] + "npm": "solhint" } diff --git a/tools/sql-formatter/plugin.json b/tools/sql-formatter/plugin.json index e8560a49..c4856c83 100644 --- a/tools/sql-formatter/plugin.json +++ b/tools/sql-formatter/plugin.json @@ -4,25 +4,19 @@ "categories": ["formatter"], "commands": { "": { - "command": ["--fix", "$PATH"], - "description": "", - "homepage": "", + "arguments": ["--fix", "$PATH"], "ignore_output": false, - "tests": [] + "tests": [ + { + "language": "sql", + "test_input": "SELECT * FROM tbl WHERE foo = 'bar';", + "test_output": "SELECT\n *\nFROM\n tbl\nWHERE\n foo = 'bar';\n" + } + ] } }, "description": "A whitespace formatter for different query languages", "homepage": "https://github.com/sql-formatter-org/sql-formatter", "languages": ["sql"], - "name": null, - "npm": "sql-formatter", - "php": null, - "tests": [ - { - "command": "", - "language": "sql", - "test_input": "SELECT * FROM tbl WHERE foo = 'bar';", - "test_output": "SELECT\n *\nFROM\n tbl\nWHERE\n foo = 'bar';\n" - } - ] + "npm": "sql-formatter" } diff --git a/tools/sqlfluff/plugin.json b/tools/sqlfluff/plugin.json index dcaf0da1..df44fc3a 100644 --- a/tools/sqlfluff/plugin.json +++ b/tools/sqlfluff/plugin.json @@ -4,32 +4,22 @@ "categories": ["formatter", "linter"], "commands": { "fix": { - "command": ["fix", "--dialect", "ansi", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["fix", "--dialect", "ansi", "$PATH"], + "ignore_output": false }, "format": { - "command": ["format", "--dialect", "ansi", "$PATH"], - "description": "", - "homepage": "", + "arguments": ["format", "--dialect", "ansi", "$PATH"], "ignore_output": false, - "tests": [] + "tests": [ + { + "language": "sql", + "test_input": "SELECT * FROM tbl\n WHERE foo = 'bar'; ", + "test_output": "SELECT * FROM tbl\nWHERE foo = 'bar';\n" + } + ] } }, "description": "A modular SQL linter and auto-formatter with support for multiple dialects and templated code", "homepage": "https://github.com/sqlfluff/sqlfluff", - "languages": ["sql"], - "name": null, - "npm": null, - "php": null, - "tests": [ - { - "command": "format", - "language": "sql", - "test_input": "SELECT * FROM tbl\n WHERE foo = 'bar'; ", - "test_output": "SELECT * FROM tbl\nWHERE foo = 'bar';\n" - } - ] + "languages": ["sql"] } diff --git a/tools/sqlfmt/plugin.json b/tools/sqlfmt/plugin.json index f1e8aa1b..81bffcfb 100644 --- a/tools/sqlfmt/plugin.json +++ b/tools/sqlfmt/plugin.json @@ -4,18 +4,11 @@ "categories": ["formatter"], "commands": { "": { - "command": ["$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["$PATH"], + "ignore_output": false } }, "description": "sqlfmt formats your dbt SQL files so you don't have to", "homepage": "https://github.com/tconbeer/sqlfmt", - "languages": ["sql"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["sql"] } diff --git a/tools/sqruff/plugin.json b/tools/sqruff/plugin.json index 7870e6b6..454a6e2b 100644 --- a/tools/sqruff/plugin.json +++ b/tools/sqruff/plugin.json @@ -4,18 +4,11 @@ "categories": ["linter", "formatter"], "commands": { "": { - "command": ["fix", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["fix", "$PATH"], + "ignore_output": false } }, "description": "Fast SQL formatter/linter", "homepage": "https://github.com/quarylabs/sqruff", - "languages": ["sql"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["sql"] } diff --git a/tools/standardjs/plugin.json b/tools/standardjs/plugin.json index e2e6e9f8..3d08b86d 100644 --- a/tools/standardjs/plugin.json +++ b/tools/standardjs/plugin.json @@ -4,18 +4,13 @@ "categories": ["linter", "formatter"], "commands": { "": { - "command": ["--fix", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["--fix", "$PATH"], + "ignore_output": false } }, "description": "JavaScript style guide, linter, and formatter", "homepage": "https://github.com/standard/standard", "languages": ["javascript"], "name": "standardjs", - "npm": "standard", - "php": null, - "tests": [] + "npm": "standard" } diff --git a/tools/standardrb/plugin.json b/tools/standardrb/plugin.json index 3f341082..9dd557b8 100644 --- a/tools/standardrb/plugin.json +++ b/tools/standardrb/plugin.json @@ -4,25 +4,18 @@ "categories": ["linter", "formatter"], "commands": { "": { - "command": ["--fix", "$PATH"], - "description": "", - "homepage": "", + "arguments": ["--fix", "$PATH"], "ignore_output": false, - "tests": [] + "tests": [ + { + "language": "ruby", + "test_input": "def add( a , b )\n return a + b\n end", + "test_output": "def add(a, b)\n a + b\nend\n" + } + ] } }, "description": "Ruby's bikeshed-proof linter and formatter", "homepage": "https://github.com/standardrb/standard", - "languages": ["ruby"], - "name": null, - "npm": null, - "php": null, - "tests": [ - { - "command": "", - "language": "ruby", - "test_input": "def add( a , b )\n return a + b\n end", - "test_output": "def add(a, b)\n a + b\nend\n" - } - ] + "languages": ["ruby"] } diff --git a/tools/statix/plugin.json b/tools/statix/plugin.json index e5bef235..11a1561d 100644 --- a/tools/statix/plugin.json +++ b/tools/statix/plugin.json @@ -4,25 +4,15 @@ "categories": ["linter"], "commands": { "check": { - "command": ["check", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["check", "$PATH"], + "ignore_output": false }, "fix": { - "command": ["fix", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["fix", "$PATH"], + "ignore_output": false } }, "description": "lints and suggestions for the nix programming language", "homepage": "https://github.com/oppiliappan/statix", - "languages": ["nix"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["nix"] } diff --git a/tools/stylefmt/plugin.json b/tools/stylefmt/plugin.json index f36dd053..b23487f5 100644 --- a/tools/stylefmt/plugin.json +++ b/tools/stylefmt/plugin.json @@ -4,31 +4,24 @@ "categories": ["formatter"], "commands": { "": { - "command": ["$PATH"], - "description": "", - "homepage": "", + "arguments": ["$PATH"], "ignore_output": false, - "tests": [] + "tests": [ + { + "language": "scss", + "test_input": "// mixin for clearfix\n\n\n @mixin clearfix () { &:before,\n &:after {\n content:\" \";\n display : table; }\n\n &:after {clear: both;}\n }.class\n{\n padding:10px;@include clearfix();}\n .base { color: red; }\n\n// placeholder\n%base\n{\n\n\npadding: 12px\n}\n\n.foo{\n@extend .base;}\n\n.bar\n { @extend %base;\n\n}\n", + "test_output": "// mixin for clearfix\n\n\n@mixin clearfix() {\n &:before,\n &:after {\n content: \" \";\n display: table;\n }\n\n &:after {\n clear: both;\n }\n}\n\n.class {\n padding: 10px;\n @include clearfix();\n}\n\n.base {\n color: red;\n}\n\n// placeholder\n%base {\n padding: 12px;\n}\n\n.foo {\n @extend .base;\n}\n\n.bar {\n @extend %base;\n}\n" + }, + { + "language": "css", + "test_input": "/* custom properties */\n:root{--fontSize: 1rem;\n --mainColor :#12345678;\n--highlightColor:hwb(190, 35%, 20%);\n}\n\n/* custom media queries */\n@custom-media\n\n--viewport-medium(width<=50rem);\n\n/* some var() & calc() */\nbody{color:var(--mainColor);\n font-size:var(--fontSize);\n line-height: calc(var(--fontSize) * 1.5);\npadding: calc((var(--fontSize) / 2) + 1px)}\n\n/* custom media query usage */\n@media (--viewport-medium) {\nbody {font-size: calc(var(--fontSize) * 1.2); }\n}\n\n/* custom selectors */\n@custom-selector :--heading h1,h2,h3, h4,h5,h6;\n:--heading { margin-top:0 }\n\n/* colors stuff */\na{\ncolor:var(--highlightColor);\n transition:color 1s;\n}\na:hover{color :gray(255,50%) }\na:active{color : rebeccapurple }\na:any-link { color:color(var(--highlightColor) blackness(+20%)) }\n\n/* font stuff */\nh2 {font-variant-caps:small-caps;\n}table{font-variant-numeric: lining-nums;\n}\n\n/* filters */\n.blur{filter:blur(4px)}.sepia{\nfilter: sepia(.8);}\n", + "test_output": "/* custom properties */\n:root {\n --fontSize: 1rem;\n --mainColor: #12345678;\n --highlightColor: hwb(190, 35%, 20%);\n}\n\n/* custom media queries */\n@custom-media --viewport-medium (width <= 50rem);\n\n/* some var() & calc() */\nbody {\n color: var(--mainColor);\n font-size: var(--fontSize);\n line-height: calc(var(--fontSize) * 1.5);\n padding: calc((var(--fontSize) / 2) + 1px);\n}\n\n/* custom media query usage */\n@media (--viewport-medium) {\n body {\n font-size: calc(var(--fontSize) * 1.2);\n }\n}\n\n/* custom selectors */\n@custom-selector :--heading h1, h2, h3, h4, h5, h6;\n\n:--heading {\n margin-top: 0;\n}\n\n/* colors stuff */\na {\n color: var(--highlightColor);\n transition: color 1s;\n}\n\na:hover {\n color: gray(255, 50%);\n}\n\na:active {\n color: rebeccapurple;\n}\n\na:any-link {\n color: color(var(--highlightColor) blackness(+20%));\n}\n\n/* font stuff */\nh2 {\n font-variant-caps: small-caps;\n}\n\ntable {\n font-variant-numeric: lining-nums;\n}\n\n/* filters */\n.blur {\n filter: blur(4px);\n}\n\n.sepia {\n filter: sepia(.8);\n}\n" + } + ] } }, "description": "stylefmt is a tool that automatically formats stylesheets", "homepage": "https://github.com/matype/stylefmt", "languages": ["css", "scss"], - "name": null, - "npm": "stylefmt", - "php": null, - "tests": [ - { - "command": "", - "language": "scss", - "test_input": "// mixin for clearfix\n\n\n @mixin clearfix () { &:before,\n &:after {\n content:\" \";\n display : table; }\n\n &:after {clear: both;}\n }.class\n{\n padding:10px;@include clearfix();}\n .base { color: red; }\n\n// placeholder\n%base\n{\n\n\npadding: 12px\n}\n\n.foo{\n@extend .base;}\n\n.bar\n { @extend %base;\n\n}\n", - "test_output": "// mixin for clearfix\n\n\n@mixin clearfix() {\n &:before,\n &:after {\n content: \" \";\n display: table;\n }\n\n &:after {\n clear: both;\n }\n}\n\n.class {\n padding: 10px;\n @include clearfix();\n}\n\n.base {\n color: red;\n}\n\n// placeholder\n%base {\n padding: 12px;\n}\n\n.foo {\n @extend .base;\n}\n\n.bar {\n @extend %base;\n}\n" - }, - { - "command": "", - "language": "css", - "test_input": "/* custom properties */\n:root{--fontSize: 1rem;\n --mainColor :#12345678;\n--highlightColor:hwb(190, 35%, 20%);\n}\n\n/* custom media queries */\n@custom-media\n\n--viewport-medium(width<=50rem);\n\n/* some var() & calc() */\nbody{color:var(--mainColor);\n font-size:var(--fontSize);\n line-height: calc(var(--fontSize) * 1.5);\npadding: calc((var(--fontSize) / 2) + 1px)}\n\n/* custom media query usage */\n@media (--viewport-medium) {\nbody {font-size: calc(var(--fontSize) * 1.2); }\n}\n\n/* custom selectors */\n@custom-selector :--heading h1,h2,h3, h4,h5,h6;\n:--heading { margin-top:0 }\n\n/* colors stuff */\na{\ncolor:var(--highlightColor);\n transition:color 1s;\n}\na:hover{color :gray(255,50%) }\na:active{color : rebeccapurple }\na:any-link { color:color(var(--highlightColor) blackness(+20%)) }\n\n/* font stuff */\nh2 {font-variant-caps:small-caps;\n}table{font-variant-numeric: lining-nums;\n}\n\n/* filters */\n.blur{filter:blur(4px)}.sepia{\nfilter: sepia(.8);}\n", - "test_output": "/* custom properties */\n:root {\n --fontSize: 1rem;\n --mainColor: #12345678;\n --highlightColor: hwb(190, 35%, 20%);\n}\n\n/* custom media queries */\n@custom-media --viewport-medium (width <= 50rem);\n\n/* some var() & calc() */\nbody {\n color: var(--mainColor);\n font-size: var(--fontSize);\n line-height: calc(var(--fontSize) * 1.5);\n padding: calc((var(--fontSize) / 2) + 1px);\n}\n\n/* custom media query usage */\n@media (--viewport-medium) {\n body {\n font-size: calc(var(--fontSize) * 1.2);\n }\n}\n\n/* custom selectors */\n@custom-selector :--heading h1, h2, h3, h4, h5, h6;\n\n:--heading {\n margin-top: 0;\n}\n\n/* colors stuff */\na {\n color: var(--highlightColor);\n transition: color 1s;\n}\n\na:hover {\n color: gray(255, 50%);\n}\n\na:active {\n color: rebeccapurple;\n}\n\na:any-link {\n color: color(var(--highlightColor) blackness(+20%));\n}\n\n/* font stuff */\nh2 {\n font-variant-caps: small-caps;\n}\n\ntable {\n font-variant-numeric: lining-nums;\n}\n\n/* filters */\n.blur {\n filter: blur(4px);\n}\n\n.sepia {\n filter: sepia(.8);\n}\n" - } - ] + "npm": "stylefmt" } diff --git a/tools/stylelint/plugin.json b/tools/stylelint/plugin.json index 17a04ab8..9c161658 100644 --- a/tools/stylelint/plugin.json +++ b/tools/stylelint/plugin.json @@ -4,18 +4,12 @@ "categories": ["linter"], "commands": { "": { - "command": ["--fix", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["--fix", "$PATH"], + "ignore_output": false } }, "description": "A mighty CSS linter that helps you avoid errors and enforce conventions", "homepage": "https://github.com/stylelint/stylelint", "languages": ["css", "scss"], - "name": null, - "npm": "stylelint", - "php": null, - "tests": [] + "npm": "stylelint" } diff --git a/tools/stylish-haskell/plugin.json b/tools/stylish-haskell/plugin.json index 631cc1b1..86686afc 100644 --- a/tools/stylish-haskell/plugin.json +++ b/tools/stylish-haskell/plugin.json @@ -4,25 +4,18 @@ "categories": ["formatter"], "commands": { "": { - "command": ["--inplace", "$PATH"], - "description": "", - "homepage": "", + "arguments": ["--inplace", "$PATH"], "ignore_output": false, - "tests": [] + "tests": [ + { + "language": "haskell", + "test_input": "addNumbers::Int->Int->Int\naddNumbers a b = do\n a + b\n ", + "test_output": "addNumbers::Int->Int->Int\naddNumbers a b = do\n a + b\n\n" + } + ] } }, "description": "Haskell code prettifier", "homepage": "https://github.com/haskell/stylish-haskell", - "languages": ["haskell"], - "name": null, - "npm": null, - "php": null, - "tests": [ - { - "command": "", - "language": "haskell", - "test_input": "addNumbers::Int->Int->Int\naddNumbers a b = do\n a + b\n ", - "test_output": "addNumbers::Int->Int->Int\naddNumbers a b = do\n a + b\n\n" - } - ] + "languages": ["haskell"] } diff --git a/tools/stylua/plugin.json b/tools/stylua/plugin.json index 9cfe4de3..3d3acd44 100644 --- a/tools/stylua/plugin.json +++ b/tools/stylua/plugin.json @@ -4,25 +4,19 @@ "categories": ["formatter"], "commands": { "": { - "command": ["--verify", "$PATH"], - "description": "", - "homepage": "", + "arguments": ["--verify", "$PATH"], "ignore_output": false, - "tests": [] + "tests": [ + { + "language": "lua", + "test_input": "\n\n local function add ( a , b\n)\n\nreturn a +b\n\n\nend\n\n ", + "test_output": "local function add(a, b)\n\treturn a + b\nend\n" + } + ] } }, "description": "An opinionated Lua code formatter", "homepage": "https://github.com/JohnnyMorganz/StyLua", "languages": ["lua"], - "name": null, - "npm": "@johnnymorganz/stylua-bin", - "php": null, - "tests": [ - { - "command": "", - "language": "lua", - "test_input": "\n\n local function add ( a , b\n)\n\nreturn a +b\n\n\nend\n\n ", - "test_output": "local function add(a, b)\n\treturn a + b\nend\n" - } - ] + "npm": "@johnnymorganz/stylua-bin" } diff --git a/tools/superhtml/plugin.json b/tools/superhtml/plugin.json index f49d14b9..7b993195 100644 --- a/tools/superhtml/plugin.json +++ b/tools/superhtml/plugin.json @@ -4,25 +4,18 @@ "categories": ["formatter"], "commands": { "fmt": { - "command": ["fmt", "$PATH"], - "description": "", - "homepage": "", + "arguments": ["fmt", "$PATH"], "ignore_output": false, - "tests": [] + "tests": [ + { + "language": "html", + "test_input": "
\n

\n Mads was here\n

\n
", + "test_output": "
\n

\n Mads was here\n

\n
" + } + ] } }, "description": "HTML Language Server & Templating Language Library", "homepage": "https://github.com/kristoff-it/superhtml", - "languages": ["html"], - "name": null, - "npm": null, - "php": null, - "tests": [ - { - "command": "fmt", - "language": "html", - "test_input": "
\n

\n Mads was here\n

\n
", - "test_output": "
\n

\n Mads was here\n

\n
" - } - ] + "languages": ["html"] } diff --git a/tools/swift-format/plugin.json b/tools/swift-format/plugin.json index 9614fe8b..bd05f205 100644 --- a/tools/swift-format/plugin.json +++ b/tools/swift-format/plugin.json @@ -4,25 +4,18 @@ "categories": ["formatter"], "commands": { "": { - "command": ["--in-place", "$PATH"], - "description": "", - "homepage": "", + "arguments": ["--in-place", "$PATH"], "ignore_output": false, - "tests": [] + "tests": [ + { + "language": "swift", + "test_input": " func add(a:Int ,b:Int)->Int {\n return a + b\n }", + "test_output": "func add(a: Int, b: Int) -> Int {\n return a + b\n}\n" + } + ] } }, "description": "Formatting technology for Swift source code", "homepage": "https://github.com/apple/swift-format", - "languages": ["swift"], - "name": null, - "npm": null, - "php": null, - "tests": [ - { - "command": "", - "language": "swift", - "test_input": " func add(a:Int ,b:Int)->Int {\n return a + b\n }", - "test_output": "func add(a: Int, b: Int) -> Int {\n return a + b\n}\n" - } - ] + "languages": ["swift"] } diff --git a/tools/swiftformat/plugin.json b/tools/swiftformat/plugin.json index 498117bf..94f98fe2 100644 --- a/tools/swiftformat/plugin.json +++ b/tools/swiftformat/plugin.json @@ -4,25 +4,18 @@ "categories": ["formatter"], "commands": { "": { - "command": ["--quiet", "$PATH"], - "description": "", - "homepage": "", + "arguments": ["--quiet", "$PATH"], "ignore_output": false, - "tests": [] + "tests": [ + { + "language": "swift", + "test_input": " func add(a:Int ,b:Int)->Int {\n return a + b\n }", + "test_output": "func add(a: Int, b: Int) -> Int {\n return a + b\n}\n" + } + ] } }, "description": "A command-line tool and Xcode Extension for formatting Swift code", "homepage": "https://github.com/nicklockwood/SwiftFormat", - "languages": ["swift"], - "name": null, - "npm": null, - "php": null, - "tests": [ - { - "command": "", - "language": "swift", - "test_input": " func add(a:Int ,b:Int)->Int {\n return a + b\n }", - "test_output": "func add(a: Int, b: Int) -> Int {\n return a + b\n}\n" - } - ] + "languages": ["swift"] } diff --git a/tools/taplo/plugin.json b/tools/taplo/plugin.json index 0f3baf64..8b017087 100644 --- a/tools/taplo/plugin.json +++ b/tools/taplo/plugin.json @@ -4,25 +4,19 @@ "categories": ["formatter"], "commands": { "": { - "command": ["format", "$PATH"], - "description": "", - "homepage": "", + "arguments": ["format", "$PATH"], "ignore_output": false, - "tests": [] + "tests": [ + { + "language": "toml", + "test_input": " package = \"mdsf\"\n author = \"Mads Hougesen\"\n ", + "test_output": "package = \"mdsf\"\nauthor = \"Mads Hougesen\"\n" + } + ] } }, "description": "A TOML toolkit written in Rust", "homepage": "https://github.com/tamasfe/taplo", "languages": ["toml"], - "name": null, - "npm": "@taplo/cli", - "php": null, - "tests": [ - { - "command": "", - "language": "toml", - "test_input": " package = \"mdsf\"\n author = \"Mads Hougesen\"\n ", - "test_output": "package = \"mdsf\"\nauthor = \"Mads Hougesen\"\n" - } - ] + "npm": "@taplo/cli" } diff --git a/tools/templ/plugin.json b/tools/templ/plugin.json index 2c723d1e..9e3da16c 100644 --- a/tools/templ/plugin.json +++ b/tools/templ/plugin.json @@ -4,18 +4,11 @@ "categories": ["formatter"], "commands": { "fmt": { - "command": ["fmt", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["fmt", "$PATH"], + "ignore_output": false } }, "description": "Tooling for the Templ template language", "homepage": "https://templ.guide/", - "languages": ["templ", "go"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["templ", "go"] } diff --git a/tools/terraform/plugin.json b/tools/terraform/plugin.json index 4d308b41..1ab84dad 100644 --- a/tools/terraform/plugin.json +++ b/tools/terraform/plugin.json @@ -4,25 +4,18 @@ "categories": ["formatter"], "commands": { "fmt": { - "command": ["fmt", "-write=true", "$PATH"], - "description": "", - "homepage": "", + "arguments": ["fmt", "-write=true", "$PATH"], "ignore_output": false, - "tests": [] + "tests": [ + { + "language": "tf", + "test_input": "resource \"aws_instance\" \"example\" {\n ami = \"abc123\"\n\n network_interface {\n }\n}\n", + "test_output": "resource \"aws_instance\" \"example\" {\n ami = \"abc123\"\n\n network_interface {\n }\n}\n" + } + ] } }, "description": "The terraform fmt command is used to rewrite Terraform configuration files to a canonical format and style", "homepage": "https://www.terraform.io/docs/cli/commands/fmt.html", - "languages": ["terraform"], - "name": null, - "npm": null, - "php": null, - "tests": [ - { - "command": "fmt", - "language": "tf", - "test_input": "resource \"aws_instance\" \"example\" {\n ami = \"abc123\"\n\n network_interface {\n }\n}\n", - "test_output": "resource \"aws_instance\" \"example\" {\n ami = \"abc123\"\n\n network_interface {\n }\n}\n" - } - ] + "languages": ["terraform"] } diff --git a/tools/terragrunt/plugin.json b/tools/terragrunt/plugin.json index cabe09f9..23054c65 100644 --- a/tools/terragrunt/plugin.json +++ b/tools/terragrunt/plugin.json @@ -4,18 +4,11 @@ "categories": ["formatter"], "commands": { "hclfmt": { - "command": ["hclfmt", "--terragrunt-hclfmt-file", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["hclfmt", "--terragrunt-hclfmt-file", "$PATH"], + "ignore_output": false } }, "description": "Recursively find hcl files and rewrite them into a canonical format", "homepage": "https://terragrunt.gruntwork.io/docs/reference/cli-options/#hclfmt", - "languages": ["hcl"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["hcl"] } diff --git a/tools/tex-fmt/plugin.json b/tools/tex-fmt/plugin.json index dc7cc3a8..34417bfd 100644 --- a/tools/tex-fmt/plugin.json +++ b/tools/tex-fmt/plugin.json @@ -4,18 +4,11 @@ "categories": ["formatter"], "commands": { "": { - "command": ["$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["$PATH"], + "ignore_output": false } }, "description": "An extremely fast LaTeX formatter written in Rust", "homepage": "https://github.com/WGUNDERWOOD/tex-fmt", - "languages": ["latex"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["latex"] } diff --git a/tools/tlint/plugin.json b/tools/tlint/plugin.json index 5b5f2ed6..842d68ac 100644 --- a/tools/tlint/plugin.json +++ b/tools/tlint/plugin.json @@ -4,18 +4,12 @@ "categories": ["linter"], "commands": { "format": { - "command": ["format", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["format", "$PATH"], + "ignore_output": false } }, "description": "Tighten linter for Laravel conventions", "homepage": "https://github.com/tighten/tlint", "languages": ["php"], - "name": null, - "npm": null, - "php": "tlint", - "tests": [] + "php": "tlint" } diff --git a/tools/tofu/plugin.json b/tools/tofu/plugin.json index bd38f127..549dfbcd 100644 --- a/tools/tofu/plugin.json +++ b/tools/tofu/plugin.json @@ -4,25 +4,18 @@ "categories": ["formatter"], "commands": { "fmt": { - "command": ["fmt", "-write=true", "$PATH"], - "description": "", - "homepage": "", + "arguments": ["fmt", "-write=true", "$PATH"], "ignore_output": false, - "tests": [] + "tests": [ + { + "language": "terraform", + "test_input": "resource \"aws_instance\" \"example\" {\n ami = \"abc123\"\n\n network_interface {\n }\n}\n", + "test_output": "resource \"aws_instance\" \"example\" {\n ami = \"abc123\"\n\n network_interface {\n }\n}\n" + } + ] } }, "description": "The tofu fmt command is used to rewrite OpenTofu configuration files to a canonical format and style", "homepage": "https://opentofu.org/docs/cli/commands/fmt/", - "languages": ["terraform", "tofu"], - "name": null, - "npm": null, - "php": null, - "tests": [ - { - "command": "fmt", - "language": "terraform", - "test_input": "resource \"aws_instance\" \"example\" {\n ami = \"abc123\"\n\n network_interface {\n }\n}\n", - "test_output": "resource \"aws_instance\" \"example\" {\n ami = \"abc123\"\n\n network_interface {\n }\n}\n" - } - ] + "languages": ["terraform", "tofu"] } diff --git a/tools/toml-sort/plugin.json b/tools/toml-sort/plugin.json index 799bbdd8..e9e40cb0 100644 --- a/tools/toml-sort/plugin.json +++ b/tools/toml-sort/plugin.json @@ -4,18 +4,11 @@ "categories": ["formatter"], "commands": { "": { - "command": ["-i", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["-i", "$PATH"], + "ignore_output": false } }, "description": "A command line utility to sort and format toml files", "homepage": "https://github.com/pappasam/toml-sort", - "languages": ["toml"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["toml"] } diff --git a/tools/tool.schema.json b/tools/tool.schema.json index a8200856..b2b2d209 100644 --- a/tools/tool.schema.json +++ b/tools/tool.schema.json @@ -54,57 +54,42 @@ "php": { "description": "Binary name if installed through composer", "type": ["string", "null"] - }, - "tests": { - "type": ["array", "null"], - "items": { - "$ref": "#/definitions/ToolTest" - } } }, "additionalProperties": false, "definitions": { "ToolCommand": { "type": "object", - "required": [ - "command", - "description", - "homepage", - "ignore_output", - "tests" - ], + "required": ["arguments", "ignore_output"], "properties": { - "command": { + "arguments": { "type": "array", "items": { "type": "string" } }, "description": { - "type": "string" + "type": ["string", "null"] }, "homepage": { - "type": "string" + "type": ["string", "null"] }, "ignore_output": { "type": "boolean" }, "tests": { - "type": "array", + "type": ["array", "null"], "items": { - "$ref": "#/definitions/ToolTest" + "$ref": "#/definitions/ToolCommandTest" } } }, "additionalProperties": false }, - "ToolTest": { + "ToolCommandTest": { "type": "object", - "required": ["command", "language", "test_input", "test_output"], + "required": ["language", "test_input", "test_output"], "properties": { - "command": { - "type": "string" - }, "language": { "description": "Codeblock language used when generating tests", "type": "string" diff --git a/tools/topiary/plugin.json b/tools/topiary/plugin.json index edf7c681..9ed349ed 100644 --- a/tools/topiary/plugin.json +++ b/tools/topiary/plugin.json @@ -4,25 +4,18 @@ "categories": ["formatter"], "commands": { "": { - "command": ["format", "$PATH"], - "description": "", - "homepage": "", + "arguments": ["format", "$PATH"], "ignore_output": false, - "tests": [] + "tests": [ + { + "language": "json", + "test_input": "\n {\n \"key\": \"value\",\n \"key2\": [\n \"value2\",\n \"value3\",\n 1\n , null]\n }\n ", + "test_output": "{\n \"key\": \"value\",\n \"key2\": [\n \"value2\",\n \"value3\",\n 1,\n null\n ]\n}\n" + } + ] } }, "description": "Topiary aims to be a uniform formatter for simple languages, as part of the Tree-sitter ecosystem", "homepage": "https://github.com/tweag/topiary", - "languages": [], - "name": null, - "npm": null, - "php": null, - "tests": [ - { - "command": "", - "language": "json", - "test_input": "\n {\n \"key\": \"value\",\n \"key2\": [\n \"value2\",\n \"value3\",\n 1\n , null]\n }\n ", - "test_output": "{\n \"key\": \"value\",\n \"key2\": [\n \"value2\",\n \"value3\",\n 1,\n null\n ]\n}\n" - } - ] + "languages": [] } diff --git a/tools/ts-standard/plugin.json b/tools/ts-standard/plugin.json index dacf2705..7fd6c620 100644 --- a/tools/ts-standard/plugin.json +++ b/tools/ts-standard/plugin.json @@ -4,18 +4,12 @@ "categories": ["formatter", "linter"], "commands": { "": { - "command": ["--fix", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["--fix", "$PATH"], + "ignore_output": false } }, "description": "Typescript style guide, linter, and formatter using StandardJS", "homepage": "https://github.com/standard/ts-standard", "languages": ["typescript"], - "name": null, - "npm": "ts-standard", - "php": null, - "tests": [] + "npm": "ts-standard" } diff --git a/tools/tsqllint/plugin.json b/tools/tsqllint/plugin.json index 92432438..6e52ed3c 100644 --- a/tools/tsqllint/plugin.json +++ b/tools/tsqllint/plugin.json @@ -4,18 +4,12 @@ "categories": ["linter"], "commands": { "": { - "command": ["--fix", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["--fix", "$PATH"], + "ignore_output": false } }, "description": "Configurable linting for TSQL", "homepage": "https://github.com/tsqllint/tsqllint", "languages": ["sql"], - "name": null, - "npm": "tsqllint", - "php": null, - "tests": [] + "npm": "tsqllint" } diff --git a/tools/twig-cs-fixer/plugin.json b/tools/twig-cs-fixer/plugin.json index 4005e4ea..a80b0402 100644 --- a/tools/twig-cs-fixer/plugin.json +++ b/tools/twig-cs-fixer/plugin.json @@ -4,18 +4,12 @@ "categories": ["formatter", "linter"], "commands": { "lint": { - "command": ["lint", "$PATH", "--fix", "--no-interaction", "--quiet"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["lint", "$PATH", "--fix", "--no-interaction", "--quiet"], + "ignore_output": false } }, "description": "A tool to automatically fix Twig Coding Standards issues", "homepage": "https://github.com/VincentLanglet/Twig-CS-Fixer", "languages": ["twig"], - "name": null, - "npm": null, - "php": "twig-cs-fixer", - "tests": [] + "php": "twig-cs-fixer" } diff --git a/tools/typos/plugin.json b/tools/typos/plugin.json index d7cd89fe..0986882f 100644 --- a/tools/typos/plugin.json +++ b/tools/typos/plugin.json @@ -4,25 +4,18 @@ "categories": ["autocorrection"], "commands": { "": { - "command": ["-w", "--no-ignore", "--hidden", "$PATH"], - "description": "", - "homepage": "", + "arguments": ["-w", "--no-ignore", "--hidden", "$PATH"], "ignore_output": false, - "tests": [] + "tests": [ + { + "language": "python", + "test_input": "anouncement", + "test_output": "announcement" + } + ] } }, "description": "Source code spell checker", "homepage": "https://github.com/crate-ci/typos", - "languages": [], - "name": null, - "npm": null, - "php": null, - "tests": [ - { - "command": "", - "language": "python", - "test_input": "anouncement", - "test_output": "announcement" - } - ] + "languages": [] } diff --git a/tools/typstfmt/plugin.json b/tools/typstfmt/plugin.json index 4b0d8c62..27adaea5 100644 --- a/tools/typstfmt/plugin.json +++ b/tools/typstfmt/plugin.json @@ -4,18 +4,11 @@ "categories": ["formatter"], "commands": { "": { - "command": ["$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["$PATH"], + "ignore_output": false } }, "description": "Basic formatter for the Typst language", "homepage": "https://github.com/astrale-sharp/typstfmt", - "languages": ["typst"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["typst"] } diff --git a/tools/typstyle/plugin.json b/tools/typstyle/plugin.json index da55daff..cde720d2 100644 --- a/tools/typstyle/plugin.json +++ b/tools/typstyle/plugin.json @@ -4,18 +4,11 @@ "categories": ["formatter"], "commands": { "": { - "command": ["-i", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["-i", "$PATH"], + "ignore_output": false } }, "description": "Beautiful and reliable typst code formatter", "homepage": "https://github.com/Enter-tainer/typstyle", - "languages": ["typst"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["typst"] } diff --git a/tools/ufmt/plugin.json b/tools/ufmt/plugin.json index b81da81b..1c0d900f 100644 --- a/tools/ufmt/plugin.json +++ b/tools/ufmt/plugin.json @@ -4,18 +4,11 @@ "categories": ["formatter"], "commands": { "": { - "command": ["format", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["format", "$PATH"], + "ignore_output": false } }, "description": "Safe, atomic formatting with black and usort", "homepage": "https://github.com/omnilib/ufmt", - "languages": ["python"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["python"] } diff --git a/tools/uiua/plugin.json b/tools/uiua/plugin.json index 91f1ce62..15bb80ba 100644 --- a/tools/uiua/plugin.json +++ b/tools/uiua/plugin.json @@ -4,18 +4,11 @@ "categories": ["formatter"], "commands": { "fmt": { - "command": ["fmt", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["fmt", "$PATH"], + "ignore_output": false } }, "description": "A stack-based array programming language", "homepage": "https://github.com/uiua-lang/uiua", - "languages": ["uiua"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["uiua"] } diff --git a/tools/unimport/plugin.json b/tools/unimport/plugin.json index 9369611c..26937da8 100644 --- a/tools/unimport/plugin.json +++ b/tools/unimport/plugin.json @@ -4,18 +4,11 @@ "categories": ["formatter"], "commands": { "": { - "command": ["-r", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["-r", "$PATH"], + "ignore_output": false } }, "description": "The ultimate linter and formatter for removing unused import statements in your code", "homepage": "https://github.com/hakancelikdev/unimport", - "languages": ["python"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["python"] } diff --git a/tools/usort/plugin.json b/tools/usort/plugin.json index 3ea35d93..6744335f 100644 --- a/tools/usort/plugin.json +++ b/tools/usort/plugin.json @@ -4,25 +4,18 @@ "categories": ["formatter"], "commands": { "": { - "command": ["format", "$PATH"], - "description": "", - "homepage": "", + "arguments": ["format", "$PATH"], "ignore_output": false, - "tests": [] + "tests": [ + { + "language": "python", + "test_input": "from q import d\nimport b\nimport a\nimport c\n\n\ndef add(a: int, b: int) -> int:\n return a + b\n", + "test_output": "import a\nimport b\nimport c\nfrom q import d\n\n\ndef add(a: int, b: int) -> int:\n return a + b\n" + } + ] } }, "description": "Safe, minimal import sorting for Python projects", "homepage": "https://github.com/facebook/usort", - "languages": ["python"], - "name": null, - "npm": null, - "php": null, - "tests": [ - { - "command": "", - "language": "python", - "test_input": "from q import d\nimport b\nimport a\nimport c\n\n\ndef add(a: int, b: int) -> int:\n return a + b\n", - "test_output": "import a\nimport b\nimport c\nfrom q import d\n\n\ndef add(a: int, b: int) -> int:\n return a + b\n" - } - ] + "languages": ["python"] } diff --git a/tools/v/plugin.json b/tools/v/plugin.json index 82b9bc77..c3dc5f7d 100644 --- a/tools/v/plugin.json +++ b/tools/v/plugin.json @@ -4,18 +4,11 @@ "categories": ["formatter"], "commands": { "fmt": { - "command": ["fmt", "-w", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["fmt", "-w", "$PATH"], + "ignore_output": false } }, "description": "Tooling for V lang", "homepage": "https://vlang.io/", - "languages": ["v"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["v"] } diff --git a/tools/vacuum/plugin.json b/tools/vacuum/plugin.json index fe2f44f3..d9726c7e 100644 --- a/tools/vacuum/plugin.json +++ b/tools/vacuum/plugin.json @@ -4,18 +4,12 @@ "categories": ["linter"], "commands": { "lint": { - "command": ["lint", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["lint", "$PATH"], + "ignore_output": false } }, "description": "vacuum is the worlds fastest OpenAPI 3, OpenAPI 2 / Swagger linter and quality analysis tool", "homepage": "https://github.com/daveshanley/vacuum", "languages": ["openapi"], - "name": null, - "npm": "@quobix/vacuum", - "php": null, - "tests": [] + "npm": "@quobix/vacuum" } diff --git a/tools/veryl/plugin.json b/tools/veryl/plugin.json index 156c311b..016390dc 100644 --- a/tools/veryl/plugin.json +++ b/tools/veryl/plugin.json @@ -4,25 +4,18 @@ "categories": ["formatter"], "commands": { "fmt": { - "command": ["fmt", "$PATH"], - "description": "", - "homepage": "", + "arguments": ["fmt", "$PATH"], "ignore_output": false, - "tests": [] + "tests": [ + { + "language": "veryl", + "test_input": "/// documentation comment by markdown format\n/// * list item1\n/// * list item2\npub module Delay #( // visibility control by `pub` keyword\n param WIDTH: u32 = 1, // trailing comma is allowed\n) (\n i_clk : input clock ,\n i_rst : input reset ,\n i_data: input logic,\n o_data: input logic,\n) {\n // unused variable which is not started with `_` are warned\n var _unused_variable: logic;\n\n // clock and reset signals can be omitted\n // because Veryl can infer these signals\n always_ff {\n // abstraction syntax of reset polarity and synchronicity\n if_reset {\n o_data = '0;\n } else {\n o_data = i_data;\n }\n }\n}\n", + "test_output": "/// documentation comment by markdown format\n/// * list item1\n/// * list item2\npub module Delay #( // visibility control by `pub` keyword\n param WIDTH: u32 = 1, // trailing comma is allowed\n) (\n i_clk : input clock ,\n i_rst : input reset ,\n i_data: input logic,\n o_data: input logic,\n) {\n // unused variable which is not started with `_` are warned\n var _unused_variable: logic;\n\n // clock and reset signals can be omitted\n // because Veryl can infer these signals\n always_ff {\n // abstraction syntax of reset polarity and synchronicity\n if_reset {\n o_data = '0;\n } else {\n o_data = i_data;\n }\n }\n}\n" + } + ] } }, "description": "Veryl: A Modern Hardware Description Language", "homepage": "https://github.com/veryl-lang/veryl", - "languages": ["veryl"], - "name": null, - "npm": null, - "php": null, - "tests": [ - { - "command": "fmt", - "language": "veryl", - "test_input": "/// documentation comment by markdown format\n/// * list item1\n/// * list item2\npub module Delay #( // visibility control by `pub` keyword\n param WIDTH: u32 = 1, // trailing comma is allowed\n) (\n i_clk : input clock ,\n i_rst : input reset ,\n i_data: input logic,\n o_data: input logic,\n) {\n // unused variable which is not started with `_` are warned\n var _unused_variable: logic;\n\n // clock and reset signals can be omitted\n // because Veryl can infer these signals\n always_ff {\n // abstraction syntax of reset polarity and synchronicity\n if_reset {\n o_data = '0;\n } else {\n o_data = i_data;\n }\n }\n}\n", - "test_output": "/// documentation comment by markdown format\n/// * list item1\n/// * list item2\npub module Delay #( // visibility control by `pub` keyword\n param WIDTH: u32 = 1, // trailing comma is allowed\n) (\n i_clk : input clock ,\n i_rst : input reset ,\n i_data: input logic,\n o_data: input logic,\n) {\n // unused variable which is not started with `_` are warned\n var _unused_variable: logic;\n\n // clock and reset signals can be omitted\n // because Veryl can infer these signals\n always_ff {\n // abstraction syntax of reset polarity and synchronicity\n if_reset {\n o_data = '0;\n } else {\n o_data = i_data;\n }\n }\n}\n" - } - ] + "languages": ["veryl"] } diff --git a/tools/vhdl-style-guide/plugin.json b/tools/vhdl-style-guide/plugin.json index afd92b68..090cb436 100644 --- a/tools/vhdl-style-guide/plugin.json +++ b/tools/vhdl-style-guide/plugin.json @@ -4,18 +4,12 @@ "categories": ["formatter"], "commands": { "": { - "command": ["-f", "$PATH", "--fix"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["-f", "$PATH", "--fix"], + "ignore_output": false } }, "description": "Style guide enforcement for VHDL", "homepage": "https://github.com/jeremiah-c-leary/vhdl-style-guide", "languages": ["vhdl"], - "name": "vhdl-style-guide", - "npm": null, - "php": null, - "tests": [] + "name": "vhdl-style-guide" } diff --git a/tools/wa/plugin.json b/tools/wa/plugin.json index 9affa4d5..5bebb8d9 100644 --- a/tools/wa/plugin.json +++ b/tools/wa/plugin.json @@ -4,18 +4,11 @@ "categories": ["formatter"], "commands": { "fmt": { - "command": ["fmt", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["fmt", "$PATH"], + "ignore_output": false } }, "description": "Formatter for the wa programming language", "homepage": "https://github.com/wa-lang/wa/", - "languages": ["wa"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["wa"] } diff --git a/tools/wfindent/plugin.json b/tools/wfindent/plugin.json index 54248aeb..2467f431 100644 --- a/tools/wfindent/plugin.json +++ b/tools/wfindent/plugin.json @@ -4,18 +4,11 @@ "categories": ["formatter"], "commands": { "": { - "command": ["$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["$PATH"], + "ignore_output": false } }, "description": "Indents and optionally converts Fortran program sources", "homepage": "https://github.com/wvermin/findent", - "languages": ["fortran"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["fortran"] } diff --git a/tools/xmlformat/plugin.json b/tools/xmlformat/plugin.json index fd8cdcf4..1dabc753 100644 --- a/tools/xmlformat/plugin.json +++ b/tools/xmlformat/plugin.json @@ -4,25 +4,18 @@ "categories": ["formatter"], "commands": { "": { - "command": ["--overwrite", "$PATH"], - "description": "", - "homepage": "", + "arguments": ["--overwrite", "$PATH"], "ignore_output": false, - "tests": [] + "tests": [ + { + "language": "xml", + "test_input": "\n\n Tove\n Jani\n Reminder\n Don't forget me this weekend!\n ", + "test_output": "\n Tove\n Jani\n Reminder\n Don't forget me this weekend!\n" + } + ] } }, "description": "Format and compress XML documents", "homepage": "https://github.com/pamoller/xmlformatter", - "languages": ["xml"], - "name": null, - "npm": null, - "php": null, - "tests": [ - { - "command": "", - "language": "xml", - "test_input": "\n\n Tove\n Jani\n Reminder\n Don't forget me this weekend!\n ", - "test_output": "\n Tove\n Jani\n Reminder\n Don't forget me this weekend!\n" - } - ] + "languages": ["xml"] } diff --git a/tools/xmllint/plugin.json b/tools/xmllint/plugin.json index 952665f5..73ec563a 100644 --- a/tools/xmllint/plugin.json +++ b/tools/xmllint/plugin.json @@ -4,25 +4,18 @@ "categories": ["linter"], "commands": { "": { - "command": ["--format", "$PATH", "--output", "$PATH"], - "description": "", - "homepage": "", + "arguments": ["--format", "$PATH", "--output", "$PATH"], "ignore_output": false, - "tests": [] + "tests": [ + { + "language": "xml", + "test_input": "\n\n Tove\n Jani\n Reminder\n Don't forget me this weekend!\n ", + "test_output": "\n\n Tove\n Jani\n Reminder\n Don't forget me this weekend!\n\n" + } + ] } }, "description": "XML linter", "homepage": "https://gnome.pages.gitlab.gnome.org/libxml2/xmllint.html", - "languages": ["xml"], - "name": null, - "npm": null, - "php": null, - "tests": [ - { - "command": "", - "language": "xml", - "test_input": "\n\n Tove\n Jani\n Reminder\n Don't forget me this weekend!\n ", - "test_output": "\n\n Tove\n Jani\n Reminder\n Don't forget me this weekend!\n\n" - } - ] + "languages": ["xml"] } diff --git a/tools/xo/plugin.json b/tools/xo/plugin.json index bc58ec89..982a86c0 100644 --- a/tools/xo/plugin.json +++ b/tools/xo/plugin.json @@ -4,18 +4,12 @@ "categories": ["linter"], "commands": { "": { - "command": ["--fix", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["--fix", "$PATH"], + "ignore_output": false } }, "description": "JavaScript/TypeScript linter (ESLint wrapper) with great defaults", "homepage": "https://github.com/xojs/xo", "languages": ["javascript", "typescript"], - "name": null, - "npm": "xo", - "php": null, - "tests": [] + "npm": "xo" } diff --git a/tools/yamlfix/plugin.json b/tools/yamlfix/plugin.json index d4a4bf50..acdcc99b 100644 --- a/tools/yamlfix/plugin.json +++ b/tools/yamlfix/plugin.json @@ -4,25 +4,18 @@ "categories": ["formatter"], "commands": { "": { - "command": ["$PATH"], - "description": "", - "homepage": "", + "arguments": ["$PATH"], "ignore_output": false, - "tests": [] + "tests": [ + { + "language": "yaml", + "test_input": "\n\n\nversion: 2\nupdates:\n - package-ecosystem: \"cargo\"\n directory: \"/\"\n schedule:\n interval: \"monthly\"\n assignees:\n - \"hougesen\"\n open-pull-requests-limit: 25\n\n - package-ecosystem: \"github-actions\"\n directory: \"/\"\n schedule:\n interval: \"monthly\"\n assignees:\n - \"hougesen\"\n open-pull-requests-limit: 25\n\n\n ", + "test_output": "---\nversion: 2\nupdates:\n - package-ecosystem: cargo\n directory: /\n schedule:\n interval: monthly\n assignees: [hougesen]\n open-pull-requests-limit: 25\n - package-ecosystem: github-actions\n directory: /\n schedule:\n interval: monthly\n assignees: [hougesen]\n open-pull-requests-limit: 25\n" + } + ] } }, "description": "A simple opinionated yaml formatter that keeps your comments", "homepage": "https://github.com/lyz-code/yamlfix", - "languages": ["yaml"], - "name": null, - "npm": null, - "php": null, - "tests": [ - { - "command": "", - "language": "yaml", - "test_input": "\n\n\nversion: 2\nupdates:\n - package-ecosystem: \"cargo\"\n directory: \"/\"\n schedule:\n interval: \"monthly\"\n assignees:\n - \"hougesen\"\n open-pull-requests-limit: 25\n\n - package-ecosystem: \"github-actions\"\n directory: \"/\"\n schedule:\n interval: \"monthly\"\n assignees:\n - \"hougesen\"\n open-pull-requests-limit: 25\n\n\n ", - "test_output": "---\nversion: 2\nupdates:\n - package-ecosystem: cargo\n directory: /\n schedule:\n interval: monthly\n assignees: [hougesen]\n open-pull-requests-limit: 25\n - package-ecosystem: github-actions\n directory: /\n schedule:\n interval: monthly\n assignees: [hougesen]\n open-pull-requests-limit: 25\n" - } - ] + "languages": ["yaml"] } diff --git a/tools/yamlfmt/plugin.json b/tools/yamlfmt/plugin.json index 96b97af9..9bf44e40 100644 --- a/tools/yamlfmt/plugin.json +++ b/tools/yamlfmt/plugin.json @@ -4,25 +4,18 @@ "categories": ["formatter"], "commands": { "": { - "command": ["-quiet", "$PATH"], - "description": "", - "homepage": "", + "arguments": ["-quiet", "$PATH"], "ignore_output": false, - "tests": [] + "tests": [ + { + "language": "yaml", + "test_input": "\n\n\nversion: 2\nupdates:\n - package-ecosystem: \"cargo\"\n directory: \"/\"\n schedule:\n interval: \"monthly\"\n assignees:\n - \"hougesen\"\n open-pull-requests-limit: 25\n\n - package-ecosystem: \"github-actions\"\n directory: \"/\"\n schedule:\n interval: \"monthly\"\n assignees:\n - \"hougesen\"\n open-pull-requests-limit: 25\n\n\n ", + "test_output": "version: 2\nupdates:\n - package-ecosystem: \"cargo\"\n directory: \"/\"\n schedule:\n interval: \"monthly\"\n assignees:\n - \"hougesen\"\n open-pull-requests-limit: 25\n - package-ecosystem: \"github-actions\"\n directory: \"/\"\n schedule:\n interval: \"monthly\"\n assignees:\n - \"hougesen\"\n open-pull-requests-limit: 25\n" + } + ] } }, "description": "An extensible command line tool or library to format yaml files", "homepage": "https://github.com/google/yamlfmt", - "languages": ["yaml"], - "name": null, - "npm": null, - "php": null, - "tests": [ - { - "command": "", - "language": "yaml", - "test_input": "\n\n\nversion: 2\nupdates:\n - package-ecosystem: \"cargo\"\n directory: \"/\"\n schedule:\n interval: \"monthly\"\n assignees:\n - \"hougesen\"\n open-pull-requests-limit: 25\n\n - package-ecosystem: \"github-actions\"\n directory: \"/\"\n schedule:\n interval: \"monthly\"\n assignees:\n - \"hougesen\"\n open-pull-requests-limit: 25\n\n\n ", - "test_output": "version: 2\nupdates:\n - package-ecosystem: \"cargo\"\n directory: \"/\"\n schedule:\n interval: \"monthly\"\n assignees:\n - \"hougesen\"\n open-pull-requests-limit: 25\n - package-ecosystem: \"github-actions\"\n directory: \"/\"\n schedule:\n interval: \"monthly\"\n assignees:\n - \"hougesen\"\n open-pull-requests-limit: 25\n" - } - ] + "languages": ["yaml"] } diff --git a/tools/yapf/plugin.json b/tools/yapf/plugin.json index 12696969..fc3fa3be 100644 --- a/tools/yapf/plugin.json +++ b/tools/yapf/plugin.json @@ -4,25 +4,18 @@ "categories": ["formatter"], "commands": { "": { - "command": ["--in-place", "$PATH"], - "description": "", - "homepage": "", + "arguments": ["--in-place", "$PATH"], "ignore_output": false, - "tests": [] + "tests": [ + { + "language": "python", + "test_input": "def add( a: int , b:int)->int: return a+b", + "test_output": "def add(a: int, b: int) -> int:\n return a + b\n" + } + ] } }, "description": "A formatter for Python files", "homepage": "https://github.com/google/yapf", - "languages": ["python"], - "name": null, - "npm": null, - "php": null, - "tests": [ - { - "command": "", - "language": "python", - "test_input": "def add( a: int , b:int)->int: return a+b", - "test_output": "def add(a: int, b: int) -> int:\n return a + b\n" - } - ] + "languages": ["python"] } diff --git a/tools/yew-fmt/plugin.json b/tools/yew-fmt/plugin.json index 78720ca0..e6cf430f 100644 --- a/tools/yew-fmt/plugin.json +++ b/tools/yew-fmt/plugin.json @@ -4,25 +4,18 @@ "categories": ["formatter"], "commands": { "": { - "command": ["--edition", "2021", "--quiet", "$PATH"], - "description": "", - "homepage": "", + "arguments": ["--edition", "2021", "--quiet", "$PATH"], "ignore_output": false, - "tests": [] + "tests": [ + { + "language": "rust", + "test_input": "pub\n async\n fn add( a: i32,\n b:i32 )-> i32 {a+b}\n ", + "test_output": "pub async fn add(a: i32, b: i32) -> i32 {\n a + b\n}\n" + } + ] } }, "description": "Code formatter for the Yew framework", "homepage": "https://github.com/its-the-shrimp/yew-fmt", - "languages": ["rust"], - "name": null, - "npm": null, - "php": null, - "tests": [ - { - "command": "", - "language": "rust", - "test_input": "pub\n async\n fn add( a: i32,\n b:i32 )-> i32 {a+b}\n ", - "test_output": "pub async fn add(a: i32, b: i32) -> i32 {\n a + b\n}\n" - } - ] + "languages": ["rust"] } diff --git a/tools/zig/plugin.json b/tools/zig/plugin.json index aa43d800..97d559f8 100644 --- a/tools/zig/plugin.json +++ b/tools/zig/plugin.json @@ -4,25 +4,18 @@ "categories": ["formatter"], "commands": { "fmt": { - "command": ["fmt", "$PATH"], - "description": "", - "homepage": "", + "arguments": ["fmt", "$PATH"], "ignore_output": false, - "tests": [] + "tests": [ + { + "language": "zig", + "test_input": "\n fn add (a : i32 , b : i32 ) i32 {\n return a + b ;\n\n }\n ", + "test_output": "fn add(a: i32, b: i32) i32 {\n return a + b;\n}\n" + } + ] } }, "description": "Reformat Zig source into canonical form", "homepage": "https://ziglang.org/", - "languages": ["zig"], - "name": null, - "npm": null, - "php": null, - "tests": [ - { - "command": "fmt", - "language": "zig", - "test_input": "\n fn add (a : i32 , b : i32 ) i32 {\n return a + b ;\n\n }\n ", - "test_output": "fn add(a: i32, b: i32) i32 {\n return a + b;\n}\n" - } - ] + "languages": ["zig"] } diff --git a/tools/ziggy/plugin.json b/tools/ziggy/plugin.json index 19665c16..221102a1 100644 --- a/tools/ziggy/plugin.json +++ b/tools/ziggy/plugin.json @@ -4,18 +4,11 @@ "categories": ["formatter"], "commands": { "fmt": { - "command": ["fmt", "$PATH"], - "description": "", - "homepage": "", - "ignore_output": false, - "tests": [] + "arguments": ["fmt", "$PATH"], + "ignore_output": false } }, "description": "Formats Ziggy documents and Ziggy schemas", "homepage": "https://ziggy-lang.io/documentation/ziggy-fmt/", - "languages": ["ziggy"], - "name": null, - "npm": null, - "php": null, - "tests": [] + "languages": ["ziggy"] } diff --git a/tools/zprint/plugin.json b/tools/zprint/plugin.json index c28d41ac..436c924c 100644 --- a/tools/zprint/plugin.json +++ b/tools/zprint/plugin.json @@ -4,25 +4,18 @@ "categories": ["formatter"], "commands": { "": { - "command": ["-w", "$PATH"], - "description": "", - "homepage": "", + "arguments": ["-w", "$PATH"], "ignore_output": false, - "tests": [] + "tests": [ + { + "language": "clojure", + "test_input": "(defn change-start-column [new-start-column style-vec [inline-comment-index\n start-column spaces-before :as comment-vec]] (if (zero? inline-comment-index)\n style-vec (let [delta-spaces (- new-start-column start-column) new-spaces\n (+ spaces-before delta-spaces) previous-element-index (dec\n inline-comment-index) [s c e :as previous-element] (nth style-vec\n previous-element-index) new-previous-element (cond (= e :indent) [(str \"\n\"\n (blanks new-spaces)) c e] (= e :whitespace) [(str (blanks new-spaces))\n c e 26] :else nil)] (assoc style-vec previous-element-index\n new-previous-element))))", + "test_output": "(defn change-start-column\n [new-start-column style-vec\n [inline-comment-index start-column spaces-before :as comment-vec]]\n (if (zero? inline-comment-index)\n style-vec\n (let [delta-spaces (- new-start-column start-column)\n new-spaces (+ spaces-before delta-spaces)\n previous-element-index (dec inline-comment-index)\n [s c e :as previous-element] (nth style-vec previous-element-index)\n new-previous-element\n (cond (= e :indent) [(str \"\n\" (blanks new-spaces)) c e]\n (= e :whitespace) [(str (blanks new-spaces)) c e 26]\n :else nil)]\n (assoc style-vec previous-element-index new-previous-element))))" + } + ] } }, "description": "Executables, uberjar, and library to beautifully format Clojure and Clojurescript source code and s-expressions", "homepage": "https://github.com/kkinnear/zprint", - "languages": ["clojure", "clojurescript"], - "name": null, - "npm": null, - "php": null, - "tests": [ - { - "command": "", - "language": "clojure", - "test_input": "(defn change-start-column [new-start-column style-vec [inline-comment-index\n start-column spaces-before :as comment-vec]] (if (zero? inline-comment-index)\n style-vec (let [delta-spaces (- new-start-column start-column) new-spaces\n (+ spaces-before delta-spaces) previous-element-index (dec\n inline-comment-index) [s c e :as previous-element] (nth style-vec\n previous-element-index) new-previous-element (cond (= e :indent) [(str \"\n\"\n (blanks new-spaces)) c e] (= e :whitespace) [(str (blanks new-spaces))\n c e 26] :else nil)] (assoc style-vec previous-element-index\n new-previous-element))))", - "test_output": "(defn change-start-column\n [new-start-column style-vec\n [inline-comment-index start-column spaces-before :as comment-vec]]\n (if (zero? inline-comment-index)\n style-vec\n (let [delta-spaces (- new-start-column start-column)\n new-spaces (+ spaces-before delta-spaces)\n previous-element-index (dec inline-comment-index)\n [s c e :as previous-element] (nth style-vec previous-element-index)\n new-previous-element\n (cond (= e :indent) [(str \"\n\" (blanks new-spaces)) c e]\n (= e :whitespace) [(str (blanks new-spaces)) c e 26]\n :else nil)]\n (assoc style-vec previous-element-index new-previous-element))))" - } - ] + "languages": ["clojure", "clojurescript"] }