-
Notifications
You must be signed in to change notification settings - Fork 33
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
Address all hlint suggestions #51
Comments
Change Manager: Confirmed that the hlint suggestions are produced. |
Technical Lead: Confirmed that the issue should be addressed. |
Technical Lead: Issue scheduled for fixing in Ogma 1.0.4. Fix assigned to: @ivanperez-keera . |
We purposefully use data instead of newtype to make all related modules as similar as possible. This is a conscious choice. This commit adds rules to the hlint configuration files so that those specific suggestions are ignored.
We purposefully use (id <$>) because conceptually there is a transformation taking place, but in this case it would be the identity. This is (almost) a coincidence, and may not be like that in the future. We indicate this fact with the use of a transformation function in the code, although such function in this case does nothing. This commit adds an annotation so that hlint ignores that specific suggestion, and a comment to explain the decision.
Change Manager: Verified that:
|
Change Manager: Implementation ready to be merged. |
Description
As part of our own internal testing and style guides, we recommend the use of different static analysis tools, which are currently reporting a number of suggestions. HLint is suggesting the use of
newtype
instead ofdata
, and the removal offmap id
in a number of places.We should address these issues, either by applying hlint's suggestion, or by adding annotations or configuration settings that make hlint ignore those cases.
Type
Additional context
None.
Requester
Method to check presence of bug
The following bash command will print "Success" if there are no hlint suggestions, and nothing otherwise.
Expected result
The command above should print "Success".
Desired result
The command above should print "Success".
Proposed solution
Evaluate each suggestion, and either accept it or make hlint ignore it by modifying the .hlint.yaml file or adding an annotation to the code.
Further notes
None.
The text was updated successfully, but these errors were encountered: