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 wide docstrings #1760

Merged
merged 2 commits into from
Mar 13, 2022
Merged

Fix wide docstrings #1760

merged 2 commits into from
Mar 13, 2022

Conversation

larslj
Copy link
Contributor

@larslj larslj commented Mar 12, 2022

The byte compiler in Emacs 28 show warnings for "docstring wider than 80 characters" in multiple places. These warnings are show every time the package is updated from list-packages so it's visible for the user.

I mostly just used fill-paragraph to fix these docstrings.

projectile.el Outdated
@@ -1230,7 +1230,8 @@ explicitly."
(projectile-project-root (or dir default-directory)))

(defun projectile-default-project-name (project-root)
"Default function used create project name to be displayed based on the value of PROJECT-ROOT."
"Default function used create project name to be displayed based on the
Copy link
Owner

Choose a reason for hiding this comment

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

Checkdoc wants the first line of the docstring to be a complete sentence. This way we're solving one problem, but introducing another one.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There are numerous other checkdoc warnings as well. But I agree we should not make it worse. Some of the others ones are really easy to fix but I'll leave that out of this pull request.

@bbatsov bbatsov merged commit 6010308 into bbatsov:master Mar 13, 2022
@bbatsov
Copy link
Owner

bbatsov commented Mar 13, 2022

Thanks!

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