Skip to content

Commit 42049c8

Browse files
author
Gal Ben David
committed
wip
1 parent d1fcdf6 commit 42049c8

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/git_repository_scanner.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -304,24 +304,24 @@ PYBIND11_MODULE(pyrepscan, m) {
304304
pybind11::class_<GitRepositoryScanner>(m, "GitRepositoryScanner")
305305
.def(
306306
pybind11::init<>(),
307-
""
307+
"GitRepositoryScanner is the main class that holds all the rules and scans the repository"
308308
)
309309
.def(
310310
"scan",
311311
&GitRepositoryScanner::scan,
312-
"",
312+
"Scan a repository for secrets",
313313
pybind11::arg("repository_path"),
314314
pybind11::arg("branch_glob_pattern")
315315
)
316316
.def(
317317
"compile_rules",
318318
&GitRepositoryScanner::compile_rules,
319-
""
319+
"Compile all the added rules to make them available for a scan.\nCall this function after you finished adding all the rules"
320320
)
321321
.def(
322322
"add_rule",
323323
&GitRepositoryScanner::add_rule,
324-
"",
324+
"Adding a rule to the list of rules.\nAfter a compile_rules call, no more rules can be added.",
325325
pybind11::arg("name"),
326326
pybind11::arg("match_pattern"),
327327
pybind11::arg("match_whitelist_patterns"),
@@ -330,19 +330,19 @@ PYBIND11_MODULE(pyrepscan, m) {
330330
.def(
331331
"add_ignored_file_extension",
332332
&GitRepositoryScanner::add_ignored_file_extension,
333-
"",
333+
"Add a file extension to ignore during the scan",
334334
pybind11::arg("file_extension")
335335
)
336336
.def(
337337
"add_ignored_file_path",
338338
&GitRepositoryScanner::add_ignored_file_path,
339-
"",
339+
"Add a file path text to ignore during the scan.\nIf this text would exist in the examined file path, the file would be ignored.",
340340
pybind11::arg("file_path")
341341
)
342342
.def(
343343
"get_file_content",
344344
&GitRepositoryScanner::get_file_content,
345-
"",
345+
"Retrieving the content of a file.",
346346
pybind11::arg("repository_path"),
347347
pybind11::arg("file_oid")
348348
);

0 commit comments

Comments
 (0)