Commit Graph

601 Commits

Author SHA1 Message Date
David Paz
9fd2d1e8cd added codeCov integration 2017-06-21 10:45:27 +02:00
Alexander Bezzubov
1fee327e08 Add development instructions 2017-06-21 08:22:22 +02:00
Máximo Cuadros
ad46ae50f8 Merge pull request #42 from dpaz/issue40
avoid return code is non-zero in case of warnings
2017-06-20 11:50:02 +02:00
Máximo Cuadros
6a4eb75cfa Merge pull request #44 from dpaz/issue43
Solved the issue #43
2017-06-20 11:48:56 +02:00
David Paz
17a6f3dc89 Changed commit ref to .git/HEAD 2017-06-19 11:20:24 +02:00
David Paz
8745abfca4 Remove empty line 2017-06-19 10:14:13 +02:00
David Paz
47acd8841c Deleted log fatal 2017-06-16 13:07:32 +02:00
Santiago M. Mola
91cee517c5 Merge pull request #34 from mcarmonaa/improvement-detection
Improved detection and changed strategies' signature
2017-06-15 13:17:22 +02:00
Manuel Carmona
bea1bc3af8 split GetLanguage into GetLanguage and GetLanguages 2017-06-15 13:02:59 +02:00
Manuel Carmona
beda5b73e7 changed signatures for strategies 2017-06-15 10:07:23 +02:00
Manuel Carmona
5f0e92b1a8 changed test LinguistCorpus to use GetLanguage and fail if not assert 2017-06-15 10:07:23 +02:00
Manuel Carmona
1fc8cf7a5d changes to improve detection accuracy 2017-06-15 10:07:22 +02:00
Santiago M. Mola
ef03de7adf Merge pull request #38 from vmarkovtsev/patch-1
Rename simple-linguist to enry
2017-06-15 09:56:20 +02:00
Vadim Markovtsev
788de6a3b5 Rename simple-linguist to enry 2017-06-14 12:43:26 +02:00
Santiago M. Mola
7b6869e2a2 Merge pull request #36 from mcarmonaa/improvement-renamepackage
renamed package and cli to enry
2017-06-13 14:49:02 +02:00
Manuel Carmona
ba53e10c7b renamed package and cli to enry 2017-06-13 14:18:23 +02:00
Máximo Cuadros
303099748a Merge pull request #33 from src-d/eiso-patch-1
Changing the simple-linguist reference
2017-06-10 07:32:21 +02:00
Eiso Kant
0d9349e5bf Create README.md
Small grammar fixes
2017-06-09 20:27:37 +02:00
Eiso Kant
d7bf0dc791 Changing the simple-linguist reference
@mcuadros
2017-06-09 20:25:15 +02:00
Santiago M. Mola
c91365f7c1 Merge pull request #31 from mcuadros/renamed
project renamed to enry
2017-06-08 09:56:22 +02:00
Máximo Cuadros
3a470f617c project renamed to enry 2017-06-08 09:27:27 +02:00
Máximo Cuadros
c37fe182d4 Merge pull request #30 from mcarmonaa/improvement-rearrange
Improvement rearranged code
2017-06-08 09:01:51 +02:00
Manuel Carmona
139ddcbeec fixed cli to skip some type of directories and files 2017-06-06 11:31:05 +02:00
Manuel Carmona
0d5dff1979 changes in the API, ready to version 2 2017-06-06 11:30:23 +02:00
Manuel Carmona
5b304524d1 Rearranged code 2017-06-02 09:33:55 +02:00
Santiago M. Mola
d9c959522f Merge pull request #28 from mcarmonaa/classifier
Added Classifier as the last step in detection strategies
2017-06-01 10:07:50 +02:00
Manuel Carmona
f8b8f7f5c4 Added classifier to the sequence of strategies 2017-05-30 09:07:58 +02:00
Manuel Carmona
fcf30a07c8 Added frequencies.go generation 2017-05-29 12:19:37 +02:00
Manuel Carmona
a63c8bdf81 files changed due to a new commit in github/linguist 2017-05-26 09:05:33 +02:00
Santiago M. Mola
708f2e40bf Merge pull request #26 from mcarmonaa/modelines
Added Modeline detection strategy
2017-05-22 12:34:47 +02:00
Manuel Carmona
3d867abac3 Added modeline strategy 2017-05-11 10:09:02 +02:00
Manuel Carmona
45314b4903 Added all the necessary to do GetLanguageByAlias functionality works 2017-05-08 11:34:00 +02:00
Santiago M. Mola
1cb715ae26 Merge pull request #23 from mcarmonaa/filenames
Added language detection by filename strategy
2017-05-04 17:24:18 +02:00
Santiago M. Mola
7920039c90 Merge pull request #22 from mcarmonaa/shebang
Added language detection by shebang functionality
2017-05-04 15:58:31 +02:00
Manuel Carmona
6f3ad6d30d separated GetLanguageType and languagesType map in different files due to a better generation files 2017-05-03 12:17:54 +02:00
Manuel Carmona
cbf44205e0 fixed GetLanguageType to return Unknown when language is not found in languagesType map 2017-05-03 10:48:28 +02:00
Manuel Carmona
664afe48d4 fixed GetLanguageByContent returned value when there is not a function matcher for the extension 2017-05-03 10:37:34 +02:00
Manuel Carmona
28dc452853 added some corner cases to content.go generation tests 2017-04-27 17:32:42 +02:00
Manuel Carmona
63d4d9bf24 removed templates from test_files directory to use templates from assets directory in tests 2017-04-27 17:32:42 +02:00
Manuel Carmona
7b7157e061 shebang #! now is a constant 2017-04-27 17:32:42 +02:00
Manuel Carmona
f63a25d794 all related to extension strategy renamed to reference it 2017-04-27 17:32:42 +02:00
Manuel Carmona
df60eab1ad added language detection by filename strategy 2017-04-27 17:32:39 +02:00
Manuel Carmona
645bdd7331 added filenames_map.go generation
languagesByFilename now is a map[string]string
2017-04-27 17:30:57 +02:00
Manuel Carmona
f45efec5fb GetLanguageType and Type constants have comments now
type.go comments generated from type.go.tmpl
2017-04-27 16:40:28 +02:00
Manuel Carmona
a029941876 slinguist cli uses GetLanguage
cli handles error returned by filepath.Walk
2017-04-27 16:40:23 +02:00
Manuel Carmona
1b8d51419d GetLanguage follows strategies shebang, extension, content 2017-04-27 16:40:23 +02:00
Manuel Carmona
c6d74bca66 added shebang functionality
fixed autogenerated comment

changed constant types names

GetLanguageByShebang doesn't print errors

languageInfo struct change to have only necessary fields

GetLanguageByShebang has a comment now
2017-04-27 16:40:08 +02:00
Manuel Carmona
2644a7c8da added interpreters_map.go generation
fixed Interpreters comment
2017-04-27 16:39:54 +02:00
Manuel Carmona
6ddbb79af0 changed generator_test.go to use only TestFromFile
modified *.test.yml to contain only necessary information

fixed white spaces

remove duplicated file languages.test.tmpl
2017-04-27 16:39:36 +02:00
Manuel Carmona
1bf555bc4c changed getAlphabeticalOrderedKeys to use sort.Strings 2017-04-27 16:35:23 +02:00