Как отключить ограничение на количество символов в конфигурационном файле swiftlint - PullRequest
0 голосов
/ 30 декабря 2018

Я работаю над проектом, и мне нужно, как отключить ограничение символов в файле конфигурации swiftlint, так как отключить ограничение символов ??

Вот файл swiftlint

disabled_rules:
  - force_cast
  - force_try
  - variable_name
  - type_name
  - file_length
  - type_body_length
  - cyclomatic_complexity
  - function_body_length
  - valid_docs
  - trailing_whitespace

opt_in_rules:
  - empty_string

excluded:
  - Carthage
  - Pods
  - SwiftLint/Common/3rdPartyLib

line_length:
    warning: 150
    error: 200
    ignores_function_declarations: true
    ignores_comments: true
    ignores_urls: true

custom_rules:
  smiley_face:
    name: "Smiley Face"
    regex: '( :\))'
    match_kinds:
      - comment
      - string
    message: "A closing parenthesis smiley :) creates a half-hearted smile, and thus is not preferred. Use :]"
severity: warning

1 Ответ

0 голосов
/ 30 декабря 2018

Я думаю, вы можете сделать это, добавив line_length внутрь disabled_rules, если вы это имеете в виду.

...