{"id":23123049,"url":"https://github.com/devgeniem/geniem-rules-codesniffer","last_synced_at":"2025-08-17T03:31:10.433Z","repository":{"id":36971509,"uuid":"267855410","full_name":"devgeniem/geniem-rules-codesniffer","owner":"devgeniem","description":"Geniem (WordPress) PHP_CodeSniffer Rules","archived":false,"fork":false,"pushed_at":"2024-08-05T11:36:27.000Z","size":180,"stargazers_count":2,"open_issues_count":4,"forks_count":0,"subscribers_count":22,"default_branch":"master","last_synced_at":"2025-08-14T11:23:31.285Z","etag":null,"topics":["php-codesniffer-rules","phpcs","phpcs-standard","sniffer","wordpress"],"latest_commit_sha":null,"homepage":"","language":"PHP","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/devgeniem.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-05-29T12:43:37.000Z","updated_at":"2024-08-05T11:36:15.000Z","dependencies_parsed_at":"2024-01-19T13:36:09.164Z","dependency_job_id":"0de26e8d-5fc5-43ae-be28-3b2a3e53f80f","html_url":"https://github.com/devgeniem/geniem-rules-codesniffer","commit_stats":{"total_commits":39,"total_committers":4,"mean_commits":9.75,"dds":0.5128205128205128,"last_synced_commit":"c798fd3c7b6f2ab1cbfac528b58dc1b5a2d71ee5"},"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"purl":"pkg:github/devgeniem/geniem-rules-codesniffer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devgeniem%2Fgeniem-rules-codesniffer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devgeniem%2Fgeniem-rules-codesniffer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devgeniem%2Fgeniem-rules-codesniffer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devgeniem%2Fgeniem-rules-codesniffer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devgeniem","download_url":"https://codeload.github.com/devgeniem/geniem-rules-codesniffer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devgeniem%2Fgeniem-rules-codesniffer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270802835,"owners_count":24648654,"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-08-17T02:00:09.016Z","response_time":129,"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":["php-codesniffer-rules","phpcs","phpcs-standard","sniffer","wordpress"],"created_at":"2024-12-17T07:32:15.840Z","updated_at":"2025-08-17T03:31:10.108Z","avatar_url":"https://github.com/devgeniem.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"![geniem-github-banner](https://cloud.githubusercontent.com/assets/5691777/14319886/9ae46166-fc1b-11e5-9630-d60aa3dc4f9e.png)\n\n# Geniem (WordPress) PHP_CodeSniffer Rules\n\nA custom set of rules to check styles for a Geniem WP projects.\n\nExtends WordPress, WordPress-Docs, WordPress-Extra, and others, but makes some convenience changes to the rules.\n\nAdds to the mix some of our own rules:\n\n- `Geniem.ControlStructures.ElseCatchNewline`\n  - Make else and catch blocks to start from new line\n\n[The Geniem standard contains over 250 rules. Check them out.](USED_RULES.md)\n\n## Installation\n\n```\ncomposer require --dev devgeniem/geniem-rules-codesniffer\ncp vendor/devgeniem/geniem-rules-codesniffer/phpcs.xml.dist-project phpcs.xml.dist\n```\n\n## Usage\n\nUse `vendor/bin/phpcs --standard=phpcs.xml.dist web/app/ config/` to make sure you are using the `phpcs` command from this package.\n\nYou could add to your project `composer.json` file the following:\n\n```json\n{\n    \"scripts\": {\n        \"lint\": \"vendor/bin/phpcs --standard=phpcs.xml.dist web/app/ config/ -s --warning-severity=0\",\n        \"lint-all\": \"vendor/bin/phpcs --standard=phpcs.xml.dist web/app/ config/\",\n        \"lint-fix\": \"vendor/bin/phpcbf --standard=phpcs.xml.dist --basepath=. ./web/app/ ./config/\"\n    }\n}\n```\n\nAfter that has been added to your `composer.json` file, you can run `composer lint` to check for all the errors and warnings.\n\n## Development\n\nThis project contains few helpers to make the development experience easier and faster.\n\nThese commands are available in the `composer.json` file, and are used `composer [command]`. The `composer` part has been omitted for brevity.\n\n| Command                               | Description                                   |\n|---------------------------------------|-----------------------------------------------|\n| `used-rules-list-update`              | Updates `USED_RULES.md`                       |\n| `cl-bump`                             | Create new version in `CHANGELOG.md`          |\n| `cl-change [message]`                 | Add an entry to Changed -section.             |\n| `cl-add [message]`                    | Add an entry to Added -section.               |\n| `cl-fix [message]`                    | Add an entry to Fixed -section.               |\n| `cl-remove [message]`                 | Add an entry to Removed -section.             |\n| `cl-ready`                            | Mark the version ready for release.           |\n| `cl-version`                          | Show the current version.                     |\n| `changelog-tag-and-release [version]` | **REQUIRES GPG** Tag and release the version. |\n\n## Developers\n\n- [See contributors](https://github.com/devgeniem/geniem-rules-codesniffer/graphs/contributors)\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevgeniem%2Fgeniem-rules-codesniffer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevgeniem%2Fgeniem-rules-codesniffer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevgeniem%2Fgeniem-rules-codesniffer/lists"}