Scan settings are automatically saved to make discovery faster for further analysis of a same folder,. This will save the scanning and upload settings regarding choice of folder, technologies and frameworks in the local agent.
When you scan an application for which you have already defined technologies, folders and files to be excluded, the Local Agent creates a .casthighlight file in the scan folder entry point ie root source folder that contains this configuration. Highlight will automatically use this configuration for the next scan.
This will be seen till the the configuration file ( .casthighlight ) is kept in your root source folder.