Skip to content

Commit 2b269f1

Browse files
authored
fix(fs): Apply requireLiteralLeadingDot config (#1585)
* fix(fs): Apply requireLiteralLeadingDot config * fix deserialization * reword changefile [skip ci]
1 parent 647d889 commit 2b269f1

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"fs": patch
3+
---
4+
5+
Fixed an issue that caused the plugin to ignore the `requireLiteralLeadingDot` config.

plugins/fs/src/commands.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -854,7 +854,7 @@ pub fn resolve_path<R: Runtime>(
854854
.chain(global_scope.denies().iter().map(|e| e.path.clone()))
855855
.chain(command_scope.denies().iter().map(|e| e.path.clone()))
856856
.collect(),
857-
require_literal_leading_dot: None,
857+
require_literal_leading_dot: app.fs_scope().require_literal_leading_dot,
858858
},
859859
)?;
860860

plugins/fs/src/config.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
use serde::Deserialize;
66

77
#[derive(Deserialize)]
8+
#[serde(rename_all = "camelCase", deny_unknown_fields)]
89
pub struct Config {
910
/// Whether or not paths that contain components that start with a `.`
1011
/// will require that `.` appears literally in the pattern; `*`, `?`, `**`,

0 commit comments

Comments
 (0)