{"id":20923403,"url":"https://github.com/andrewrporter/hlint","last_synced_at":"2026-05-25T18:02:33.615Z","repository":{"id":62569356,"uuid":"145719699","full_name":"AndrewRPorter/hlint","owner":"AndrewRPorter","description":"HTML5 Linter Using Mozilla's HTML5 Validator instance ","archived":false,"fork":false,"pushed_at":"2018-08-22T17:18:55.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-26T07:47:36.025Z","etag":null,"topics":["html","html5","lint","linter","mozilla","mozilla-firefox","python","python2","python3","validator"],"latest_commit_sha":null,"homepage":null,"language":"Python","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/AndrewRPorter.png","metadata":{"files":{"readme":"README.rst","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":"2018-08-22T14:21:32.000Z","updated_at":"2018-08-22T17:20:10.000Z","dependencies_parsed_at":"2022-11-03T16:47:04.340Z","dependency_job_id":null,"html_url":"https://github.com/AndrewRPorter/hlint","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/AndrewRPorter/hlint","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewRPorter%2Fhlint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewRPorter%2Fhlint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewRPorter%2Fhlint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewRPorter%2Fhlint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AndrewRPorter","download_url":"https://codeload.github.com/AndrewRPorter/hlint/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewRPorter%2Fhlint/sbom","scorecard":{"id":13768,"data":{"date":"2025-08-11","repo":{"name":"github.com/AndrewRPorter/hlint","commit":"976fd0f4dada667681fd0a9d67f820329c62fab4"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":0,"reason":"Found 0/10 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.txt:0","Info: FSF or OSI recognized license: MIT License: LICENSE.txt:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}}]},"last_synced_at":"2025-08-14T15:13:22.611Z","repository_id":62569356,"created_at":"2025-08-14T15:13:22.612Z","updated_at":"2025-08-14T15:13:22.612Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33486787,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-25T14:31:05.219Z","status":"ssl_error","status_checked_at":"2026-05-25T14:31:02.878Z","response_time":57,"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":["html","html5","lint","linter","mozilla","mozilla-firefox","python","python2","python3","validator"],"created_at":"2024-11-18T20:15:35.266Z","updated_at":"2026-05-25T18:02:33.597Z","avatar_url":"https://github.com/AndrewRPorter.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"hlint\n=====\n\n**hlint** uses Mozilla's HTML5 Validator instance to lint HTML documents. This project is heavily influenced by mozilla's own linter_.\n\n.. _linter: https://github.com/mozilla/html5-lint\n\nInstallation\n============\n\n.. code::\n\n   pip install hlint\n\nUsage\n=====\n\n.. code-block:: python\n\n   from hlint import lint\n\n   result = lint.check(\"index.html\")\n   print(result)\n   assert(result.flag == True)\n\n.. code-block:: python\n\n   from hlint import lint\n\n   results = lint.check_files([\"index.html\", \"bad.html\"])\n   print(results)\n   assert(results.total_error_count == 1)\n   \nOutput\n======\n\n.. code::\n\n   Error: Bad value  for attribute “href” on element “link”: Illegal character in scheme data: space is not allowed.\n   From line 3, column 6387; to line 3, column 7788\n   Error: Bad value  for attribute “href” on element “link”: Illegal character in scheme data: space is not allowed.\n   From line 7, column 1; to line 7, column 842\n   Error: Bad value “1” for attribute “async” on element “script”.\n   From line 12, column 1; to line 12, column 303\n   Error: Bad value “toggle” for attribute “rel” on element “a”: The string “toggle” is not a registered keyword.\n   From line 29, column 121809; to line 29, column 121991\n   Error: Bad value “1” for attribute “required” on element “input”.\n   From line 29, column 123986; to line 29, column 124160\n   Error: Element “input” is missing required attribute “aria-expanded”.\n   From line 29, column 123986; to line 29, column 124160\n   Error: Attribute “ajaxify” not allowed on element “a” at this point.\n   From line 29, column 125356; to line 29, column 125575\n   Warning: The “name” attribute is obsolete. Consider putting an “id” attribute on the nearest container instead.\n   From line 29, column 126674; to line 29, column 126859\n   Error: Attribute “ajaxify” not allowed on element “a” at this point.\n   Error: The “scrolling” attribute on the “iframe” element is obsolete. Use CSS instead.\n   From line 29, column 134870; to line 29, column 134973\n   Error: The “marginheight” attribute on the “iframe” element is obsolete. Use CSS instead.\n   From line 29, column 134870; to line 29, column 134973\n   From line 29, column 135584; to line 29, column 135688\n   Error: The “aria-labelledby” attribute must point to an element in the same document.\n   From line 29, column 126125; to line 29, column 126258\n   There were errors. (Tried in the text/html mode.)\n   \nLicense\n=======\n\nMIT License\n\nCopyright (c) 2018 Andrew Porter\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewrporter%2Fhlint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrewrporter%2Fhlint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewrporter%2Fhlint/lists"}