{"id":23171014,"url":"https://github.com/ignatandrei/rscg_timebombcomment","last_synced_at":"2025-08-18T07:31:57.963Z","repository":{"id":47071267,"uuid":"406490636","full_name":"ignatandrei/RSCG_TimeBombComment","owner":"ignatandrei","description":"Time Bomb comment for technical debt","archived":false,"fork":false,"pushed_at":"2023-12-19T16:04:28.000Z","size":113,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-01T01:06:09.690Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","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/ignatandrei.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}},"created_at":"2021-09-14T19:07:12.000Z","updated_at":"2022-03-10T15:19:10.000Z","dependencies_parsed_at":"2024-02-26T22:48:55.119Z","dependency_job_id":"c09be566-8c3f-46e9-89d7-9cfc5493ceb3","html_url":"https://github.com/ignatandrei/RSCG_TimeBombComment","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/ignatandrei/RSCG_TimeBombComment","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ignatandrei%2FRSCG_TimeBombComment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ignatandrei%2FRSCG_TimeBombComment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ignatandrei%2FRSCG_TimeBombComment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ignatandrei%2FRSCG_TimeBombComment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ignatandrei","download_url":"https://codeload.github.com/ignatandrei/RSCG_TimeBombComment/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ignatandrei%2FRSCG_TimeBombComment/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270961626,"owners_count":24675914,"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-18T02:00:08.743Z","response_time":89,"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":[],"created_at":"2024-12-18T04:15:53.803Z","updated_at":"2025-08-18T07:31:57.695Z","avatar_url":"https://github.com/ignatandrei.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RSCG_TimeBombComment aka Time Bomb comment for technical debt\n\n[![.NET](https://github.com/ignatandrei/RSCG_TimeBombComment/actions/workflows/dotnet.yml/badge.svg)](https://github.com/ignatandrei/RSCG_TimeBombComment/actions/workflows/dotnet.yml)\n\n\n[![Nuget](https://img.shields.io/nuget/v/RSCG_TimeBombComment)](https://www.nuget.org/packages/RSCG_TimeBombComment/)\n\nReference the nuget package \n\n```xml\n    \u003cPackageReference Include=\"RSCG_TimeBombComment\" Version=\"2023.12.19.1802\"  PrivateAssets=\"all\" OutputItemType=\"Analyzer\" ReferenceOutputAssembly=\"false\" /\u003e\n```\n\n\nThen just add :\n\n//TB: 2021-09-13 this is a comment transformed into an error\n\nand you will see the error!\n\nThe general form is\n\n//TB: yyyy-MM-dd whatever here\n\nNow you can add\n```csharp\n//TODO this is just appearing in task list and as a warning\n//TODO 2025-09-23 and this is going to warning\n```\n\n## Examples\n\n    \n```cs\n//TB: 2020-09-13 this is a comment transformed into an error\n```\n\nwill produce an error\n\n[![Error](docs/error.png)](docs/error.png)\n\n## Usage for technical debt \n\nWhen you have a \n\n//TODO\n\ncomment in your code, you can transform it into an error time bomb by adding the following line in your project file\n\n//TB: yyyy-MM-dd whatever here\nand on the date will produce an error when compiling the project\n\n## Usage for obsolete methods\nImagine you have a method that is obsolete and you want to remember that you have to remove it.\nJust put the following line in your project file\n\n\n```cs\n[Obsolete(\"should be deleted on the date on the right\", TB_20210915)]\nstatic string Test1()\n{\n    return \"asdasd\";\n}\n```\n\nThen RSCG will create a static const boolean TB_20210915 that will be true if the date is less than 2021-09-15\n\nAlso, when you want to test something in your code, but give error if compiled with release\n\n```csharp\n//Just for debug: if(args.length\u003e0) throw new ArgumentException();\n//JFD: test\n```\n\nwill raise error if compiled with \n\ndotnet build -c release\n\n## Other Roslyn Source Code Generators\n\nYou can find more [Roslyn Source Code Generators](https://github.com/ignatandrei/rscg_examples/) at https://github.com/ignatandrei/rscg_examples/\n\n\n# More Roslyn Source Code Generators\n\nYou can find more RSCG with examples at [Roslyn Source Code Generators](https://ignatandrei.github.io/RSCG_Examples/v2/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fignatandrei%2Frscg_timebombcomment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fignatandrei%2Frscg_timebombcomment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fignatandrei%2Frscg_timebombcomment/lists"}