-
Added
is_potentially_unwanted_file
function:- Checks if a file contains only comments or whitespace and does not contain useful code.
-
Modifications to
process_file
function:- Added file deletion if, after linting, it contains only comments or the line
event_inherited();
. - If a file is deleted, it is not returned in the list of processed files.
- Added a check for potentially unwanted files using
is_potentially_unwanted_file
, and the paths to such files are added to thepotential_unwanted_files
list.
- Added file deletion if, after linting, it contains only comments or the line
-
Changes to
process_files_in_directory
andprocess_individual_files
functions:- Added processing of the
potential_unwanted_files
list, which is populated with paths to potentially unwanted files. - Added
show_potential_unwanted_files_alert
function to display a warning about potentially unwanted files.
- Added processing of the
-
Added
show_potential_unwanted_files_alert
function:- Displays a window listing files containing only comments, with the option to open them by double-clicking.
-
Renamed and modified
update_progress_bar
andupdate_log
functions:- Renamed to
update_progress
andshow_logs
, respectively, for clarity of their purposes. - Changed progress and log update behavior to display only completed linting messages.
- Renamed to
-
UI Changes:
- Used
StringVar
to store paths to selected files and folders. - Added new controls for folder and file selection.
- The
Start Linting
button now initiates the linting process based on selected folders or files.
- Used
-
Removed and renamed some functions:
- The
_process_selected_folder
function was replaced with the use offolder_path
and a more streamlined process in thestart_linting
function. - The
_process_selected_files
function was replaced with the use offile_list
and a more streamlined process in thestart_linting
function.
- The
-
Changed processing startup:
- Instead of creating separate threads for processing files and updating progress/logs,
start_linting
now starts the necessary functions in threads as needed.
- Instead of creating separate threads for processing files and updating progress/logs,
These changes significantly enhance functionality by improving file processing and user interface, adding the ability to display warnings about potentially unwanted files, and improving the overall user experience.
Full Changelog: v2.0.1-update...v3