Skip to content
Snippets Groups Projects
  1. Jan 22, 2021
  2. Oct 07, 2020
  3. Nov 23, 2018
    • Anton Hansson's avatar
      Add linter for strings attribute names · 2f5dd12a
      Anton Hansson authored
      Only one bad example for now, which is a misspelling that's not
      entirely uncommon and can lead to real problems (see linked bug).
      
      Example output:
      Line 58: 'my_new': Misspelled <string> attribute.
              Actual: translateable
              Example: translatable
      
      Bug: 119884572
      Test: with a misspelled attribute
      Change-Id: If61412fe318a34191920781c4834584363080e11
      2f5dd12a
  4. Jun 06, 2018
    • Jeff Sharkey's avatar
      More string lint checks. · 47c79243
      Jeff Sharkey authored
      Expand strings into samples that are representative of what'll be
      shown in UI, and warn if they're longer than defined CHAR LIMIT.
      
      Guide all-caps strings towards android:textAllCaps if actions.
      
      Warn when strings mention "phone" without defining product-specific
      variants.
      
      Bug: 76097999
      Test: manual
      Change-Id: I08046ecf531b2d616cb357639e804b73d6a12bea
      47c79243
  5. Mar 27, 2018
  6. Mar 26, 2018
    • Jeff Sharkey's avatar
      Add linter for strings.xml. · abe058c0
      Jeff Sharkey authored
      Strings are tedious to get right, so write a lint script that catches
      common errors to warn developers before they're uploaded.
      
      Test: builds, boots
      Bug: 76097999
      Change-Id: I9826ca796c17cd93a100951d56214653de63a379
      abe058c0
Loading