SwiftLint: how to configure rule severity for a rule with warning and error configurations

Ilias Karim

I would like to configure the Swiftlint cyclomatic_complexity rule to always have the severity level of warning.

Here are the approaches I have tried in the .swiftlint.yml.

cyclomatic_complexity: warning
cyclomatic_complexity: 
  severity: warning

Both of these yield the same result. Namely, upon running swiftlint, before linting it prints the following error.

Invalid configuration for 'cyclomatic_complexity'. Falling back to default.

How do you configure the severity of this rule for swiftlint, so that it only generates warnings and not errors?

Ilias Karim
# .swiftlint.yml
cyclomatic_complexity: 20

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

How to error rather than warning on specific rule

swiftlint open brace rule

SwiftLint configuration rule

How to download the latest SonarLint rule set for Visual Studio from SonarQube with customized rule severity settings?

SwiftLint Rule for Braces on next line but with some exceptions

Swiftlint unused_import rule does not work

Change severity of Checkstyle rule for files matching a pattern

One definition rule warning

How can I make SonarQube display issues by severity using a widget per rule repository?

Laravel - How to resolve Rule Request Validation Error

How to solve error "o rule to make target"?

how to fix the Error at-rule or selector expected

XSLT ambiguous rule match warning

Using NCrunch, FxCop Analyzers and "warnings as errors": How to configure warning severity in NCrunch?

How I can configure correctly Apache rewrite rule for GET request?

How to configure the rule set of SonarLint in Visual Studio Code?

How to configure gradle rule base model plugin in gradle kotlin DSL?

How to configure an IIS re-write rule with specific pattern?

How to configure Virtuoso URL rewrite rule to give SPARQL results in JSON?

How to configure EventBridge Scheduled Rule to trigger my Lambda function dynamically?

Change Sonar issues severity for all issues that have the same rule

Makefile error no rule found but rule is present

Firebase security rule error

Is there a general rule for tracking an error?

.htaccess Rewrite Rule Error

Error Re Write Rule

Nginx rule for redirection error

How to extract the longest apriori rule (association rule)

How to make rule "templates"