Commit Graph

686 Commits

Author SHA1 Message Date
Alex Bezzubov
bd3630419c test: add new corner cases for linguist v7.26
test plan
 - go test -run '^Test_EnryOnLinguistCorpus$' github.com/go-enry/go-enry/v2
2023-09-22 14:46:01 +02:00
Alex Bezzubov
cc878e354c test: drop irrelevant corner case (fixed upstream) 2023-09-22 14:46:01 +02:00
Alex Bezzubov
fc4d2aa5a5 test: output format readability improvement 2023-09-22 14:46:01 +02:00
Alex Bezzubov
561ffd9c86 test: usability in err msg on linguist clone 2023-09-22 14:46:01 +02:00
Alex Bezzubov
8b8cc8a17b test: fix Python tests 2023-09-22 14:42:44 +02:00
Alex Bezzubov
7db593cb32 IsConfiguration: add&fix failing Python case to Go
test plan:
 * ENRY_TEST_REPO=".linguist" \
    go test -run '^TestIsConfiguration$' github.com/go-enry/go-enry/v2
2023-09-22 14:42:44 +02:00
github-actions
84c996dfcf Updated Linguist to v7.26.0 2023-09-14 00:06:22 +02:00
Alex
c3899f12ca
Merge pull request #170 from go-enry/tiny-fixes-2
test: fix LanguagesByFilename case & improve logging
2023-09-14 00:03:53 +02:00
Alex Bezzubov
c7dc5fb77a ci: force distutils for building python 2023-09-14 00:00:55 +02:00
Alex Bezzubov
62cb8695d2 ci: python build verbosity 2023-09-07 00:14:18 +03:00
Alex Bezzubov
59bfa6e3e3 test: increase Linguist shallow clone depth 2023-09-06 23:23:43 +03:00
Alex Bezzubov
b41b4e14fe test: refactor a single maybeCloneLinguist() impl 2023-09-06 23:20:43 +03:00
Alex Bezzubov
b5441048b3 test: actually a correct LanguagesByFilename case :/ 2023-09-06 20:58:00 +03:00
Alex
731c88f592
Merge pull request #168 from go-enry/tiny-fixes
Small improvements
2023-09-06 19:29:56 +02:00
Alex Bezzubov
f435dd406f test: add one more LanguagesByFilename case 2023-09-06 20:26:30 +03:00
Alex Bezzubov
9fc16a9389 ci: fix sync linguist 'No PR' output 2023-09-06 20:26:30 +03:00
Alex
93616cf55b
Merge pull request #157 from go-enry/oniguruma-linguist-tests
Add more oniguruma-only tests on linguist fixtures
2023-03-06 21:40:49 +01:00
Alex
02f30869ca
Merge pull request #156 from go-enry/docs-badges
Docs: update README badges
2023-03-06 21:40:15 +01:00
Alex Bezzubov
16349a2c12 test: more tests on linguist fixtures from #65 (oniguruma-only)
test plan
 - go test -run '^Test_EnryOnLinguistCorpus$' -v github.com/go-enry/go-enry/v2
2023-03-04 19:57:11 +01:00
Alex Bezzubov
d0f92a650a doc: remove Codeconv badge (requires access to all GH repos) 2023-03-04 19:39:29 +01:00
Alex Bezzubov
11a8080935 doc: fix CI badge 2023-03-04 18:54:14 +01:00
Alex
467ac4d2d3
Merge pull request #137 from go-enry/feature/sync-linguist-d7799da8
Update Linguist to v7.23.0
2023-03-04 18:38:39 +01:00
Alex Bezzubov
9ce235f39e test: add new corner cases for linguist v7.23
test plan
 - go test -run '^Test_EnryOnLinguistCorpus$' github.com/go-enry/go-enry/v2
2023-03-03 23:38:02 +01:00
Alex Bezzubov
f206e152e6 test: refactor and simplify TestLinguistSamples
test plan
 - go test -run '^Test_EnryOnLinguistCorpus$' github.com/go-enry/go-enry/v2
