Ben Craig | 262cfb4 | 2015-07-08 20:37:15 -0500 | [diff] [blame] | 1 | Typical usage: |
| 2 | thrift.exe --audit <oldFile> <newFile> |
| 3 | Example run: |
| 4 | > thrift.exe --audit test.thrift break1.thrift |
| 5 | [Thrift Audit Failure:break1.thrift] New Thrift File has missing function base_function3 |
| 6 | [Thrift Audit Warning:break1.thrift] Constant const3 has different value |
| 7 | |
| 8 | Problems that the audit tool can catch: |
| 9 | Errors |
| 10 | Removing an enum value |
| 11 | Changing the type of a struct field |
| 12 | Changing the required-ness of a struct field |
| 13 | Removing a struct field |
| 14 | Adding a required struct field |
| 15 | Adding a struct field 'in the middle'. This usually indicates an old ID has been recycled |
| 16 | Struct removed |
| 17 | Oneway-ness change |
| 18 | Return type change |
| 19 | Missing function |
| 20 | Missing service |
| 21 | Change in service inheritance |
| 22 | Warnings |
| 23 | Removing a language namespace declaration |
| 24 | Changing a namespace |
| 25 | Changing an enum value's name |
| 26 | Removing an enum class |
| 27 | Default value changed |
| 28 | Struct field name change |
| 29 | Removed constant |
| 30 | Type of constant changed |
| 31 | Value of constant changed |
| 32 | |