Skip to content

Format cleanup#66

Open
CvH wants to merge 4 commits intoLibreELEC:masterfrom
CvH:format_cleanup
Open

Format cleanup#66
CvH wants to merge 4 commits intoLibreELEC:masterfrom
CvH:format_cleanup

Conversation

@CvH
Copy link
Copy Markdown
Member

@CvH CvH commented Feb 27, 2024

Some basic format fixes done by automatic code formatting.

I have intentionally left out the real coding stuff, there are A LOT changes I can not really valuate if they are okay or not.
Likewise nobody ever used a code formatter at that codebase :)

3ae8cc1 prevents verbose logspam at the ci from apt

Comment thread ci/linux/setup.sh
qt6-tools-dev \
qt6-tools-dev-tools \
qt6-wayland-dev \
qt6-wayland-dev
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I added the backslash intentionally :)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

what does this achieve ? from bash perspective its just adding a useless space character at the end of the command

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

if you add another line (package) below this one in the future, you won't have to modify this line. JSON format from such issue for example - you can't add comma after last element in object/array.

Comment on lines +42 to +45
version: "6.6.2"
arch: "win64_msvc2019_64"
archives: "qtbase qttools opengl32sw d3dcompiler_47"
extra: "--external 7z"
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I guess quotes can be omitted completely

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

yes/no, it will likely work without quotes too but in general quotes are wanted - also shown at the official GHA examples etc so won't hurt doing proper gha/yml

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

well, we don't use them in other places. Either they should be used everywhere or nowhere at all.

Comment thread CMakeLists.txt Outdated
Comment thread CMakeLists.txt Outdated
Comment thread CMakeLists.txt Outdated
Comment thread CMakeLists.txt Outdated
Comment thread CMakeLists.txt Outdated
Comment thread README.md
## Translation Changes

Changes to master language (en_GB) strings can be submitted via pull request to this GitHub repo. English strings are periodically synchronised to a Transifex project: https://www.transifex.com/libreelec/libreelec-usb-sd-creator allowing contributors to translate them into other languages. Translated strings are periodically synchronised from Transifex back to this repo for inclusion in the next release.
Changes to master language (en_GB) strings can be submitted via pull request to this GitHub repo. English strings are periodically synchronised to a Transifex project: <https://www.transifex.com/libreelec/libreelec-usb-sd-creator> allowing contributors to translate them into other languages. Translated strings are periodically synchronised from Transifex back to this repo for inclusion in the next release.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

better place link on text

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

<http...> is valid markdown for just links, current formatting is not

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I mean, link embedded in text would be more readable in this case

FYI for GFMD angle brackets aren't needed: https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/autolinked-references-and-urls#urls

Comment thread README.md
## Issues and Support

Issues should be reported via the forum here: https://forum.libreelec.tv/board/41-usb-sd-creator-support
Issues should be reported via the forum here: <https://forum.libreelec.tv/board/41-usb-sd-creator-support>
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

not clear why the angle brackets are needed

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Comment thread README.md
@kambala-decapitator
Copy link
Copy Markdown
Collaborator

in CMakeLists your formatter actually did the right thing with this line, and it seems you simply dropped all changes to CMakeLists :) https://github.com/LibreELEC/usb-sd-creator/blob/master/CMakeLists.txt#L11

@chewitt
Copy link
Copy Markdown
Member

chewitt commented Aug 11, 2024

@CvH this needs some rebasing after recent cleanup and changes

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.

3 participants