é¡åã®éããgit commitã«Hookãã¦ãå¤æ´ããã*.swiftãã¡ã¤ã«ã«ã®ã¿LintãããããLintã§ã³ã±ããcommitãããªãã¦ä¾¿å©ã #!/usr/bin/env ruby require 'yaml' LINT_CONFIG_FILE_NAME = '.swiftlint.yml' updated_swiftfiles = `git diff --cached --name-only --diff-filter=AM -- '*.swift'`.split("\n") exit if updated_swiftfiles.empty? lint_config = YAML.load_file(LINT_CONFIG_FILE_NAME) default_included = lint_config['included'] lint_config['included']
{{#tags}}- {{label}}
{{/tags}}