{"id":19047896,"url":"https://github.com/yracnet/formatter-build","last_synced_at":"2025-11-11T21:01:52.235Z","repository":{"id":57724350,"uuid":"237308094","full_name":"yracnet/formatter-build","owner":"yracnet","description":"Format Source Code JAVA, CSS, JS, XML, HTML with Eclipse Platform","archived":false,"fork":false,"pushed_at":"2025-06-27T15:24:13.000Z","size":111,"stargazers_count":2,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-28T09:35:09.431Z","etag":null,"topics":["code","format","formatter","indentation","java","js","source-code","xml"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yracnet.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}},"created_at":"2020-01-30T21:21:02.000Z","updated_at":"2022-11-25T16:03:59.000Z","dependencies_parsed_at":"2022-09-02T06:32:52.222Z","dependency_job_id":null,"html_url":"https://github.com/yracnet/formatter-build","commit_stats":null,"previous_names":["yracnet/formatter"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yracnet/formatter-build","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yracnet%2Fformatter-build","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yracnet%2Fformatter-build/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yracnet%2Fformatter-build/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yracnet%2Fformatter-build/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yracnet","download_url":"https://codeload.github.com/yracnet/formatter-build/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yracnet%2Fformatter-build/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":283929675,"owners_count":26918166,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-11-11T02:00:06.610Z","response_time":65,"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":["code","format","formatter","indentation","java","js","source-code","xml"],"created_at":"2024-11-08T23:03:21.602Z","updated_at":"2025-11-11T21:01:52.200Z","avatar_url":"https://github.com/yracnet.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# formatter\nFormat Source Code for JAVA, CSS, JS, XML, HTML with Eclipse JDT\n\n\n## Formatter Help is an API as utility based in https://code.revelc.net/formatter-maven-plugin\n\n## What is the difference?\n\n  1. formatter-maven-plugin is an wrap of eclipse jdt core for maven-plugin and required that used in a pom.xml \n  2. formatter-build not depend of maven-plugin, this could use as a simple LIB and wrap the eclipse format jdt\n\nYou can use this api in your application in runtime without include the maven-plugin dependency\n\n### Declare dependency:\n\n     \u003cdependency\u003e\n         \u003cgroupId\u003ecom.github.yracnet.formatter\u003c/groupId\u003e\n         \u003cartifactId\u003eformatter-help\u003c/artifactId\u003e\n         \u003cversion\u003e0.2.0\u003c/version\u003e\n     \u003c/dependency\u003e\n\n### In your code:\n\n    public static void main(String[] args) throws FormatterException, IOException {\n      File basedir = new File(\"/work/project-x\");\n      File dir1 = new File(basedir, \"/src/main\");\n      File dir2 = new File(basedir, \"/src/test\");\n      \n      FormatterBuild build = FormatterBuild.create();\n\n      //basedir is a root directory when exist a source code as JAVA, JS, HTML, CSS\n      build.setBasedir(basedir); \n\n      // this is necesary for declare all directory that format\n      // remember that dir1, dir2 are subdirectory of basedir\n      build.setDirectories(dir1, dir2); \n\n      //This execute the format code\n      build.execute();  \n    }\n\n\nThe FormatterBuild Class has many method for configure the execution, please see the project https://code.revelc.net/formatter-maven-plugin\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyracnet%2Fformatter-build","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyracnet%2Fformatter-build","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyracnet%2Fformatter-build/lists"}