Skip to content

Commit

Permalink
Tweak origin detection lists (#748)
Browse files Browse the repository at this point in the history
  • Loading branch information
passcod authored Jan 1, 2024
1 parent 3ad0e1a commit bf9c85f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions crates/project-origins/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## Next (YYYY-MM-DD)

- Remove `README.md` files from detection; those were causing too many false positives and were a weak signal anyway.
- Add Node.js package manager lockfiles.

## v1.2.1 (2023-11-26)

- Deps: upgrade Tokio requirement to 1.33.0
Expand Down
5 changes: 3 additions & 2 deletions crates/project-origins/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -236,10 +236,11 @@ pub async fn origins(path: impl AsRef<Path> + Send) -> HashSet<PathBuf> {
list.has_file("mix.exs"),
list.has_file("moonshine-dependencies.xml"),
list.has_file("package.json"),
list.has_file("package-lock.json"),
list.has_file("pnpm-lock.yaml"),
list.has_file("yarn.lock"),
list.has_file("pom.xml"),
list.has_file("project.clj"),
list.has_file("README.md"),
list.has_file("README"),
list.has_file("requirements.txt"),
list.has_file("v.mod"),
list.has_file("CONTRIBUTING.md"),
Expand Down

0 comments on commit bf9c85f

Please sign in to comment.