Skip to content

Commit b0ca18a

Browse files
authored
Manually revert #405 (#411)
I couldn't revert this normally through github for some reason 🤷 - [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 f276866 commit b0ca18a

File tree

1 file changed

+56
-54
lines changed

1 file changed

+56
-54
lines changed

rule_schema_v1.yaml

Lines changed: 56 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -883,60 +883,62 @@ $defs:
883883
title: Languages this pattern should run on
884884
type: array
885885
items:
886-
enum:
887-
- apex
888-
- bash
889-
- sh
890-
- c
891-
- clojure
892-
- cpp
893-
- c++
894-
- csharp
895-
- c#
896-
- dart
897-
- dockerfile
898-
- docker
899-
- ex
900-
- elixir
901-
- generic
902-
- go
903-
- golang
904-
- hack
905-
- html
906-
- java
907-
- js
908-
- javascript
909-
- json
910-
- jsonnet
911-
- julia
912-
- kt
913-
- kotlin
914-
- lisp
915-
- lua
916-
- ocaml
917-
- php
918-
- python2
919-
- python3
920-
- py
921-
- python
922-
- r
923-
- regex
924-
- none
925-
- ruby
926-
- rust
927-
- scala
928-
- scheme
929-
- solidity
930-
- sol
931-
- swift
932-
- tf
933-
- hcl
934-
- terraform
935-
- ts
936-
- typescript
937-
- vue
938-
- yaml
939-
- xml
886+
anyOf:
887+
- type: string
888+
- enum:
889+
- apex
890+
- bash
891+
- sh
892+
- c
893+
- clojure
894+
- cpp
895+
- c++
896+
- csharp
897+
- c#
898+
- dart
899+
- dockerfile
900+
- docker
901+
- ex
902+
- elixir
903+
- generic
904+
- go
905+
- golang
906+
- hack
907+
- html
908+
- java
909+
- js
910+
- javascript
911+
- json
912+
- jsonnet
913+
- julia
914+
- kt
915+
- kotlin
916+
- lisp
917+
- lua
918+
- ocaml
919+
- php
920+
- python2
921+
- python3
922+
- py
923+
- python
924+
- r
925+
- regex
926+
- none
927+
- ruby
928+
- rust
929+
- scala
930+
- scheme
931+
- solidity
932+
- sol
933+
- swift
934+
- tf
935+
- hcl
936+
- terraform
937+
- ts
938+
- typescript
939+
- vue
940+
- yaml
941+
- xml
940942
required:
941943
- rules
942944
properties:

0 commit comments

Comments
 (0)