小编S.m*_*uer的帖子

如何在git“此分支与基础分支已过期”中解决此问题?

我正在做一个项目,并在github上对该项目进行了PR,现在我的PR表示

“此分支与基础分支已过期,将最新的更改从master合并到该分支中”

那么,为了使我的分支与master分支平行,我应该使用哪个git命令?

git github

6
推荐指数
1
解决办法
4039
查看次数

如何禁用 swiftlint 配置文件中的字符限制

我正在开发一个项目,我需要如何禁用 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
Run Code Online (Sandbox Code Playgroud)

ios swift swiftlint

2
推荐指数
1
解决办法
6658
查看次数

标签 统计

git ×1

github ×1

ios ×1

swift ×1

swiftlint ×1