Module: Brut
- Defined in:
- lib/brut.rb,
lib/brut/cli.rb,
lib/brut/version.rb,
lib/brut/framework.rb,
lib/brut/spec_support.rb,
lib/brut/cli/app_runner.rb,
lib/brut/rubocop_config.rb,
lib/brut/framework/errors.rb,
lib/brut/back_end/seed_data.rb,
lib/brut/framework/container.rb,
lib/brut/cli/execution_results.rb
Overview
- prevent use of postfix conditonals entirely
Defined Under Namespace
Modules: BackEnd, CLI, Framework, FrontEnd, I18n, Instrumentation, SinatraHelpers, SpecSupport Classes: FactoryBot, RubocopConfig
Constant Summary collapse
- IM_NOT_CALLING_THEM_COPS =
{ "Gemspec/AddRuntimeDependency" => true, "Lint/AmbiguousAssignment" => true, "Lint/AmbiguousOperator" => true, "Lint/AmbiguousOperatorPrecedence" => true, "Lint/AmbiguousRange" => true, "Lint/AmbiguousRegexpLiteral" => true, "Lint/DuplicateCaseCondition" => true, "Lint/DuplicateElsifCondition" => true, "Lint/Loop" => true, "Lint/RedundantSplatExpansion" => true, "Lint/RedundantStringCoercion" => true, "Lint/RedundantTypeConversion" => true, "Lint/ToJSON" => true, "Style/ColonMethodDefinition" => true, "Style/DefWithParentheses" => true, "Style/InvertibleUnlessCondition" => true, "Style/KeywordArgumentsMerging" => true, "Style/MethodDefParentheses" => true, "Style/MissingRespondToMissing" => true, "Style/MultilineTernaryOperator" => true, "Style/NegatedUnless" => true, "Style/NestedTernaryOperator" => true, "Style/PreferredHashMethods" => true, "Style/UnlessElse" => true, "Style/UnlessLogicalOperators" => true, "Layout/DotPosition" => { "EnforcedStyle" => "trailing", }, "Lint/AssignmentInCondition" => { "AllowSafeAssignment" => "false", }, "Style/ClassMethodsDefinitions" => { "EnforcedStyle" => "def_self", }, "Style/CollectionMethods" => { "PreferredMethods" => { "find" => "detect", "collect" => "map", "find_all" => "select", "member?" => "include?", }, }, "Style/EndlessMethod" => { "EnforcedStyle" => "allow_single_line", }, "Style/For" => { "EnforcedStyle" => "each", }, "Style/YodaCondition" => { "EnforcedStyle" => "forbid_for_all_comparison_operators", }, "Style/DisableSyntax" => { "DisableSyntax" => [ "unless", "and_or_not", "until", ], }, "Style/TrailingCommaInArrayLiteral" => { "EnforcedStyleForMultiline" => "consistent_comma", }, "Style/TrailingCommaInHashLiteral" => { "EnforcedStyleForMultiline" => "consistent_comma", }, # Documented, but nonexistent #"Style/ItBlockParameter" => { # "EnforcedStyle" => "allow_single_line", #}, }
- PREAMBLE =
Documented, but nonexistent "Style/ItBlockParameter" => { "EnforcedStyle" => "allow_single_line", },
{ "inherit_mode" => { "merge" => [ "Exclude" ], }, "plugins" => [ "rubocop-disable_syntax", ], "AllCops" => { "DisabledByDefault" => true, "TargetRubyVersion" => RUBY_VERSION.split(".")[0..1].join("."), "SuggestExtensions" => false, "Exclude" => [ "local-gems/**/*", "**/local-gems/**/*", "node_modules/**/*", "**/node_modules/**/*", ], }, }
Class Method Summary collapse
-
.container(&block) ⇒ Object
Provides access to the singelton container that contains all of Brut's current configuration.
Class Method Details
.container(&block) ⇒ Object
Provides access to the singelton container that contains all of Brut's current configuration.
5 6 7 8 9 10 11 |
# File 'lib/brut/framework/container.rb', line 5 def self.container(&block) @container ||= Brut::Framework::Container.new if !block.nil? block.(@container) end @container end |