Companies have had a strong quarter of beating Wall Street forecasts, and are bullish about the tax-cut future. But investors should be wary.

With 90% of companies in the Standard & Poor’s 500 index having reported fourth-quarter results, it’s safe to call it a banner earnings season. Some 77% of those companies reported profits ahead of Wall Street...