elastic / elastic/go-licenser

Improve path exclusion

Open
#33 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
39
Forks
31
PR merge metrics
No merged PRs in 30d

Description

## Description

Currently path exclusion is very raw and one could argue that incomplete. There's a few issues to solve here:

- [ ] Path exclusion currently supports directories rather than filenames. It'd be useful to be able to also skip certain filenames if specified in the `-exclude` flag.
- [ ] Potentially support a regex or

## Code detail

https://github.com/elastic/go-licenser/blob/master/main.go#L199-L207

Contributor guide

Open the contributing guide

Research direction

Start by reading main.go lines 199-207 and tracing how the -exclude flag is parsed and applied. Review the existing path-exclusion behavior and determine the expected filename support; the regex idea is only proposed, so its scope and acceptance criteria need clarification before implementation.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.