Skip to content

Commit 8baadf6

Browse files
authored
feat: add Gosu language with develop maturity (#408)
- [x] I ran `make setup && make` to update the generated code after editing a `.atd` file (TODO: have a CI check) - [x] I made sure we're still backward compatible with old versions of the CLI. For example, the Semgrep backend need to still be able to *consume* data generated by Semgrep 1.50.0. See https://atd.readthedocs.io/en/latest/atdgen-tutorial.html#smooth-protocol-upgrades Note that the types related to the semgrep-core JSON output or the semgrep-core RPC do not need to be backward compatible! - [x] Any accompanying changes in `semgrep-proprietary` are approved and ready to merge once this PR is merged
1 parent 106b8e5 commit 8baadf6

File tree

5 files changed

+45
-0
lines changed

5 files changed

+45
-0
lines changed

Language.ml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ type t =
1414
| Dockerfile
1515
| Elixir
1616
| Go
17+
| Gosu
1718
| Hack
1819
| Html
1920
| Java
@@ -240,6 +241,19 @@ let list = [
240241
shebangs = [];
241242
tags = [];
242243
};
244+
{
245+
id = Gosu;
246+
id_string = "gosu";
247+
name = "Gosu";
248+
keys = [{|gosu|}];
249+
exts = [{|.gs|}];
250+
maturity = Develop;
251+
example_ext = None;
252+
excluded_exts = [];
253+
reverse_exts = None;
254+
shebangs = [];
255+
tags = [{|is_proprietary|}];
256+
};
243257
{
244258
id = Hack;
245259
id_string = "hack";

Language.mli

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ type t =
1414
| Dockerfile
1515
| Elixir
1616
| Go
17+
| Gosu
1718
| Hack
1819
| Html
1920
| Java

generate.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,16 @@ def to_json(self):
314314
maturity=Maturity.GA,
315315
shebangs=[]
316316
),
317+
Language(
318+
comment="",
319+
id_="gosu",
320+
name="Gosu",
321+
keys=["gosu"],
322+
exts=[".gs"],
323+
maturity=Maturity.DEVELOP,
324+
shebangs=[],
325+
tags=["is_proprietary"],
326+
),
317327
Language(
318328
comment="",
319329
id_="hack",

lang.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,25 @@
238238
"is_target_language": true,
239239
"tags": []
240240
},
241+
{
242+
"id": "gosu",
243+
"name": "Gosu",
244+
"keys": [
245+
"gosu"
246+
],
247+
"maturity": "develop",
248+
"exts": [
249+
".gs"
250+
],
251+
"example_ext": null,
252+
"excluded_exts": [],
253+
"reverse_exts": null,
254+
"shebangs": [],
255+
"is_target_language": true,
256+
"tags": [
257+
"is_proprietary"
258+
]
259+
},
241260
{
242261
"id": "hack",
243262
"name": "Hack",

rule_schema_v1.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -903,6 +903,7 @@ $defs:
903903
- generic
904904
- go
905905
- golang
906+
- gosu
906907
- hack
907908
- html
908909
- java

0 commit comments

Comments
 (0)