{"id":29177700,"url":"https://github.com/totvs/prettier-plugin-4gl","last_synced_at":"2026-04-13T21:32:27.323Z","repository":{"id":57167334,"uuid":"269097865","full_name":"totvs/prettier-plugin-4gl","owner":"totvs","description":"Prettier 4GL Plugin","archived":false,"fork":false,"pushed_at":"2021-08-27T17:13:02.000Z","size":438,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-09-28T10:37:49.387Z","etag":null,"topics":["prettier","prettier-4gl-plugin"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/totvs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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-06-03T13:38:11.000Z","updated_at":"2021-09-17T22:49:42.000Z","dependencies_parsed_at":"2022-08-30T15:22:03.887Z","dependency_job_id":null,"html_url":"https://github.com/totvs/prettier-plugin-4gl","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/totvs/prettier-plugin-4gl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/totvs%2Fprettier-plugin-4gl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/totvs%2Fprettier-plugin-4gl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/totvs%2Fprettier-plugin-4gl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/totvs%2Fprettier-plugin-4gl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/totvs","download_url":"https://codeload.github.com/totvs/prettier-plugin-4gl/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/totvs%2Fprettier-plugin-4gl/sbom","scorecard":{"id":895476,"data":{"date":"2025-08-11","repo":{"name":"github.com/totvs/prettier-plugin-4gl","commit":"af513657072c870e753eae33d31cfae41dbd21d0"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/30 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":"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":"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":"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":"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":"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":"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":"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":"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":"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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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"}}]},"last_synced_at":"2025-08-24T13:32:07.433Z","repository_id":57167334,"created_at":"2025-08-24T13:32:07.433Z","updated_at":"2025-08-24T13:32:07.433Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31771826,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T20:17:16.280Z","status":"ssl_error","status_checked_at":"2026-04-13T20:17:08.216Z","response_time":93,"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":["prettier","prettier-4gl-plugin"],"created_at":"2025-07-01T18:07:47.428Z","updated_at":"2026-04-13T21:32:27.284Z","avatar_url":"https://github.com/totvs.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Prettier 4GL Plugin\n\n\u003c!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section --\u003e\n\n[![All Contributors](https://img.shields.io/badge/all_contributors-1-orange.svg?style=flat-square)](#contributors-)\n\n\u003c!-- ALL-CONTRIBUTORS-BADGE:END --\u003e\n\n## Instalação\n\nEfetuar a instalação do [Prettier](https://prettier.io/docs/en/install.html) e em seguida esta extensão.\n\nPara uso local:\n\n```\nnpm install prettier-plugin-4gl --save-dev\n```\n\nPara uso global:\n\n```\nnpm install prettier-plugin-4gl -g\n```\n\n## Opções\n\n### Prettier\n\nPara [detalhes sobre configuração e chaves](https://https://prettier.io/docs/en/options.html) do Prettier.\nAbaixo, configurações do _Prettier_ utilizados pela extensão.\n\n| Chave             | Uso                                                                    |\n| ----------------- | ---------------------------------------------------------------------- |\n| --tab-width \u003cint\u003e | Número de espaços por nível de indentação.                             |\n|                   | Padrão: 2                                                              |\n| --use-tabs        | Recuar com tabulações em vez de espaços.                               |\n|                   | Padrão: false                                                          |\n| --insert-pragma   | Insere '@format' no inicio do do arquivo.                              |\n|                   | Padrão false                                                           |\n| --require-pragma  | Requer que '@prettier' ou '@format' esteja presente no arquivo.        |\n|                   | Padrão: false                                                          |\n| -w, --write       | Grava o arquivo formato. Cuidado: o arquivo original será sobrescrito. |\n|                   | Padrão: false                                                          |\n\n### 4GL\n\nChaves específicas para formatação de fontes 4GL.\n\n| Chave                             | Uso                                                                        |\n| --------------------------------- | -------------------------------------------------------------------------- | ------------- | ----------------------------------------------------------------- |\n| --4gl-align-fields                | Alinhar identificação de campos em comandos DEFINE/RECORD. Padrão: false   |\n| --4gl-align-comment \u003cint\u003e         | Coluna de alinhamento de comentário de fim de linha. Padrão: 0 (desligado) |\n| --4gl-braces                      | Espaçamento entre chaves. Padrão: false                                    |\n| --4gl-bracket                     | Espaçamento entre colchetes. Padrão: false                                 |\n| --4gl-comma                       | Espaçamento após virgulas de separção. Padrão: false                       |\n| --4gl-format-number               | Formata números, p.e. 1234 é formatado para 1,234.                         | Padrão: false |\n| --4gl-keywords-case \u003cupper        | lower                                                                      | ignore\u003e       | Coloca palavras-chaves em maiúsculas ou minúsculas. Padrão: upper |\n| --4gl-max-empty-line \u003cint\u003e        | Máximo de linhas em branco na sequência. Padrão: 0 (sem limite)            |\n| --4gl-math-operators              | Espaçamento em operadores matemáticos. Padrão: false                       |\n| --4gl-parenthesis                 | Espaçamento entre parenteses. Padrão: false                                |\n| --4gl-string-style \u003cdouble-quotes | single-quotes                                                              | ignore\u003e       | Usar aspas simples ou duplas em strings. Padrão: ignore           |\n\n### Uso em linha de comando\n\n\u003e Detalhes sobre o [uso em CLI](https://prettier.io/docs/en/cli.html).\n\n\u003e Em determinados sistemas operacionais ou devido a politicas de segurança, pode ser necessário configurações adicionais. Veja a documentação específica do seu sistema operacional ou acione o responsável de infra-estrutura/segurança.\n\n```\nnpm prettier --parser=4gl [options]\n```\n\n### Integração com editores\n\nVer [Editor Integration](https://prettier.io/docs/en/editors.html).\n\n### Embarcado (API)\n\nNesse modo, informe as opções usando o nome longo das opções sem o `--`.\n\n```Typescript\n  const options: any = { ... } //Prettier Options and Formatter 4GL Options*\n\nlet result: any = prettier.format(content, {\n    parser: \"4gl\",\n    ...options,\n  });\n```\n\n## Mantenedor\n\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://twitter.com/TOTVSDevelopers\"\u003e\u003cimg src=\"https://avatars2.githubusercontent.com/u/20243897?v=4?s=100\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eTOTVS S.A.\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"#maintenance-totvs\" title=\"Maintenance\"\u003e🚧\u003c/a\u003e \u003ca href=\"#plugin-totvs\" title=\"Plugin/utility libraries\"\u003e🔌\u003c/a\u003e \u003ca href=\"#projectManagement-totvs\" title=\"Project Management\"\u003e📆\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n\u003c/table\u003e\n\n## Colaboradores\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --\u003e\n\u003c!-- prettier-ignore-start --\u003e\n\u003c!-- markdownlint-disable --\u003e\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://github.com/brodao\"\u003e\u003cimg src=\"https://avatars0.githubusercontent.com/u/949914?v=4?s=50\" width=\"50px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eAlan Cândido\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/totvs/@totvs/prettier-plugin-4gl/commits?author=brodao\" title=\"Code\"\u003e💻\u003c/a\u003e \u003ca href=\"https://github.com/totvs/@totvs/prettier-plugin-4gl/commits?author=brodao\" title=\"Documentation\"\u003e📖\u003c/a\u003e \u003ca href=\"https://github.com/totvs/@totvs/prettier-plugin-4gl/commits?author=brodao\" title=\"Tests\"\u003e⚠️\u003c/a\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n\u003c!-- markdownlint-enable --\u003e\n\u003c!-- prettier-ignore-end --\u003e\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:END --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftotvs%2Fprettier-plugin-4gl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftotvs%2Fprettier-plugin-4gl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftotvs%2Fprettier-plugin-4gl/lists"}