GoogleChrome / lighthouse

Automated auditing, performance metrics, and best practices for the web.
https://developer.chrome.com/docs/lighthouse/overview/
Apache License 2.0
28.13k stars 9.34k forks source link

renaming confusing config properties #688

Closed brendankenny closed 6 years ago

brendankenny commented 7 years ago

The config file was put together very quickly and has evolved somewhat haphazardly, so it's time to take a look at cleaning it up. Here's a list of properties in the config file I've witnessed confuse some users, and a suggestion for how they could be changed. Feel free to bikeshed away and add more. After this we can start documenting re: #672

Note that if we change these, anyone with a custom config will be broken, so we probably want to do this right once and then stick to them until LH2.0.

Under aggregations:

Any other ones?

ebidel commented 7 years ago

for rawValue -> expectedValue, I think @paulirish mentioned these are for figuring out the value type for the report. Maybe it should be rawValue -> valueIsOfType? IDK

wardpeet commented 7 years ago

In my opinion rawValue is a good choice. The value is raw => whatever comes out of the audit. In config i'm ok with expectedValue.

What might also help is maybe a config generator which we once discussed when @paulirish had to leave. Where more information can be given as well for each property

categorizable => maybe should be showInReport ?

brendankenny commented 7 years ago

In my opinion rawValue is a good choice. The value is raw => whatever comes out of the audit. In config i'm ok with expectedValue.

Yes, this is for the config file only, where expectedValue is much clearer to someone writing a custom config. Agreed that rawValue on the audit result itself is still a good choice.

patrickhulce commented 6 years ago

done enough