You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Disallow uses of unwrap in constellation.rs, compositor.rs, and pipeline.rs #10446
- sh -c "! grep "\.unwrap(" components/compositing/compositor.rs components/compositing/pipeline.rs components/compositing/constellation.rs"
could be directly written into travis.yml as a job.
Activity
matthiaskrgr commentedon Apr 6, 2016
- sh -c "! grep "\.unwrap(" components/compositing/compositor.rs components/compositing/pipeline.rs components/compositing/constellation.rs"could be directly written into travis.yml as a job.
If that is sufficient, feel free to assign to me.
matthiaskrgr commentedon Apr 6, 2016
Or do you really want
".*unwrap.*"?There is also .unwrap_or_else([...]), I was not sure if that should match or not.
jdm commentedon Apr 6, 2016
Unwrap_or_else is fine, since it doesn't actually panic like unwrap does. And yes, I would be ok with using shell scripts for this, but we should make a separate script in
etc/ci/and invoke that from .travis.yml as well as places like https://github.com/servo/saltfs/blob/45a0596d2e7470187121b529d49796fd2668e850/buildbot/master/master.cfg#L112 .notriddle commentedon Apr 6, 2016
Could we add it to tidy?
travis: add and run script which checks if listed files contain "unwr…
Auto merge of #10448 - matthiaskrgr:travis, r=<try>
jdm commentedon Apr 7, 2016
I guess it seemed so specifically targeted (three files) that it seemed like the wrong tool to reach for.
asajeffrey commentedon Apr 8, 2016
I would be very happy to see this, for stopping regressions to #10124 and friends.
travis: add and run script which checks if listed files contain "unwr…
travis: add and run script which checks if listed files contain "unwr…
travis: add and run script which checks if listed files contain "unwr…
travis: add and run script which checks if listed files contain "unwr…
Auto merge of #10448 - matthiaskrgr:travis, r=aneeshusa