qapi: Enforce type naming rules
Type names should be CamelCase. Enforce this. The only offenders are in tests/. Fix them. Add test type-case to cover the new error. Signed-off-by:Markus Armbruster <armbru@redhat.com> Message-Id: <20210323094025.3569441-15-armbru@redhat.com> Reviewed-by:
Eric Blake <eblake@redhat.com> [Regexp simplified, new test made more robust]
Showing
- scripts/qapi/expr.py 2 additions, 1 deletionscripts/qapi/expr.py
- tests/qapi-schema/doc-bad-union-member.json 2 additions, 2 deletionstests/qapi-schema/doc-bad-union-member.json
- tests/qapi-schema/double-type.err 1 addition, 1 deletiontests/qapi-schema/double-type.err
- tests/qapi-schema/double-type.json 1 addition, 1 deletiontests/qapi-schema/double-type.json
- tests/qapi-schema/features-deprecated-type.err 1 addition, 1 deletiontests/qapi-schema/features-deprecated-type.err
- tests/qapi-schema/features-deprecated-type.json 1 addition, 1 deletiontests/qapi-schema/features-deprecated-type.json
- tests/qapi-schema/meson.build 1 addition, 0 deletionstests/qapi-schema/meson.build
- tests/qapi-schema/redefined-builtin.err 2 additions, 2 deletionstests/qapi-schema/redefined-builtin.err
- tests/qapi-schema/redefined-builtin.json 2 additions, 2 deletionstests/qapi-schema/redefined-builtin.json
- tests/qapi-schema/redefined-type.err 3 additions, 3 deletionstests/qapi-schema/redefined-type.err
- tests/qapi-schema/redefined-type.json 2 additions, 2 deletionstests/qapi-schema/redefined-type.json
- tests/qapi-schema/struct-data-invalid.err 1 addition, 1 deletiontests/qapi-schema/struct-data-invalid.err
- tests/qapi-schema/struct-data-invalid.json 1 addition, 1 deletiontests/qapi-schema/struct-data-invalid.json
- tests/qapi-schema/struct-member-invalid-dict.err 1 addition, 1 deletiontests/qapi-schema/struct-member-invalid-dict.err
- tests/qapi-schema/struct-member-invalid-dict.json 1 addition, 1 deletiontests/qapi-schema/struct-member-invalid-dict.json
- tests/qapi-schema/struct-member-invalid.err 1 addition, 1 deletiontests/qapi-schema/struct-member-invalid.err
- tests/qapi-schema/struct-member-invalid.json 1 addition, 1 deletiontests/qapi-schema/struct-member-invalid.json
- tests/qapi-schema/type-case.err 2 additions, 0 deletionstests/qapi-schema/type-case.err
- tests/qapi-schema/type-case.json 2 additions, 0 deletionstests/qapi-schema/type-case.json
- tests/qapi-schema/type-case.out 0 additions, 0 deletionstests/qapi-schema/type-case.out
Loading
Please register or sign in to comment