{"id":44190155,"url":"https://github.com/raydienull/sphere-lint","last_synced_at":"2026-02-12T12:15:53.028Z","repository":{"id":337396631,"uuid":"1153421249","full_name":"raydienull/sphere-lint","owner":"raydienull","description":" A GitHub Action linter for SphereServer .scp scripts that scans repos, flags common script errors, and annotates issues with line-level errors.","archived":false,"fork":false,"pushed_at":"2026-02-09T14:29:21.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-09T14:49:29.512Z","etag":null,"topics":["sphere","sphere-lint","sphereserver","spheresvr"],"latest_commit_sha":null,"homepage":"","language":"Go","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/raydienull.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-09T09:28:49.000Z","updated_at":"2026-02-09T14:28:34.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/raydienull/sphere-lint","commit_stats":null,"previous_names":["raydienull/sphere-lint"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/raydienull/sphere-lint","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raydienull%2Fsphere-lint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raydienull%2Fsphere-lint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raydienull%2Fsphere-lint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raydienull%2Fsphere-lint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/raydienull","download_url":"https://codeload.github.com/raydienull/sphere-lint/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raydienull%2Fsphere-lint/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29273139,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-09T13:47:44.167Z","status":"ssl_error","status_checked_at":"2026-02-09T13:47:43.721Z","response_time":56,"last_error":"SSL_read: 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":["sphere","sphere-lint","sphereserver","spheresvr"],"created_at":"2026-02-09T17:02:37.196Z","updated_at":"2026-02-12T12:15:53.009Z","avatar_url":"https://github.com/raydienull.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sphere SCP Lint (Go Action)\n\nLint SphereServer .scp scripts locally or in CI. Reports errors with file/line annotations in GitHub Actions.\n\n## What It Checks\n\n- Missing [EOF] at the end of a file\n- Duplicate ITEMDEF, CHARDEF, EVENTS, FUNCTION, REGIONTYPE, AREADEF, DIALOG, MENU, ROOMDEF, SKILL, SKILLCLASS, SKILLMENU, SPAWN, SPELL, and TYPEDEF\n- Unbalanced blocks (IF/ELSE/ENDIF, FOR/ENDFOR, WHILE/ENDWHILE, BEGIN/END, DO*/ENDDO)\n- Common typos and bracket errors (including \u003c \u003e, while allowing \u003c...\u003e tokens in expressions)\n- FOR, WHILE, and DORAND rules without arguments\n- Undeclared references for common prefixes: i_ (ITEMDEF), c_ (CHARDEF), spawn_ (SPAWN), t_ (TYPEDEF), s_ (SPELL), r_ (REGIONTYPE/AREADEF), e_ (EVENTS), m_ (MENU), d_ (DIALOG), f_ (FUNCTION)\n- Any ID defined as ITEMDEF, CHARDEF, SPAWN, etc is considered declared for undeclared checks\n- DEFNAME values declared inside sections (including MULTIDEF), plus RESDEFNAME/RES_RESDEFNAME alias keys, are treated as declared IDs\n- RESDEFNAME/RES_RESDEFNAME sections are treated as compatibility alias tables, so their mapped values are not validated as existing resources\n\n## Quick Start (GitHub Actions)\n\n```yaml\nname: Lint Sphere scripts\non:\n  push:\n  pull_request:\n\njobs:\n  lint:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v4\n      - uses: raydienull/sphere-lint@v1\n```\n\n  ## Run Locally\n\n  From the repository root:\n\n  ```bash\n  go run .\n  ```\n\n  To build a binary:\n\n  ```bash\n  go build -o sphere-lint ./\n  ./sphere-lint\n  ```\n\n\n## Behavior\n\n- Scans the repository for .scp files\n- Ignores .git, .github, backups, backup, and trash directories\n- Emits error annotations with file and line numbers\n- Exits with code 1 if it finds errors\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraydienull%2Fsphere-lint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraydienull%2Fsphere-lint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraydienull%2Fsphere-lint/lists"}