Skip to content

Commit

Permalink
Merge pull request #14 from loeffel-io/bugfix/loeffel-io/memory-issue
Browse files Browse the repository at this point in the history
fix memory issue
  • Loading branch information
loeffel-io authored Mar 17, 2020
2 parents f08fe98 + 75fd454 commit 6b3655a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,19 +68,19 @@ ignore:
### MacOS
```bash
curl -sL -o ls-lint https://github.com/loeffel-io/ls-lint/releases/download/v1.5.0/ls-lint-darwin && chmod +x ls-lint && ./ls-lint
curl -sL -o ls-lint https://github.com/loeffel-io/ls-lint/releases/download/v1.5.1/ls-lint-darwin && chmod +x ls-lint && ./ls-lint
```

### Linux

```bash
curl -sL -o ls-lint https://github.com/loeffel-io/ls-lint/releases/download/v1.5.0/ls-lint-linux && chmod +x ls-lint && ./ls-lint
curl -sL -o ls-lint https://github.com/loeffel-io/ls-lint/releases/download/v1.5.1/ls-lint-linux && chmod +x ls-lint && ./ls-lint
```

### Windows

```bash
# (!) First download the .exe from https://github.com/loeffel-io/ls-lint/releases/download/v1.5.0/ls-lint-windows.exe
# (!) First download the .exe from https://github.com/loeffel-io/ls-lint/releases/download/v1.5.1/ls-lint-windows.exe
ls-lint-windows.exe
```

Expand Down
3 changes: 3 additions & 0 deletions linter.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ func (linter *Linter) validateDir(config *Config, index index, path string) erro
}

for _, rule := range rules[dir] {
rule := rule
g.Go(func() error {
valid, err := rule.Validate(basename)

Expand Down Expand Up @@ -87,6 +88,7 @@ func (linter *Linter) validateFile(config *Config, index index, entrypoint strin

if _, exists := rules[ext]; exists {
for _, rule := range rules[ext] {
rule := rule
g.Go(func() error {
valid, err := rule.Validate(withoutExt)

Expand Down Expand Up @@ -132,6 +134,7 @@ func (linter *Linter) Run(config *Config) error {
}

for entrypoint := range ls {
entrypoint := entrypoint
g.Go(func() error {
return filepath.Walk(entrypoint.(string), func(path string, info os.FileInfo, err error) error {
if config.shouldIgnore(ignoreIndex, path) {
Expand Down
2 changes: 1 addition & 1 deletion npm/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ls-lint/ls-lint",
"version": "1.5.0",
"version": "1.5.1",
"description": "The 64-bit binary for ls-lint",
"repository": "https://github.com/loeffel-io/ls-lint",
"license": "MIT",
Expand Down

0 comments on commit 6b3655a

Please sign in to comment.