Skip to content

Commit a33c733

Browse files
authored
Merge pull request #2 from leonardomso/feat/improvements
feat: performance optimizations and test coverage improvements
2 parents 3b2cf77 + b874fe1 commit a33c733

36 files changed

Lines changed: 2897 additions & 719 deletions

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
*.so
99
*.dylib
1010
gone
11+
gone-test
1112

1213
# Test binary, built with `go test -c`
1314
*.test

README.md

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Scan your markdown files for broken links. `gone` finds all HTTP/HTTPS URLs, che
5757
go install github.com/leonardomso/gone@latest
5858
```
5959

60-
### Homebrew (coming soon)
60+
### Homebrew
6161

6262
```bash
6363
brew install leonardomso/tap/gone
@@ -114,14 +114,15 @@ gone check [path] [flags]
114114
| `--dead` | `-d` | `false` | Show only dead links and errors |
115115
| `--warnings` | `-w` | `false` | Show only warnings (redirects, blocked) |
116116
| `--alive` || `false` | Show only alive links |
117-
| `--concurrency` | `-c` | `10` | Number of concurrent workers |
118-
| `--timeout` | `-t` | `10` | Timeout per request in seconds |
119-
| `--retries` | `-r` | `2` | Number of retries for failed requests |
117+
| `--concurrency` | `-c` | `50` | Number of concurrent workers |
118+
| `--timeout` | `-t` | `5` | Timeout per request in seconds |
119+
| `--retries` | `-r` | `1` | Number of retries for failed requests |
120120
| `--ignore-domain` ||| Domains to ignore (comma-separated or repeated) |
121121
| `--ignore-pattern` ||| Glob patterns to ignore |
122122
| `--ignore-regex` ||| Regex patterns to ignore |
123123
| `--show-ignored` || `false` | Show which URLs were ignored |
124124
| `--no-config` || `false` | Skip loading .gonerc.yaml |
125+
| `--stats` || `false` | Show performance statistics |
125126

126127
**Link Status Types:**
127128

@@ -198,9 +199,9 @@ gone fix [path] [flags]
198199
|------|-------|---------|-------------|
199200
| `--yes` | `-y` | `false` | Apply all fixes without prompting |
200201
| `--dry-run` | `-n` | `false` | Preview changes without modifying files |
201-
| `--concurrency` | `-c` | `10` | Number of concurrent workers |
202-
| `--timeout` | `-t` | `10` | Timeout per request in seconds |
203-
| `--retries` | `-r` | `2` | Number of retries for failed requests |
202+
| `--concurrency` | `-c` | `50` | Number of concurrent workers |
203+
| `--timeout` | `-t` | `5` | Timeout per request in seconds |
204+
| `--retries` | `-r` | `1` | Number of retries for failed requests |
204205
| `--ignore-domain` ||| Domains to ignore |
205206
| `--ignore-pattern` ||| Glob patterns to ignore |
206207
| `--ignore-regex` ||| Regex patterns to ignore |
@@ -339,7 +340,7 @@ jobs:
339340
- name: Set up Go
340341
uses: actions/setup-go@v5
341342
with:
342-
go-version: '1.25.5'
343+
go-version: '1.24'
343344

344345
- name: Install gone
345346
run: go install github.com/leonardomso/gone@latest
@@ -386,11 +387,12 @@ jobs:
386387
| `-w, --warnings` | check | `false` | Show only warnings |
387388
| `--alive` | check | `false` | Show only alive links |
388389
| `--show-ignored` | check | `false` | Show ignored URLs |
390+
| `--stats` | check | `false` | Show performance statistics |
389391
| `-y, --yes` | fix | `false` | Apply fixes without prompting |
390392
| `-n, --dry-run` | fix | `false` | Preview changes only |
391-
| `-c, --concurrency` | check, fix | `10` | Concurrent workers |
392-
| `-t, --timeout` | check, fix | `10` | Request timeout (seconds) |
393-
| `-r, --retries` | check, fix | `2` | Retry attempts |
393+
| `-c, --concurrency` | check, fix | `50` | Concurrent workers |
394+
| `-t, --timeout` | check, fix | `5` | Request timeout (seconds) |
395+
| `-r, --retries` | check, fix | `1` | Retry attempts |
394396
| `--ignore-domain` | all | — | Domains to ignore |
395397
| `--ignore-pattern` | all | — | Glob patterns to ignore |
396398
| `--ignore-regex` | all | — | Regex patterns to ignore |

0 commit comments

Comments
 (0)