2023-03-03 23:14:06 +01:00
github-actions
afe3bdf45a Updated Linguist to v7.23.0 2023-03-03 14:07:28 +01:00
Alex
0e58945703
Merge pull request #151 from go-enry/distinguish-re-syntax
Syntax-aware regexp generation for configurable engines
2023-03-03 13:57:49 +01:00
Alex Bezzubov
8246efecce heuristics regexp engine configurable #3, adapt IsVendor optimization & tests
Regex collation optimization for IsVendor now fails gracefully.
Tests that are affected by non-RE2 syntax are explicitly marked.
2023-02-16 17:55:57 +01:00
Alex Bezzubov
8df9e1ecf2 code-gen: improve ability to debug failures
Code generation failres were hard to identify and undertand

 * avoid unnececary re-formating & memory allocation
 * return clear formatting errors
2023-02-16 17:47:44 +01:00
Alex Bezzubov
6d99af7bbc doc: reformat & clarify 2023-02-16 17:46:23 +01:00
Alex Bezzubov
319e630aaf code-gen: syntax-aware generation of vendor regex 2023-01-19 19:50:22 +01:00
Alex Bezzubov
3aeb9879da heuristics regexp engine configurable #2, skip rules at runtime 2023-01-19 19:50:22 +01:00
Alex Bezzubov
d8913b00e9 code-gen: re-generate code & fixtures 2022-12-25 22:37:52 +01:00
Alex Bezzubov
5e590f3554 code-gen: make content heuristics regexp engine configurable & generation syntax-aware 2022-12-25 22:37:52 +01:00
Alex Bezzubov
0b92f97b9c code-gen: refactoring, re-use function map in templates 2022-12-25 22:37:52 +01:00
Alex Bezzubov
454c78a59f test: bump testify version for better err msg on panic 2022-12-25 22:37:52 +01:00
Alex
ef6c17997c
Merge pull request #152 from go-enry/fix-oniguruma-ci
Fix oniguruma profile on CI
2022-12-25 22:36:42 +01:00
Alex Bezzubov
a139863ceb ci: fix oniguruma profile 2022-12-25 22:33:02 +01:00
Alex
a9296f134c
Merge pull request #149 from go-enry/improve-gen-tests
Generator tests: add readable text diff output
2022-12-18 19:32:15 +01:00
Alex Bezzubov
c0176b04e7 gen-test: don't expose diff + attributions 2022-12-12 20:48:35 +01:00
Alex Bezzubov
c79c32f525 gen-test: add readable text diff output
test plan:
 * go test -run '^Test_GeneratorTestSuite$' \
	-testify.m '^(TestGenerationFiles)$' \
	github.com/go-enry/go-enry/v2/internal/code-generator/generator
2022-12-03 18:55:48 +01:00
Alex
669ec497ef
Merge pull request #134 from jsoref/spelling
Spelling
2022-12-03 18:48:31 +01:00
Alex
2059129b5e
Merge branch 'master' into spelling 2022-12-03 10:48:23 +01:00
Alex
a8344728a7
Merge pull request #143 from go-enry/re-collation-at-codegen
Move venrod RE collation at codegen
2022-12-02 10:11:39 +01:00
Alex
e46c9e749e
Merge pull request #148 from go-enry/upd-ci-go
ci: bump Go versions to two latest ones
2022-12-02 10:11:06 +01:00
Alex Bezzubov
2c708f0b6c gen: re-generate aliases & test fixture for go 1.19 2022-12-02 09:55:50 +01:00
Alex Bezzubov
375b301238 code-gen: reformat template for go 1.19
https://tip.golang.org/doc/go1.19#go-doc with introduction of
https://tip.golang.org/doc/comment has broken the code generator tests.
2022-12-02 09:55:50 +01:00
Alex Bezzubov
476e74d827 ci: bump Go versions to two latest ones
test plan: CI is green
2022-12-01 22:33:00 +01:00
Alex Bezzubov
f4051b0f16 gen: re-generated vendors using build-time optimization 2022-12-01 22:16:54 +01:00
Alex Bezzubov
ede9e478fe IsVendor: move RE collation to code generation phase
test plan:
 * go test -run '^TestIsVendor$' github.com/go-enry/go-enry/v2
2022-12-01 22:16:44 +01:00
Alex
fcb9ea7e45
Merge pull request #146 from go-enry/more-api-tests
test: cover GetLanguageByContent confusing edge cases
2022-12-01 22:15:53 +01:00