Skip to content

Commit

Permalink
Fix Rubocop violations
Browse files Browse the repository at this point in the history
Addressed the new linting issues.
  • Loading branch information
enkessler committed May 21, 2022
1 parent 68ccbb8 commit 18a562a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module CukeLinter
class FeatureWithoutScenariosLinter < Linter

# The rule used to determine if a model has a problem
def rule(model)
def rule(model) # rubocop:disable Metrics/CyclomaticComplexity # It's good enough
return false unless model.is_a?(CukeModeler::Feature)

feature_tests = model.tests && model.tests.any?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
let(:test_model) do
gherkin = 'Feature:
Rule:'
model = generate_feature_model(source_text: gherkin, parent_file_path: model_file_path)
model = generate_feature_model(source_text: gherkin, parent_file_path: model_file_path)
model.rules.first.tests = []

model
Expand All @@ -123,7 +123,7 @@
let(:test_model) do
gherkin = 'Feature:
Rule:'
model = generate_feature_model(source_text: gherkin, parent_file_path: model_file_path)
model = generate_feature_model(source_text: gherkin, parent_file_path: model_file_path)
model.rules.first.tests = nil

model
Expand Down

0 comments on commit 18a562a

Please sign in to comment.