{"id":16461586,"url":"https://github.com/stringbean/scalafix-rules","last_synced_at":"2026-05-15T02:39:02.502Z","repository":{"id":204873210,"uuid":"712864823","full_name":"stringbean/scalafix-rules","owner":"stringbean","description":"Custom scalafix rules","archived":false,"fork":false,"pushed_at":"2026-05-05T10:20:58.000Z","size":57,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-05-05T12:26:23.563Z","etag":null,"topics":["linter","scalafix","scalafix-rule"],"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/stringbean.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-11-01T11:07:59.000Z","updated_at":"2026-05-05T10:21:00.000Z","dependencies_parsed_at":"2024-11-11T17:44:29.613Z","dependency_job_id":"70650a75-1965-4e77-b8e3-a02f17ab6706","html_url":"https://github.com/stringbean/scalafix-rules","commit_stats":null,"previous_names":["stringbean/scalafix-rules"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/stringbean/scalafix-rules","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stringbean%2Fscalafix-rules","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stringbean%2Fscalafix-rules/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stringbean%2Fscalafix-rules/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stringbean%2Fscalafix-rules/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stringbean","download_url":"https://codeload.github.com/stringbean/scalafix-rules/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stringbean%2Fscalafix-rules/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33051381,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-15T02:00:06.351Z","response_time":103,"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":["linter","scalafix","scalafix-rule"],"created_at":"2024-10-11T11:08:45.019Z","updated_at":"2026-05-15T02:39:02.465Z","avatar_url":"https://github.com/stringbean.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Scalafix rules for scalafix-rules\n\n[![Build Status](https://img.shields.io/github/actions/workflow/status/stringbean/scalafix-rules/ci.yml?branch=main)](https://github.com/stringbean/scalafix-rules/actions/workflows/ci.yml)\n[![Current Version](https://index.scala-lang.org/stringbean/scalafix-rules/scalafix-rules/latest.svg)](https://index.scala-lang.org/stringbean/scalafix-rules/scalafix-rules) \n[![Known Vulnerabilities](https://snyk.io/test/github/stringbean/scalafix-rules/badge.svg?targetFile=build.sbt)](https://snyk.io/test/github/stringbean/scalafix-rules?targetFile=build.sbt)\n![Scala 2.12](https://img.shields.io/badge/Scala-2.12-blue)\n![Scala 2.13](https://img.shields.io/badge/Scala-2.13-blue)\n![Scala 3](https://img.shields.io/badge/Scala-3-blue)\n\n## Installation\n\n```scala\nThisBuild / scalafixDependencies += \"software.purpledragon\" \u0026\u0026 \"scalafix-rules\" % \"\u003cversion\u003e\"\n```\n\n## Rules\n\n### IllegalImports\n\nChecks for usage of 'illegal' classes or packages. These could be non-portable code (such as\n`com.sun.*`), legacy code from third-party libraries or code that will not work on certain\nenvironments (such as `java.awt.*` on a headless server).\n\nInspired by the [`IllegalImportsChecker`][scalastyle-illegalimports] from Scalastyle and the\n[`IllegalImport`][checkstyle-illegalimport] check from Checkstyle.\n\nExample:\n\n```text\nExample.scala:5: error: [IllegalImports] import of class from illegal package\nimport com.sun.net.httpserver.HttpServer\n       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n```\n\n#### Configutation\n\n| Name      | Type           | Description                                                                                                                    |\n|-----------|----------------|--------------------------------------------------------------------------------------------------------------------------------|\n| `error`   | `List[String]` | List of imports to make illegal. These can be fully-qualified classes (`java.util.Vector`) or package wildcards (`com.sun.*`). |\n| `warning` | `List[String]` | List of imports to warn on usage. These are in the same format as `error` but will not fail the buid.                          |\n\n#### Defaults\n\n```hocon\nIllegalImports.imports = [\n  \"com.sun.*\"\n]\n```\n\n[checkstyle-illegalimport]: https://checkstyle.sourceforge.io/checks/imports/illegalimport.html#IllegalImport\n[scalastyle-illegalimports]: http://www.scalastyle.org/rules-1.0.0.html#org_scalastyle_scalariform_IllegalImportsChecker\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstringbean%2Fscalafix-rules","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstringbean%2Fscalafix-rules","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstringbean%2Fscalafix-rules/lists"}