{"id":32072995,"url":"https://github.com/wvhulle/nu-lint","last_synced_at":"2025-10-19T07:01:26.261Z","repository":{"id":319142384,"uuid":"1077045219","full_name":"wvhulle/nu-lint","owner":"wvhulle","description":"Linter for the Nushell shell scripting language","archived":false,"fork":false,"pushed_at":"2025-10-17T19:41:30.000Z","size":574,"stargazers_count":5,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-17T20:18:55.563Z","etag":null,"topics":["linter","nushell","rust","scripting","shell","static-analysis"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/nu-lint","language":"Rust","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/wvhulle.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":"2025-10-15T17:40:03.000Z","updated_at":"2025-10-17T19:47:05.000Z","dependencies_parsed_at":"2025-10-18T07:26:06.873Z","dependency_job_id":"7326639a-4add-4bbc-898e-768310534943","html_url":"https://github.com/wvhulle/nu-lint","commit_stats":null,"previous_names":["wvhulle/nu-lint"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/wvhulle/nu-lint","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wvhulle%2Fnu-lint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wvhulle%2Fnu-lint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wvhulle%2Fnu-lint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wvhulle%2Fnu-lint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wvhulle","download_url":"https://codeload.github.com/wvhulle/nu-lint/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wvhulle%2Fnu-lint/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279579081,"owners_count":26194580,"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-10-18T02:00:06.492Z","response_time":62,"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","nushell","rust","scripting","shell","static-analysis"],"created_at":"2025-10-19T07:00:31.800Z","updated_at":"2025-10-19T07:01:26.223Z","avatar_url":"https://github.com/wvhulle.png","language":"Rust","funding_links":[],"categories":["Editor Extensions"],"sub_categories":[],"readme":"# nu-lint\n\nA *static analysis tool for [Nushell](https://www.nushell.sh/) scripts* **based on the official style guide**.\n\nCan *detect stylistic issues in Nushell scripts* and suggest improvements. Functions complementary to the basic checks done by [nu-check](https://www.nushell.sh/commands/docs/nu-check.html).\n\n(Inspired by Rust's [Clippy](https://github.com/rust-lang/rust-clippy))\n\n## Installation\n\nFrom crates.io:\n\n```bash\ncargo install nu-lint\n```\n\nOr build from source:\n\n```bash\ncargo install --path .\n```\n\n## Usage\n\n```bash\nnu-lint script.nu                          # Lint a file\nnu-lint directory/                         # Lint all .nu files in a directory\nnu-lint --config custom.toml script.nu     # Use custom config\nnu-lint list-rules                         # Show all rules\nnu-lint explain snake_case_variables       # Explain a rule\n```\n\n## Configuration\n\nCreate `.nu-lint.toml` in your project root (or any parent directory):\n\n```toml\n[general]\nmax_severity = \"warning\"\n\n[rules]\nsnake_case_variables = \"warning\"\nprefer_error_make = \"info\"\nkebab_case_commands = \"warning\"\n\n[style]\nline_length = 100\nindent_spaces = 4\n\n[exclude]\npatterns = [\"*.test.nu\", \"vendor/**\"]\n```\n\nThe linter will automatically find and use this config file when you run it.\n\n## Rules\n\nCategories:\n\n- naming\n- formatting\n- idioms\n- error handling\n- code quality\n- documentation\n- type safety\n\n## Example Output\n\n```text\ninfo[prefer_parse_over_each_split]\n\n  ℹ Manual splitting with 'each' and 'split row' - consider using 'parse'\n   ╭─[example.nu:5:1]\n 5 │ $data | each { |line| $line | split row \" \" | get 0 }\n   ·         ───────────────────┬──────────────────────────\n   ·                            ╰── AST-based detection of structured text processing pattern\n   ╰────\n  help: Use 'parse \"{field1} {field2}\"' for structured text extraction instead of 'each' with 'split row'\n```\n\nThis example demonstrates AST traversal detecting command patterns that the regex-based rules cannot catch.\n\n## Contributing\n\nContributions are welcome. Please run tests and formatting before submitting:\n\n```bash\ncargo test\ncargo +nightly fmt\ncargo clippy\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwvhulle%2Fnu-lint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwvhulle%2Fnu-lint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwvhulle%2Fnu-lint/lists"}