Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Apr 29, 2022
1 parent 9efbe13 commit afecaa2
Show file tree
Hide file tree
Showing 167 changed files with 3,539 additions and 3,547 deletions.
1 change: 0 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,3 @@ venv

npm-debug.log
.gitignore

2 changes: 1 addition & 1 deletion .github/confidentiality-agreement.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Confidentiality Agreement


By creating an account or using the software or services provided by Nullables.io, Inc., doing business as Nullables.io (the “Corporation”), you (the “Recipient”) expressly accept and agree to be bound by all of the terms and conditions below. If you do not accept these terms, you must not use our software or services.
By creating an account or using the software or services provided by Nullables.io, Inc., doing business as Nullables.io (the “Corporation”), you (the “Recipient”) expressly accept and agree to be bound by all of the terms and conditions below. If you do not accept these terms, you must not use our software or services.


## 1. Background
Expand Down
20 changes: 10 additions & 10 deletions .github/privacy-policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,27 @@


# Introduction
We are committed to protecting your privacy and we encourage you to read and learn more about the terms of our privacy policy (“Privacy Policy”).
We are committed to protecting your privacy and we encourage you to read and learn more about the terms of our privacy policy (“Privacy Policy”).

When we refer to “Nullables.io”, “our”, “us”, “we”, or similar self-referential language, we are referring to Nullables.io Inc. When we use the terms “you”, “your”, “yours”, “user”, “users”, “customer”, “customers”, etc., we are referring to any and all users of Nullables.io current and future Products and Services.

Nullables.io provides a variety of Products and Services to our customers, which refers to and includes our website and web applications, mobile applications, integrations for other Third Party Services (such as Slack, Facebook, etc.), and platform, as well as any future applications, products, and services. By visiting, using, or submitting information to any of our Products and Services, you acknowledge that you accept the practices and policies outlined in this Privacy Policy.

Terms not defined herein shall have the meaning as provided in our Terms of Service (the “Agreement”), and incorporated herein.
Terms not defined herein shall have the meaning as provided in our Terms of Service (the “Agreement”), and incorporated herein.


# Data Covered in this Policy
This Privacy Policy covers our treatment of Customer Data (as defined herein) and General Data (defined herein) that we gather when you are accessing or using our Products and Services. This Privacy Policy also covers our treatment of any Customer Data that our business partners share with Nullables.io (for example, via integration with Third Party Services).

This Privacy Policy does not apply to the practices of companies that Nullables.io does not own or control, or to individuals that we do not employ or manage. In addition, this Privacy Policy does not cover how other organizations, including Third Party Services, will treat your information. If integrating our Products and Services with any Third Party Services, please refer to such Third Party Services’ privacy policy.
This Privacy Policy does not apply to the practices of companies that Nullables.io does not own or control, or to individuals that we do not employ or manage. In addition, this Privacy Policy does not cover how other organizations, including Third Party Services, will treat your information. If integrating our Products and Services with any Third Party Services, please refer to such Third Party Services’ privacy policy.


## Customer Data
All content and information that you submit through use of our Products and Services, or that we receive via integration with Third Party Services, that personally identifies you is referred to herein as “Customer Data”.

To create an account, integrate with Third Party Services, or receive information from us about future Products and Services, we may collect such Customer Data as your name and email address. In order to process billing, we may collect such Customer Data as your home or work address, telephone number, and/or credit card information.

However, this information is on an “opt-in” basis only and we will only collect such Customer Data if you specifically and expressly provide the information to us.
However, this information is on an “opt-in” basis only and we will only collect such Customer Data if you specifically and expressly provide the information to us.


## General Data
Expand All @@ -31,7 +31,7 @@ In addition to the Customer Data, we may collect the following general informati
- demographic information;
- information from publicly accessible sources, such as blogs and comments from other users;
your visit to the Site, such as pages viewed, links clicked and other similar navigation action in connection with the Site;
- standard browser information, such as your browser type, IP address, access times, and App usage data;
- standard browser information, such as your browser type, IP address, access times, and App usage data;
- location data, which may be available or derived from our App, Site, or your IP address; and
- information about the device on which you are accessing or using the Services.

