WICG / WICG/shape-detection-api

[shape-detection-api] Enum values that ignore naming conventions in Accelerated Shape Detection in Images

Open
#103 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Bikeshed
Stars
316
Forks
39
Avg merge
8d 3h
Merged PRs (30d)
1

Description

While crawling Accelerated Shape Detection in Images, the following enum values were found to ignore naming conventions (lower case, hyphen separated words):

  • The value "code_128" of the enum BarcodeFormat does not match the expected conventions (lower case, hyphen separated words)
  • The value "code_39" of the enum BarcodeFormat does not match the expected conventions (lower case, hyphen separated words)
  • The value "code_93" of the enum BarcodeFormat does not match the expected conventions (lower case, hyphen separated words)
  • The value "data_matrix" of the enum BarcodeFormat does not match the expected conventions (lower case, hyphen separated words)
  • The value "ean_13" of the enum BarcodeFormat does not match the expected conventions (lower case, hyphen separated words)
  • The value "ean_8" of the enum BarcodeFormat does not match the expected conventions (lower case, hyphen separated words)
  • The value "qr_code" of the enum BarcodeFormat does not match the expected conventions (lower case, hyphen separated words)
  • The value "upc_a" of the enum BarcodeFormat does not match the expected conventions (lower case, hyphen separated words)
  • The value "upc_e" of the enum BarcodeFormat does not match the expected conventions (lower case, hyphen separated words)

See Use casing rules consistent with existing APIs in Web Platform Design Principles document for guidance.

This issue was detected and reported semi-automatically by Strudy based on data collected in webref.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Accelerated Shape Detection in Images specification and its BarcodeFormat enum, then read the linked W3C Web Platform Design Principles casing rules. Update the nine listed values to use lowercase, hyphen-separated names, and verify that every reported convention mismatch is resolved.

Written by the indexing model from the issue text.

Assessment

Domain
api, documentation
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.