GD0109.rst 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. GD0109: The '[ExportToolButton]' attribute cannot be used with another '[Export]' attribute
  2. ===========================================================================================
  3. ==================================== ======================================
  4. Value
  5. ==================================== ======================================
  6. **Rule ID** GD0109
  7. **Category** Usage
  8. **Fix is breaking or non-breaking** Non-breaking
  9. **Enabled by default** Yes
  10. ==================================== ======================================
  11. Cause
  12. -----
  13. A property is annotated with both the ``[ExportToolButton]`` and the ``[Export]``
  14. attributes.
  15. Rule description
  16. ----------------
  17. The ``[ExportToolButton]`` attribute already implies exporting the member, so
  18. the ``[Export]`` is unnecessary.
  19. How to fix violations
  20. ---------------------
  21. To fix a violation of this rule, remove the ``[Export]`` attribute.
  22. When to suppress warnings
  23. -------------------------
  24. Do not suppress a warning from this rule. Multiple export attributes may lead
  25. to duplicated members, resulting in unexpected runtime errors.