Expand Down Expand Up @@ -86,13 +86,13 @@ We do not sell, rent, lease, or disclose your Data. Except as described in this

We may hire other companies to provide limited administrative and communication services on our behalf, such as web hosting services, the processing and delivery of mailing documents, customer support, or credit card processing services. We have the right to disclose your Data to these third party companies for the purpose of administering and maintaining the features, functions, and operations of our Products and Services.

Those companies will be permitted to obtain only such Data as is absolutely necessary for them to deliver their respective services, and we do not authorize these companies to use your Data except for the sole purpose of providing those services requested by us.
Those companies will be permitted to obtain only such Data as is absolutely necessary for them to deliver their respective services, and we do not authorize these companies to use your Data except for the sole purpose of providing those services requested by us.


## Integration with Third Party Services
In order to access and/or use our Products and Services, you may be required to integrate them with your existing Third Party Services. While we do not store your passwords for these Third Party Services, we may store revokable tokens, enabling Services to communicate with each other.

If you integrate our Products and Services with a Third Party Service, we are not responsible for how such a service would use, collect, and share your Data. We very much encourage you to review privacy policy of any such Third Party Services.
If you integrate our Products and Services with a Third Party Service, we are not responsible for how such a service would use, collect, and share your Data. We very much encourage you to review privacy policy of any such Third Party Services.


## Disclosure of Customer Data
Expand All @@ -103,13 +103,13 @@ You understand and agree that we may access and/or disclose Data about you witho
- enforce the terms of the Agreement and Privacy Policy;
- operate or conduct maintenance and repair of the Site, the App or equipment as authorized by law;
- act in urgent circumstances to protect the personal safety of our users or members of the public; or
- comply with a bankruptcy, merger, acquisition, transfer of control, joint venture of other business combination.
- comply with a bankruptcy, merger, acquisition, transfer of control, joint venture of other business combination.

While we are not required to question or contest the validity of any search warrant, subpoena or other similar governmental request that we receive, we will use reasonable efforts to ensure the privacy of our users, and safeguard against overreach.
While we are not required to question or contest the validity of any search warrant, subpoena or other similar governmental request that we receive, we will use reasonable efforts to ensure the privacy of our users, and safeguard against overreach.


## Disclosure of Data in Certain Transactions
In some cases, we may choose to sell our assets. In these types of transactions, user information is typically one of the business assets that is transferred. You acknowledge that such transfers may occur, and that any acquirer of Nullables.io may continue to use your Data as set forth in this Privacy Policy.
In some cases, we may choose to sell our assets. In these types of transactions, user information is typically one of the business assets that is transferred. You acknowledge that such transfers may occur, and that any acquirer of Nullables.io may continue to use your Data as set forth in this Privacy Policy.


# Security of Customer Data
Expand Down
10 changes: 5 additions & 5 deletions .github/scripts/close-pending.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
MESSAGE=$(cat "$SCRIPT_DIR"/closing-message.txt)

