d73725709b
ci: fix versions to workaround compiler release 🐛
...
Signed-off-by: Alexander Bezzubov <bzz@apache.org >
2019-04-11 15:08:32 +02:00
59289bd4f5
Merge pull request #220 from bzz/skip-jar-upload
...
Skip uploading useless jar as part of Github release
2019-04-09 18:39:55 +02:00
82f784d2f7
release: skip uploading useless jar; fixes #208
...
Signed-off-by: Alexander Bezzubov <bzz@apache.org >
2019-04-09 18:27:07 +02:00
7a6e8ca783
Merge pull request #214 from bzz/fix-cli-accuracy
...
CLI: sync report logic \w Linguist
2019-04-09 16:32:52 +02:00
bad147cb72
Update README.md
...
Co-Authored-By: bzz <bzz@users.noreply.github.com >
2019-04-08 18:00:43 +02:00
bdb5603f28
Address code review feedback
...
Signed-off-by: Alexander Bezzubov <bzz@apache.org >
2019-04-08 16:07:10 +02:00
416afb45fc
doc: better wording in 'divergences from linguist' section
...
Signed-off-by: Alexander Bezzubov <bzz@apache.org >
2019-04-08 15:58:46 +02:00
db6073efa6
Merge pull request #217 from bzz/single-file-add-vendor
...
CLI: always report vendoring for a single file
2019-04-08 11:41:05 +02:00
b6027d6d0c
cli: mode=byte by default + fix file reading
...
Signed-off-by: Alexander Bezzubov <bzz@apache.org >
2019-04-04 22:02:30 +02:00
ace8af223f
cli: report vendoring for single file
...
Signed-off-by: Alexander Bezzubov <bzz@apache.org >
2019-04-04 17:04:16 +02:00
33cc83f473
Merge pull request #211 from SuhaibMujahid/patch-1
...
Update README.md
2019-04-04 15:32:13 +02:00
94e8598d3d
doc: update TravisCI links
...
Signed-off-by: Alexander Bezzubov <bzz@apache.org >
2019-04-04 15:27:12 +02:00
32336ac554
Update README.md
...
Co-Authored-By: SuhaibMujahid <suhaibmujahid@gmail.com >
Signed-off-by: Suhaib Mujahid <suhaibmujahid@gmail.com >
2019-04-03 14:59:31 -04:00
c9f1793a78
doc: update godoc and README \w supported features
...
Signed-off-by: Alexander Bezzubov <bzz@apache.org >
2019-04-03 18:51:54 +02:00
88810fed12
cli: mimic linguist output by default
...
This includes next main changes:
- default: print only Programming and Markup types
as Linguist does
- `-prog` option replaced with `-all`, to allow for
previous behavior
- always use GetLanguage as main source of truth
that fixes #204 and perf will be restored under #212
Signed-off-by: Alexander Bezzubov <bzz@apache.org >
2019-04-03 16:21:10 +02:00
df01124e18
doc: better wording in API godoc
...
Signed-off-by: Alexander Bezzubov <bzz@apache.org >
2019-04-03 16:07:14 +02:00
b2b61c2a8c
gen: refactoring, renaming vars for readability
...
This does not change the logic of the generatro
but only renames/moves some vars for readability
Signed-off-by: Alexander Bezzubov <bzz@apache.org >
2019-04-03 15:40:23 +02:00
badbfd06e5
Update README.md
...
Signed-off-by: Suhaib Mujahid <suhaibmujahid@gmail.com >
2019-04-01 18:49:01 -04:00
6526da77b3
Merge pull request #205 from kuba--/fix-langs
...
Do not return empty lang.
2019-03-15 18:51:55 +01:00
56214e3289
Merge pull request #206 from kuba--/go-mod
...
Replace archived rubex by src-d/go-oniguruma
2019-03-15 16:19:38 +01:00
14281d1785
Replace archived rubex by src-d/go-oniguruma
...
Signed-off-by: kuba-- <kuba@sourced.tech >
2019-03-14 16:09:25 +01:00
5adfee5761
Do not return empty lang.
...
It's better to return any potential candidate than nothing.
Signed-off-by: kuba-- <kuba@sourced.tech >
2019-03-14 14:08:19 +01:00
e067e45044
Merge pull request #202 from bzz/go-11
...
ci: add go 1.11
2019-02-21 11:49:23 +01:00
3a6d42b39a
doc: fix spelling
...
Co-Authored-By: bzz <bzz@users.noreply.github.com >
2019-02-21 09:33:17 +01:00
baefa18475
gen: compare generated code to gold ignoring whitespaces
...
Reason is that gofmt can change between versions e.g
see https://go-review.googlesource.com/c/go/+/122295/
and this would avoid breaking tests and edit wars
Signed-off-by: Alexander Bezzubov <bzz@apache.org >
2019-02-20 23:22:02 +01:00
c8e0f75132
test: make gen test output less verbose
...
Signed-off-by: Alexander Bezzubov <bzz@apache.org >
2019-02-20 23:22:02 +01:00
01633d410f
ci: make java release use latest go code
...
Signed-off-by: Alexander Bezzubov <bzz@apache.org >
2019-02-20 23:22:01 +01:00
f42b68fe70
ci: multiple go versions in build matrix
...
Mostly affects enry-java release, now using 1.11
Signed-off-by: Alexander Bezzubov <bzz@apache.org >
2019-02-20 23:22:01 +01:00
3499750785
Sync to linguist 7.2.0: heuristics.yml support ( #189 )
...
Sync \w Github Linguist v7.2.0
Includes new way of handling `heuristics.yml` and
all `./data/*` re-generated using Github Linguist [v7.2.0](https://github.com/github/linguist/releases/tag/v7.2.0 )
release tag.
- many new languages
- better vendoring detection
- update doc on update&known issues.
2019-02-14 12:47:45 +01:00
13d3d66d37
refactoring: remove un-used code, add go doc, fix ci ( #199 )
...
Refactoring, consisting of
- remove unused method `isAuxiliaryLanguage` and `FileCountList`
in order to reduce public API surfaces (go/java)
- add GoDoc to public APIs
- ci: java profile use latest go src
It also now mimics https://docs.travis-ci.com/user/languages/go/#go-import-path
for non-go build image, as code relies on internal imports.
TEST PLAN:
- make test
2019-02-05 22:54:14 +01:00
fe18dc0830
Merge pull request #198 from creachadair/indocumentado
...
Add documentation comments to package tokenizer.
2019-01-29 21:18:56 +01:00
5245079744
Apply suggestions from review.
...
Signed-off-by: M. J. Fromberger <michael.j.fromberger@gmail.com >
2019-01-29 11:28:44 -08:00
dabb41527f
Apply suggestions from review.
...
Signed-off-by: M. J. Fromberger <michael.j.fromberger@gmail.com >
2019-01-29 11:28:42 -08:00
4027b494b3
Add documentation comments to package tokenizer.
...
Although this package is internal, it still exports an API and deserves some
comments. Serves in partial satisfaction of #195 .
Signed-off-by: M. J. Fromberger <michael.j.fromberger@gmail.com >
2019-01-29 11:18:52 -08:00
260dcfe002
Merge pull request #197 from creachadair/muckthebits
...
Prevent tokenization from modifying its input.
2019-01-29 11:18:06 -08:00
7d277b11de
Copy the tokenizer input to avoid modifying the caller's copy.
...
Addresses #196 . Several of the tokenizer's processing steps wind up editing the
source, and we don't want those changes to be observed by the caller, which may
use the source for other purposes afterward.
Signed-off-by: M. J. Fromberger <michael.j.fromberger@gmail.com >
2019-01-29 10:12:33 -08:00
169060e1cd
Add a test that tokenization does not modify the input.
...
At present this test fails, since the tokenizer replaces text in shared slices
of the input. A subsequent commit will fix that.
Signed-off-by: M. J. Fromberger <michael.j.fromberger@gmail.com >
2019-01-29 10:03:09 -08:00
3748186e13
Merge pull request #187 from creachadair/cleanup
...
Remove an unnecessary helper function.
2019-01-23 06:59:00 -08:00
8fcadc60dc
Remove an unnecessary helper function.
...
The writeStringLn function repeats what fmt.Fprintln already does. Since this
package already imports fmt, removing it reduces mass.
Signed-off-by: M. J. Fromberger <michael.j.fromberger@gmail.com >
2019-01-08 08:46:36 -08:00
f28fc12300
Merge pull request #184 from bzz/maintenance/update-benchmark
...
Update benchmarks to latest Enry and Github-Linguist
2018-12-28 12:03:17 +01:00
890afc400f
bench: update enry v1.6.7 vs linguist v7.1.3
...
Signed-off-by: Alexander Bezzubov <bzz@apache.org >
2018-12-27 14:50:48 +01:00
db21cd6557
doc: add instructions for reproducing benchmarks
...
Signed-off-by: Alexander Bezzubov <bzz@apache.org >
2018-12-27 14:50:43 +01:00
ec96325d13
bench: small refactoring extracting table
...
Signed-off-by: Alexander Bezzubov <bzz@apache.org >
2018-12-27 14:50:33 +01:00
ef50154395
Maintenance: batch of minor changes ( #183 )
...
* exclude build artifacts from git
* build: simplify building by using src-d/ci
* bench: simplify&fix shell runners
* build: simplify benchmarks* targets
* test: remove dependency on single test suite
* doc: rel image link + linguist cli difference highlight
* suggestions from code review
* bench: add fail fast to all shell runners
Signed-off-by: Alexander Bezzubov <bzz@apache.org >
2018-12-27 11:55:34 +01:00
84b9e638a4
Merge pull request #179 from src-d/campoy-patch-1
...
Include reference to source{d} Engine
2018-11-08 16:55:41 -08:00
760c19cb19
Include reference to source{d} Engine
...
Signed-off-by: Francesc Campoy <campoy@golang.org >
2018-11-07 12:13:42 -08:00
abaedb962b
Rectified stray typos in the main README file ( #174 )
...
* Fixe typo in the README file.
Signed-off-by: Silvia O'Dwyer <silviaodwyer119@yahoo.ie >
2018-10-29 23:09:42 -04:00
2596f2b62b
Merge pull request #173 from bzz/switch-maintainer
...
Switch maintainer
2018-10-25 10:10:54 +02:00
da85758336
maintainer: Denys -> Alex
...
Signed-off-by: Alexander Bezzubov <bzz@apache.org >
2018-10-24 21:25:57 +02:00
8953e0e19a
Merge pull request #165 from pratik97/Mybranch
...
#163 - Added version automation
2018-10-24 19:02:30 +02:00