Skip to content

feat: add non-namespaced class cop#91

Merged
effron merged 2 commits intoBetterment:mainfrom
andimrob:main
Jan 27, 2026
Merged

feat: add non-namespaced class cop#91
effron merged 2 commits intoBetterment:mainfrom
andimrob:main

Conversation

@andimrob
Copy link
Contributor

@andimrob andimrob commented Jan 6, 2026

This change will introduce a new cop that will take offense on the definition of classes that are not namespaced.

frewsxcv
frewsxcv previously approved these changes Jan 26, 2026
shanshaji
shanshaji previously approved these changes Jan 26, 2026
Copy link

@shanshaji shanshaji left a comment

Choose a reason for hiding this comment

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

Happy to see this change!
I had a similar thought here: https://github.com/Betterment/the-book/pull/302 but lost track of it.


Betterment/NonNamespacedClass:
Description: Detects classes that are not namespaced under a module or constant
StyleGuide: '#bettermentnonamespacedclass'
Copy link
Contributor

Choose a reason for hiding this comment

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

can we add a styleguide entry for this?

@betterment-policy-bot-production betterment-policy-bot-production bot dismissed stale reviews from frewsxcv and shanshaji January 27, 2026 14:32

Invalidated by push of c766e99

Copy link
Contributor

@effron effron left a comment

Choose a reason for hiding this comment

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

domainLGTM && platformLGTM

@effron effron merged commit 4503992 into Betterment:main Jan 27, 2026
6 checks passed
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.

4 participants