<commit_before>#!/bin/bash

SRC=$(realpath $(cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/../)

pushd $SRC &> /dev/null

gometalinter \
  --disable=aligncheck \
  --enable=misspell \
  --enable=gofmt \
  --deadline=100s \
  --cyclo-over=25 \
  --sort=path \
  --exclude='\(defer (.+?)\)\) \(errcheck\)$' \
  --exclude='func easyjson.*should be' \
  --exclude='/easyjson\.go.*(passes|copies) lock' \
  --exclude='/easyjson\.go.*warning' \
  --exclude='^cdp/.*gocyclo' \
  --exclude='^cdp/.*Potential hardcoded credentials' \
  --exclude='^cmd/chromedp-proxy/main\.go.*\(gas\)$' \
  --exclude='^cmd/chromedp-gen/fixup/fixup\.go.*goconst' \
  --exclude='^cmd/chromedp-gen/internal/enum\.go.*unreachable' \
  --exclude='^cmd/chromedp-gen/main\.go.*\(gas\)$' \
  --exclude='^cmd/chromedp-gen/.*gocyclo' \
  --exclude='^cmd/chromedp-gen/.*interfacer' \
  --exclude='^kb/gen\.go.*\((gas|vet)\)$' \
  --exclude='^runner/.*\(gas\)$' \
  --exclude='^handler\.go.*cmd can be easyjson\.Marshaler' \
  ./...

popd &> /dev/null<commit_msg>Updating contrib/meta.sh to be more explicit on ignored meta errors<commit_after>#!/bin/bash

SRC=$(realpath $(cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/../)

pushd $SRC &> /dev/null

gometalinter \
  --disable=aligncheck \
  --enable=misspell \
  --enable=gofmt \
  --deadline=100s \
  --cyclo-over=25 \
  --sort=path \
  --exclude='\(defer (.+?)\)\) \(errcheck\)$' \
  --exclude='/easyjson\.go.*(passes|copies) lock' \
  --exclude='/easyjson\.go.*ineffectual assignment' \
  --exclude='/easyjson\.go.*unnecessary conversion' \
  --exclude='/easyjson\.go.*\((gocyclo|golint|goconst)\)$' \
  --exclude='^cdp/.*Potential hardcoded credentials' \
  --exclude='^cdp/cdp\.go.*UnmarshalEasyJSON.*\(gocyclo\)$' \
  --exclude='^cdp/cdputil/cdputil\.go.*UnmarshalMessage.*\(gocyclo\)$' \
  --exclude='^cmd/chromedp-gen/.*\((gocyclo|interfacer)\)$' \
  --exclude='^cmd/chromedp-proxy/main\.go.*\(gas\)$' \
  --exclude='^cmd/chromedp-gen/fixup/fixup\.go.*\(goconst\)$' \
  --exclude='^cmd/chromedp-gen/internal/enum\.go.*unreachable' \
  --exclude='^cmd/chromedp-gen/main\.go.*\(gas\)$' \
  --exclude='^kb/gen\.go.*\((gas|vet)\)$' \
  --exclude='^runner/.*\(gas\)$' \
  --exclude='^handler\.go.*cmd can be easyjson\.Marshaler' \
  ./...

popd &> /dev/null
{'fraction_non_alphanumeric': 0.27639071397284276, 'fraction_numerical': 0.005256241787122208, 'mean_word_length': 2.8909710391822827, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5582177', 'n_tokens_mistral': 1040, 'n_tokens_neox': 927, 'n_words': 95}