Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1 @@
# These are supported funding model platforms

github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
custom: ["https://www.paypal.me/mastercruelty"]
23 changes: 14 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,31 +4,36 @@ on:
branches: [main, dev]
pull_request:

permissions:
contents: read

jobs:
shellcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Install shellcheck
run: sudo apt-get update && sudo apt-get install -y shellcheck
- name: Lint (errors)
run: |
shopt -s globstar nullglob
shellcheck -S error \
setup.sh uninstall.sh update.sh \
src/emerger.sh src/lib/*.sh
- name: Lint (warnings, non-blocking)
install.sh uninstall.sh \
src/emerger.sh src/lib/**/*.sh share/plugins/*.sh share/profiles/*.sh completions/up.bash
- name: Lint (warnings)
run: |
shopt -s globstar nullglob
shellcheck -S warning \
setup.sh uninstall.sh update.sh \
src/emerger.sh src/lib/*.sh || true
install.sh uninstall.sh \
src/emerger.sh src/lib/**/*.sh share/plugins/*.sh share/profiles/*.sh completions/up.bash

tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Install bats
run: sudo apt-get update && sudo apt-get install -y bats
- name: Run bats
run: sudo apt-get update && sudo apt-get install -y bats zsh fish shellcheck
- name: Require pwsh (tests/ps_*.bats skip without it)
run: command -v pwsh && pwsh -NoProfile -Command '$PSVersionTable.PSVersion.ToString()'
- name: Run bats (pwsh is preinstalled on the runner, so tests/ps_*.bats run)
run: bats tests/
8 changes: 3 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
.log
src/utils/.cache
src/utils/.md5
.hist
# LaTeX build output beside doc/documentation.tex
*.aux
*.log
*.out
*.toc
*.synctex.gz
.idea
57 changes: 13 additions & 44 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,52 +1,21 @@
# Contributing

First of all, thanks for being here! Contributions are very appreciated, but we ask you to follow a few simple rules so everyone can enjoy the ride.
Every contribution is licensed under the project's [MIT licence](LICENSE).

## 1. Comment your code (just a little)
## Pull requests

You don't need to explain every single line. But if your change spans multiple files, or it takes more than basic knowledge to understand, please leave a few small comments or share your stream of consciousness in the pull request. Future us (and you) will be grateful.
- Link an issue or describe the change in a few lines.
- Comment code that spans several files or needs more than basic knowledge to follow.
- Follow the indentation of the surrounding code.
- Run `bats tests/` and the lint command in [README.md](README.md#development) before opening the request.
- A change to a flag, variable or output field updates the bash and PowerShell halves, the help texts, [man/up.1](man/up.1), [doc/documentation.tex](doc/documentation.tex), the completions and the README together.

## 2. Write meaningful pull requests
## Rejected contributions

When opening a PR, link to an issue or describe what you did in a few words. Think of it as an extension of rule 1.
- Links or references to servers the project does not own.
- Code that exposes users to vulnerabilities or bypasses privileges.
- Code that discriminates against people or serves a crime.

## 3. About rules 1 and 2
## Code under another licence

Skipping them won't get your contribution rejected, but it will slow things down, since we'll have to ask questions before merging.

## 4. No shady code, no crimes

We will not accept contributions containing *shady code* or any form of *crime*.

Examples of *shady code* (not limited to):

- References and links to servers we don't own or that are not certified
- Exposing users to external or internal vulnerabilities
- Code tricks to bypass privileges or access reserved memory areas

Examples of *crimes* (not limited to):

- Discrimination based on ethnicity, sex, religion, physical aspect, sexual orientation, or any other individual right protected by Human Rights or by simple logic and maturity
- Cybercrimes

## 5. Mind the indentation

Not mandatory, but please try to match the existing code style. It keeps the codebase tidy.

## 6. Memes are welcome

We believe in a friendly environment, so memes in comments are totally fine. Just don't overdo it, and always respect rule 4.

## 7. Licensed code

You can contribute with your licensed code, but we'll have to check a few things first:

1. You are the real author.
2. The contribution respects rule 4.
3. If you propose someone else's code, the integration must respect the author's needs and license.

## 8. Don't be afraid

No one on this planet is born knowing everything. If you follow all the rules above but your PR gets rejected because of the nature of your code, your effort won't be in vain: your work may give someone else ideas, or the chance to refactor it into something even better. That's the beauty of open source.

And remember, even us, the creators, started out knowing almost nothing. So really, don't be afraid of being judged. Just jump in.
Code you did not write is accepted only if its licence permits inclusion in an MIT project. State its author and licence in the pull request and in [reference/third-party.md](reference/third-party.md).
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2021-2026 eMerger contributors (https://github.com/MasterCruelty/eMerger/graphs/contributors)
Copyright (c) 2021-2026 Roberto Antoniello, Edoardo Ferrari and eMerger contributors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
Loading
Loading