-
Notifications
You must be signed in to change notification settings - Fork 103
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
Have code formatting guideline #319
Comments
In fact, there is already a perltidyrc in https://github.com/sympa-community/sympa/blob/sympa-6.2/doc/dot.perltidyrc. Let's use it as the base of the coding style we want. |
- Add cpanfile, specifying dependencies for running the xt tests (authors tests, not installation tests)
Hi @ldidry,
Besides, I’ve not yet had confidence to force a style to coders. Because:
Additional comment:
Regards, |
- Add cpanfile, specifying dependencies for running the xt tests (authors tests, not installation tests)
- Add cpanfile, specifying dependencies for running the xt tests (authors tests, not installation tests)
Well, in fact, we might: having this test allows to use it in Travis, so that you can check that a PR is perltidy-compliant. It's not a non-acceptance flag for the PR, of course, but by seeing this, we would be able to fix the tidying right after we accept the PR
As I created a cpanfile to install dev modules (for Test::PerlTidy at first, then I saw another module for another test), we could enforce the version of PerlTidy when installing it to hack on Sympa, so every Sympa developper would (normally) use the same version and have the same behavior
You're absolutely right. What do you think about I rename this issue to "Have code formatting guideline" and create an issue that:
|
I understood. I agree to implementing perltidy test and see what will happen.
I agree too. |
There is a PR waiting for all the current work to be merged into 6.2.x branch: #322 About the Travis test: should we let it in Travis or comment it, waiting for us to tidy up all files before re-enabling it? It now complains a lot (of course) and so isn't that useful. It will be useful when it will complain on introducing new untidy code. What do you think? |
One more comment. I concepted that documents on sympa-community.github.io will be a "documentation set" for users, and documentaion for developers would be on separate place (in its nature, it will tend to fluid and more or less inconsistent). How about using wiki built in GitHub for documentation about development? |
I think it would a good thing, yes 🙂 |
Thanks. I'll let sympa-developpers people know. |
Add Perltidy test in xt (related to #319)
I see this issue may be closed now: The last task may be taken over to the new issue. |
Discussion will happen on [email protected] mainling list.
Right now, we have minimal vim modelines:
But there is a lot of other coding style stuff that could (should) be discussed, in order to have a coherent coding style in all codebase, like:
if
(while
,for
, etc)To close this issue, we need to:
.perltidyrc
fileThe text was updated successfully, but these errors were encountered: