{"id":14965416,"url":"https://github.com/nette/code-checker","last_synced_at":"2025-05-15T23:02:32.373Z","repository":{"id":1107957,"uuid":"975214","full_name":"nette/code-checker","owner":"nette","description":"✅ A simple tool to check source code against a set of Nette coding standards.","archived":false,"fork":false,"pushed_at":"2025-03-30T17:53:27.000Z","size":284,"stargazers_count":85,"open_issues_count":1,"forks_count":29,"subscribers_count":19,"default_branch":"master","last_synced_at":"2025-04-12T13:57:36.666Z","etag":null,"topics":["checker","code-analysis","nette","nette-application","php","tool"],"latest_commit_sha":null,"homepage":"https://doc.nette.org/code-checker","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nette.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license.md","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,"zenodo":null},"funding":{"github":"dg","custom":"https://nette.org/donate"}},"created_at":"2010-10-09T20:50:12.000Z","updated_at":"2025-03-30T17:53:30.000Z","dependencies_parsed_at":"2025-04-12T12:54:09.749Z","dependency_job_id":null,"html_url":"https://github.com/nette/code-checker","commit_stats":{"total_commits":183,"total_committers":7,"mean_commits":"26.142857142857142","dds":0.03825136612021862,"last_synced_commit":"9b547f12bb9dbed1ce1af12fa2f45a4a88fa0f78"},"previous_names":[],"tags_count":29,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nette%2Fcode-checker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nette%2Fcode-checker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nette%2Fcode-checker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nette%2Fcode-checker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nette","download_url":"https://codeload.github.com/nette/code-checker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254214729,"owners_count":22033747,"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":["checker","code-analysis","nette","nette-application","php","tool"],"created_at":"2024-09-24T13:34:43.490Z","updated_at":"2025-05-15T23:02:32.311Z","avatar_url":"https://github.com/nette.png","language":"PHP","readme":"Code Checker\n============\n\n[![Downloads this Month](https://img.shields.io/packagist/dm/nette/code-checker.svg)](https://packagist.org/packages/nette/code-checker)\n[![Tests](https://github.com/nette/code-checker/workflows/Tests/badge.svg?branch=master)](https://github.com/nette/code-checker/actions)\n[![Latest Stable Version](https://poser.pugx.org/nette/code-checker/v/stable)](https://github.com/nette/code-checker/releases)\n[![License](https://img.shields.io/badge/license-New%20BSD-blue.svg)](https://github.com/nette/code-checker/blob/master/license.md)\n\n\nIntroduction\n------------\n\nThe tool called that checks and possibly repairs some of the formal errors in your source code.\n\nDocumentation can be found on the [website](https://doc.nette.org/code-checker). If you like it, **[please make a donation now](https://github.com/sponsors/dg)**. Thank you!\n\n\nUsage\n-----\n\n```\nUsage: php code-checker [options]\n\nOptions:\n    -d \u003cpath\u003e             Folder or file to scan (default: current directory)\n    -i | --ignore \u003cmask\u003e  Files to ignore\n    -f | --fix            Fixes files\n    -l | --eol            Convert newline characters\n    --no-progress         Do not show progress dots\n    --strict-types        Checks whether PHP 7.0 directive strict_types is enabled\n```\n\nWithout parameters, it checks the current working directory in a read-only mode, with `-f` parameter it fixes files.\n\nBefore you get to know the tool, be sure to backup your files first.\n\nYou can create a batch file, e.g. `code.bat`, for easier execution of Code-Checker under Windows:\n\n```shell\nphp path_to\\Nette_tools\\Code-Checker\\code-checker %*\n```\n\n\nWhat Code-Checker Does?\n-----------------------\n\n- removes [BOM](https://doc.nette.org/glossary#toc-bom)\n- checks validity of [Latte](https://latte.nette.org) templates\n- checks validity of  `.neon`, `.php` and `.json` files\n- checks for [control characters](https://doc.nette.org/glossary#toc-control-characters)\n- checks whether the file is encoded in UTF-8\n- controls misspelled `/* @annotations */` (second asterisk missing)\n- removes PHP ending tags `?\u003e` in PHP files\n- removes trailing whitespace and unnecessary blank lines from the end of a file\n- normalizes line endings to system-default (with the `-l` parameter)\n\n\nInstallation\n------------\n\nInstall it via Composer. This project is not meant to be run as a dependency, so install it as standalone:\n\n```\ncomposer create-project nette/code-checker\n```\n\nOr install it globally via:\n\n```\ncomposer global require nette/code-checker\n```\n\nand make sure your global vendor binaries directory is in [your `$PATH` environment variable](https://getcomposer.org/doc/03-cli.md#global).\n\nIt requires PHP version 8.0.\n","funding_links":["https://github.com/sponsors/dg","https://nette.org/donate","https://github.com/sponsors/dg)*"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnette%2Fcode-checker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnette%2Fcode-checker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnette%2Fcode-checker/lists"}