Migration from AdLint 1 to 2

This document describes major changes from AdLint 1 series to AdLint 2 series and how to migrate.

You cannot use old traits files with AdLint 2 series.

Changes

  1. exam_packages item in global section is added
  2. message_with_class item in message_traits section is added
  3. warn_only_files_in item in message_traits section is added
  4. individual_selection item in message_traits section is added
  5. exclusion item in message_traits section is added
  6. inclusion item in message_traits section is added
  7. change_list item in message_traits section is changed

See 4.2 Traits File for more details.

How to migrate

New --migrate option is added to adlintize command.

--migrate option migrates traits file from old format to new one of AdLint 2 series.

You can migrate traits files by the following instruction.

 % ls adlint_traits.yml
 adlint_traits.yml
 % adlintize --migrate adlint_traits.yml

adlint_traits.yml format will be migrated, and old contents will be saved as adlint_traits.yml.orig file.