{"id":16416424,"url":"https://github.com/igapyon/blancoapexformatterplugin","last_synced_at":"2025-06-23T00:02:33.982Z","repository":{"id":144563994,"uuid":"106177703","full_name":"igapyon/blancoApexFormatterPlugin","owner":"igapyon","description":null,"archived":false,"fork":false,"pushed_at":"2017-10-09T02:55:48.000Z","size":32,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-24T11:18:59.047Z","etag":null,"topics":[],"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/igapyon.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":"2017-10-08T13:19:14.000Z","updated_at":"2017-10-08T13:26:40.000Z","dependencies_parsed_at":"2024-07-09T15:30:54.651Z","dependency_job_id":null,"html_url":"https://github.com/igapyon/blancoApexFormatterPlugin","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/igapyon/blancoApexFormatterPlugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igapyon%2FblancoApexFormatterPlugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igapyon%2FblancoApexFormatterPlugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igapyon%2FblancoApexFormatterPlugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igapyon%2FblancoApexFormatterPlugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/igapyon","download_url":"https://codeload.github.com/igapyon/blancoApexFormatterPlugin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igapyon%2FblancoApexFormatterPlugin/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261386701,"owners_count":23150865,"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","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":[],"created_at":"2024-10-11T07:09:13.969Z","updated_at":"2025-06-23T00:02:28.845Z","avatar_url":"https://github.com/igapyon.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# blancoApexFormatter\n\nblancoApexFormatter is a Apax language source code formatter.\nblancoApexFormatter is written in Java. blancoApexFormatter is provided as an OSS product.\n\n## spec\n\nblancoApexFormatter format Apax code like below:\n\n### before (input)\n\n```java\n@isTest\npublic without sharing class MySimpleTest {\n         static testMethod void testMain001(){\n              System.assert(false,\n              'First hello word written in Apex, as a error of test code.');\n}\n}\n```\n\n### after (formatted output)\n\n```java\n@isTest\npublic without sharing class MySimpleTest {\n    static testMethod void testMain001() {\n        System.assert(false,\n            'First hello word written in Apex, as a error of test code.');\n    }\n}\n```\n\n## usage\n\nThere is several way to use blancoApexFormatter.\nMy currently recommendation is to use blancoApexFormatterPlugin. blancoApexFormatter provides Maven Plugin, Ant Task and command line interface. See below:\n\n### Maven Plugin\n\n```xml\n            \u003cplugin\u003e\n                \u003cgroupId\u003ejp.igapyon.blanco.apex.formatter.plugin\u003c/groupId\u003e\n                \u003cartifactId\u003eblancoApexFormatterPlugin\u003c/artifactId\u003e\n                \u003cversion\u003e1.0.3\u003c/version\u003e\n                \u003cconfiguration\u003e\n                    \u003cinput\u003e${project.basedir}/src/main/apex\u003c/input\u003e\n                    \u003coutput\u003e${project.build.directory}/apex-formatted\u003c/output\u003e\n                    \u003cverbose\u003efalse\u003c/verbose\u003e\n                    \u003cisSmashWhitespace\u003efalse\u003c/isSmashWhitespace\u003e\n                    \u003cisFormatComma\u003etrue\u003c/isFormatComma\u003e\n                    \u003cisFormatSemicolon\u003etrue\u003c/isFormatSemicolon\u003e\n                    \u003cisFormatIndent\u003etrue\u003c/isFormatIndent\u003e\n                    \u003cisFormatSpecialChar\u003etrue\u003c/isFormatSpecialChar\u003e\n                    \u003cisFormatBracket\u003etrue\u003c/isFormatBracket\u003e\n                \u003c/configuration\u003e\n                \u003cexecutions\u003e\n                    \u003cexecution\u003e\n                        \u003cgoals\u003e\n                            \u003cgoal\u003eformat\u003c/goal\u003e\n                        \u003c/goals\u003e\n                    \u003c/execution\u003e\n                \u003c/executions\u003e\n            \u003c/plugin\u003e\n```\n\nRunning Maven Plugin of blancoApexFormatter is like below:\n\n```sh\nmvn jp.igapyon.blanco.apex.formatter.plugin:blancoApexFormatterPlugin:1.0.3:format\n```\n\n### Ant task\n\nPrepare Ant taskdef on your build.xml like below:\n\n```xml\n\t\u003ctaskdef name=\"apexformatter\" classname=\"blanco.apex.formatter.ant.BlancoApexFormatterTask\"\u003e\n\t\t\u003cclasspath\u003e\n\t\t\t\u003cpathelement location=\"./lib/blancoApexFormatterCli.jar\" /\u003e\n\t\t\t\u003cpathelement location=\"./lib/blancoApexFormatter.jar\" /\u003e\n\t\t\t\u003cpathelement location=\"./lib/blancoApexSyntaxParser.jar\" /\u003e\n\t\t\t\u003cpathelement location=\"./lib/blancoApexParser.jar\" /\u003e\n\t\t\t\u003cpathelement location=\"./lib/apache/commons-cli-1.3.1.jar\" /\u003e\n\t\t\t\u003cpathelement location=\"./lib/apache/commons-io-2.5.jar\" /\u003e\n\t\t\u003c/classpath\u003e\n\t\u003c/taskdef\u003e\n```\n\nRun Ant task of blancoApexFormatter like below:\n\n```xml\n\t\u003ctarget name=\"doFormat\"\u003e\n\t\t\u003capexformatter input=\"./test/data/apex/\"\n\t\t               output=\"./test/data/apex.output\"/\u003e\n\t\u003c/target\u003e\n```\n\n'input' and 'output' attributes are required.\n\n### Command line\n\n```\njava -cp blancoApexFormatterCli.jar:lib/blancoApexFormatter.jar:lib/blancoApexSyntaxParser.jar:lib/blancoApexParser.jar:lib/apache/commons-cli-1.3.1.jar:lib/apache/commons-io-2.5.jar blanco.apex.formatter.cli.BlancoApexFormatterCli -i /home/tosiki/workspace/apex-lang/src.apex -o /home/tosiki/workspace/apex-lang/src.apex.output\n```\n\nCommand line interface of blancoApexFormatter provides several option like below:\n\n```\nusage: BlancoApexFormatterCli\n -h,--help                   show usage.\n -i,--input \u003cinputdir\u003e       input directory.\n -o,--output \u003coutputdir\u003e     output directory.\n -v,--verbose                run verbose mode.\n -xbracket \u003ctrue\u003e            format bracket.\n -xcomma \u003ctrue\u003e              format comma.\n -xindent \u003ctrue\u003e             format indent.\n -xsemicolon \u003ctrue\u003e          format semicolon.\n -xsmashwhitespace \u003cfalse\u003e   format with whitespace smash (hard format).\n -xspecialchar \u003ctrue\u003e        format special char.\n```\n\n## download\n\nYou can download latest version of blancoApexFormatter from URL below:\n\n### source distribution\n\n* https://github.com/igapyon/blancoApexFormatter/releases \n* https://github.com/igapyon/blancoApexSyntaxParser/releases\n* https://github.com/igapyon/blancoApexParser/releases\n\n\n## LICENSE\n\n```\n/*\n * Copyright 2016 Toshiki Iga\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Figapyon%2Fblancoapexformatterplugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Figapyon%2Fblancoapexformatterplugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Figapyon%2Fblancoapexformatterplugin/lists"}