I would like to add:
An important consideration to keep in mind relative to shock lengths is how this correlates and is directly related/important to suspension travel and protection of the shock, the UCA and other ancillary components. Travel typically on our 100's IFS is limited at full droop by the shock; however this is related and can be dependent upon what UCA is utilized. So, for example, if said shock is designed for more droop stop but the joint (ball joint, spherical bearing) bottoms out before the shock 'stop' you'll accelerate wear on the balljoint/spherical bearing or worse; you don't want the ball joint or spherical ("Uni-Ball") to be the limit for droop and compression! This consideration also applies to the arm of the UCA and its relationship with the frame brackets...someone posted a photo of the SPC arm bottomed out on the frame bracket...this is another example of what not to do!
Likewise on the compression side its important to know the measurement between the shock mount locations at full compressed stop of the suspension. Determining this measurement can be a little tricky as the compression bump stops are made of rubber and have some over-travel that is related to the applied force.
Given how relatively limited the front suspension travel is on our IFS, especially the shock itself, if you're like me you want to take advantage of a majority of this travel and therefore don't want to sacrifice an inch or more of said travel added in for extra assurance from the various component manufacturers (shock, UCA and bump stops)...in essence covering their butts from a liability perspective.
For the individual component manufacturers it represents either lost travel and/or increased liability outside their control; Carl and Christo alluded to this very real world issue.
To sum this up: To maximize the travel of our front IFS suspension and to reduce the overall liability of swapping a given shock into an unknown system its important to think about the collection of components as a "system"...again per what Carl spoke about.
The other and arguably better/best method is to cycle the front (rear too for that matter) the suspension without the shock and spring in the equation and measure the full droop out dimension and the fully compressed dimension. This is the best and only way I know of to guarantee performance of the system as well as protection for the related components. The shock's droop out dimension (extended measurement) should be just shy of the suspensions full static droop out (approximately a minimum of 1/4" assuming full compression of any non-rigid droop stop). And the compression bump stop(s) should completely isolate the shock's compressed length and balljoint/spherical bearing top out to eliminate premature wear of these components (or worse).
If you take the time to cycle and measure the maximum and minimum dimensions for your suspension's travel you won't waste: Time, money and safety if left to chance...
Just my $.02...