Create default settings yml for config install

Created on 7 February 2025, 22 days ago

Problem/Motivation

It would be good to have the module install with some default / example rules and settings so that site builders do not have to start from scratch. This will also aid in writing tests as we will have some known rules to start with.

Default settings

  • Validation disabled
  • Cron disabled
  • cron delay 7 days
  • Rules
    • enabled: prevent can not contain filename - guidance message TBD
    • enabled: warn title cannot match alt - guidance message TBD
    • enabled: warn photo of - guidance message TBD

Remaining tasks

Determine the feedback messages for the rules

✨ Feature request
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States swirt Florida

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @swirt
  • πŸ‡ΊπŸ‡ΈUnited States swirt Florida
  • πŸ‡ΊπŸ‡ΈUnited States swirt Florida
  • πŸ‡ΊπŸ‡ΈUnited States swirt Florida

    The exact set of starter rules has not been determined yet. This ticket is blocked until we have decided on the set of rules.

  • πŸ‡ΊπŸ‡ΈUnited States maggiewachs

    In addition to the rules defined in default settings above, I'd check for the following (examples of bad alt text I've encountered in the wild):

    • file extension
    • hyphenated text that doesn't match file name ("red-car-at-stoplight")
    • keywords: "placeholder", "screenshot"
  • πŸ‡ΊπŸ‡ΈUnited States swirt Florida

    Thanks maggiewachs, that hyphenated one is interesting. I am not sure how to even support that one. We could probably use regex to look for words with too many hyphens but what is too many hyphens? Greater than one per word?

Production build 0.71.5 2024