Skip to content

Commit

Permalink
feat(AIP-142): warn on creation_time (#1291)
Browse files Browse the repository at this point in the history
  • Loading branch information
Juneezee authored Nov 27, 2023
1 parent eb09eb6 commit ebf2763
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/rules/0142/time-field-names.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@ It also looks for common field names, regardless of type, and complains if they
are used. These are:

- created
- creation
- expired
- modified
- updated
- purged

## Examples

Expand Down
1 change: 1 addition & 0 deletions rules/aip0142/time_field_names.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ var fieldNames = &lint.FieldRule{
// Look for common non-imperative terms.
mistakes := map[string]string{
"created": "create_time",
"creation": "create_time",
"expired": "expire_time",
"modified": "update_time",
"updated": "update_time",
Expand Down

0 comments on commit ebf2763

Please sign in to comment.