Skip to content

Rewrite your app in Rust, piece by piece, checked against the original at every step. Works with TypeScript, JavaScript, Python, Go, Ruby, Java, C, PHP, C#, Kotlin, PowerShell and Swift.

docs(contributing): add Kotlin row and C Python 3.9+ requirement to setup table (#1395)

isodevdeb921441d13
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 8a2bf1e6..c8c7bd8b 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,6 +2,9 @@
## Unreleased
+- CONTRIBUTING's "Set up" table has a Kotlin row (`kotlinc` and a JDK 17+), and its C row says
+ the C tests also need Python 3.9+, which calls the library through ctypes. A test checks that
+ the table has a row for every language (#1352, #1395 by @iyazici00).
- `obligations --evidence` ends with `1 of 3 obligations has no recorded case` for a single
one. With no obligations at all, it and `app record` say that none were listed and point to
`rust-anything obligations` for the families it could not enumerate, instead of `0 of 0`, which
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 052282e2..f9254b38 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -22,10 +22,11 @@ skip a part whose runtime is missing, so install the ones you touch:
| --- | --- |
| TypeScript/JavaScript | Node 24 (22.6+ works except for `profile`) |
| Python | Python 3.9+ |
-| C | a C compiler (`cc`) |
+| C | a C compiler (`cc`) and Python 3.9+ (the recorder calls the library through ctypes) |
| Go | Go 1.22+ |
| Ruby | Ruby 3.x |
| Java | a JDK (17+) |
+| Kotlin | the Kotlin compiler (`kotlinc`) and a JDK 17+ |
| PHP | PHP 8 |
| C# | the .NET SDK |
| PowerShell | PowerShell 7.4+ (`pwsh`) |
diff --git a/tests/skill.rs b/tests/skill.rs
index 688fa3ac..2b4c1221 100644
--- a/tests/skill.rs
+++ b/tests/skill.rs
@@ -102,6 +102,34 @@ fn contributing_lists_every_integration_test_suite() {
);
}
+#[test]
+fn contributing_setup_table_lists_every_language() {
+ let guide = include_str!("../CONTRIBUTING.md");
+ let (_, after_heading) = guide
+ .split_once("## Set up")
+ .expect("CONTRIBUTING.md has a Set up section");
+ let (_, table_start) = after_heading
+ .split_once("| For | Install |")
+ .expect("Set up section has a For | Install table");
+ let rows: Vec<&str> = table_start
+ .lines()
+ .skip(1)
+ .take_while(|line| line.starts_with('|'))
+ .collect();
+ let mut missing = Vec::new();
+ for lang in rust_anything::lang::Lang::ALL {
+ let prefix = format!("| {} |", lang.name());
+ if !rows.iter().any(|row| row.starts_with(&prefix)) {
+ missing.push(lang.name());
+ }
+ }
+ assert!(
+ missing.is_empty(),
+ "Add these languages to the Set up table in CONTRIBUTING.md: {}",
+ missing.join(", ")
+ );
+}
+
#[test]
fn skill_front_matter_names_the_folder_and_describes_when_to_use_it() {
let text = std::fs::read_to_string(skill_dir().join("SKILL.md")).unwrap();