Why this matters
Using `.format()` or `%` for string formatting can be less readable and more error-prone. f-strings are faster, more concise, and improve code clarity.
Detect string formatting using `.format()` or `%`. These methods are less readable and slower than f-strings. Recommend converting string formatting to f-strings for better readability and performance.
Using `.format()` or `%` for string formatting can be less readable and more error-prone. f-strings are faster, more concise, and improve code clarity.
Side-by-side examples engineers can pattern-match during review.
Hello, {}'.format(title)f'Hello, {title}'Hello, {}'.format(title)f'Hello, {title}'From the same buckets as this rule.
All static JS/CSS/font/image files MUST use content-hashed filenames (e.g., app.9c1a7b.js) and be served with "Cache-Control: public, max-age=31536000, immutable". HTML and other non-fingerprinted documents MUST be served with "Cache-Control: no-cache" (or equivalent) to enable conditional revalidation.