-
Notifications
You must be signed in to change notification settings - Fork 38
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
Relax uppercase check for types qualified with a namespace #1493
Conversation
Allows `type foo::Bar = int` whereas it would previously fail with `type names must start with an uppercase letter` because the check was looking at the very first letter of the fully qualified name (ie. `foo::Bar`) instead of the unqualified name (ie. `Bar`).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great! I think we can easily add a unit test for this: we can just add a type declaration with the new supported name pattern to SuperSpec.qnt
and then update the expected fixtures with npm run update-fixtures
. If all works well, the new fixture will be only slightly different, but still a success - while before, a type like that would cause errors. It is not a really good unit test setup, but at least it will prevent us from regressing from this.
On CI, the
But when I run the suggested command I don't see any changes in my working copy |
Unfortunately this command (or the Can you remove those extra files? All of them but the SuperSpec* ones. Then I think it will work. |
3c0e44c
to
56976cf
Compare
Indeed, my bad sorry! Fixed now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Amazing, thanks again!
Closes: #1494
Allows
type foo::Bar = int
whereas it would previously fail withtype names must start with an uppercase letter
because the check was looking at the very first letter of the fully qualified name (ie.foo::Bar
) instead of the unqualified name (ie.Bar
).Example
Before
After
CHANGELOG.md
for any new functionalityREADME.md
updated for any listed functionality