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

Fix #268: New Rule: No Specs #271

Merged
merged 3 commits into from
Feb 27, 2023
Merged

Fix #268: New Rule: No Specs #271

merged 3 commits into from
Feb 27, 2023

Conversation

elbrujohalcon
Copy link
Member

No description provided.

@elbrujohalcon elbrujohalcon added this to the 2.1.0 milestone Feb 27, 2023
Avoid `-spec` attributes.

This rule is meant to be used on header files only.
Defining specs in public header files (especially those intended for inclusion via `-include_lib(...)`)
Copy link
Collaborator

Choose a reason for hiding this comment

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

I prefer the term "typespec" instead of just "spec" but I'm not sure there's a set "rule"/"recommendation" for this.

Copy link
Member Author

Choose a reason for hiding this comment

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

To me, typespec refers to the -type spec ;)

Copy link
Member Author

Choose a reason for hiding this comment

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

Specification for functions seems to be the official term ™️
https://www.erlang.org/doc/reference_manual/typespec.html#specifications-for-functions

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Collaborator

@paulo-ferraz-oliveira paulo-ferraz-oliveira left a comment

Choose a reason for hiding this comment

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

You're on a roll, baby!

elbrujohalcon and others added 2 commits February 27, 2023 16:10
Co-authored-by: Paulo F. Oliveira <paulo.ferraz.oliveira@gmail.com>
Co-authored-by: Paulo F. Oliveira <paulo.ferraz.oliveira@gmail.com>
@elbrujohalcon elbrujohalcon merged commit cb204f6 into main Feb 27, 2023
@elbrujohalcon elbrujohalcon deleted the brujo.268.no_specs branch February 27, 2023 15:35
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