{"id":16934144,"url":"https://github.com/lucas-c/pre-commit-hooks-java","last_synced_at":"2026-05-14T12:36:36.645Z","repository":{"id":141887183,"uuid":"74377222","full_name":"Lucas-C/pre-commit-hooks-java","owner":"Lucas-C","description":"Pre-commit hooks requiring a Java interpreter in the $PATH","archived":false,"fork":false,"pushed_at":"2020-07-19T07:35:40.000Z","size":56,"stargazers_count":2,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-05T14:42:08.547Z","etag":null,"topics":["git-hooks","handlebars","html","jinja2","mustaches","nu-validator","pre-commit","python","template","w3c"],"latest_commit_sha":null,"homepage":"","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/Lucas-C.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-11-21T15:25:50.000Z","updated_at":"2023-01-31T03:03:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"7ae2cbb8-da0b-4fb9-88d6-a63e2ae8b7fd","html_url":"https://github.com/Lucas-C/pre-commit-hooks-java","commit_stats":null,"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"purl":"pkg:github/Lucas-C/pre-commit-hooks-java","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lucas-C%2Fpre-commit-hooks-java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lucas-C%2Fpre-commit-hooks-java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lucas-C%2Fpre-commit-hooks-java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lucas-C%2Fpre-commit-hooks-java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Lucas-C","download_url":"https://codeload.github.com/Lucas-C/pre-commit-hooks-java/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lucas-C%2Fpre-commit-hooks-java/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33025389,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-14T02:00:06.663Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["git-hooks","handlebars","html","jinja2","mustaches","nu-validator","pre-commit","python","template","w3c"],"created_at":"2024-10-13T20:51:24.818Z","updated_at":"2026-05-14T12:36:36.621Z","avatar_url":"https://github.com/Lucas-C.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![](https://travis-ci.org/Lucas-C/pre-commit-hooks-java.svg?branch=master)](https://travis-ci.org/Lucas-C/pre-commit-hooks-java)\n\n[Pre-commit](https://pre-commit.com) hooks requiring a `java` interpreter in the `$PATH`.\n\nThe `validate-html` hook uses the v.Nu validator: http://validator.w3.org/nu/.\nIt can automagically replace mustaches by a default value in order to validate templates.\nCurrently, only [handlebars](http://handlebarsjs.com) templates are supported. Please create an issue if you need support for other template engines: the ones where a Python implementation exist should be easy to add.\n\n## Usage\n```\n-   repo: https://github.com/Lucas-C/pre-commit-hooks-java\n    sha: 1.3.10\n    hooks:\n    -   id: validate-html\n```\n\nAdvanced usage:\n\n```\n-   repo: https://github.com/Lucas-C/pre-commit-hooks-java\n    sha: 1.3.10\n    hooks:\n    -   id: validate-html\n        args: [--remove-mustaches, \"--ignore=Expected \\\"\u003c!DOCTYPE html\u003e\\\"\"]\n        files: ^src/main/html/\n```\n\nWith Jinja templates:\n\n```\n-   repo: https://github.com/Lucas-C/pre-commit-hooks-java\n    sha: 1.3.10\n    hooks:\n    -   id: validate-html\n        args: [--remove-mustaches, --mustache-remover=jinja2]\n```\n\n## [FR] Accessibilité RGAA\n\nComme ce hook de pre-commit git utilise v.Nu, il permet de valider le critère RGAA3 **1.1 [A] \"Chaque image a-t-elle une alternative textuelle ?\"** [en employant le validateur HTML5 recommandé par la norme](http://disic.github.io/rgaa_methodologie/).\n\nSi vous souhaitez effectuer d'autres validations automatiques de critères d'accessibilité, jetez un oeil à [WCAG-Zoo](https://wcag-zoo.readthedocs.io)\n\n## Alternatives\n\n- [HTML Tidy](http://www.html-tidy.org) : implemented in C\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucas-c%2Fpre-commit-hooks-java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flucas-c%2Fpre-commit-hooks-java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucas-c%2Fpre-commit-hooks-java/lists"}