Skip to content

Lint the request subpackage - #254

Merged
SeanTAllen merged 1 commit into
mainfrom
issue-246-lint-request
Dec 5, 2026
Merged

SeanTAllen merged 1 commit into
mainfrom
issue-246-lint-request

Conversation

@SeanTAllen

Copy link
Copy Markdown
Member

make lint runs pony-lint ., and pony-lint reports nothing for a package
nested inside another one (ponylang/ponyc#7139), even when the nested
package is named on the same command line. Nothing under
github_rest_api/request had been linted, and it had 49 violations.

make lint now runs pony-lint on github_rest_api/request separately, with
a TODO to drop that once the pony-lint bug is fixed. The violations are
fixed: the three receiver interfaces move into files of their own, two
files are renamed to the type they hold, the requesters' public
callbacks and the receiver methods get docstrings, and the rest is
reformatting. _github_request_headers.pony keeps its name, which matches
its test and the library's spelling of github, with a file-naming
suppression; the rule would name it _git_hub_request_headers.pony.

Closes #246

make lint runs pony-lint ., and pony-lint reports nothing for a package
nested inside another one (ponylang/ponyc#7139), even when the nested
package is named on the same command line. Nothing under
github_rest_api/request had been linted, and it had 49 violations.

make lint now runs pony-lint on github_rest_api/request separately, with
a TODO to drop that once the pony-lint bug is fixed. The violations are
fixed: the three receiver interfaces move into files of their own, two
files are renamed to the type they hold, the requesters' public
callbacks and the receiver methods get docstrings, and the rest is
reformatting. _github_request_headers.pony keeps its name, which matches
its test and the library's spelling of github, with a file-naming
suppression; the rule would name it _git_hub_request_headers.pony.

Closes #246
@ponylang-main ponylang-main added the discuss during sync Should be discussed during an upcoming sync label Dec 5, 2026
@SeanTAllen
SeanTAllen merged commit 293b6a7 into main Dec 5, 2026
8 checks passed
@SeanTAllen
SeanTAllen deleted the issue-246-lint-request branch December 5, 2026 17:48
@ponylang-main ponylang-main removed the discuss during sync Should be discussed during an upcoming sync label Dec 5, 2026
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.

Lint the request subpackage

2 participants