答案 0 :(得分:0)
您可以使用:required_pattern
file_header:
required_pattern: |
\/\/
\/\/ .*?\.swift
\/\/ (PROJECT_NAME.*?|Unit Tests)
\/\/
\/\/ (Created by .*? on .*?)
\/\/ Copyright © \d{4} COPY_RIGHT_NAME\. All rights reserved\.
\/\/
用您的值替换PROJECT_NAME
和COPY_RIGHT_NAME
或更改模式