amplitude / amplitude/homebrew-ampli

Ampli CLI generate invalid Swift code when an identifier starts with a number

オープン
#8 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Ruby
スター
2
フォーク
0
PR マージ指標
30日以内にマージされた PR はありません

説明

In my case the product manager defined a property called `1Year`. In this case amply generate the following enum

```
public enum Duration: String {
case 1Year = "1Year"
}
```

`1Year` is an invalid swift identifier.

Ampli should generate a valid identified by prefixing the value stating with a number by a valid character, for example `case _1Year = "1Year"`

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。