while IFS= read -r number &&
IFS= read -r title; do
IFS= read -r title; do
echo "Closing PR ($number): $title"
curl -s -o /dev/null \
-X POST \
Expand All @@ -21,7 +21,7 @@ while IFS= read -r number &&
--header "authorization: Bearer $GITHUB_TOKEN" \
--header 'content-type: application/json' \
"https://api.github.com/repos/AlexRogalskiy/object-mappers-playground/pulls/$number"
done < <(curl -H "Content-Type: application/json" \
--header "authorization: Bearer $GITHUB_TOKEN" \
"https://api.github.com/search/issues?q=repo:AlexRogalskiy/object-mappers-playground+type:pr+updated:<$(date -d "-21 days" +%Y-%m-%d)+label:pending+is:open" |
jq -r '.items[] | (.number,.title)')
done < <(curl -H "Content-Type: application/json" \
--header "authorization: Bearer $GITHUB_TOKEN" \
"https://api.github.com/search/issues?q=repo:AlexRogalskiy/object-mappers-playground+type:pr+updated:<$(date -d "-21 days" +%Y-%m-%d)+label:pending+is:open" |
jq -r '.items[] | (.number,.title)')
16 changes: 8 additions & 8 deletions .github/scripts/comment-commands/ready.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ MESSAGE="Blocking review request is removed."
URL="$(jq -r '.issue.pull_request.url' "$GITHUB_EVENT_PATH")/reviews"
set +x #GITHUB_TOKEN
curl -s "$URL" |
jq -r '.[] | [.user.login, .id] | @tsv' |
grep github-actions |
awk '{print $2}' |
xargs -n1 -IISSUE_ID curl -s -o /dev/null \
-X PUT \
--data "$(jq --arg message "$MESSAGE" -n '{message: $message}')" \
--header "authorization: Bearer $GITHUB_TOKEN" \
"$URL"/ISSUE_ID/dismissals
jq -r '.[] | [.user.login, .id] | @tsv' |
grep github-actions |
awk '{print $2}' |
xargs -n1 -IISSUE_ID curl -s -o /dev/null \
-X PUT \
--data "$(jq --arg message "$MESSAGE" -n '{message: $message}')" \
--header "authorization: Bearer $GITHUB_TOKEN" \
"$URL"/ISSUE_ID/dismissals

curl -s -o /dev/null \
-X DELETE \
Expand Down
16 changes: 8 additions & 8 deletions .github/scripts/comment-commands/retest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ git push
${code}
EOF

# member AND modification allowed by PR author
# OR
# repo owner
# =>
# include steps to fetch branch
# member AND modification allowed by PR author
# OR
# repo owner
# =>
# include steps to fetch branch
elif [[ "${maintainer_can_modify}" == "true" ]] && [[ "${assoc}" == "MEMBER" ]] || [[ "${assoc}" == "OWNER" ]]; then
cat <<-EOF
To re-run CI checks, please follow these steps:
Expand All @@ -47,9 +47,9 @@ git push "${source_repo}" HEAD:"${branch}"
${code}
EOF

