Commit Graph

592 Commits

Author SHA1 Message Date
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
Santiago M. Mola
4ed60ad05b Merge pull request #21 from src-d/smola-patch-1
README: fix typo
2017-04-17 17:57:42 +02:00
Santiago M. Mola
fff26307fd README: fix typo 2017-04-17 17:57:18 +02:00
Santiago M. Mola
9d59e0046c Merge pull request #20 from mcarmonaa/types
added types.go generation
2017-04-17 12:13:01 +02:00
Manuel Carmona
c08b85120d created 'type Type int' for type.go generation 2017-04-17 12:08:54 +02:00
Manuel Carmona
b277944b2a fixed constant iotas 2017-04-17 12:00:50 +02:00
Manuel Carmona
92cd8c6976 fixed .php test 2017-04-17 11:55:29 +02:00
Manuel Carmona
25e835f5fd slice of languages arranged in alphabetical order 2017-04-17 11:55:29 +02:00
Manuel Carmona
9a9968dca0 added comments to constants 2017-04-17 11:55:29 +02:00
Manuel Carmona
ef39403555 added type.go generation 2017-04-17 11:55:29 +02:00