mozilla / observatory-cli

Mozilla Public License 2.0
187 stars 24 forks source link

--zero plus --format report doesn't show test name #18

Closed april closed 7 years ago

april commented 7 years ago
❯ observatory --format report --rescan --zero www.mozilla.org                                                                   [12:40:26]
observatory [WARN] retrying in 1 second (attempt 1/10)
observatory [WARN] Rescan attempt is sooner than the allowed cooldown period. Returning cached results instead.
observatory [WARN] retrying in 1 second (attempt 3/10)
observatory [WARN] retrying in 1 second (attempt 4/10)

HTTP Observatory Report: www.mozilla.org

Score Rule                           Description
  -20 content-security-policy        Content Security Policy (CSP) implemented unsafely.
    0 x-xss-protection               X-XSS-Protection header set to "1; mode=block".
    0 cookies                        No cookies detected.
    0 cross-origin-resource-sharing  Content is not visible via cross-origin resource sharing (CORS) files or headers.
    0 public-key-pinning             HTTP Public Key Pinning (HPKP) header not implemented.
    0 contribute                     Contribute.json implemented with the required contact information.
    0 strict-transport-security      HTTP Strict Transport Security (HSTS) header set to a minimum of six months (15768000).
    0 subresource-integrity          Subresource Integrity (SRI) not implemented, but all scripts are loaded from a similar origin.
    0 x-content-type-options         X-Content-Type-Options header set to "nosniff".
    0 x-frame-options                X-Frame-Options (XFO) header set to SAMEORIGIN or DENY.
    0 redirection                    Initial redirection is to https on same host, final destination is https.

Score: 80
Grade: B+

Full Report Url: https://observatory.mozilla.org/analyze.html?host=www.mozilla.org
april commented 7 years ago

Actually, I stand corrected. It does show the test names, they're just exactly the same color as my terminal.

april commented 7 years ago

My Terminal

gregglind commented 7 years ago

haha! So, what's the right answer there? they were meant to be greyed out so they don't get in the way. I am open to ideas about solving this one :)

gregglind commented 7 years ago

Some options:

april commented 7 years ago

I would simply say to not have them grayed out. Just have them be the normal text color. If you've set --zero, you obviously want to see them and there's no reason for them to be grayed out.