Commit Graph

105 Commits

Author SHA1 Message Date
renovate[bot]
99d08a6984 chore(deps): update ivuorinen/actions action (v2025.12.17 → v2025.12.18) (#136)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-19 05:44:59 +00:00
renovate[bot]
3c015d69e7 chore(deps): update ivuorinen/actions action (v2025.12.16 → v2025.12.17) (#135)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-18 01:13:21 +00:00
renovate[bot]
bb843d4b4a chore(deps): update github/codeql-action action (v4.31.8 → v4.31.9) (#134)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-17 06:35:20 +00:00
renovate[bot]
b47b9514a4 chore(deps): update ivuorinen/actions action (v2025.12.15 → v2025.12.16) (#133)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-17 04:15:33 +00:00
renovate[bot]
83b57a9846 chore(deps): update ivuorinen/actions action (v2025.12.14 → v2025.12.15) (#132)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-16 02:59:56 +00:00
renovate[bot]
b2444f5187 chore(deps): update ivuorinen/actions action (v2025.12.13 → v2025.12.14) (#131)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-15 02:45:24 +00:00
renovate[bot]
7c1aa2e218 chore(deps): update ivuorinen/actions action (v2025.12.12 → v2025.12.13) (#130)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-14 06:04:48 +00:00
renovate[bot]
31b5375aa0 chore(deps)!: update actions/upload-artifact (v5.0.0 → v6.0.0) (#127) 2025-12-13 11:55:36 +02:00
renovate[bot]
6e089badde chore(deps): update github/codeql-action action (v4.31.7 → v4.31.8) (#129)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-13 09:07:58 +00:00
renovate[bot]
75641223b4 chore(deps): update ivuorinen/actions action (v2025.12.11 → v2025.12.12) (#128)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-13 04:37:33 +00:00
renovate[bot]
b8963713d4 chore(deps): update securego/gosec action (v2.22.10 → v2.22.11) (#126)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-12 06:14:05 +00:00
renovate[bot]
04e803789c chore(deps): update ivuorinen/actions action (v2025.12.10 → v2025.12.11) (#125)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-12 02:39:29 +00:00
renovate[bot]
550c89bf78 chore(deps): update ivuorinen/actions action (v2025.12.09 → v2025.12.10) (#123)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-11 04:36:05 +00:00
95b7ef6dd3 chore: modernize workflows, security scanning, and linting configuration (#50)
* build: update Go 1.25, CI workflows, and build tooling

- Upgrade to Go 1.25
- Add benchmark targets to Makefile
- Implement parallel gosec execution
- Lock tool versions for reproducibility
- Add shellcheck directives to scripts
- Update CI workflows with improved caching

* refactor: migrate from golangci-lint to revive

- Replace golangci-lint with revive for linting
- Configure comprehensive revive rules
- Fix all EditorConfig violations
- Add yamllint and yamlfmt support
- Remove deprecated .golangci.yml

* refactor: rename utils to shared and deduplicate code

- Rename utils package to shared
- Add shared constants package
- Deduplicate constants across packages
- Address CodeRabbit review feedback

* fix: resolve SonarQube issues and add safety guards

- Fix all 73 SonarQube OPEN issues
- Add nil guards for resourceMonitor, backpressure, metricsCollector
- Implement io.Closer for headerFileReader
- Propagate errors from processing helpers
- Add metrics and templates packages
- Improve error handling across codebase

* test: improve test infrastructure and coverage

- Add benchmarks for cli, fileproc, metrics
- Improve test coverage for cli, fileproc, config
- Refactor tests with helper functions
- Add shared test constants
- Fix test function naming conventions
- Reduce cognitive complexity in benchmark tests

* docs: update documentation and configuration examples

- Update CLAUDE.md with current project state
- Refresh README with new features
- Add usage and configuration examples
- Add SonarQube project configuration
- Consolidate config.example.yaml

* fix: resolve shellcheck warnings in scripts

- Use ./*.go instead of *.go to prevent dash-prefixed filenames
  from being interpreted as options (SC2035)
- Remove unreachable return statement after exit (SC2317)
- Remove obsolete gibidiutils/ directory reference

* chore(deps): upgrade go dependencies

* chore(lint): megalinter fixes

* fix: improve test coverage and fix file descriptor leaks

- Add defer r.Close() to fix pipe file descriptor leaks in benchmark tests
- Refactor TestProcessorConfigureFileTypes with helper functions and assertions
- Refactor TestProcessorLogFinalStats with output capture and keyword verification
- Use shared constants instead of literal strings (TestFilePNG, FormatMarkdown, etc.)
- Reduce cognitive complexity by extracting helper functions

* fix: align test comments with function names

Remove underscores from test comments to match actual function names:
- benchmark/benchmark_test.go (2 fixes)
- fileproc/filetypes_config_test.go (4 fixes)
- fileproc/filetypes_registry_test.go (6 fixes)
- fileproc/processor_test.go (6 fixes)
- fileproc/resource_monitor_types_test.go (4 fixes)
- fileproc/writer_test.go (3 fixes)

* fix: various test improvements and bug fixes

- Remove duplicate maxCacheSize check in filetypes_registry_test.go
- Shorten long comment in processor_test.go to stay under 120 chars
- Remove flaky time.Sleep in collector_test.go, use >= 0 assertion
- Close pipe reader in benchmark_test.go to fix file descriptor leak
- Use ContinueOnError in flags_test.go to match ResetFlags behavior
- Add nil check for p.ui in processor_workers.go before UpdateProgress
- Fix resource_monitor_validation_test.go by setting hardMemoryLimitBytes directly

* chore(yaml): add missing document start markers

Add --- document start to YAML files to satisfy yamllint:
- .github/workflows/codeql.yml
- .github/workflows/build-test-publish.yml
- .github/workflows/security.yml
- .github/actions/setup/action.yml

* fix: guard nil resourceMonitor and fix test deadlock

- Guard resourceMonitor before CreateFileProcessingContext call
- Add ui.UpdateProgress on emergency stop and path error returns
- Fix potential deadlock in TestProcessFile using wg.Go with defer close
2025-12-10 19:07:11 +02:00
renovate[bot]
ea4a39a360 chore(deps): update ivuorinen/actions action (v2025.12.08 → v2025.12.09) (#121)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-10 05:44:58 +00:00
renovate[bot]
ea10379087 chore(deps): update ivuorinen/actions action (v2025.12.07 → v2025.12.08) (#120)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-09 04:31:21 +00:00
renovate[bot]
6d7a23c21a chore(deps): update ivuorinen/actions action (v2025.12.06 → v2025.12.07) (#118)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-08 02:07:35 +00:00
87f0cdb44f feat: upgrade go, packages and actions (#116)
* chore: upgrade go and packages

* chore: upgrade actions

* fix(ci): use go version from .go-version

* fix: backpressure tests optimization
2025-12-07 06:10:33 +02:00
renovate[bot]
f56685ce62 chore(deps): update ivuorinen/actions action (v2025.12.05 → v2025.12.06) (#117)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-07 00:41:28 +00:00
renovate[bot]
8d098eb35d chore(deps): update github/codeql-action action (v4.31.6 → v4.31.7) (#115)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-06 08:39:29 +00:00
renovate[bot]
66f24dbbb4 chore(deps): update ivuorinen/actions action (v2025.12.03 → v2025.12.05) (#114)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-06 05:15:50 +00:00
renovate[bot]
c7182e6d00 chore(deps): update ivuorinen/actions action (v2025.12.01 → v2025.12.03) (#110)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-04 04:12:28 +00:00
renovate[bot]
e05e1b5a58 chore(deps)!: update actions/checkout (v5.0.1 → v6.0.1) (#99) 2025-12-03 20:20:55 +02:00
renovate[bot]
a0f0844555 chore(deps): update github/codeql-action action (v4.31.5 → v4.31.6) (#109)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-02 10:38:10 +00:00
renovate[bot]
8cac3db14d chore(deps): update ivuorinen/actions action (v2025.11.30 → v2025.12.01) (#108)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-02 05:11:07 +00:00
renovate[bot]
0a5840cdfc chore(deps): update ivuorinen/actions action (v2025.11.29 → v2025.11.30) (#106)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-01 00:36:13 +00:00
renovate[bot]
aa3930a538 chore(deps): update ivuorinen/actions action (v2025.11.28 → v2025.11.29) (#105)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-30 00:55:50 +00:00
renovate[bot]
58098ef4c5 chore(deps): update ivuorinen/actions action (v2025.11.23 → v2025.11.28) (#104)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-29 02:01:08 +00:00
renovate[bot]
b80488307e chore(deps): update github/codeql-action action (v4.31.4 → v4.31.5) (#103)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-26 07:43:45 +02:00
renovate[bot]
0921746406 chore(deps): update ivuorinen/actions action (v2025.11.02 → v2025.11.23) (#101)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-23 21:59:32 +00:00
renovate[bot]
7e53128958 chore(deps): update github/codeql-action action (v4.31.3 → v4.31.4) (#98)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-20 12:31:59 +00:00
renovate[bot]
2b6ff1d2d8 chore(deps): update actions/checkout action (v5.0.0 → v5.0.1) (#97)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-19 04:34:17 +00:00
renovate[bot]
35ca8e3cff chore(deps): update github/codeql-action action (v4.31.2 → v4.31.3) (#96)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-15 06:55:27 +00:00
renovate[bot]
3a122c3d0c chore(deps): update ivuorinen/actions action (v2025.10.26 → v2025.11.02) (#92)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-03 02:26:16 +00:00
renovate[bot]
745c48a1de chore(deps): update github/codeql-action action (v4.31.0 → v4.31.2) (#91)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-01 12:25:48 +00:00
renovate[bot]
923f2d5914 chore(deps)!: update ivuorinen/actions (25.10.25 → v2025.10.26) (#88) 2025-10-27 08:42:56 +02:00
renovate[bot]
5dd8f2507a chore(deps): update ivuorinen/actions action (25.10.24 → 25.10.25) (#87)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-26 02:32:51 +00:00
renovate[bot]
f32bb1ddaf chore(deps): update github/codeql-action action (v4.30.9 → v4.31.0) (#86)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-25 05:49:44 +00:00
renovate[bot]
a10b9b6d61 chore(deps): update ivuorinen/actions action (25.10.20 → 25.10.24) (#85)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-25 00:51:43 +00:00
renovate[bot]
a251a26da1 chore(deps): update github/codeql-action action (v4.30.8 → v4.30.9) (#81)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-21 09:27:51 +03:00
renovate[bot]
a03b132581 chore(deps): update ivuorinen/actions action (25.10.18 → 25.10.20) (#83)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-21 00:47:00 +00:00
renovate[bot]
4361a0c9e5 chore(deps): update ivuorinen/actions action (25.10.16 → 25.10.18) (#82)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-19 04:53:57 +00:00
renovate[bot]
74e92bc4a0 chore(deps): update ivuorinen/actions action (25.10.15 → 25.10.16) (#80)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-17 00:43:51 +00:00
renovate[bot]
df3d8cbbd4 chore(deps): update securego/gosec action (v2.22.9 → v2.22.10) (#79)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-16 04:29:12 +00:00
renovate[bot]
3068992e2b chore(deps): update ivuorinen/actions action (25.10.14 → 25.10.15) (#78)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-16 02:09:17 +00:00
renovate[bot]
11387f6c97 chore(deps): update ivuorinen/actions action (25.10.12 → 25.10.14) (#76)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-15 01:02:38 +00:00
renovate[bot]
7ea2d597cf chore(deps): update ivuorinen/actions action (25.10.7 → 25.10.12) (#75)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-13 05:28:50 +00:00
renovate[bot]
4b71bc5409 chore(deps): update github/codeql-action action (v4.30.7 → v4.30.8) (#71)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-11 01:20:33 +03:00
3f65b813bd feat: update go to 1.25, add permissions and envs (#49)
* chore(ci): update go to 1.25, add permissions and envs
* fix(ci): update pr-lint.yml
* chore: update go, fix linting
* fix: tests and linting
* fix(lint): lint fixes, renovate should now pass
* fix: updates, security upgrades
* chore: workflow updates, lint
* fix: more lint, checkmake, and other fixes
* fix: more lint, convert scripts to POSIX compliant
* fix: simplify codeql workflow
* tests: increase test coverage, fix found issues
* fix(lint): editorconfig checking, add to linters
* fix(lint): shellcheck, add to linters
* fix(lint): apply cr comment suggestions
* fix(ci): remove step-security/harden-runner
* fix(lint): remove duplication, apply cr fixes
* fix(ci): tests in CI/CD pipeline
* chore(lint): deduplication of strings
* fix(lint): apply cr comment suggestions
* fix(ci): actionlint
* fix(lint): apply cr comment suggestions
* chore: lint, add deps management
2025-10-10 12:14:42 +03:00
renovate[bot]
958f5952a0 chore(deps): update ivuorinen/actions action (25.10.6 → 25.10.7) (#72)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-08 21:02:29 +00:00