aboutsummaryrefslogtreecommitdiffstats
path: root/modules/analyze
Commit message (Collapse)AuthorAgeFilesLines
* Rename code_langauge.go to code_language.go (#26377)cassiozareck2023-08-071-0/+0
|
* Implement FSFE REUSE for golang files (#21840)flynnnnnnnnnn2022-11-274-8/+4
| | | | | | | | | Change all license headers to comply with REUSE specification. Fix #16132 Co-authored-by: flynnnnnnnnnn <flynnnnnnnnnn@github> Co-authored-by: John Olheiser <john.olheiser@gmail.com>
* Simplify `IsVendor` (#19626)Gusted2022-05-061-58/+2
| | | | | The changes in this file were upstreamed directly into go-enry as https://github.com/go-enry/go-enry/pull/44 and therefore they are no longer needed.
* Use git attributes to determine generated and vendored status for language ↵zeripath2021-09-091-0/+28
| | | | | | | | | | | | | | | | stats and diffs (#16773) Replaces #16262 Replaces #16250 Replaces #14833 This PR first implements a `git check-attr` pipe reader - using `git check-attr --stdin -z --cached` - taking account of the change in the output format in git 1.8.5 and creates a helper function to read a tree into a temporary index file for that pipe reader. It then wires this in to the language stats helper and into the git diff generation. Files which are marked generated will be folded by default. Fixes #14786 Fixes #12653
* Speed up `enry.IsVendor` (#15213)zeripath2021-04-012-0/+112
| | | | | | | | | `enry.IsVendor` is kinda slow as it simply iterates across all regexps. This PR ajdusts the regexps to combine them to make this process a little quicker. Related #15143 Signed-off-by: Andrew Thornton <art27@cantab.net>
* Exclude generated files from language statistics (#11653)Lauris BH2020-05-291-11/+3
| | | * Update go-enry to v2.5.2
* Migrate to go-enry new version (#10906)Lauris BH2020-04-151-1/+1
|
* Add detected file language to code search (#10256)Lauris BH2020-02-201-0/+36
Move langauge detection to separate module to be more reusable Add option to disable vendored file exclusion from file search Allways show all language stats for search