Module: RuboCop::Cop::Style

Defined in:
lib/rubocop/cop/style/dir.rb,
lib/rubocop/cop/style/for.rb,
lib/rubocop/cop/style/not.rb,
lib/rubocop/cop/style/attr.rb,
lib/rubocop/cop/style/next.rb,
lib/rubocop/cop/style/proc.rb,
lib/rubocop/cop/style/send.rb,
lib/rubocop/cop/style/alias.rb,
lib/rubocop/cop/style/strip.rb,
lib/rubocop/cop/style/and_or.rb,
lib/rubocop/cop/style/lambda.rb,
lib/rubocop/cop/style/sample.rb,
lib/rubocop/cop/style/min_max.rb,
lib/rubocop/cop/style/encoding.rb,
lib/rubocop/cop/style/env_home.rb,
lib/rubocop/cop/style/even_odd.rb,
lib/rubocop/cop/style/copyright.rb,
lib/rubocop/cop/style/date_time.rb,
lib/rubocop/cop/style/dig_chain.rb,
lib/rubocop/cop/style/dir_empty.rb,
lib/rubocop/cop/style/end_block.rb,
lib/rubocop/cop/style/file_null.rb,
lib/rubocop/cop/style/file_read.rb,
lib/rubocop/cop/style/semicolon.rb,
lib/rubocop/cop/style/when_then.rb,
lib/rubocop/cop/style/array_join.rb,
lib/rubocop/cop/style/class_vars.rb,
lib/rubocop/cop/style/empty_else.rb,
lib/rubocop/cop/style/file_empty.rb,
lib/rubocop/cop/style/file_touch.rb,
lib/rubocop/cop/style/file_write.rb,
lib/rubocop/cop/style/map_to_set.rb,
lib/rubocop/cop/style/negated_if.rb,
lib/rubocop/cop/style/nil_lambda.rb,
lib/rubocop/cop/style/raise_args.rb,
lib/rubocop/cop/style/return_nil.rb,
lib/rubocop/cop/style/word_array.rb,
lib/rubocop/cop/style/begin_block.rb,
lib/rubocop/cop/style/class_check.rb,
lib/rubocop/cop/style/global_vars.rb,
lib/rubocop/cop/style/hash_except.rb,
lib/rubocop/cop/style/hash_syntax.rb,
lib/rubocop/cop/style/lambda_call.rb,
lib/rubocop/cop/style/map_to_hash.rb,
lib/rubocop/cop/style/mixin_usage.rb,
lib/rubocop/cop/style/object_then.rb,
lib/rubocop/cop/style/option_hash.rb,
lib/rubocop/cop/style/stderr_puts.rb,
lib/rubocop/cop/style/swap_values.rb,
lib/rubocop/cop/style/symbol_proc.rb,
lib/rubocop/cop/style/unless_else.rb,
lib/rubocop/cop/style/case_like_if.rb,
lib/rubocop/cop/style/empty_method.rb,
lib/rubocop/cop/style/guard_clause.rb,
lib/rubocop/cop/style/ip_addresses.rb,
lib/rubocop/cop/style/missing_else.rb,
lib/rubocop/cop/style/static_class.rb,
lib/rubocop/cop/style/string_chars.rb,
lib/rubocop/cop/style/symbol_array.rb,
lib/rubocop/cop/style/unpack_first.rb,
lib/rubocop/cop/style/case_equality.rb,
lib/rubocop/cop/style/class_methods.rb,
lib/rubocop/cop/style/documentation.rb,
lib/rubocop/cop/style/empty_heredoc.rb,
lib/rubocop/cop/style/empty_literal.rb,
lib/rubocop/cop/style/fetch_env_var.rb,
lib/rubocop/cop/style/format_string.rb,
lib/rubocop/cop/style/infinite_loop.rb,
lib/rubocop/cop/style/negated_while.rb,
lib/rubocop/cop/style/non_nil_check.rb,
lib/rubocop/cop/style/or_assignment.rb,
lib/rubocop/cop/style/perl_backrefs.rb,
lib/rubocop/cop/style/require_order.rb,
lib/rubocop/cop/style/array_coercion.rb,
lib/rubocop/cop/style/ascii_comments.rb,
lib/rubocop/cop/style/block_comments.rb,
lib/rubocop/cop/style/endless_method.rb,
lib/rubocop/cop/style/float_division.rb,
lib/rubocop/cop/style/hash_like_case.rb,
lib/rubocop/cop/style/if_inside_else.rb,
lib/rubocop/cop/style/inline_comment.rb,
lib/rubocop/cop/style/map_into_array.rb,
lib/rubocop/cop/style/mixin_grouping.rb,
lib/rubocop/cop/style/negated_unless.rb,
lib/rubocop/cop/style/nil_comparison.rb,
lib/rubocop/cop/style/quoted_symbols.rb,
lib/rubocop/cop/style/redundant_each.rb,
lib/rubocop/cop/style/redundant_self.rb,
lib/rubocop/cop/style/redundant_sort.rb,
lib/rubocop/cop/style/regexp_literal.rb,
lib/rubocop/cop/style/string_methods.rb,
lib/rubocop/cop/style/symbol_literal.rb,
lib/rubocop/cop/style/while_until_do.rb,
lib/rubocop/cop/style/yaml_file_read.rb,
lib/rubocop/cop/style/yoda_condition.rb,
lib/rubocop/cop/style/array_intersect.rb,
lib/rubocop/cop/style/command_literal.rb,
lib/rubocop/cop/style/double_negation.rb,
lib/rubocop/cop/style/hash_conversion.rb,
lib/rubocop/cop/style/in_pattern_then.rb,
lib/rubocop/cop/style/inverse_methods.rb,
lib/rubocop/cop/style/module_function.rb,
lib/rubocop/cop/style/nested_modifier.rb,
lib/rubocop/cop/style/open_struct_use.rb,
lib/rubocop/cop/style/redundant_begin.rb,
lib/rubocop/cop/style/rescue_modifier.rb,
lib/rubocop/cop/style/safe_navigation.rb,
lib/rubocop/cop/style/self_assignment.rb,
lib/rubocop/cop/style/string_literals.rb,
lib/rubocop/cop/style/super_arguments.rb,
lib/rubocop/cop/style/yoda_expression.rb,
lib/rubocop/cop/style/array_first_last.rb,
lib/rubocop/cop/style/block_delimiters.rb,
lib/rubocop/cop/style/combinable_loops.rb,
lib/rubocop/cop/style/comparable_clamp.rb,
lib/rubocop/cop/style/data_inheritance.rb,
lib/rubocop/cop/style/each_with_object.rb,
lib/rubocop/cop/style/mutable_constant.rb,
lib/rubocop/cop/style/numeric_literals.rb,
lib/rubocop/cop/style/redundant_freeze.rb,
lib/rubocop/cop/style/redundant_return.rb,
lib/rubocop/cop/style/select_by_regexp.rb,
lib/rubocop/cop/style/signal_exception.rb,
lib/rubocop/cop/style/string_hash_keys.rb,
lib/rubocop/cop/style/accessor_grouping.rb,
lib/rubocop/cop/style/bitwise_predicate.rb,
lib/rubocop/cop/style/character_literal.rb,
lib/rubocop/cop/style/colon_method_call.rb,
lib/rubocop/cop/style/commented_keyword.rb,
lib/rubocop/cop/style/global_std_stream.rb,
lib/rubocop/cop/style/hash_each_methods.rb,
lib/rubocop/cop/style/if_with_semicolon.rb,
lib/rubocop/cop/style/multiline_if_then.rb,
lib/rubocop/cop/style/numeric_predicate.rb,
lib/rubocop/cop/style/redundant_sort_by.rb,
lib/rubocop/cop/style/trivial_accessors.rb,
lib/rubocop/cop/style/collection_compact.rb,
lib/rubocop/cop/style/collection_methods.rb,
lib/rubocop/cop/style/combinable_defined.rb,
lib/rubocop/cop/style/comment_annotation.rb,
lib/rubocop/cop/style/eval_with_location.rb,
lib/rubocop/cop/style/exact_regexp_match.rb,
lib/rubocop/cop/style/if_unless_modifier.rb,
lib/rubocop/cop/style/min_max_comparison.rb,
lib/rubocop/cop/style/optional_arguments.rb,
lib/rubocop/cop/style/percent_q_literals.rb,
lib/rubocop/cop/style/random_with_offset.rb,
lib/rubocop/cop/style/redundant_argument.rb,
lib/rubocop/cop/style/slicing_with_range.rb,
lib/rubocop/cop/style/struct_inheritance.rb,
lib/rubocop/cop/style/constant_visibility.rb,
lib/rubocop/cop/style/format_string_token.rb,
lib/rubocop/cop/style/hash_transform_keys.rb,
lib/rubocop/cop/style/multiline_when_then.rb,
lib/rubocop/cop/style/multiple_comparison.rb,
lib/rubocop/cop/style/nested_file_dirname.rb,
lib/rubocop/cop/style/numbered_parameters.rb,
lib/rubocop/cop/style/parallel_assignment.rb,
lib/rubocop/cop/style/redundant_capital_w.rb,
lib/rubocop/cop/style/redundant_condition.rb,
lib/rubocop/cop/style/redundant_exception.rb,
lib/rubocop/cop/style/redundant_percent_q.rb,
lib/rubocop/cop/style/single_argument_dig.rb,
lib/rubocop/cop/style/single_line_methods.rb,
lib/rubocop/cop/style/special_global_vars.rb,
lib/rubocop/cop/style/ternary_parentheses.rb,
lib/rubocop/cop/style/arguments_forwarding.rb,
lib/rubocop/cop/style/def_with_parentheses.rb,
lib/rubocop/cop/style/documentation_method.rb,
lib/rubocop/cop/style/each_for_simple_loop.rb,
lib/rubocop/cop/style/empty_case_condition.rb,
lib/rubocop/cop/style/exponential_notation.rb,
lib/rubocop/cop/style/magic_comment_format.rb,
lib/rubocop/cop/style/one_line_conditional.rb,
lib/rubocop/cop/style/operator_method_call.rb,
lib/rubocop/cop/style/redundant_assignment.rb,
lib/rubocop/cop/style/redundant_initialize.rb,
lib/rubocop/cop/style/string_concatenation.rb,
lib/rubocop/cop/style/while_until_modifier.rb,
lib/rubocop/cop/style/auto_resource_cleanup.rb,
lib/rubocop/cop/style/bare_percent_literals.rb,
lib/rubocop/cop/style/concat_array_literals.rb,
lib/rubocop/cop/style/empty_block_parameter.rb,
lib/rubocop/cop/style/expand_path_arguments.rb,
lib/rubocop/cop/style/hash_transform_values.rb,
lib/rubocop/cop/style/multiline_block_chain.rb,
lib/rubocop/cop/style/multiline_if_modifier.rb,
lib/rubocop/cop/style/multiline_memoization.rb,
lib/rubocop/cop/style/redundant_conditional.rb,
lib/rubocop/cop/style/redundant_fetch_block.rb,
lib/rubocop/cop/style/redundant_parentheses.rb,
lib/rubocop/cop/style/rescue_standard_error.rb,
lib/rubocop/cop/style/zero_length_predicate.rb,
lib/rubocop/cop/style/bisected_attr_accessor.rb,
lib/rubocop/cop/style/conditional_assignment.rb,
lib/rubocop/cop/style/empty_lambda_parameter.rb,
lib/rubocop/cop/style/implicit_runtime_error.rb,
lib/rubocop/cop/style/line_end_concatenation.rb,
lib/rubocop/cop/style/method_def_parentheses.rb,
lib/rubocop/cop/style/numeric_literal_prefix.rb,
lib/rubocop/cop/style/preferred_hash_methods.rb,
lib/rubocop/cop/style/redundant_filter_chain.rb,
lib/rubocop/cop/style/trailing_body_on_class.rb,
lib/rubocop/cop/style/variable_interpolation.rb,
lib/rubocop/cop/style/colon_method_definition.rb,
lib/rubocop/cop/style/explicit_block_argument.rb,
lib/rubocop/cop/style/hash_as_last_array_item.rb,
lib/rubocop/cop/style/nested_ternary_operator.rb,
lib/rubocop/cop/style/redundant_constant_base.rb,
lib/rubocop/cop/style/redundant_interpolation.rb,
lib/rubocop/cop/style/redundant_regexp_escape.rb,
lib/rubocop/cop/style/redundant_string_escape.rb,
lib/rubocop/cop/style/sole_nested_conditional.rb,
lib/rubocop/cop/style/trailing_body_on_module.rb,
lib/rubocop/cop/style/keyword_parameters_order.rb,
lib/rubocop/cop/style/single_line_block_params.rb,
lib/rubocop/cop/style/single_line_do_end_block.rb,
lib/rubocop/cop/style/unless_logical_operators.rb,
lib/rubocop/cop/style/class_and_module_children.rb,
lib/rubocop/cop/style/class_equality_comparison.rb,
lib/rubocop/cop/style/class_methods_definitions.rb,
lib/rubocop/cop/style/keyword_arguments_merging.rb,
lib/rubocop/cop/style/multiline_in_pattern_then.rb,
lib/rubocop/cop/style/negated_if_else_condition.rb,
lib/rubocop/cop/style/numbered_parameters_limit.rb,
lib/rubocop/cop/style/redundant_regexp_argument.rb,
lib/rubocop/cop/style/redundant_self_assignment.rb,
lib/rubocop/cop/style/stabby_lambda_parentheses.rb,
lib/rubocop/cop/style/missing_respond_to_missing.rb,
lib/rubocop/cop/style/multiline_method_signature.rb,
lib/rubocop/cop/style/multiline_ternary_operator.rb,
lib/rubocop/cop/style/nested_parenthesized_calls.rb,
lib/rubocop/cop/style/optional_boolean_parameter.rb,
lib/rubocop/cop/style/percent_literal_delimiters.rb,
lib/rubocop/cop/style/invertible_unless_condition.rb,
lib/rubocop/cop/style/redundant_array_constructor.rb,
lib/rubocop/cop/style/redundant_line_continuation.rb,
lib/rubocop/cop/style/super_with_args_parentheses.rb,
lib/rubocop/cop/style/top_level_method_definition.rb,
lib/rubocop/cop/style/trailing_comma_in_arguments.rb,
lib/rubocop/cop/style/access_modifier_declarations.rb,
lib/rubocop/cop/style/bisected_attr_accessor/macro.rb,
lib/rubocop/cop/style/double_cop_disable_directive.rb,
lib/rubocop/cop/style/parentheses_around_condition.rb,
lib/rubocop/cop/style/redundant_regexp_constructor.rb,
lib/rubocop/cop/style/safe_navigation_chain_length.rb,
lib/rubocop/cop/style/trailing_comma_in_block_args.rb,
lib/rubocop/cop/style/trailing_underscore_variable.rb,
lib/rubocop/cop/style/frozen_string_literal_comment.rb,
lib/rubocop/cop/style/method_called_on_do_end_block.rb,
lib/rubocop/cop/style/send_with_literal_method_name.rb,
lib/rubocop/cop/style/trailing_method_end_statement.rb,
lib/rubocop/cop/style/identical_conditional_branches.rb,
lib/rubocop/cop/style/trailing_comma_in_hash_literal.rb,
lib/rubocop/cop/style/if_unless_modifier_of_if_unless.rb,
lib/rubocop/cop/style/trailing_comma_in_array_literal.rb,
lib/rubocop/cop/style/document_dynamic_eval_definition.rb,
lib/rubocop/cop/style/if_with_boolean_literal_branches.rb,
lib/rubocop/cop/style/redundant_interpolation_unfreeze.rb,
lib/rubocop/cop/style/redundant_regexp_character_class.rb,
lib/rubocop/cop/style/redundant_self_assignment_branch.rb,
lib/rubocop/cop/style/string_literals_in_interpolation.rb,
lib/rubocop/cop/style/method_call_with_args_parentheses.rb,
lib/rubocop/cop/style/map_compact_with_conditional_block.rb,
lib/rubocop/cop/style/redundant_double_splat_hash_braces.rb,
lib/rubocop/cop/style/redundant_heredoc_delimiter_quotes.rb,
lib/rubocop/cop/style/trailing_body_on_method_definition.rb,
lib/rubocop/cop/style/ambiguous_endless_method_definition.rb,
lib/rubocop/cop/style/redundant_current_directory_in_path.rb,
lib/rubocop/cop/style/redundant_file_extension_in_require.rb,
lib/rubocop/cop/style/method_call_without_args_parentheses.rb,
lib/rubocop/cop/style/disable_cops_within_source_code_directive.rb,
lib/rubocop/cop/style/return_nil_in_predicate_method_definition.rb,
lib/rubocop/cop/style/method_call_with_args_parentheses/omit_parentheses.rb,
lib/rubocop/cop/style/method_call_with_args_parentheses/require_parentheses.rb

