From c7a4e54e60215d4fa4605283d200cc5a24a6fda9 Mon Sep 17 00:00:00 2001 From: Marc-Andre Lafortune Date: Tue, 26 May 2020 03:16:38 -0400 Subject: [PATCH] Document class Cop::Team [doc] --- lib/rubocop/cop/team.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/rubocop/cop/team.rb b/lib/rubocop/cop/team.rb index 1adf054be76..c39bc13e3f2 100644 --- a/lib/rubocop/cop/team.rb +++ b/lib/rubocop/cop/team.rb @@ -2,7 +2,13 @@ module RuboCop module Cop - # FIXME + # A group of cops, ready to be called on duty to inspect files. + # Team is responsible for selecting only relevant cops to be sent on duty, + # as well as insuring that the needed forces are sent along with them. + # + # For performance reasons, Team will first dispatch cops & forces in two groups, + # first the ones needed for autocorrection (if any), then the rest + # (unless autocorrections happened). class Team DEFAULT_OPTIONS = { auto_correct: false,