# other folks
# =>
# ping author
# other folks
# =>
# ping author
else
cat <<-EOF
@${pr_owner} please trigger new CI check by following these steps:
Expand Down
10 changes: 5 additions & 5 deletions .github/scripts/process-comment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ if [ "$LINES" == "0" ]; then
# shellcheck disable=SC2124
RESPONSE="> $BODY
Script execution has been failed with exit code $EXIT_CODE. Please check the output of the github action run to get more information.
\`\`\`
$RESPONSE
\`\`\`
"
Script execution has been failed with exit code $EXIT_CODE. Please check the output of the github action run to get more information.
\`\`\`
$RESPONSE
\`\`\`
"
fi
else
RESPONSE="No such command. \`$COMMAND\` $("$SCRIPT_DIR/comment-commands/help.sh")"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/action-devto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ jobs:
with:
api-key: ${{ secrets.DEVTO_API_KEY }}
directory: ./docs/articles
ignore: default.md.tpl
ignore: default.md.tpl
2 changes: 1 addition & 1 deletion .github/workflows/blogpost-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,4 @@ jobs:
with:
max_post_count: "10"
comment_tag_name: "DEVCASES-POST-LIST"
feed_list: "https://devcases.com/feed/"
feed_list: "https://devcases.com/feed/"
2 changes: 1 addition & 1 deletion .github/workflows/pagespeed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ jobs:
commit_options: '--no-verify --signoff'
commit_user_name: GitHub Bot
commit_user_email: [email protected]
commit_author: GitHub Bot <[email protected]>
commit_author: GitHub Bot <[email protected]>
2 changes: 1 addition & 1 deletion .github/workflows/pr-helper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ jobs:
prlabel-ready: 'pr-ready'
prlabel-onhold: 'pr-onhold'
prlabel-reviewrequired: 'review-required'
prlabel-automerge: 'auto-merge'
prlabel-automerge: 'auto-merge'
2 changes: 1 addition & 1 deletion .github/workflows/release-changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
run: |
echo ::set-output name=current_version::${GITHUB_REF#refs/tags/v}
shell: bash

- name: Build Changelog
id: github_release
uses: mikepenz/release-changelog-builder-action@main
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Post bumpr status comment
uses: haya14busa/action-bumpr@v1
uses: haya14busa/action-bumpr@v1
2 changes: 1 addition & 1 deletion .github/workflows/remove-old-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ jobs:
uses: c-hive/gha-remove-artifacts@v1
with:
age: '7 days'
skip-tags: false
skip-tags: false
2 changes: 1 addition & 1 deletion .whitesource
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
"issueSettings": {
"minSeverityLevel": "LOW"
}
}
}
1 change: 0 additions & 1 deletion .zappr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,3 @@ pull-request:
# pull-request:
# labels:
# additional: true

1 change: 0 additions & 1 deletion changelog
Original file line number Diff line number Diff line change
Expand Up @@ -5178,4 +5178,3 @@ docs: updates on VERSION
Signed-off-by: GitHub Bot <[email protected]>

Auto update markdown TOC

Binary file modified distribution/docker-images/Dockerfile.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/articles/default.md.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ canonical_url: string # `Optional` url

First Post with **TheActionDev** 🤩

{% github ful1e5/TheActionDev %}
{% github ful1e5/TheActionDev %}
2 changes: 1 addition & 1 deletion docs/assets/images/logos/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

1 comment on commit afecaa2

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented on afecaa2 Apr 29, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@check-spelling-bot Report

Unrecognized words, please review:

  • ADR
  • akka
  • alexrogalskiy
  • allcontributors
  • api
  • arcver
  • assing
  • badgen
  • BETTERCODE
  • betterjavacode
  • blogspot
  • boopickle
  • bootcamp
  • brightgreen
  • bugfixes
  • buymeacoffee
  • ceb
  • codeready
  • codesandbox
  • committers
  • configmaps
  • debezium
  • demystified
  • dependabot
  • devcases
  • devfile
  • dirtyreload
  • dreamix
  • dropdown
  • eab
  • eap
  • eisele
  • embeddableinstantiator
  • embeddables
  • facebook
  • fastai
  • fastpages
  • fastparse
  • firsttimersonly
  • flushmode
  • forthebadge
  • frapsoft
  • freemarker
  • FRP
  • fthomas
  • gerrit
  • getquill
  • GIFs
  • gitbook
  • gitflow
  • githubbox
  • gitpod
  • GPLv
  • Gradle
  • grunwald
  • guideslines
  • gunnar
  • Hashids
  • Hasids
  • helloworld
  • hitsofcode
  • hmil
  • infoworld
  • insidejava
  • Instantiator
  • IPhone
  • istio
  • janssen
  • japgolly
  • javacodegeeks
  • javafx
  • javamelody
  • javaone
  • JAVAPROG
  • jboss
  • jcliff
  • jdbc
  • jdk
  • jextract
  • jfr
  • jfrunit
  • johan
  • jpa
  • JRE
  • jsonignore
  • jsp
  • julienrf
  • Jupyter
  • kubernetes
  • LETSTALK
  • letstalkaboutjava
  • LGPL
  • LGPLv
  • lihaoyi
  • liskov
  • logfile
  • mades
  • makeapullrequest
  • markdownguide
  • markus
  • matryoshka
  • mcve
  • mega
  • microservices
  • milessabin
  • mirrorring
  • mkdocs
  • modelviewculture
  • monix
  • mtl
  • mutationquery
  • namespaces
  • nestjs
  • Netflix
  • newreleases
  • nullables
  • nvie
  • objectmappers
  • odl
  • openapi
  • opengraph
  • opentelemetry
  • osslifecycle
  • oyanglul
  • pagespeedresultmobile
  • pasteable
  • patreon
  • paypal
  • PITMP
  • plumbr
  • podcast
  • precog
  • pufler
  • pypa
  • quarkus
  • quicklens
  • RANDOMTHOUGHTS
  • randomthoughtsonjavaprogramming
  • rce
  • reactify
  • readthedocs
  • reddit
  • renovatebot
  • reporoster
  • repostatus
  • resteasy
  • rfm
  • Rogalskiy
  • rogalsky
  • rubyonrails
  • runtimes
  • scalacss
  • scalafiddle
  • scalafmt
  • scalajs
  • scalameta
  • scalanlp
  • scalastyle
  • scalaz
  • scm
  • seeyoufarm
  • selectionquery
  • softwaremill
  • spamming
  • splunk
  • sql
  • squants
  • squbs
  • sscce
  • stakeholders
  • starchart
  • sttp
  • stylegu
  • suggestig
  • suzaku
  • thejavaprogrammer
  • thorben
  • tilda
  • tokei
  • trufoj
  • tsb
  • tsbleo
  • tscojc
  • tscqlg
  • tsd
  • tsdllr
  • typelevel
  • udash
  • upickle
  • urt
  • ussue
  • violoate
  • vos
  • wget
  • wildfly
  • wix
  • workspaces
  • zgc
  • zio
Previously acknowledged words that are now absent acl activesupport adaoraul addons aeiou AFile afterall Alexey alfredxing algolia allowfullscreen Anatoliy andreyvit Ankit Anning apps appveyor arengu args ariejan arounds asciinema asdf ashmaroli attr Autobuild autocompletion autogenerated Autolink autoload autoreconf autosave awood awscli backport backtick barcamp baseurl bashrc baz bbatsov bdimcheff bellvat benbalter Beney binstubs bip bitbucket Blogger blogging bonafide Bou breadcrumbs briandoll bridgetown bridgetownrb brightbox brighterplanet buddyworks Bugfix Burela byparker cachegrind calavera callgraphs cartera cavalle CDNs cgi changefreq chango charset Chayoung chcp chdir Cheatsheet Checkoway chmod chown Chrononaut chruby cibuild cimg circleci CJK classname cloudcannon Cloudinary cloudsh CLT CODEOWNERS coderay codeslinger coffeescript colorator commandline commonmark compat compatibilize concat configyml contentblocks CORS Cov CRLFs cron crontab cruft css csv Currin CVE CWD cygwin daringfireball Dassonville datafiles datetime DCEU Debian debuggability defunkt delegators deployer deps dest Devkit devops digitalocean dirs disqus ditaa dnf doclist doctype doeorg dommmel dotfile Dousse downcase downcased duckduckgo duritong Dusseau dysinger ecf editorconfig eduardoboucas Elasticsearch elsif Emacs emails endcapture endcomment endfor endhighlight endif endraw endrender endtablerow Enumerables EOL erb errordocument Espinaco eugenebolshakov evaled exe execjs extensionpack extname exts favicon Fengyun ffi figcaption filesystem Finazzo firstimage FIXME flakey flickr fnmatch fontello forloop formcake formcarry formester formingo formkeep formspark formspree formx Forwardable frameborder freenode frontend frontmatter fsnotify ftp fullstory Gaudino gcc gcnovus gemfile gemset gemspec getform getset getsimpleform gettalong gfm ghp ghpages giraffeacademy githubcom gitignore gitlab gjtorikian globbed globbing google gotcha Goulven gridism GSo gsub gsubbing Hakiri hardcode hashbang hashmap helaili henrik heredoc heroku highlighter hilighting Hoizey hostman hostname htaccess htm htmlproofer httpd httpdocs hyperlinks Iaa ial ico icomoon iconset ified iframe Impl Inlining invokables irc ivey ize jalali jameshamann jamstackthemes jan Jax jayferd jcon jdoe jeffreytse jeffrydegrande Jekpack jekyllbot jekyllconf Jekyllers Jekyllin Jekylling jekyllized jekylllayoutconcept jekyllrb jekyllthemes jemoji jmcglone jneen johnreilly jpg jqr jruby jsonify juretta jwarby Kacper Kasberg kbd Kentico Kewin keycdn kickster Kinnula kiwifruit Kolesky konklone kontent Kotvinsky kramdown Kulig Kwokfu Lamprecht laquo lastmod launchctl launchy laurilehmijoki ldquo learnxinyminutes lexer LGTM libcurl libffi lightgray limjh linenos linkify linux liufengyun livereload localheinz localtime Locher loglevel Losslessly lovin lsi lsquo lstrip lyche macos macromates mademistakes Manmeet markdownify Maroli Marsceill maruku mathjax mathml mattr Maximiliano mchung mdash memberspace Memoize memoized memoizing mentoring mergable Mertcan mertkahyaoglu microdata mimetype mingw minibundle minifier minitest Mittal mixin mkasberg mkd mkdir mkdn mkdown mmistakes modernizr mojombo moncefbelyamani moz mreid msdn mswin MSYS mtime multiline munging Mvvm myblog mycontent mydata mydoc myimage mypage myposts myproject myrepo mysite myvalue myvar myvariable Nadjib nakanishi namespace namespaced navbar nbsp nearlyfreespeech nethack netlify netlifycms Neue nginx ngx nielsenramon nior noifniof nokogiri notextile onclick onebox oneclick onschedule openssl Optim orderofinterpretation orgs OSVDB osx packagecontrol pacman paginator pandoc pantulis params parkr parseable paspagon passthrough pathawks Pathutil paywall pdf Pelykh permalink PHP pinboard Piwigo pjhyett pkill pkpass placeholders planetjekyll plantuml plugin podcasts popen Porcel Posterous postfiles postlayout postmodern prefetching preinstalled prepends Prioritise Probot projectlist pubstorm pufuwozu pwa pwd pygments qrush Quaid rackup Rakefile razorops rbenv rdiscount rdoc rdquo realz rebund redcarpet redcloth redgreen refactor Refheap regen regex regexp remi reqs Responsify revertable rfc rfelix RHEL ridk roadmap rowspan rspec rsquo rstrip rsync rtomayko Rubo rubocop rubychan rubygem rubyinstaller rubyprof Ruparelia Rusiczki rvm ryanflorence saas samplelist samrayner sandboxed Sassc sassify schemastore Schroers Schwartzian scp scrollbar scroller scss scssify sdk SDKROOT sectore seo serverless setenv SFTP shingo shopify shortlog shoulda sieversii sigpipe simplecov Singhaniya siteleaf sitemap SITENAME Slicehost slugified slugify smartforms smartify snipcart somedir sonnym Sonomy sourced sourcemaps spam spotify ssg ssh SSL staticfiles staticman statictastic STDERR stdout Stickyposts strftime stringified Stringify stylesheet subdir subdomain subfolder subfolderitems subnav subpages subpath subpiece subsubfolderitems subthing subvalues subwidget sudo superdirectories superdirs SUSE sverrirs svn swfobject swupd symlink symlinking tablerow tada Taillandier talkyard tbody technicalpickles templating templatize Termux textilize textpattern thead therubyracer Theunissen Thornquest thoughtbot throughs Tidelift timeago timezone titleize TLS tmm tmp toc tok tomjoht toml tomo toolset toshimaru triaged triaging truncatewords tsv ttf Tudou Tumblr Tweetsert txtpen Tyborska tzinfo ubuntu uby ujh ultron undumpable unencode Unescape unescaping unicode uniq upcase uppercasing uri urlset username usr utf utils utime vanpelt Vasovi vendored vercel versioned vertycal Veyor vilcans Vishesh visualstudio vnd vohedge vps vscode vwochnik Walkthroughs wdm We'd webfont webhook webhosting webmentions webrick weekdate whitelist whitelisting wikipedia wildcards willcodeforfoo woff wordpress Workaround wsl xcode xcrun xdg Xhmikos xhtml Xiaoiver XMinutes xmlns xmlschema yajl Yarp Yashu Yastreb Youku youtube yunbox zeropadding Zlatan zlib zoneinfo zpinter Zsh zshrc zypper zzot
Some files were were automatically ignored

These sample patterns would exclude them:

^docs/CHANGELOG\.md$

You should consider adding them to:

.github/actions/spelling/excludes.txt

File matching is via Perl regular expressions.

To check these files, more of their words need to be in the dictionary than not. You can use patterns.txt to exclude portions, add items to the dictionary (e.g. by adding them to allow.txt), or fix typos.

To accept these unrecognized words as correct (and remove the previously acknowledged and now absent words), run the following commands

... in a clone of the [email protected]:AlexRogalskiy/java-patterns.git repository
on the master branch:

update_files() {
perl -e '
my @expect_files=qw('".github/actions/spelling/expect.txt"');
@ARGV=@expect_files;
my @stale=qw('"$patch_remove"');
my $re=join "|", @stale;
my $suffix=".".time();
my $previous="";
sub maybe_unlink { unlink($_[0]) if $_[0]; }
while (<>) {
if ($ARGV ne $old_argv) { maybe_unlink($previous); $previous="$ARGV$suffix"; rename($ARGV, $previous); open(ARGV_OUT, ">$ARGV"); select(ARGV_OUT); $old_argv = $ARGV; }
next if /^(?:$re)(?:(?:\r|\n)*$| .*)/; print;
}; maybe_unlink($previous);'
perl -e '
my $new_expect_file=".github/actions/spelling/expect.txt";
use File::Path qw(make_path);
use File::Basename qw(dirname);
make_path (dirname($new_expect_file));
open FILE, q{<}, $new_expect_file; chomp(my @words = <FILE>); close FILE;
my @add=qw('"$patch_add"');
my %items; @items{@words} = @words x (1); @items{@add} = @add x (1);
@words = sort {lc($a)."-".$a cmp lc($b)."-".$b} keys %items;
open FILE, q{>}, $new_expect_file; for my $word (@words) { print FILE "$word\n" if $word =~ /\w/; };
close FILE;
system("git", "add", $new_expect_file);
'
(cat '.github/actions/spelling/excludes.txt' - <<EOF
$should_exclude_patterns
EOF
) |grep .|
sort -f |
uniq > '.github/actions/spelling/excludes.txt.temp' &&
mv '.github/actions/spelling/excludes.txt.temp' '.github/actions/spelling/excludes.txt'
}

comment_json=$(mktemp)
curl -L -s -S \
  --header "Content-Type: application/json" \
  "https://api.github.com/repos/AlexRogalskiy/java-patterns/comments/72502450" > "$comment_json"
comment_body=$(mktemp)
jq -r .body < "$comment_json" > $comment_body
rm $comment_json

patch_remove=$(perl -ne 'next unless s{^</summary>(.*)</details>$}{$1}; print' < "$comment_body")
  

patch_add=$(perl -e '$/=undef;
$_=<>;
s{<details>.*}{}s;
s{^#.*}{};
s{\n##.*}{};
s{(?:^|\n)\s*\*}{}g;
s{\s+}{ }g;
print' < "$comment_body")
  

should_exclude_patterns=$(perl -e '$/=undef;
$_=<>;
exit unless s{(?:You should consider excluding directory paths|You should consider adding them to).*}{}s;
s{.*These sample patterns would exclude them:}{}s;
s{.*\`\`\`([^`]*)\`\`\`.*}{$1}m;
print' < "$comment_body" | grep . || true)

update_files
rm $comment_body
git add -u
If you see a bunch of garbage

If it relates to a ...

well-formed pattern

See if there's a pattern that would match it.

If not, try writing one and adding it to the patterns.txt file.

Patterns are Perl 5 Regular Expressions - you can test yours before committing to verify it will match your lines.

Note that patterns can't match multiline strings.

binary-ish string

Please add a file path to the excludes.txt file instead of just accepting the garbage.

File paths are Perl 5 Regular Expressions - you can test yours before committing to verify it will match your files.

^ refers to the file's path from the root of the repository, so ^README\.md$ would exclude README.md (on whichever branch you're using).

Please sign in to comment.