{"id":20228928,"url":"https://github.com/baschni/42check","last_synced_at":"2026-05-12T09:38:56.932Z","repository":{"id":259402748,"uuid":"877779478","full_name":"baschni/42check","owner":"baschni","description":"reformats the norminette command to make links to lines work in VS Code","archived":false,"fork":false,"pushed_at":"2024-12-26T01:55:46.000Z","size":214,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-03T13:22:11.926Z","etag":null,"topics":["42","c","norminette"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/baschni.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-10-24T08:22:38.000Z","updated_at":"2024-12-26T01:55:49.000Z","dependencies_parsed_at":"2024-12-26T02:38:29.796Z","dependency_job_id":"e11ea5ce-72f1-4ef5-8468-c2e071d77234","html_url":"https://github.com/baschni/42check","commit_stats":null,"previous_names":["baschni/42check"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/baschni/42check","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baschni%2F42check","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baschni%2F42check/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baschni%2F42check/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baschni%2F42check/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/baschni","download_url":"https://codeload.github.com/baschni/42check/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baschni%2F42check/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32933245,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-12T09:19:52.626Z","status":"ssl_error","status_checked_at":"2026-05-12T09:17:33.438Z","response_time":102,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["42","c","norminette"],"created_at":"2024-11-14T07:33:39.031Z","updated_at":"2026-05-12T09:38:56.915Z","avatar_url":"https://github.com/baschni.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"42check\n=======\n\n[42check](http://github.com/baschni/42check) is a python script which parses the output of [norminette](https://github.com/42School/norminette) and formats it to make file links work\n\n## Motivation\n\nFor programming I use VS Code with its integrated terminal where I launch norminette. In its output, the file name along with line and column numbers are not recognized by VS Code. 42check reformats this information: while holding `CTRL`, I can click on the filename and VS Code automatically takes me to the line of the norm error.\n\n![Screenshot of Output](README/Screenshot_Output_42check.png)\n\n## Usage\n\nType `42check` to check the norm of all *.c and *.h files in the current directory. Type `42check specific_folder/specific_file.c` to check the norm just of that file.\n\n## Installation\n\n### Requirements\n\nnorminette must be installed and in the path.\n\n### Download\n\nDownload the file [42check.py](https://github.com/baschni/42check/blob/main/42check.py) and save it to a folder, e.g. `/home/\u003cuser\u003e/programs/42check`. Goto `/home/\u003cuser\u003e/bin`, create a  symbolic link to the downloaded file and make it executable:\n\n```\ncd /home/\u003cuser\u003e/bin\nln -s /home/\u003cuser\u003e/programs/42check/42check.py ./42check\nchmod 0100 ./42check\n```\n\nYou can now execute `42check` in your shell. If not, or if the directory `/home/\u003cuser\u003e/bin` should not exist, see the section below.\n\n### Put ~/bin to $PATH\n\nIf there is no folder `/home/\u003cuser\u003e/bin` create it:\n```\nmkdir ~/bin`\n```\nCheck if it is  in the $PATH variable:\n```\necho $PATH\n```\nIf not, you can add `export PATH=/home/\u003cuser\u003e/bin` to your `~/.zshrc` (or `~/.bashrc` if you are using bash) or to `~/.profile`, regarding your system/needs.\n\n### Add a shortcut for VS Code\n\nOpen the file where you can edit the keyboard shortcuts via `File -\u003e Preferences -\u003e Keyboard Shortcuts` and click on the file icon in the upper right corner:\n\n![Button to open Keyboard Shorcuts file in VS Code](README/VSCode_Edit_Keyboard_Shortcuts_File.png)\n\nAdd the following code at the top. You can also modify the shortcut to your needs (here I chose `CTRL + N`):\n```\n{\n\t\"key\": \"ctrl+n\",\n\t\"command\": \"workbench.action.terminal.sendSequence\",\n\t\"args\": {\n\t\t\"text\": \"cd '${fileDirname}'\\n42check '${fileBasename}'\\n\"\n\t}\n},\n```\nAfter pressing the shorcut, it should activate the latest open terminal, change to the directory where currently opened file resides and run `42check` on it.\n\nIf you use VS Code on Windows with WSL (Windows Subsystem for Linux), try this little hack:\n```\n{\n\t\"key\": \"ctrl+n\",\n\t\"command\": \"workbench.action.terminal.sendSequence\",\n\t\"args\": {\n\t\t\"text\": \"VSCODE_WD=$(sed 's/\\\\\\\\/\\\\//g' \u003c\u003c\u003c '${fileDirname}' | sed 's/C:/\\\\/mnt\\\\/c/g') \u0026\u0026 cd \\\"$VSCODE_WD\\\" \u0026\u0026 echo \\\"cd $VSCODE_WD\\\"\\n42check \\\"${fileBasename}\\\"\\n\"\n\t}\n},\n```\n\n## See also\n\nIf you like [42check](http://github.com/baschni/42check), you might also like [21norm](http://github.com/baschni/21norm), which will correct many of the norm errors detected by [norminette](https://github.com/42School/norminette) automatically.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaschni%2F42check","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbaschni%2F42check","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaschni%2F42check/lists"}