Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased](https://github.com/Kampfkarren/selene/compare/0.29.0...HEAD)
### Fixed
- Fixed exclude not working with absolute path in some cases ([#593](https://github.com/Kampfkarren/selene/issues/593))

## [0.29.0](https://github.com/Kampfkarren/selene/releases/tag/0.29.0) - 2025-07-23
- Added `Instance.fromExisting` to the Roblox standard library
Expand Down
7 changes: 7 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions selene/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ tracy-client = { version = "0.14.1", optional = true }
threadpool = "1.8"
toml.workspace = true
ureq = { version = "2.6.2", features = ["json"], optional = true }
pathdiff = "0.2.3"

[dev-dependencies]
pretty_assertions = "1.3"
Expand Down
9 changes: 5 additions & 4 deletions selene/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -643,17 +643,18 @@ fn start(mut options: opts::Options) {
continue;
}

match fs::metadata(filename) {
let filename =
pathdiff::diff_paths(filename, &current_dir).unwrap_or_else(|| PathBuf::from(filename));

match fs::metadata(&filename) {
Ok(metadata) => {
if metadata.is_file() {
let checker = Arc::clone(&checker);
let filename = filename.to_owned();

if !options.no_exclude && exclude_set.is_match(&filename) {
continue;
}

pool.execute(move || read_file(&checker, lua_version, Path::new(&filename)));
pool.execute(move || read_file(&checker, lua_version, &filename));
} else if metadata.is_dir() {
for pattern in &options.pattern {
let glob = match glob::glob(&format!(
Expand Down