Skip to content

Conversation

Hinton
Copy link
Member

@Hinton Hinton commented Sep 5, 2025

๐ŸŽŸ๏ธ Tracking

๐Ÿ“” Objective

This adds two custom dylint lint.

  • error_suffix: Requires all types that implements Error ends with an Error suffix.
  • error_enum: Forbids ending enum error variants with Error.

โฐ Reminders before review

  • Contributor guidelines followed
  • All formatters and local linters executed and passed
  • Written new unit and / or integration tests where applicable
  • Protected functional changes with optionality (feature flags)
  • Used internationalization (i18n) for all UI strings
  • CI builds passed
  • Communicated to DevOps any deployment requirements
  • Updated any necessary documentation (Confluence, contributing docs) or informed the documentation
    team

๐Ÿฆฎ Reviewer guidelines

  • ๐Ÿ‘ (:+1:) or similar for great changes
  • ๐Ÿ“ (:memo:) or โ„น๏ธ (:information_source:) for notes or general info
  • โ“ (:question:) for questions
  • ๐Ÿค” (:thinking:) or ๐Ÿ’ญ (:thought_balloon:) for more open inquiry that's not quite a confirmed
    issue and could potentially benefit from discussion
  • ๐ŸŽจ (:art:) for suggestions / improvements
  • โŒ (:x:) or โš ๏ธ (:warning:) for more significant problems or concerns needing attention
  • ๐ŸŒฑ (:seedling:) or โ™ป๏ธ (:recycle:) for future improvements or indications of technical debt
  • โ› (:pick:) for minor or nitpick changes

Copy link
Contributor

github-actions bot commented Sep 5, 2025

Logo
Checkmarx One โ€“ Scan Summary & Details โ€“ 8eb3b478-5898-4855-9762-3187a970338a

Great job! No new security vulnerabilities introduced in this pull request

Copy link

codecov bot commented Sep 5, 2025

Codecov Report

โœ… All modified and coverable lines are covered by tests.
โœ… Project coverage is 76.93%. Comparing base (8a7175f) to head (c40cab8).
โš ๏ธ Report is 15 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #430      +/-   ##
==========================================
+ Coverage   76.75%   76.93%   +0.18%     
==========================================
  Files         270      270              
  Lines       25664    25608      -56     
==========================================
+ Hits        19698    19702       +4     
+ Misses       5966     5906      -60     

โ˜” View full report in Codecov by Sentry.
๐Ÿ“ข Have feedback on the report? Share it here.

๐Ÿš€ New features to boost your workflow:
  • โ„๏ธ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • ๐Ÿ“ฆ JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Hinton Hinton changed the title Explore dylint Add dylint lints for errors Sep 8, 2025
@Hinton Hinton requested a review from dani-garcia September 8, 2025 16:12
@Hinton Hinton marked this pull request as ready for review September 8, 2025 16:12
@Hinton Hinton requested a review from a team as a code owner September 8, 2025 16:12
Copy link
Member

@dani-garcia dani-garcia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks pretty reasonable overall, would be nice to add some instructions on how to run them on the readme, we already have a lint section

dani-garcia
dani-garcia previously approved these changes Sep 9, 2025
dani-garcia
dani-garcia previously approved these changes Sep 9, 2025
Copy link

@Hinton Hinton merged commit 4286052 into main Sep 15, 2025
50 checks passed
@Hinton Hinton deleted the arch/lints branch September 15, 2025 13:03
dani-garcia added a commit that referenced this pull request Sep 16, 2025
## ๐ŸŽŸ๏ธ Tracking

<!-- Paste the link to the Jira or GitHub issue or otherwise describe /
point to where this change is coming from. -->

## ๐Ÿ“” Objective

Remove all the error suffixes from the error variants. This will be
linted against by #430 in CI in the future.

## โฐ Reminders before review

- Contributor guidelines followed
- All formatters and local linters executed and passed
- Written new unit and / or integration tests where applicable
- Protected functional changes with optionality (feature flags)
- Used internationalization (i18n) for all UI strings
- CI builds passed
- Communicated to DevOps any deployment requirements
- Updated any necessary documentation (Confluence, contributing docs) or
informed the documentation
  team

## ๐Ÿฆฎ Reviewer guidelines

<!-- Suggested interactions but feel free to use (or not) as you desire!
-->

- ๐Ÿ‘ (`:+1:`) or similar for great changes
- ๐Ÿ“ (`:memo:`) or โ„น๏ธ (`:information_source:`) for notes or general info
- โ“ (`:question:`) for questions
- ๐Ÿค” (`:thinking:`) or ๐Ÿ’ญ (`:thought_balloon:`) for more open inquiry
that's not quite a confirmed
  issue and could potentially benefit from discussion
- ๐ŸŽจ (`:art:`) for suggestions / improvements
- โŒ (`:x:`) or โš ๏ธ (`:warning:`) for more significant problems or
concerns needing attention
- ๐ŸŒฑ (`:seedling:`) or โ™ป๏ธ (`:recycle:`) for future improvements or
indications of technical debt
- โ› (`:pick:`) for minor or nitpick changes
gbubemismith pushed a commit that referenced this pull request Sep 16, 2025
This adds two custom dylint lint.

- `error_suffix`: Requires all types that implements `Error` ends with
an `Error` suffix.
- `error_enum`: Forbids ending enum error variants with `Error`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants