Skip to content
Compare
Choose a tag to compare
@beccapana beccapana released this 20 Aug 00:12
· 9 commits to main since this release
  1. Added is_potentially_unwanted_file function:

    • Checks if a file contains only comments or whitespace and does not contain useful code.
  2. 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 the potential_unwanted_files list.
  3. Changes to process_files_in_directory and process_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.
  4. Added show_potential_unwanted_files_alert function:

    • Displays a window listing files containing only comments, with the option to open them by double-clicking.
  5. Renamed and modified update_progress_bar and update_log functions:

    • Renamed to update_progress and show_logs, respectively, for clarity of their purposes.
    • Changed progress and log update behavior to display only completed linting messages.
  6. 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.
  7. Removed and renamed some functions:

    • The _process_selected_folder function was replaced with the use of folder_path and a more streamlined process in the start_linting function.
    • The _process_selected_files function was replaced with the use of file_list and a more streamlined process in the start_linting function.
  8. 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.

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