Defined Under Namespace

Modules: ConditionalAssignmentHelper, ConditionalCorrectorHelper Classes: AccessModifierDeclarations, AccessorGrouping, Alias, AmbiguousEndlessMethodDefinition, AndOr, ArgumentsForwarding, ArrayCoercion, ArrayFirstLast, ArrayIntersect, ArrayJoin, AsciiComments, Attr, AutoResourceCleanup, BarePercentLiterals, BeginBlock, BisectedAttrAccessor, BitwisePredicate, BlockComments, BlockDelimiters, CaseCorrector, CaseEquality, CaseLikeIf, CharacterLiteral, ClassAndModuleChildren, ClassCheck, ClassEqualityComparison, ClassMethods, ClassMethodsDefinitions, ClassVars, CollectionCompact, CollectionMethods, ColonMethodCall, ColonMethodDefinition, CombinableDefined, CombinableLoops, CommandLiteral, CommentAnnotation, CommentedKeyword, ComparableClamp, ConcatArrayLiterals, ConditionalAssignment, ConstantVisibility, Copyright, DataInheritance, DateTime, DefWithParentheses, DigChain, Dir, DirEmpty, DisableCopsWithinSourceCodeDirective, DocumentDynamicEvalDefinition, Documentation, DocumentationMethod, DoubleCopDisableDirective, DoubleNegation, EachForSimpleLoop, EachWithObject, EmptyBlockParameter, EmptyCaseCondition, EmptyElse, EmptyHeredoc, EmptyLambdaParameter, EmptyLiteral, EmptyMethod, Encoding, EndBlock, EndlessMethod, EnvHome, EvalWithLocation, EvenOdd, ExactRegexpMatch, ExpandPathArguments, ExplicitBlockArgument, ExponentialNotation, FetchEnvVar, FileEmpty, FileNull, FileRead, FileTouch, FileWrite, FloatDivision, For, FormatString, FormatStringToken, FrozenStringLiteralComment, GlobalStdStream, GlobalVars, GuardClause, HashAsLastArrayItem, HashConversion, HashEachMethods, HashExcept, HashLikeCase, HashSyntax, HashTransformKeys, HashTransformValues, IdenticalConditionalBranches, IfCorrector, IfInsideElse, IfUnlessModifier, IfUnlessModifierOfIfUnless, IfWithBooleanLiteralBranches, IfWithSemicolon, ImplicitRuntimeError, InPatternThen, InfiniteLoop, InlineComment, InverseMethods, InvertibleUnlessCondition, IpAddresses, KeywordArgumentsMerging, KeywordParametersOrder, Lambda, LambdaCall, LineEndConcatenation, MagicCommentFormat, MapCompactWithConditionalBlock, MapIntoArray, MapToHash, MapToSet, MethodCallWithArgsParentheses, MethodCallWithoutArgsParentheses, MethodCalledOnDoEndBlock, MethodDefParentheses, MinMax, MinMaxComparison, MissingElse, MissingRespondToMissing, MixinGrouping, MixinUsage, ModuleFunction, MultilineBlockChain, MultilineIfModifier, MultilineIfThen, MultilineInPatternThen, MultilineMemoization, MultilineMethodSignature, MultilineTernaryOperator, MultilineWhenThen, MultipleComparison, MutableConstant, NegatedIf, NegatedIfElseCondition, NegatedUnless, NegatedWhile, NestedFileDirname, NestedModifier, NestedParenthesizedCalls, NestedTernaryOperator, Next, NilComparison, NilLambda, NonNilCheck, Not, NumberedParameters, NumberedParametersLimit, NumericLiteralPrefix, NumericLiterals, NumericPredicate, ObjectThen, OneLineConditional, OpenStructUse, OperatorMethodCall, OptionHash, OptionalArguments, OptionalBooleanParameter, OrAssignment, ParallelAssignment, ParenthesesAroundCondition, PercentLiteralDelimiters, PercentQLiterals, PerlBackrefs, PreferredHashMethods, Proc, QuotedSymbols, RaiseArgs, RandomWithOffset, RedundantArgument, RedundantArrayConstructor, RedundantAssignment, RedundantBegin, RedundantCapitalW, RedundantCondition, RedundantConditional, RedundantConstantBase, RedundantCurrentDirectoryInPath, RedundantDoubleSplatHashBraces, RedundantEach, RedundantException, RedundantFetchBlock, RedundantFileExtensionInRequire, RedundantFilterChain, RedundantFreeze, RedundantHeredocDelimiterQuotes, RedundantInitialize, RedundantInterpolation, RedundantInterpolationUnfreeze, RedundantLineContinuation, RedundantParentheses, RedundantPercentQ, RedundantRegexpArgument, RedundantRegexpCharacterClass, RedundantRegexpConstructor, RedundantRegexpEscape, RedundantReturn, RedundantSelf, RedundantSelfAssignment, RedundantSelfAssignmentBranch, RedundantSort, RedundantSortBy, RedundantStringEscape, RegexpLiteral, RequireOrder, RescueModifier, RescueStandardError, ReturnNil, ReturnNilInPredicateMethodDefinition, SafeNavigation, SafeNavigationChainLength, Sample, SelectByRegexp, SelfAssignment, Semicolon, Send, SendWithLiteralMethodName, SignalException, SingleArgumentDig, SingleLineBlockParams, SingleLineDoEndBlock, SingleLineMethods, SlicingWithRange, SoleNestedConditional, SpecialGlobalVars, StabbyLambdaParentheses, StaticClass, StderrPuts, StringChars, StringConcatenation, StringHashKeys, StringLiterals, StringLiteralsInInterpolation, StringMethods, Strip, StructInheritance, SuperArguments, SuperWithArgsParentheses, SwapValues, SymbolArray, SymbolLiteral, SymbolProc, TernaryCorrector, TernaryParentheses, TopLevelMethodDefinition, TrailingBodyOnClass, TrailingBodyOnMethodDefinition, TrailingBodyOnModule, TrailingCommaInArguments, TrailingCommaInArrayLiteral, TrailingCommaInBlockArgs, TrailingCommaInHashLiteral, TrailingMethodEndStatement, TrailingUnderscoreVariable, TrivialAccessors, UnlessElse, UnlessLogicalOperators, UnpackFirst, VariableInterpolation, WhenThen, WhileUntilDo, WhileUntilModifier, WordArray, YAMLFileRead, YodaCondition, YodaExpression, ZeroLengthPredicate