{"id":13684239,"url":"https://github.com/tmspzz/danger-hlint","last_synced_at":"2026-01-17T15:25:07.657Z","repository":{"id":62556673,"uuid":"96256541","full_name":"tmspzz/danger-hlint","owner":"tmspzz","description":"A Danger plugin for Hlint - https://rubygems.org/gems/danger-hlint","archived":false,"fork":false,"pushed_at":"2019-04-24T08:03:51.000Z","size":21,"stargazers_count":6,"open_issues_count":1,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-01-14T10:43:23.049Z","etag":null,"topics":["danger","haskell","hlint"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tmspzz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-07-04T22:19:14.000Z","updated_at":"2022-02-11T15:24:31.000Z","dependencies_parsed_at":"2022-11-03T06:15:19.258Z","dependency_job_id":null,"html_url":"https://github.com/tmspzz/danger-hlint","commit_stats":null,"previous_names":["blender/danger-hlint"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/tmspzz/danger-hlint","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmspzz%2Fdanger-hlint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmspzz%2Fdanger-hlint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmspzz%2Fdanger-hlint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmspzz%2Fdanger-hlint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tmspzz","download_url":"https://codeload.github.com/tmspzz/danger-hlint/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmspzz%2Fdanger-hlint/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28511424,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T13:38:16.342Z","status":"ssl_error","status_checked_at":"2026-01-17T13:37:44.060Z","response_time":85,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["danger","haskell","hlint"],"created_at":"2024-08-02T14:00:31.381Z","updated_at":"2026-01-17T15:25:07.634Z","avatar_url":"https://github.com/tmspzz.png","language":"Ruby","funding_links":[],"categories":["Plugins"],"sub_categories":["Ruby (danger)"],"readme":"# Danger HLint [![Gem Version](https://badge.fury.io/rb/danger-hlint.svg)](https://badge.fury.io/rb/danger-hlint)\n\nA Danger plugin for [HLint](https://github.com/ndmitchell/hlint)\n\nRead a full how to at [http://allocinit.io/haskell/danger-and-hlint/](http://allocinit.io/haskell/danger-and-hlint/)\n\n## Installation\n\nAdd this line to your Gemfile:\n\n```ruby\ngem 'danger-hlint'\n```\n\n## Usage\n\nMethods and attributes from this plugin are available in\nyour `Dangerfile` under the `hlint` namespace.\n\nAt the moment one single method is exposed: `hlint.lint`\n\nIf you want the lint results to show in the diff instead of in the comments, you can use the `inline_mode` option.\nViolations that occur out of the diff will show in danger's fail or warn section. Here's a minimal example of what to add to your `Dangerfile` (read the inline comments):\n\n```ruby\n# get all affected files by the changes in the current diff\naffected_files = git.added_files + git.modified_files\n\n# limit files to .hs files\nhaskell_files = affected_files.select { |file| file.end_with?('.hs') }\n\n# run hlint on the files and comment inline in the PR\nhlint.lint haskell_files, inline_mode: true\n\n```\n\nTo pass other parameters to the linter just add them to the method call. The\nnames and values of the parameters to the `hlint.lint` method are handed over to linter.\n\nFor example, you can specify a hint file by calling\n\n```ruby\nhlint.lint files hint: \".hlint.yaml\"\n```\n\nTo pass switches to the linter (like `--quiet`) specify `true` as the value in the call\n\n```ruby\nhlint.lint files quiet: true\n```\n\n## Warning\n\nWhen running `danger-hlint` on your CI server **(especially CircleCI 2.0)** make sure that the `hlint` binary is in your `PATH`, else this plugin will silently fail to produce any linting output. One possible way to do this (in CircleCI 2.0) is:\n\n```\n      - run:\n          name: \"Running HLint (via danger-hlint)\"\n          command: |\n            export PATH=\"$HOME/.local/bin:$PATH\"\n            bundle exec danger\n```\n\n## Development\n\n1. Clone this repo\n2. Run `bundle install` to setup dependencies.\n3. Run `bundle exec rake spec` to run the tests.\n4. Use `bundle exec guard` to automatically have tests run as you make changes.\n5. Make your changes.\n\n## Attribution\n\nSome methods and ideas are almost copied unchanged from [Danger SwiftLint](https://github.com/ashfurrow/danger-swiftlint)\n\n## License\n\ndanger-hlint is released under MIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmspzz%2Fdanger-hlint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftmspzz%2Fdanger-hlint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmspzz%2Fdanger-hlint/lists"}