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
Manuel Carmona
5d61ca93d8
changed langs.go to unmarshal on a languageInfo struct
2017-04-17 11:55:29 +02:00
Santiago M. Mola
fee9949d1d
Merge pull request #19 from mcarmonaa/documentation
...
Added documentation_matchers.go generation
2017-04-17 11:54:33 +02:00
Manuel Carmona
ca3ae587f3
added documentation_matchers.go generation
2017-04-17 11:52:11 +02:00
Máximo Cuadros
d66beade34
Merge pull request #15 from mcarmonaa/vendor
...
utils.go generation from vendor.yml
2017-04-16 18:45:44 +02:00
Manuel Carmona
ef19999fe8
removed vendorRegexp and benchmarks
2017-04-10 12:40:52 +02:00
Manuel Carmona
65996506ae
fixed Vendor function's comment
2017-04-10 10:32:54 +02:00
Manuel Carmona
30772e4ea0
changed executeVendorTemplate's paramaters names
2017-04-10 10:27:44 +02:00
Manuel Carmona
f175c2d20b
changed Vendor function's comment and parameters names
2017-04-10 10:25:52 +02:00
Manuel Carmona
eaf473743b
changed function name executeUtilsTemplate to executeVendorTemplate
2017-04-10 10:20:38 +02:00
Manuel Carmona
e998b0ff2e
regexp for vendored files and directories are generated in vendor_matchers.go
2017-04-07 09:27:40 +02:00
Manuel Carmona
5e13b984c9
changed TestIsVendor
2017-04-06 18:04:47 +02:00
Manuel Carmona
13e7886a02
Added utils.go generation
2017-04-06 17:31:17 +02:00
Máximo Cuadros
dae33dc2b2
makefile: clone linguist from https
2017-04-05 19:27:19 +02:00
Máximo Cuadros
45f82764b0
travis
2017-04-05 19:21:01 +02:00
Máximo Cuadros
06d729c9db
LICENSE
2017-04-05 19:03:20 +02:00
Máximo Cuadros
d289a80e4c
Makefile go generate base
2017-04-05 18:38:42 +02:00
Máximo Cuadros
3a2a62baad
move srcd.works to gopkg.in
2017-04-05 18:26:58 +02:00
Máximo Cuadros
8c56cb5488
Merge pull request #14 from mcarmonaa/content
...
Added generator for content.go
2017-04-05 18:22:52 +02:00
Manuel Carmona
03c71a9b93
move content.go generation to internal
2017-04-05 18:15:27 +02:00
Manuel Carmona
ba22a0a243
content generator
2017-04-05 18:09:14 +02:00
Máximo Cuadros
f375b0df5e
Merge pull request #13 from mcarmonaa/languages
...
Added languages.go generator
2017-04-05 18:05:03 +02:00
Manuel Carmona
665b7475e3
code generation move to internal/code-generator
2017-04-05 17:49:58 +02:00
Manuel Carmona
d759fb8992
Added languages.go generator
2017-04-04 13:10:35 +02:00
Máximo Cuadros
d373b46535
README.md
2016-12-09 13:30:21 +01:00
Santiago M. Mola
dc55da2c6c
update imports to srcd.works/simple-linguist.v1 ( #11 )
2016-12-09 10:38:38 +01:00
Máximo Cuadros
2f971ef00d
Merge pull request #7 from smola/saltstack
...
fix .sls disambiguation (Scheme/SaltStack).
2016-09-15 17:58:00 +02:00
Santiago M. Mola
a4e77fd174
fix .sls disambiguation (Scheme/SaltStack).
2016-09-09 11:39:58 +02:00
Santiago M. Mola
fe1e10ece8
detect .cf as CFEngine. ( #8 )
2016-09-09 11:39:31 +02:00