Skip to content

Commit

Permalink
Remove outdated comment from README; fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-mckenna committed Feb 15, 2025
1 parent c7478e3 commit 330b9e4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,12 +184,6 @@ If you're using git, it may be helpful to only run hlint on changed files. This
{ git diff --diff-filter=d --name-only $(git merge-base HEAD origin/master) -- "***.hs" && git ls-files -o --exclude-standard -- "***.hs"; } | xargs hlint
```

Because hlint's `--refactor` option only works when you pass a single file, this approach is also helpful to enable refactoring many files in a single command:

```bash
{ git diff --diff-filter=d --name-only $(git merge-base HEAD origin/master) -- "***.hs" && git ls-files -o --exclude-standard -- "***.hs"; } | xargs -I file hlint file --refactor --refactor-options="--inplace --step"
```

### Configuration

#### Why doesn't HLint know the fixity for my custom !@%$ operator?
Expand Down
2 changes: 1 addition & 1 deletion src/HLint.hs
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ handleRefactoring ideas files cmd@CmdMain{..} = do
exitCode <- runRefactoring path file f enabledExtensions disabledExtensions cmdRefactorOptions

case exitCode of
ExitSuccess -> return ()
ExitSuccess -> pure ()
ExitFailure _ -> exitWith exitCode

handleReporting :: [Idea] -> Cmd -> IO ()
Expand Down

0 comments on commit 330b9e4

Please sign in to comment.