scan() — tailwindcss Function Reference
Architecture documentation for the scan() function in scanner.rs from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 66c99d71_b17e_d5a4_2a47_c675fac3c9cc["scan()"] 4e97b231_bdcb_50f8_8ad3_53d02c45a8bb["scan_with_globs()"] 4e97b231_bdcb_50f8_8ad3_53d02c45a8bb -->|calls| 66c99d71_b17e_d5a4_2a47_c675fac3c9cc 3d6ee7b1_389f_c014_eda9_e5665089482c["it_should_work_with_a_set_of_root_files()"] 3d6ee7b1_389f_c014_eda9_e5665089482c -->|calls| 66c99d71_b17e_d5a4_2a47_c675fac3c9cc 48f78aaa_8a97_2326_3cc7_b00da32793a7["it_should_work_with_a_set_of_root_files_and_ignore_ignored_files()"] 48f78aaa_8a97_2326_3cc7_b00da32793a7 -->|calls| 66c99d71_b17e_d5a4_2a47_c675fac3c9cc 54a91333_2ae9_748f_505f_9079dc92275a["it_should_list_all_files_in_the_public_folder_explicitly()"] 54a91333_2ae9_748f_505f_9079dc92275a -->|calls| 66c99d71_b17e_d5a4_2a47_c675fac3c9cc ecdf4601_fa98_0bbe_cb1b_3dffd6b170f6["it_should_list_nested_folders_explicitly_in_the_public_folder()"] ecdf4601_fa98_0bbe_cb1b_3dffd6b170f6 -->|calls| 66c99d71_b17e_d5a4_2a47_c675fac3c9cc 4be3b7ac_76b4_a45f_ec5d_cf4d108c696c["it_should_list_all_files_in_the_public_folder_explicitly_except_ignored_files()"] 4be3b7ac_76b4_a45f_ec5d_cf4d108c696c -->|calls| 66c99d71_b17e_d5a4_2a47_c675fac3c9cc 63dacda9_e6e1_bf98_62b4_b729d1134992["it_should_use_a_glob_for_top_level_folders()"] 63dacda9_e6e1_bf98_62b4_b729d1134992 -->|calls| 66c99d71_b17e_d5a4_2a47_c675fac3c9cc 74f6ae93_1223_5890_3327_f62054600043["it_should_ignore_binary_files()"] 74f6ae93_1223_5890_3327_f62054600043 -->|calls| 66c99d71_b17e_d5a4_2a47_c675fac3c9cc 94f4f740_7674_90b3_54e1_eacece0e686f["it_should_not_ignore_folders_that_end_with_a_binary_extension()"] 94f4f740_7674_90b3_54e1_eacece0e686f -->|calls| 66c99d71_b17e_d5a4_2a47_c675fac3c9cc d82109fe_9ab8_2eb5_5ed6_bba78a54b474["it_should_ignore_known_extensions()"] d82109fe_9ab8_2eb5_5ed6_bba78a54b474 -->|calls| 66c99d71_b17e_d5a4_2a47_c675fac3c9cc e84f1762_fa2f_7b71_d90f_f2fe0874d387["it_should_find_new_extensions()"] e84f1762_fa2f_7b71_d90f_f2fe0874d387 -->|calls| 66c99d71_b17e_d5a4_2a47_c675fac3c9cc 2e6a0376_b97d_045f_abf8_68b9fe19c1dc["it_should_ignore_known_files()"] 2e6a0376_b97d_045f_abf8_68b9fe19c1dc -->|calls| 66c99d71_b17e_d5a4_2a47_c675fac3c9cc eb9a6309_b894_a6a8_cbf0_c9c4c7a9ff09["it_should_ignore_and_expand_nested_ignored_folders()"] eb9a6309_b894_a6a8_cbf0_c9c4c7a9ff09 -->|calls| 66c99d71_b17e_d5a4_2a47_c675fac3c9cc a10b2886_0ac8_fe14_af79_2de580886f1b["it_should_scan_for_utilities()"] a10b2886_0ac8_fe14_af79_2de580886f1b -->|calls| 66c99d71_b17e_d5a4_2a47_c675fac3c9cc style 66c99d71_b17e_d5a4_2a47_c675fac3c9cc fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
crates/oxide/tests/scanner.rs lines 141–143
fn scan(paths_with_content: &[(&str, &str)]) -> ScanResult {
scan_with_globs(paths_with_content, vec!["@source '**/*'"])
}
Domain
Subdomains
Calls
Called By
- it_should_find_new_extensions()
- it_should_ignore_and_expand_nested_ignored_folders()
- it_should_ignore_binary_files()
- it_should_ignore_known_extensions()
- it_should_ignore_known_files()
- it_should_list_all_files_in_the_public_folder_explicitly()
- it_should_list_all_files_in_the_public_folder_explicitly_except_ignored_files()
- it_should_list_nested_folders_explicitly_in_the_public_folder()
- it_should_not_ignore_folders_that_end_with_a_binary_extension()
- it_should_pick_up_new_files()
- it_should_scan_absolute_paths()
- it_should_scan_for_utilities()
- it_should_use_a_glob_for_top_level_folders()
- it_should_work_with_a_set_of_root_files()
- it_should_work_with_a_set_of_root_files_and_ignore_ignored_files()
- scan_with_globs()
- skips_ignore_files_outside_of_a_repo()
- test_allow_default_ignored_files()
- test_allow_default_ignored_files_via_gitignore()
- test_allow_explicit_node_modules_paths()
- test_explicitly_ignore_explicitly_allowed_files()
- test_extract_used_css_variables_from_css()
- test_glob_with_symlinks()
- test_globs_with_recursive_symlinks()
- test_ignore_files_can_be_included_with_custom_source_rule()
- test_manually_scanning_files_should_follow_all_rules()
- test_partial_globs_with_symlinks()
- test_works_with_filenames_containing_glob_characters()
Source
Frequently Asked Questions
What does scan() do?
scan() is a function in the tailwindcss codebase.
What does scan() call?
scan() calls 1 function(s): scan_with_globs.
What calls scan()?
scan() is called by 28 function(s): it_should_find_new_extensions, it_should_ignore_and_expand_nested_ignored_folders, it_should_ignore_binary_files, it_should_ignore_known_extensions, it_should_ignore_known_files, it_should_list_all_files_in_the_public_folder_explicitly, it_should_list_all_files_in_the_public_folder_explicitly_except_ignored_files, it_should_list_nested_folders_explicitly_in_the_public_folder, and 20 more.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free