Skip to content

Conversation

@hippietrail
Copy link
Collaborator

Issues

N/A

Description

I was investigating something our mass noun linting doesn't flag and realized there are two linters:
MassPlurals and NounCountability.

I've put them together into a new lint_group. It's the first one that takes an extra parameter (dictionary in this case) which makes it a good example for future contributors.

How Has This Been Tested?

I added a couple of unit tests to the mod.rs to make sure the two member linters work via the new lint group,

Checklist

  • I have performed a self-review of my own code
  • I have added tests to cover my changes


pub use merge_rule_hidden::MassNouns;

mod merge_rule_hidden {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Where does the need for module come from? Why not just expose the struct as-is?

Copy link
Collaborator Author

@hippietrail hippietrail Dec 3, 2025

Choose a reason for hiding this comment

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

Where does the need for module come from? Why not just expose the struct as-is?

Still learning Rust and still learning Harper internals. Didn't have a good handle on all the hows and whys of mod used as it was inside the macro.

@elijah-potter elijah-potter added this pull request to the merge queue Dec 10, 2025
Merged via the queue into Automattic:master with commit 2330456 Dec 10, 2025
11 checks passed
@hippietrail hippietrail deleted the mass-noun-improvements branch December 10, 2025 23:05
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