Uploaded image for project: 'Yetus'
  1. Yetus
  2. YETUS-1127

exclusions rework

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.14.0
    • 0.14.0
    • Precommit
    • None
    • Hide
      <!-- markdown -->

      Users:

      Exclusion support has been modified to be slightly incompatible with previous releases:

      * By default, `.yetus/excludes.txt` was supposed to have been read. However in previous releases it was ignored unless manually specified.
      * `--excludes` has been restricted such that only files within the source repository, especially when running in `--docker` mode
      * During a PR, the working set of changed files will now be completely recalculated, not just have additional files excluded.
      * The `asflicense` plug-in will now honor the global excludes file unless `--asflicense-rat-globalexcludes=false` is passed.
      * As a reminder, the excludes file needs to be regular expressions, not file globs. Therefore `.*` is the 'match everything' string.
      * Several bugs with exclusion in various plug-ins have been simplified/cleaned up and should result in fewer corner-case issues.

      Developers:

      * `yetus_file_to_array` has been modified to additionally strip out lines that contain spaces in addition to empty lines and lines that begin with a comment.
      * The private function `find_changed_dirs` and the `CHANGED_DIRS` variable has been removed. It has always been broken and nothing was known to use it.
      Show
      <!-- markdown --> Users: Exclusion support has been modified to be slightly incompatible with previous releases: * By default, `.yetus/excludes.txt` was supposed to have been read. However in previous releases it was ignored unless manually specified. * `--excludes` has been restricted such that only files within the source repository, especially when running in `--docker` mode * During a PR, the working set of changed files will now be completely recalculated, not just have additional files excluded. * The `asflicense` plug-in will now honor the global excludes file unless `--asflicense-rat-globalexcludes=false` is passed. * As a reminder, the excludes file needs to be regular expressions, not file globs. Therefore `.*` is the 'match everything' string. * Several bugs with exclusion in various plug-ins have been simplified/cleaned up and should result in fewer corner-case issues. Developers: * `yetus_file_to_array` has been modified to additionally strip out lines that contain spaces in addition to empty lines and lines that begin with a comment. * The private function `find_changed_dirs` and the `CHANGED_DIRS` variable has been removed. It has always been broken and nothing was known to use it.
    • Important

    Description

      Working on detsecrets, it is very clear that exclusions needs to have some things re-thought. In particular:

      a) comments in the file
      b) exclusions file itself should probably be an exclusions ....
      c) common code for routines to ignore files

      Attachments

        Issue Links

          Activity

            People

              aw Allen Wittenauer
              aw Allen Wittenauer
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m