Skip to content

Commit 0e64617

Browse files
committed
enable scope scanner by default
1 parent b7cc884 commit 0e64617

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

crates/fsrt/src/main.rs

+1-5
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,6 @@ pub struct Args {
7575
#[arg(short, long)]
7676
out: Option<PathBuf>,
7777

78-
// Run the permission checker
79-
#[arg(long)]
80-
check_permissions: bool,
81-
8278
#[arg(long)]
8379
graphql_schema_path: Option<PathBuf>,
8480

@@ -378,7 +374,7 @@ pub(crate) fn scan_directory<'a>(
378374
.into_iter()
379375
.any(|remote| remote.contains_auth());
380376

381-
let run_permission_checker = opts.check_permissions && !transpiled_async;
377+
let run_permission_checker = !transpiled_async;
382378

383379
let permissions_declared: HashSet<String> =
384380
HashSet::from_iter(permission_scopes.iter().map(|s| s.replace('\"', "")));

crates/fsrt/src/test.rs

-1
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,6 @@ pub(crate) fn scan_directory_test(
174174
.unwrap_or_else(|_| vec![]);
175175

176176
let mut args = Args::parse();
177-
args.check_permissions = true;
178177

179178
match scan_directory(PathBuf::new(), &mut args, forge_test_proj, &secret_packages) {
180179
Ok(report) => report,

0 commit comments

Comments
 (0)