Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CONTRIBUTING: describe hlint and how it's used #6840

Merged
merged 1 commit into from
Nov 16, 2020
Merged

Conversation

tarleb
Copy link
Collaborator

@tarleb tarleb commented Nov 16, 2020

No description provided.

@tarleb tarleb added the docs label Nov 16, 2020
Copy link
Contributor

@alerque alerque left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Relatively minor English copy-editing.

CONTRIBUTING.md Outdated
Comment on lines 212 to 217
Pandoc uses [hlint] to identify opportunities for code improvements,
like redundant brackets, or pointing out unnecessary `Language`
extensions. However, there sometimes are cases where there are good
reasons to use code different from what hlint proposes. In these
cases, the respective warning should be disabled in file
`.hlint.yaml`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Pandoc uses [hlint] to identify opportunities for code improvements,
like redundant brackets, or pointing out unnecessary `Language`
extensions. However, there sometimes are cases where there are good
reasons to use code different from what hlint proposes. In these
cases, the respective warning should be disabled in file
`.hlint.yaml`.
Pandoc uses [hlint] to identify opportunities for code improvements
like redundant brackets or unnecessary `Language`
extensions. However, sometimes there are cases where there are good
reasons to use code different from what hlint proposes. In these
cases, the respective warning should be disabled in the file
`.hlint.yaml`.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, updated!

CONTRIBUTING.md Outdated
A good way to ensure no new hints are triggered is to use a git
[pre-commit hook], which runs hlint on all updated Haskell files
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
A good way to ensure no new hints are triggered is to use a git
[pre-commit hook], which runs hlint on all updated Haskell files
A good way to ensure no new warnings are introduced is to use a Git
[pre-commit hook] which runs hlint on all updated Haskell files

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@jgm jgm merged commit 0777e45 into jgm:master Nov 16, 2020
@tarleb tarleb deleted the document-hlint branch November 16, 2020 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants