Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: fix private/protected naming convention & improve boolean one #891

Merged

Conversation

davidlj95
Copy link
Owner

@davidlj95 davidlj95 commented Nov 28, 2024

Private and protected naming convention wasn't enforced. Turns out it was because modifiers works by combining them in and and/&& fashion. So only private & protected (not possible) code was enforced. Instead, we want both protected and private code to have same rules. Uses a map to avoid repeating the same rules twice. Nothing is added for #private, the hashtag is enough.

Then, enforces a bit more the boolean naming convention. By specifying all available selectors that aren't too greedy (i.e.: object literal expressions are a bit too much, can't control some of them as they're external)

Finally, types ElementRef elements around / doesn't store those in class if possible

Copy link
Owner Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@davidlj95 davidlj95 changed the title build: fix naming convention rule for private/protected build: fix private/protected naming convention & improve boolean one Nov 28, 2024
@davidlj95 davidlj95 enabled auto-merge (squash) November 28, 2024 20:16
Copy link

codecov bot commented Nov 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.31%. Comparing base (4829a32) to head (b21450c).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #891      +/-   ##
==========================================
- Coverage   98.32%   98.31%   -0.01%     
==========================================
  Files         122      122              
  Lines         597      595       -2     
  Branches       62       62              
==========================================
- Hits          587      585       -2     
  Misses          6        6              
  Partials        4        4              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@davidlj95 davidlj95 force-pushed the stacked/build-fix-naming-convention-rule-for-private-protected branch from abf3ae0 to b21450c Compare November 29, 2024 20:30
@davidlj95 davidlj95 merged commit b6bec0d into main Nov 29, 2024
16 checks passed
@davidlj95 davidlj95 deleted the stacked/build-fix-naming-convention-rule-for-private-protected branch November 29, 2024 22:04
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.

1 participant