Skip to content

Commit 974b8ab

Browse files
committed
update verison, and fix PR comments
1 parent d8156b9 commit 974b8ab

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ Following languages are currently supported:
118118
* Rust
119119
* Scala
120120
* Php
121+
* Fortran
121122

122123
### Credits
123124

calculate/calculate_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ func TestIncludeExcludePatterns(t *testing.T) {
6868
touch(filepath.Join(basePath, "b.js"))
6969
touch(filepath.Join(basePath, "src", "svc.java"))
7070
touch(filepath.Join(basePath, "src", "api.js"))
71+
touch(filepath.Join(basePath, "src", "foo.F15"))
7172
touch(filepath.Join(basePath, "src", "nested", "util.js"))
7273
touch(filepath.Join(basePath, "src", "nested", "util2.f90"))
7374

@@ -90,7 +91,7 @@ func TestIncludeExcludePatterns(t *testing.T) {
9091
},
9192
)
9293
r.Nil(err)
93-
r.Equal(float64(5), filesCount)
94+
r.Equal(float64(6), filesCount)
9495

9596
filesCount, err = getFileCount(
9697
basePath,
@@ -99,6 +100,7 @@ func TestIncludeExcludePatterns(t *testing.T) {
99100
"*/*.java",
100101
"a.js",
101102
"**/nested/util2.f90",
103+
"**/foo.F15",
102104
},
103105
)
104106
r.Nil(err)

calculate/langauges.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ var languageToExtensions = map[Language][]string{
1717
"rust": {"rs"},
1818
"scala": {"scala", "sc"},
1919
"php": {"php", "phtml", "php3", "php4", "php5", "php7", "phps", "pht", "phar"},
20-
"fortran": {"f", "for", "f77", "f90", "f95", "f2k", "f03", "f03p", "f08", "f08p", "f15", "f20", "f18", "f2k", "f2003", "f2008", "f2015", "f2018", "fpp", "ftn", "f05", "F", "FOR", "F77", "F90", "F95", "F03", "F08", "F15", "F18", "F2K", "F2003", "F2015", "F2008", "F2018"},
20+
"fortran": {"f", "for", "f77", "f90", "f95", "f03", "f03p", "f08", "f08p", "f15", "f20", "f18", "f2k", "f2003", "f2008", "f2015", "f2018", "fpp", "ftn", "f05", "F", "FOR", "F77", "F90", "F95", "F03", "F08", "F15", "F18", "F2K", "F2003", "F2015", "F2008", "F2018", "FPP", "FTN"},
2121
}
2222

2323
var extensionToLanguage = make(map[Language]string)

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"github.com/urfave/cli/v2"
1212
)
1313

14-
const VERSION = "1.0.7"
14+
const VERSION = "1.0.8"
1515

1616
func main() {
1717
cli.AppHelpTemplate =

0 commit comments

Comments
 (0)