fix/paragraphs #5431
Labels
Clear labels
Accessibility
bug
build
cgi Scripting
design
disruptive
documentation
duplicate
easy
enhancement
feature-request
help wanted
javascript
priority/low
question
system-hackers
tagging
text
translations
wait/bugfix
wait/inprogress
wait/misc
wait/proofread
wontfix
xsl
Requires careful coordination and documentation changes
Improving what is already there
No labels
Milestone
No items
No Milestone
Assignees
albert (Albert Dengg)
alex.busch (alex.busch)
alex.sander (alex.sander)
anaghz (anaghz)
annarita.russo (annarita.russo)
ao (André Ockers)
bonnie (bonnie)
ciampix (Marco Ciampa)
cryptie (cryptie)
dario (dario)
delliott (Darragh Elliott)
dfajfer (Damian Fajfer)
dmaphy (Dominic Hopf)
doczkal (Thomas Doczkal)
eal (eal)
egnun (Erik Grun)
eventregbot (eventregbot)
fi (fi)
floriansnow (Florian Snow)
foxort (Tino Tempesta)
gabriel.ku (gabriel.ku)
guido (guido)
hf (hf)
hugo (hugo)
ineiev (ineiev)
jithendra (jithendra)
jn (jn)
jzarl (jzarl)
linus (Linus Sehn)
lucabon (Luca Bonissi)
lucas.lasota (lucas.lasota)
marcelo.fm (Marcelo)
max.mehl (Max Mehl)
mk (Matthias Kirschner)
monochromec (monochromec)
mweimann (Michael Weimann)
nico.rikken (nico.rikken)
patrick (Patrick Ohnewein)
reinhard (Reinhard Müller)
renovate-bot (Renovate Bot)
repentinus (Heiki Lõhmus)
schiessle (Björn Schießle)
silviarbgl (Silvia Rbgl)
sofiaritz (Sofía Aritz)
tobiasd (tobiasd)
vincent (vincent)
Clear assignees
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: FSFE/fsfe-website#5431
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Currently implements both a format hook to remove white-space paragraphs, and a check to make their existence a critical failure.
In the end may implement only one or none of these, subject to major design changes.
Solves #5409
@@ -143,5 +143,3 @@ volumes:---kind: signaturehmac: 997582ae47807c3367efcda28920c2d0f84bfd05d6fddf224bf7440a636d91e1These lines should not be removed I think
That is what prettier does to yml files, and then drone sign changes it again.
CI is failing, I cannot check all the 11k changed files - but what I've seen of the trivial removals of whitespace LGTM for the 1st two commits they look good for me as well.
So, there is a little bit of discussion t be had here when it comes to automating some formatting of xhtml files.
At present we have a bunch of formatters and linters, as we have many kinds of files in the repo.
We currently have automated linting but nor formatting of xhtml. The lints are generally easy enough to fix manually.
Using the empty paragraph remover does perform some whitespace changes on files, and so we have kind of introduced our first xhtml formatter. Perhaps when we are already altering 11k files, and causing the biggest merge and ensuring merge conflicts to follow, we should just go whole hog and run the
xmllint formatwe currently use on xml and xsl files on xhtml too? I do not mind.Also, we are now entering a somewhat interesting point with our ci.
So, at present all the pre-commit checks are ran as ci. Some of them do not fail if the files have changed, like most of the formatters. But the formatters will fail if they see invalid xml, or js, or so forth. But assuming that committed files are not formatted, but syntactically correct they will pass ci.
And then we also have checks, which are mainly some bash and python scripts that assert something is/is not the case. These fail ci if they check is failed.
Do we want to make unformatted files a CI failure? I would like to, but know that this project has many contributors who use the web interface, without pre-commit hooks, quite frequently.
Or we could do something maybe inadvisable, and use drone to push to the branch after running the formatters:
https://github.com/appleboy/drone-git-push/blob/master/DOCS.md
So if the commits failed the checks, requring manual intervention, one does so and no automated commits will be made yet.
Once the manual intervention requiring errors are fixed, the ci will proceed to the next stage, and push the formatting changes, if there are any. There will be none for those using the pre-commit hooks locally properly, but for web edit changes there might be.
And then merge.
We could also maybe do something like having it make the commits during a merge, so they are not seen in the pr, or making the commits on master after a merge? I am not sure.
Failing CI as the removal of empty paragraphs touches a huge number of older xhtml files that do not pass our newer checks.