mirror of
https://github.com/ralsina/tartrazine.git
synced 2025-09-14 17:43:52 +00:00
Merge pull request #54 from dpaz/issue52
Moved commit.go to the data directory
This commit is contained in:
@@ -8,6 +8,8 @@ import (
|
|||||||
"path/filepath"
|
"path/filepath"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
|
"gopkg.in/src-d/enry.v1/data"
|
||||||
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"github.com/stretchr/testify/suite"
|
"github.com/stretchr/testify/suite"
|
||||||
)
|
)
|
||||||
@@ -38,7 +40,7 @@ func (s *EnryTestSuite) SetupSuite() {
|
|||||||
err = os.Chdir(s.repoLinguist)
|
err = os.Chdir(s.repoLinguist)
|
||||||
assert.NoError(s.T(), err)
|
assert.NoError(s.T(), err)
|
||||||
|
|
||||||
cmd = exec.Command("git", "checkout", linguistCommit)
|
cmd = exec.Command("git", "checkout", data.LinguistCommit)
|
||||||
err = cmd.Run()
|
err = cmd.Run()
|
||||||
assert.NoError(s.T(), err)
|
assert.NoError(s.T(), err)
|
||||||
|
|
||||||
|
@@ -2,7 +2,7 @@ package data
|
|||||||
|
|
||||||
// CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/enry.v1/internal/code-generator
|
// CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/enry.v1/internal/code-generator
|
||||||
// THIS FILE SHOULD NOT BE EDITED BY HAND
|
// THIS FILE SHOULD NOT BE EDITED BY HAND
|
||||||
// Extracted from github/linguist commit: b6460f8ed6b249281ada099ca28bd8f1230b8892
|
// Extracted from github/linguist commit: d5c8db3fb91963c4b2762ca2ea2ff7cfac109f68
|
||||||
|
|
||||||
// LanguagesByAlias keeps alias for different languages and use the name of the languages as an alias too.
|
// LanguagesByAlias keeps alias for different languages and use the name of the languages as an alias too.
|
||||||
// All the keys (alias or not) are written in lower case and the whitespaces has been replaced by underscores.
|
// All the keys (alias or not) are written in lower case and the whitespaces has been replaced by underscores.
|
||||||
@@ -163,6 +163,7 @@ var LanguagesByAlias = map[string]string{
|
|||||||
"dylan": "Dylan",
|
"dylan": "Dylan",
|
||||||
"e": "E",
|
"e": "E",
|
||||||
"eagle": "Eagle",
|
"eagle": "Eagle",
|
||||||
|
"easybuild": "Easybuild",
|
||||||
"ebnf": "EBNF",
|
"ebnf": "EBNF",
|
||||||
"ec": "eC",
|
"ec": "eC",
|
||||||
"ecere_projects": "Ecere Projects",
|
"ecere_projects": "Ecere Projects",
|
||||||
@@ -438,7 +439,7 @@ var LanguagesByAlias = map[string]string{
|
|||||||
"pawn": "PAWN",
|
"pawn": "PAWN",
|
||||||
"pep8": "Pep8",
|
"pep8": "Pep8",
|
||||||
"perl": "Perl",
|
"perl": "Perl",
|
||||||
"perl6": "Perl6",
|
"perl_6": "Perl 6",
|
||||||
"php": "PHP",
|
"php": "PHP",
|
||||||
"pic": "Pic",
|
"pic": "Pic",
|
||||||
"pickle": "Pickle",
|
"pickle": "Pickle",
|
||||||
@@ -508,6 +509,7 @@ var LanguagesByAlias = map[string]string{
|
|||||||
"restructuredtext": "reStructuredText",
|
"restructuredtext": "reStructuredText",
|
||||||
"rexx": "REXX",
|
"rexx": "REXX",
|
||||||
"rhtml": "RHTML",
|
"rhtml": "RHTML",
|
||||||
|
"ring": "Ring",
|
||||||
"rmarkdown": "RMarkdown",
|
"rmarkdown": "RMarkdown",
|
||||||
"robotframework": "RobotFramework",
|
"robotframework": "RobotFramework",
|
||||||
"roff": "Roff",
|
"roff": "Roff",
|
||||||
|
@@ -1,8 +1,8 @@
|
|||||||
package enry
|
package data
|
||||||
|
|
||||||
// CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/enry.v1/internal/code-generator
|
// CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/enry.v1/internal/code-generator
|
||||||
// THIS FILE SHOULD NOT BE EDITED BY HAND
|
// THIS FILE SHOULD NOT BE EDITED BY HAND
|
||||||
// Extracted from github/linguist commit: b6460f8ed6b249281ada099ca28bd8f1230b8892
|
// Extracted from github/linguist commit: d5c8db3fb91963c4b2762ca2ea2ff7cfac109f68
|
||||||
|
|
||||||
// linguist's commit from which files were generated.
|
// linguist's commit from which files were generated.
|
||||||
var linguistCommit = "b6460f8ed6b249281ada099ca28bd8f1230b8892"
|
var LinguistCommit = "d5c8db3fb91963c4b2762ca2ea2ff7cfac109f68"
|
@@ -2,7 +2,7 @@ package data
|
|||||||
|
|
||||||
// CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/enry.v1/internal/code-generator
|
// CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/enry.v1/internal/code-generator
|
||||||
// THIS FILE SHOULD NOT BE EDITED BY HAND
|
// THIS FILE SHOULD NOT BE EDITED BY HAND
|
||||||
// Extracted from github/linguist commit: b6460f8ed6b249281ada099ca28bd8f1230b8892
|
// Extracted from github/linguist commit: d5c8db3fb91963c4b2762ca2ea2ff7cfac109f68
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"regexp"
|
"regexp"
|
||||||
|
@@ -2,7 +2,7 @@ package data
|
|||||||
|
|
||||||
// CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/enry.v1/internal/code-generator
|
// CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/enry.v1/internal/code-generator
|
||||||
// THIS FILE SHOULD NOT BE EDITED BY HAND
|
// THIS FILE SHOULD NOT BE EDITED BY HAND
|
||||||
// Extracted from github/linguist commit: b6460f8ed6b249281ada099ca28bd8f1230b8892
|
// Extracted from github/linguist commit: d5c8db3fb91963c4b2762ca2ea2ff7cfac109f68
|
||||||
|
|
||||||
import "gopkg.in/toqueteos/substring.v1"
|
import "gopkg.in/toqueteos/substring.v1"
|
||||||
|
|
||||||
|
@@ -2,7 +2,7 @@ package data
|
|||||||
|
|
||||||
// CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/enry.v1/internal/code-generator
|
// CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/enry.v1/internal/code-generator
|
||||||
// THIS FILE SHOULD NOT BE EDITED BY HAND
|
// THIS FILE SHOULD NOT BE EDITED BY HAND
|
||||||
// Extracted from github/linguist commit: b6460f8ed6b249281ada099ca28bd8f1230b8892
|
// Extracted from github/linguist commit: d5c8db3fb91963c4b2762ca2ea2ff7cfac109f68
|
||||||
|
|
||||||
var LanguagesByExtension = map[string][]string{
|
var LanguagesByExtension = map[string][]string{
|
||||||
".1": {"Roff"},
|
".1": {"Roff"},
|
||||||
@@ -227,6 +227,7 @@ var LanguagesByExtension = map[string][]string{
|
|||||||
".dylan": {"Dylan"},
|
".dylan": {"Dylan"},
|
||||||
".e": {"E", "Eiffel"},
|
".e": {"E", "Eiffel"},
|
||||||
".eam.fs": {"Formatted"},
|
".eam.fs": {"Formatted"},
|
||||||
|
".eb": {"Easybuild"},
|
||||||
".ebnf": {"EBNF"},
|
".ebnf": {"EBNF"},
|
||||||
".ebuild": {"Gentoo Ebuild"},
|
".ebuild": {"Gentoo Ebuild"},
|
||||||
".ec": {"eC"},
|
".ec": {"eC"},
|
||||||
@@ -723,6 +724,7 @@ var LanguagesByExtension = map[string][]string{
|
|||||||
".rexx": {"REXX"},
|
".rexx": {"REXX"},
|
||||||
".rg": {"Rouge"},
|
".rg": {"Rouge"},
|
||||||
".rhtml": {"RHTML"},
|
".rhtml": {"RHTML"},
|
||||||
|
".ring": {"Ring"},
|
||||||
".rkt": {"Racket"},
|
".rkt": {"Racket"},
|
||||||
".rktd": {"Racket"},
|
".rktd": {"Racket"},
|
||||||
".rktl": {"Racket"},
|
".rktl": {"Racket"},
|
||||||
@@ -1104,6 +1106,7 @@ var ExtensionsByLanguage = map[string][]string{
|
|||||||
"EJS": {".ejs"},
|
"EJS": {".ejs"},
|
||||||
"EQ": {".eq"},
|
"EQ": {".eq"},
|
||||||
"Eagle": {".sch", ".brd"},
|
"Eagle": {".sch", ".brd"},
|
||||||
|
"Easybuild": {".eb"},
|
||||||
"Ecere Projects": {".epj"},
|
"Ecere Projects": {".epj"},
|
||||||
"Eiffel": {".e"},
|
"Eiffel": {".e"},
|
||||||
"Elixir": {".ex", ".exs"},
|
"Elixir": {".ex", ".exs"},
|
||||||
@@ -1341,6 +1344,7 @@ var ExtensionsByLanguage = map[string][]string{
|
|||||||
"Regular Expression": {".regexp", ".regex"},
|
"Regular Expression": {".regexp", ".regex"},
|
||||||
"Ren'Py": {".rpy"},
|
"Ren'Py": {".rpy"},
|
||||||
"RenderScript": {".rs", ".rsh"},
|
"RenderScript": {".rs", ".rsh"},
|
||||||
|
"Ring": {".ring"},
|
||||||
"RobotFramework": {".robot"},
|
"RobotFramework": {".robot"},
|
||||||
"Roff": {".man", ".1", ".1in", ".1m", ".1x", ".2", ".3", ".3in", ".3m", ".3qt", ".3x", ".4", ".5", ".6", ".7", ".8", ".9", ".l", ".me", ".ms", ".n", ".nr", ".rno", ".roff", ".tmac"},
|
"Roff": {".man", ".1", ".1in", ".1m", ".1x", ".2", ".3", ".3in", ".3m", ".3qt", ".3x", ".4", ".5", ".6", ".7", ".8", ".9", ".l", ".me", ".ms", ".n", ".nr", ".rno", ".roff", ".tmac"},
|
||||||
"Rouge": {".rg"},
|
"Rouge": {".rg"},
|
||||||
|
@@ -2,7 +2,7 @@ package data
|
|||||||
|
|
||||||
// CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/enry.v1/internal/code-generator
|
// CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/enry.v1/internal/code-generator
|
||||||
// THIS FILE SHOULD NOT BE EDITED BY HAND
|
// THIS FILE SHOULD NOT BE EDITED BY HAND
|
||||||
// Extracted from github/linguist commit: b6460f8ed6b249281ada099ca28bd8f1230b8892
|
// Extracted from github/linguist commit: d5c8db3fb91963c4b2762ca2ea2ff7cfac109f68
|
||||||
|
|
||||||
var LanguagesByFilename = map[string][]string{
|
var LanguagesByFilename = map[string][]string{
|
||||||
".Rprofile": {"R"},
|
".Rprofile": {"R"},
|
||||||
|
1201
data/frequencies.go
1201
data/frequencies.go
File diff suppressed because it is too large
Load Diff
@@ -2,7 +2,7 @@ package data
|
|||||||
|
|
||||||
// CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/enry.v1/internal/code-generator
|
// CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/enry.v1/internal/code-generator
|
||||||
// THIS FILE SHOULD NOT BE EDITED BY HAND
|
// THIS FILE SHOULD NOT BE EDITED BY HAND
|
||||||
// Extracted from github/linguist commit: b6460f8ed6b249281ada099ca28bd8f1230b8892
|
// Extracted from github/linguist commit: d5c8db3fb91963c4b2762ca2ea2ff7cfac109f68
|
||||||
|
|
||||||
var LanguagesByInterpreter = map[string][]string{
|
var LanguagesByInterpreter = map[string][]string{
|
||||||
"Rscript": {"R"},
|
"Rscript": {"R"},
|
||||||
|
@@ -2,7 +2,7 @@ package data
|
|||||||
|
|
||||||
// CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/enry.v1/internal/code-generator
|
// CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/enry.v1/internal/code-generator
|
||||||
// THIS FILE SHOULD NOT BE EDITED BY HAND
|
// THIS FILE SHOULD NOT BE EDITED BY HAND
|
||||||
// Extracted from github/linguist commit: b6460f8ed6b249281ada099ca28bd8f1230b8892
|
// Extracted from github/linguist commit: d5c8db3fb91963c4b2762ca2ea2ff7cfac109f68
|
||||||
|
|
||||||
var LanguagesType = map[string]int{
|
var LanguagesType = map[string]int{
|
||||||
"1C Enterprise": 2,
|
"1C Enterprise": 2,
|
||||||
@@ -107,6 +107,7 @@ var LanguagesType = map[string]int{
|
|||||||
"EJS": 3,
|
"EJS": 3,
|
||||||
"EQ": 2,
|
"EQ": 2,
|
||||||
"Eagle": 3,
|
"Eagle": 3,
|
||||||
|
"Easybuild": 1,
|
||||||
"Ecere Projects": 1,
|
"Ecere Projects": 1,
|
||||||
"Eiffel": 2,
|
"Eiffel": 2,
|
||||||
"Elixir": 2,
|
"Elixir": 2,
|
||||||
@@ -349,6 +350,7 @@ var LanguagesType = map[string]int{
|
|||||||
"Regular Expression": 1,
|
"Regular Expression": 1,
|
||||||
"Ren'Py": 2,
|
"Ren'Py": 2,
|
||||||
"RenderScript": 2,
|
"RenderScript": 2,
|
||||||
|
"Ring": 2,
|
||||||
"RobotFramework": 2,
|
"RobotFramework": 2,
|
||||||
"Roff": 3,
|
"Roff": 3,
|
||||||
"Rouge": 2,
|
"Rouge": 2,
|
||||||
|
@@ -2,7 +2,7 @@ package data
|
|||||||
|
|
||||||
// CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/enry.v1/internal/code-generator
|
// CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/enry.v1/internal/code-generator
|
||||||
// THIS FILE SHOULD NOT BE EDITED BY HAND
|
// THIS FILE SHOULD NOT BE EDITED BY HAND
|
||||||
// Extracted from github/linguist commit: b6460f8ed6b249281ada099ca28bd8f1230b8892
|
// Extracted from github/linguist commit: d5c8db3fb91963c4b2762ca2ea2ff7cfac109f68
|
||||||
|
|
||||||
import "gopkg.in/toqueteos/substring.v1"
|
import "gopkg.in/toqueteos/substring.v1"
|
||||||
|
|
||||||
@@ -35,6 +35,7 @@ var VendorMatchers = substring.Or(
|
|||||||
substring.Regexp(`(^|/)font-awesome\.(css|less|scss|styl)$`),
|
substring.Regexp(`(^|/)font-awesome\.(css|less|scss|styl)$`),
|
||||||
substring.Regexp(`(^|/)foundation\.(css|less|scss|styl)$`),
|
substring.Regexp(`(^|/)foundation\.(css|less|scss|styl)$`),
|
||||||
substring.Regexp(`(^|/)normalize\.(css|less|scss|styl)$`),
|
substring.Regexp(`(^|/)normalize\.(css|less|scss|styl)$`),
|
||||||
|
substring.Regexp(`(^|/)skeleton\.(css|less|scss|styl)$`),
|
||||||
substring.Regexp(`(^|/)[Bb]ourbon/.*\.(css|less|scss|styl)$`),
|
substring.Regexp(`(^|/)[Bb]ourbon/.*\.(css|less|scss|styl)$`),
|
||||||
substring.Regexp(`(^|/)animate\.(css|less|scss|styl)$`),
|
substring.Regexp(`(^|/)animate\.(css|less|scss|styl)$`),
|
||||||
substring.Regexp(`third[-_]?party/`),
|
substring.Regexp(`third[-_]?party/`),
|
||||||
|
@@ -1,8 +1,8 @@
|
|||||||
package enry
|
package data
|
||||||
|
|
||||||
// CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/enry.v1/internal/code-generator
|
// CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/enry.v1/internal/code-generator
|
||||||
// THIS FILE SHOULD NOT BE EDITED BY HAND
|
// THIS FILE SHOULD NOT BE EDITED BY HAND
|
||||||
// Extracted from github/linguist commit: {{ . }}
|
// Extracted from github/linguist commit: {{ . }}
|
||||||
|
|
||||||
// linguist's commit from which files were generated.
|
// linguist's commit from which files were generated.
|
||||||
var linguistCommit = "{{- . -}}"
|
var LinguistCommit = "{{- . -}}"
|
||||||
|
@@ -1,8 +1,8 @@
|
|||||||
package enry
|
package data
|
||||||
|
|
||||||
// CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/enry.v1/internal/code-generator
|
// CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/enry.v1/internal/code-generator
|
||||||
// THIS FILE SHOULD NOT BE EDITED BY HAND
|
// THIS FILE SHOULD NOT BE EDITED BY HAND
|
||||||
// Extracted from github/linguist commit: b6460f8ed6b249281ada099ca28bd8f1230b8892
|
// Extracted from github/linguist commit: b6460f8ed6b249281ada099ca28bd8f1230b8892
|
||||||
|
|
||||||
// linguist's commit from which files were generated.
|
// linguist's commit from which files were generated.
|
||||||
var linguistCommit = "b6460f8ed6b249281ada099ca28bd8f1230b8892"
|
var LinguistCommit = "b6460f8ed6b249281ada099ca28bd8f1230b8892"
|
||||||
|
@@ -63,7 +63,7 @@ const (
|
|||||||
frequenciesTmpl = "frequencies.go.tmpl"
|
frequenciesTmpl = "frequencies.go.tmpl"
|
||||||
|
|
||||||
// commit.go generation
|
// commit.go generation
|
||||||
commitFile = "commit.go"
|
commitFile = "data/commit.go"
|
||||||
commitTmplPath = "internal/code-generator/assets/commit.go.tmpl"
|
commitTmplPath = "internal/code-generator/assets/commit.go.tmpl"
|
||||||
commitTmpl = "commit.go.tmpl"
|
commitTmpl = "commit.go.tmpl"
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user