{"id":18310948,"url":"https://github.com/jimschubert/iggy","last_synced_at":"2025-04-09T12:10:45.841Z","repository":{"id":139902347,"uuid":"78070609","full_name":"jimschubert/iggy","owner":"jimschubert","description":"This repository is a mirror.","archived":false,"fork":false,"pushed_at":"2017-06-06T14:53:25.000Z","size":88,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-15T05:46:39.046Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://gitlab.com/jimschubert/iggy/","language":"Java","has_issues":false,"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/jimschubert.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":"2017-01-05T02:17:32.000Z","updated_at":"2017-01-05T03:32:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"07b9f17b-a9b3-4228-9fcd-c7e3531a8146","html_url":"https://github.com/jimschubert/iggy","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimschubert%2Figgy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimschubert%2Figgy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimschubert%2Figgy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jimschubert%2Figgy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jimschubert","download_url":"https://codeload.github.com/jimschubert/iggy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248036066,"owners_count":21037092,"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":[],"created_at":"2024-11-05T16:15:58.767Z","updated_at":"2025-04-09T12:10:45.819Z","avatar_url":"https://github.com/jimschubert.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# iggy\n\nIggy is an ignore file processor for java. It was originally a part of swagger-codegen.\n\n[![build status](https://gitlab.com/jimschubert/iggy/badges/master/build.svg)](https://gitlab.com/jimschubert/iggy/commits/master)\n\n[![Maven Central](https://img.shields.io/maven-central/v/us.jimschubert/iggy.svg?label=maven:%20iggy)](http://search.maven.org/#search%7Cga%7C1%7Ca%3A%22iggy%22)  \n\n## Usage\n\nGiven an ignore file, for example `/your/directory/.ignore`:\n\n```\n# This is an example ignore file\n\n# Match everything below this directory\npath/to/dir/**\n\n# Match all Test files with all extensions\n**/*Test*.*\n\n# Match files with one character filename and extension\n**/?.?\n\n# Match all files beginning with first or second\n**/{first*,second*}\n```\n\nThis file can be read and evaluated like this:\n\n```java\nIgnoreProcessor processor = new IgnoreProcessor(\"/your/directory\");\n\nprocessor.allowsFile(new File(\"path/to/dir/ignored\"));//= false\nprocessor.allowsFile(new File(\"other/path/to/dir/ignored\"));//= true (DirectoryRule isn't implicitly recursive)\nprocessor.allowsFile(new File(\"nested/test/SomeTest.java\"));//= false\nprocessor.allowsFile(new File(\"nested/a.b\"));//= false\nprocessor.allowsFile(new File(\"nested/abc.d\"));//= true\nprocessor.allowsFile(new File(\"nested/first.txt\"));//= false\nprocessor.allowsFile(new File(\"nested/second.txt\"));//= false\nprocessor.allowsFile(new File(\"nested/third.txt\"));//= true\n```\n\n## Patterns\n\nFile patterns follow closely to that of `.gitignore`. All ignore patterns allow glob patterns supported by [java.nio.file.PathMatcher](https://docs.oracle.com/javase/tutorial/essential/io/find.html),\nunless otherwise noted.\n\n* Rooted file pattern: `/*.ext`\n  - Must exist in the root of the directory\n  - Must begin with a forward slash `/`\n  - Supports `*` or `*.ext` pattern\n  - Does not support `PathMatcher` patterns\n* Directory Rule\n  - Matches against directories (`dir/`) or directory contents (`dir/**`)\n  - Must either end in `/` or `**`\n* File Rule\n  - Matches an individual `filename` or `filename.ext`\n  - Supports all `PathMatcher` patterns\n\nSimilar to `.gitignore` processing, a double asterisk (`**`) can be used in place of a directory to indicate recursion.\n\nFor example:\n\n```\npath\\to\\**\\file\n```\n\nmatches both `path\\to\\some\\file` and `path\\to\\some\\nested\\file`.\n\nSingle asterisks (`*`) match any characters within a pattern.\n\nFor example:\n\n```\npath\\to\\*file\n```\n\nmatches both `path\\to\\your_file` and `path\\to\\my_file`, as well as `path\\to\\file`.\n\nThese are the base cases for most uses. For more details on supported glob patterns, see [What is a Glob?](https://docs.oracle.com/javase/tutorial/essential/io/fileOps.html#glob)\n\n# License\n\nApache 2.0.\n\nsee [License](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjimschubert%2Figgy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjimschubert%2Figgy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjimschubert%2Figgy/lists"}