We use clang-format to have consistent formatting on a number of files already. Although most files are currently blacklisted for formatting by 'solenv/clang-format/blacklist'.
The task is to find files where enabling clang-format would only cause minor reformatting (maybe less than 5% of the lines on a file).
Then this file should be removed from 'solenv/clang-format/blacklist' and be formatted with clang-format.
Ideally a (Python/Shell/...) script will be written which does this check for all files. But manually checking is also ok.
Please submit suitable files one by one to Gerrit to allow individual review.
Hello, I would like to work on it, can I get some code pointers, as I am new to open source contribution but have a fair amount of interest towards contributing to this project and work on this issue.
should I lear
should I get familiar with any other languages as I already have knowledge of python which is mentioned in keywords?
(In reply to Raghu Ram from comment #1)
> Hello, I would like to work on it, can I get some code pointers, as I am new
> to open source contribution but have a fair amount of interest towards
> contributing to this project and work on this issue.
> should I lear
Hi Raghu, what kind of information do you need? The task is written in comment 0.
Please come to the irc channel #libreoffice-dev if you have general questions.
I would like to take up this bug. Can you just tell me from where can I access the solenv/clang-format/blacklist file?
Or do I just have to write a Python script which given a list of files outputs the list which has less than 5% of lines to be reformatted to be clang-formatted?
(In reply to Anuj Agrawal from comment #4)
> I would like to take up this bug. Can you just tell me from where can I
> access the solenv/clang-format/blacklist file?
> Or do I just have to write a Python script which given a list of files
> outputs the list which has less than 5% of lines to be reformatted to be
The blacklist file is part of our "core" repo. You need a LibreOffice build setup to do this task.
Please see https://wiki.documentfoundation.org/Development/GetInvolved and ask further questions about the setup on IRC.
@Anuj: Raghu is currently working on this bug, so please choose another one.
As the patch has not seen any progress since 2 months, I mark this issue as unassigned.
Anyone can continue the work started here: https://gerrit.libreoffice.org/#/c/69589/