scan() — tailwindcss Function Reference
Architecture documentation for the scan() function in scanner.rs from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 89cd8369_536c_74e5_91d1_719df04e4597["scan()"] 6b48c515_a72f_7a7d_7ea7_b80f71a82b19["scanner.rs"] 89cd8369_536c_74e5_91d1_719df04e4597 -->|defined in| 6b48c515_a72f_7a7d_7ea7_b80f71a82b19 15062065_cf6b_d794_5db7_667a2b756e64["scan_with_globs()"] 15062065_cf6b_d794_5db7_667a2b756e64 -->|calls| 89cd8369_536c_74e5_91d1_719df04e4597 2092ae1f_14f8_f4af_ad82_6755577cc36d["it_should_work_with_a_set_of_root_files()"] 2092ae1f_14f8_f4af_ad82_6755577cc36d -->|calls| 89cd8369_536c_74e5_91d1_719df04e4597 ff4b0e24_c416_72b3_047e_20097c9ba7bc["it_should_work_with_a_set_of_root_files_and_ignore_ignored_files()"] ff4b0e24_c416_72b3_047e_20097c9ba7bc -->|calls| 89cd8369_536c_74e5_91d1_719df04e4597 f3475ee4_0d82_8caa_5bcd_8aa83579f140["it_should_list_all_files_in_the_public_folder_explicitly()"] f3475ee4_0d82_8caa_5bcd_8aa83579f140 -->|calls| 89cd8369_536c_74e5_91d1_719df04e4597 273759fb_ee28_7521_238d_19c05df4740e["it_should_list_nested_folders_explicitly_in_the_public_folder()"] 273759fb_ee28_7521_238d_19c05df4740e -->|calls| 89cd8369_536c_74e5_91d1_719df04e4597 ea1291ed_47e2_4596_218e_e1bcd1fe4ef8["it_should_list_all_files_in_the_public_folder_explicitly_except_ignored_files()"] ea1291ed_47e2_4596_218e_e1bcd1fe4ef8 -->|calls| 89cd8369_536c_74e5_91d1_719df04e4597 cdbb89da_9457_5926_8718_eae02d5b9f54["it_should_use_a_glob_for_top_level_folders()"] cdbb89da_9457_5926_8718_eae02d5b9f54 -->|calls| 89cd8369_536c_74e5_91d1_719df04e4597 29e10584_f0a5_1158_050c_af6bb019d995["it_should_ignore_binary_files()"] 29e10584_f0a5_1158_050c_af6bb019d995 -->|calls| 89cd8369_536c_74e5_91d1_719df04e4597 bfd89214_e63e_8e78_1ca6_8dd2376173d6["it_should_not_ignore_folders_that_end_with_a_binary_extension()"] bfd89214_e63e_8e78_1ca6_8dd2376173d6 -->|calls| 89cd8369_536c_74e5_91d1_719df04e4597 805edda7_5484_7ba0_317d_9640c46b5c66["it_should_ignore_known_extensions()"] 805edda7_5484_7ba0_317d_9640c46b5c66 -->|calls| 89cd8369_536c_74e5_91d1_719df04e4597 3136f331_bbeb_be6c_c0ef_e21b3e8c6bd5["it_should_find_new_extensions()"] 3136f331_bbeb_be6c_c0ef_e21b3e8c6bd5 -->|calls| 89cd8369_536c_74e5_91d1_719df04e4597 72980989_3935_2420_83ed_57ec17224bda["it_should_ignore_known_files()"] 72980989_3935_2420_83ed_57ec17224bda -->|calls| 89cd8369_536c_74e5_91d1_719df04e4597 3cdb8233_b081_8b34_6b59_854c1795b003["it_should_ignore_and_expand_nested_ignored_folders()"] 3cdb8233_b081_8b34_6b59_854c1795b003 -->|calls| 89cd8369_536c_74e5_91d1_719df04e4597 style 89cd8369_536c_74e5_91d1_719df04e4597 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
Defined In
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, defined in crates/oxide/tests/scanner.rs.
Where is scan() defined?
scan() is defined in crates/oxide/tests/scanner.rs at line 141.
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