Skip to content

Commit b6390e9

Browse files
committed
Notes on distribution, possible name fixer
1 parent 72a40b1 commit b6390e9

3 files changed

Lines changed: 59 additions & 1 deletion

File tree

docs/_drafts/fix.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
title: Fixing file names
3+
h1: Fixing file names that are found
4+
---
5+
6+
I think this should be a separate program (`fnfix`, `namefix`, etc) but still part of this project.
7+
8+
Several levels of fixing:
9+
10+
- basic: just nulls and UTF-8
11+
- portable: anything that causes cross-platform issues
12+
- ascii: convert every character to ASCII
13+
- posix: convert everything to POSIX-safe
14+
- shellsafe?
15+
16+
Code:
17+
18+
- each rule should have an optional `fixlevel` and `replace`
19+
- program takes a directory name and fixes all files in it
20+
- optional `recursion` flag to go into subdirectories
21+
- optional `dryrun` flag to show what it would do

docs/_drafts/where-to-find.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
title: Where to find namelint
3+
---
4+
5+
Places where to find and use namelint:
6+
7+
- [ ] Download binary from Github
8+
- [ ] Download `.deb` and install
9+
- [ ] Run Docker image from DockerHub (and GHCR, etc)
10+
- [ ] [npm](https://www.npmjs.com/)
11+
- [ ] [Homebrew](https://docs.brew.sh/)
12+
- [ ] [Github Actions Marketplace](https://github.com/marketplace?type=actions)
13+
- [ ] [Gitlab CI/CD Catalog](https://gitlab.com/explore/catalog)
14+
15+
## Eventually
16+
17+
- [ ] `.deb` bundled with Debian-based Linux distributions
18+
- [ ] RPM and bundled with RedHat-based Linux distributions
19+
- [ ] Other CI runners
20+
- Argo
21+
- Azure DevOps
22+
- Bitrise
23+
- CircleCI
24+
- Google Cloud Build
25+
- Spinnaker
26+
- TeamCity
27+
- Travis
28+
- [List at Awesome CI](https://github.com/ligurio/awesome-ci)
29+
- [ ] Other npm packagers: [Github Packages](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-npm-registry), [jsr.io](https://jsr.io/)...
30+
- [ ] [Mac App Store](https://www.apple.com/app-store/)
31+
- [ ] [Microsoft Store](https://apps.microsoft.com/home)
32+
- [ ] [Chocolatey](https://chocolatey.org/)
33+
- [ ] FreeBSD: [ports](https://ports.freebsd.org/cgi/ports.cgi)
34+
- [ ] NetBSD: [pkgsrc](https://www.pkgsrc.org/)
35+
- [ ] SUSE: [packagehub](https://packagehub.suse.com/)

docs/_posts/2024-08-17-prior-art.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ IMHO, anything that isn't in Rust or C/C++ is going to be too high level and not
88

99
- [**notox**](https://github.com/Its-Just-Nans/notox) - Rust, a command line utility that reports (and optionally fixes) toxic file names
1010

11-
- [**ls-lint**](https://ls-lint.org/) - Go, focused on file name conventions ([source](https://github.com/loeffel-io/ls-lint))
11+
- [**ls-lint**](https://ls-lint.org/) - Go, focused on file name conventions ([source](https://github.com/loeffel-io/ls-lint)). It has a [Github Action](https://github.com/ls-lint/action) and an [npm package](https://www.npmjs.com/package/@ls-lint/ls-lint).
12+
13+
- [pre-commit-hooks](https://github.com/pre-commit/pre-commit-hooks) - Python, includes some file name checks ([check-case-conflict](https://github.com/pre-commit/pre-commit-hooks/blob/main/pre_commit_hooks/check_case_conflict.py) is especially interesting). The overall [pre-commit framework](https://pre-commit.com/) should be supported by namelint.
1214

1315
- [detox](https://github.com/dharple/detox) - C, renames files to make them easier to work with under Linux and other Unix-like
1416
operating systems

0 commit comments

Comments
 (0)