{"id":16318607,"url":"https://github.com/vic/nonono","last_synced_at":"2025-10-31T12:30:27.071Z","repository":{"id":66386329,"uuid":"469626093","full_name":"vic/nonono","owner":"vic","description":"NoNoNo is an Scala3 compiler plugin that lets you prevent unsafe function calls.","archived":false,"fork":false,"pushed_at":"2022-03-14T23:49:59.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-25T12:26:06.971Z","etag":null,"topics":["compiler-plugin","dotty","dotty-plugin","scala3","scala3-plugin","wartremover"],"latest_commit_sha":null,"homepage":"","language":"Scala","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/vic.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2022-03-14T07:35:36.000Z","updated_at":"2022-03-14T08:36:14.000Z","dependencies_parsed_at":"2023-05-20T09:46:00.873Z","dependency_job_id":null,"html_url":"https://github.com/vic/nonono","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vic%2Fnonono","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vic%2Fnonono/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vic%2Fnonono/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vic%2Fnonono/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vic","download_url":"https://codeload.github.com/vic/nonono/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239195476,"owners_count":19598036,"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":["compiler-plugin","dotty","dotty-plugin","scala3","scala3-plugin","wartremover"],"created_at":"2024-10-10T22:24:05.701Z","updated_at":"2025-10-31T12:30:24.829Z","avatar_url":"https://github.com/vic.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NoNoNo\n\nAn Scala3 compiler plugin that lets you prevent unsafe function calls.\n\n### Setup\n\nTODO: release jars.\nTODO: usage with sbt\nTODO: usage with mill\n\n```scala\nscalac -Xplugin:nonono.jar Something.scala\n```\n\n### Configuration\n\nSuppose you want to prevent developers using `Option.get` on your codebase.\n\nThe following NoNoNo definition prevents such cases:\n\n```scala\nNoNoNo[Option[Any]](_.get)(\"Prefer using getOrElse\")\n```\n\n\u003cimg width=\"1134\" alt=\"Screen Shot 2022-03-12 at 10 43 58\" src=\"https://user-images.githubusercontent.com/331/158126035-1d43cb14-6d1c-43a1-a4d0-951634e4bcca.png\"\u003e\n\n\nTODO: currently, the plugin expects NoNoNo definitions on the same compilation unit. Make it possible for the plugin to take an option with a scala file to read definitions from.\n\nYou can customize the type parameter to match for example, only `Option[String]`.\n\nSee more examples in [tests](nonono-plugin/tests/src/nonono/PluginTest.scala)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvic%2Fnonono","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvic%2Fnonono","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvic%2Fnonono/lists"}