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

Add documentation to disable ktlint No Unit returns errors #1502

Closed
Tylos opened this issue Jul 2, 2019 · 0 comments · Fixed by #1521
Closed

Add documentation to disable ktlint No Unit returns errors #1502

Tylos opened this issue Jul 2, 2019 · 0 comments · Fixed by #1521
Assignees

Comments

@Tylos
Copy link
Contributor

Tylos commented Jul 2, 2019

References

Related to #1386 and #1385 effort to document how to disable different linting errors that do not make sense for Arrow

Description

Apart from the IntellIJ IDEA Inspection, Ktlint also complaints about Unit return types regardless of where they're used. That's also something we could suggest users how to disable on their ktlint configurations, since from an FP perspective it's always important to declare return types regardless of what they are, so it's explicit that the function has side effects inside

However, at the moment Ktlint does not support disabling rules. There is current work in progress to include an easy way to disable rules at a project level which would solve the problem in this issues - pinterest/ktlint#503

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant