Skip to content
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

Add editorconfig-checker #430

Merged
merged 5 commits into from
Apr 1, 2024
Merged

Conversation

jayvdb
Copy link
Contributor

@jayvdb jayvdb commented Mar 31, 2024

@jayvdb jayvdb force-pushed the editorconfig-checker branch from 05d6928 to f2fd3b7 Compare March 31, 2024 04:47
@jayvdb jayvdb marked this pull request as ready for review March 31, 2024 05:01
main.sh Outdated
@@ -69,6 +69,8 @@ download_and_extract() {
case "${tool}" in
# xbuild's binary name is "x", as opposed to the usual crate name
xbuild) installed_bin=("${bin_dir}/x") ;;
# editorconfig-checker's binary name is renamed below
editorconfig-checker) installed_bin=("${bin_dir}/${tool}") ;;
Copy link
Owner

@taiki-e taiki-e Mar 31, 2024

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

go install github.com/editorconfig-checker/editorconfig-checker/v2/cmd/editorconfig-checker@latest installs editorconfig-checker

homebrew, nix and arch use editor-checker https://repology.org/project/editorconfig-checker/versions

I'm not sure about alpine. But in general distros are unlikely to let an obscure tool like this have a two letter bin name.

Copy link
Owner

Choose a reason for hiding this comment

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

Thanks for the info. Agreed that "editorconfig-checker" is a reasonable binary name here.

alpine: "package name" is "editorconfig-checker", but "binary name" is "ec": https://pkgs.alpinelinux.org/contents?branch=v3.14&name=editorconfig%2dchecker&arch=x86_64&repo=community

arch: "package name" is "editorconfig-checker", but "binary names" are both "ec" and "editor-checker": https://archlinux.org/packages/extra/x86_64/editorconfig-checker/ (click "Package Contents" section to show list)

homebrew: both "package name" and "binary names" are "editorconfig-checker": https://github.com/Homebrew/homebrew-core/blob/675ca659ebe69e0829d59104c2b74089e0acf6f6/Formula/e/editorconfig-checker.rb#L31

nix:

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Also is looks like they are going to discontinue using ec editorconfig-checker/editorconfig-checker#255

main.sh Outdated Show resolved Hide resolved
DEVELOPMENT.md Outdated
@@ -23,6 +23,18 @@ See JSON files in `tools/codegen/base` directory for examples of the manifest.
> GITHUB_TOKEN=$(gh auth status --show-token 2>&1 | sed -n 's/^.*Token: \(.*\)$/\1/p') ./tools/manifest.sh <tool>
> ```

## Local testing
Copy link
Owner

Choose a reason for hiding this comment

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

main.sh is a script that is likely to change contants outside the repository, so I don't think it should be run locally, basically, although it would be fine if you are testing it within an isolated environment, such as a container.

Anyway, I don't want to require contributors to run tests locally.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok, I've removed those additions

Copy link
Owner

@taiki-e taiki-e left a comment

Choose a reason for hiding this comment

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

Thanks!

@taiki-e taiki-e merged commit ee2b189 into taiki-e:main Apr 1, 2024
26 checks passed
@taiki-e
Copy link
Owner

taiki-e commented Apr 1, 2024

Published in 2.32.0.

@jayvdb jayvdb deleted the editorconfig-checker branch June 9, 2024 23:16
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.

2 participants