{"id":13821300,"url":"https://github.com/openstack/bashate","last_synced_at":"2025-05-15T08:00:22.702Z","repository":{"id":16575640,"uuid":"19329687","full_name":"openstack/bashate","owner":"openstack","description":"Code style enforcement for bash programs. Mirror of code maintained at opendev.org.","archived":false,"fork":false,"pushed_at":"2024-11-26T07:31:57.000Z","size":231,"stargazers_count":363,"open_issues_count":0,"forks_count":22,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-04-14T19:55:50.561Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://opendev.org/openstack/bashate","language":"Python","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"node-inspector/node-inspector","license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/openstack.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":"CONTRIBUTING.rst","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":"2014-04-30T22:50:38.000Z","updated_at":"2025-03-28T16:01:30.000Z","dependencies_parsed_at":"2024-01-07T12:18:02.348Z","dependency_job_id":"9966f9f8-208d-4e5e-866d-255bae33103e","html_url":"https://github.com/openstack/bashate","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openstack%2Fbashate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openstack%2Fbashate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openstack%2Fbashate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openstack%2Fbashate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/openstack","download_url":"https://codeload.github.com/openstack/bashate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254301420,"owners_count":22047901,"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-08-04T08:01:19.472Z","updated_at":"2025-05-15T08:00:20.865Z","avatar_url":"https://github.com/openstack.png","language":"Python","readme":"===============================\nbashate\n===============================\n\nA pep8 equivalent for bash scripts\n\nThis program attempts to be an automated style checker for bash scripts\nto fill the same part of code review that pep8 does in most OpenStack\nprojects. It started from humble beginnings in the DevStack project,\nand will continue to evolve over time.\n\nThe output format aims to follow `pycodestyle (pep8) default output format\n\u003chttps://github.com/PyCQA/pycodestyle/blob/master/pycodestyle.py#L108\u003e`_.\n\n\n- Free software: Apache license\n- Documentation: https://docs.openstack.org/bashate\n- Source: https://opendev.org/openstack/bashate/\n- Bugs: https://bugs.launchpad.net/bash8\n- Release notes: https://docs.openstack.org/releasenotes/bashate/index.html\n- Contributing: https://docs.openstack.org/bashate/latest/contributor/index.html\n\nCurrently Supported Checks\n--------------------------\n\nErrors\n~~~~~~\n\nBasic white space errors, for consistent indenting\n\n- E001: check that lines do not end with trailing whitespace\n- E002: ensure that indents are only spaces, and not hard tabs\n- E003: ensure all indents are a multiple of 4 spaces\n- E004: file did not end with a newline\n- E005: file does not begin with #! or have a .sh prefix\n- E006: check for lines longer than 79 columns\n\nStructure Errors\n~~~~~~~~~~~~~~~~\n\nA set of rules that help keep things consistent in control blocks.\nThese are ignored on long lines that have a continuation, because\nunrolling that is kind of \"interesting\"\n\n- E010: *do* not on the same line as *for*\n- E011: *then* not on the same line as *if* or *elif*\n- E012: heredoc didn't end before EOF\n- E020: Function declaration not in format ``^function name {$``\n\nObsolete, deprecated or unsafe syntax\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nRules to identify obsolete, deprecated or unsafe syntax that should\nnot be used\n\n- E040: Syntax errors reported by `bash -n`\n- E041: Usage of $[ for arithmetic is deprecated for $((\n- E042: local declaration hides errors\n- E043: arithmetic compound has inconsistent return semantics\n- E044: Use [[ for =~,\u003c,\u003e comparisions\n","funding_links":[],"categories":["Python","Programming Languages"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenstack%2Fbashate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenstack%2Fbashate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenstack%2Fbashate/lists"}