slalombuild / secureli

seCureLI is a tool that enables you to experience the delight of building products by helping you get ideas from your head into working software as frictionlessly as possible, in a reliable, secure, scalable, and observable way.
Apache License 2.0
28 stars 3 forks source link

Support Scanning a Subset of Source with seCureLI #390

Closed tdurk93 closed 7 months ago

tdurk93 commented 8 months ago

We should expose the --files option in pre-commit run for users of seCureLI (specifically when using secureli scan). This would allow for e.g. testing linters for a single file (or set of files). Then we could test language detection & linters against test files within our repo, instead of having to clone additional repositories to test against each language.

Note: We will also want to update the files considered for language guessing. This should be a good starting point: https://github.com/slalombuild/secureli/blob/main/secureli/services/language_analyzer.py#L51

Acceptance Criteria

dlolaogundipe commented 8 months ago

core epic