diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..cc21b04 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,19 @@ +# https://EditorConfig.org + +# top-most EditorConfig file +root=true + +# Unix-style newlines with a newline ending every file +[*] +end_of_line = lf +insert_final_newline = true + +# 2 space indentation +indent_style = space +indent_size = 2 + +# Avoid issues parsing cookbook files later +charset = utf-8 + +# Avoid cookstyle warnings +trim_trailing_whitespace = true diff --git a/.expeditor/run_windows_tests.ps1 b/.expeditor/run_windows_tests.ps1 index 631c6d8..d2f4cf4 100644 --- a/.expeditor/run_windows_tests.ps1 +++ b/.expeditor/run_windows_tests.ps1 @@ -19,4 +19,4 @@ If ($lastexitcode -ne 0) { Exit $lastexitcode } Write-Output "--- Bundle Execute" bundle exec rake -If ($lastexitcode -ne 0) { Exit $lastexitcode } \ No newline at end of file +If ($lastexitcode -ne 0) { Exit $lastexitcode } diff --git a/.github/workflows/allchecks.yml b/.github/workflows/allchecks.yml new file mode 100644 index 0000000..c51c3d6 --- /dev/null +++ b/.github/workflows/allchecks.yml @@ -0,0 +1,19 @@ +name: All checks pass +on: + pull_request: + types: [ opened, synchronize, reopened, ready_for_review ] + +jobs: + allchecks: + runs-on: ubuntu-latest + permissions: + checks: read + contents: read + steps: + - uses: wechuli/allcheckspassed@v1 + with: + # This seems to be working lately even for external + # contributors, so maybe we don't need to exclude it? + checks_exclude: "SonarCloud Code Analysis" + # Retry every minute for 30 minutes... + retries: 30 diff --git a/.github/workflows/archived/ci-main-pull-request-checks.yml b/.github/workflows/archived/ci-main-pull-request-checks.yml deleted file mode 100644 index e893db0..0000000 --- a/.github/workflows/archived/ci-main-pull-request-checks.yml +++ /dev/null @@ -1,92 +0,0 @@ -# stub to call common GitHub Action (GA) as part of Continuous Integration (CI) Pull Request process checks for main branch -# -# inputs are described in the /common-github-actions/ with same name as this stub -# - -name: CI Pull Request on Main Branch - -on: - pull_request: - branches: [ main, release/** ] - push: - branches: [ main, release/** ] - - workflow_dispatch: - -permissions: - contents: read - -env: - STUB_VERSION: "1.0.1" - -jobs: - echo_version: - name: 'Echo stub version' - runs-on: ubuntu-latest - steps: - - name: echo version of stub and inputs - run: | - echo "[ci-main-pull-request-stub-trufflehog-only.yml] version $STUB_VERSION" - - call-ci-main-pr-check-pipeline: - uses: chef/common-github-actions/.github/workflows/ci-main-pull-request.yml@main - secrets: inherit - permissions: - id-token: write - contents: read - - with: - visibility: ${{ github.event.repository.visibility }} # private, public, or internal - # go-private-modules: GOPRIVATE for Go private modules, default is 'github.com/progress-platform-services/* - - # complexity-checks - perform-complexity-checks: true - # scc-output-filename: 'scc-output.txt' - perform-language-linting: false # Perform language-specific linting and pre-compilation checks - - # trufflehog secret scanning - perform-trufflehog-scan: true - - # BlackDuck SAST (Polaris) and SCA scans - # requires secrets POLARIS_SERVER_URL and POLARIS_ACCESS_TOKEN - perform-blackduck-polaris: false - polaris-application-name: 'Chef-Chef360' # one of these: Chef-Agents, Chef-Automate, Chef-Chef360, Chef-Habitat, Chef-Infrastructure-Server, Chef-Shared-Services - polaris-project-name: ${{ github.event.repository.name }} # typically the application name, followed by - and the repository name, for example Chef-Chef360-chef-vault' - perform-blackduck-sca-scan: false - - # perform application build and unit testing, will use custom repository properties when implemented for chef-primary-application, chef-build-profile, and chef-build-language - build: false - # ga-build-profile: $chef-ga-build-profile - # language: $chef-ga-build-language # this will be removed from stub as autodetected in central GA - unit-tests: false - - # perform SonarQube scan, with or wihout unit test coverage data - # requires secrets SONAR_TOKEN and SONAR_HOST_URL (progress.sonar.com) - perform-sonarqube-scan: false - # perform-sonar-build: true - # build-profile: 'default' - # report-unit-test-coverage: true - - # report to central developer dashboard - report-to-atlassian-dashboard: false - quality-product-name: ${{ github.event.repository.name }} # like 'Chef-360' - the product name for quality reporting, like Chef360, Courier, Inspec - # quality-sonar-app-name: 'YourSonarAppName' - # quality-testing-type: 'Integration' like Unit, Integration, e2e, api, Performance, Security - # quality-service-name: 'YourServiceOrRepoName' - # quality-junit-report: 'path/to/junit/report'' - - # perform native and Habitat packaging, publish to package repositories - package-binaries: false # Package binaries (e.g., RPM, DEB, MSI, dpkg + signing + SHA) - habitat-build: false # Create Habitat packages - publish-packages: false # Publish packages (e.g., container from Dockerfile to ECR, go-releaser binary to releases page, omnibus to artifactory, gems, choco, homebrew, other app stores) - - # generate and export Software Bill of Materials (SBOM) in various formats - generate-sbom: true - export-github-sbom: true # SPDX JSON artifact on job instance - generate-blackduck-sbom: false # requires BlackDuck secrets and inputs as above for SAST scanning - generate-msft-sbom: false - license_scout: false # Run license scout for license compliance (uses .license_scout.yml) - - # udf1: 'default' # user defined flag 1 - # udf2: 'default' # user defined flag 2 - # udf3: 'default' # user defined flag 3 \ No newline at end of file diff --git a/.github/workflows/dco.yml b/.github/workflows/dco.yml new file mode 100644 index 0000000..0ae9f32 --- /dev/null +++ b/.github/workflows/dco.yml @@ -0,0 +1,23 @@ +name: DCO Check +on: [pull_request] + +permissions: {} + +jobs: + dco_check_job: + permissions: + contents: read + pull-requests: read + runs-on: ubuntu-latest + name: DCO Check + steps: + - name: Get PR Commits + uses: actionshub/get-pr-commits@main + id: 'get-pr-commits' + with: + token: ${{ secrets.GITHUB_TOKEN }} + - name: DCO Check + uses: actionshub/dco@main + with: + commits: ${{ steps.get-pr-commits.outputs.commits }} + allow-obvious-fix-label: "obvious-fix" diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..90ae24c --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,46 @@ +--- +name: lint + +on: + pull_request: + push: + branches: + - main + +concurrency: + group: lint-${{ github.event.pull_request.number || github.run_id }} + cancel-in-progress: true + +jobs: + cookstyle: + runs-on: ubuntu-latest + env: + BUNDLE_WITHOUT: ruby_shadow:packaging + steps: + - uses: actions/checkout@v6 + - uses: ruby/setup-ruby@v1 + with: + ruby-version: 3.4 + bundler-cache: false + - uses: r7kamura/rubocop-problem-matchers-action@v1 # this shows the failures in the PR + - run: | + bundle install + bundle exec cookstyle --chefstyle -c .rubocop.yml + + spellcheck: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v6 + - run: | + curl --location 'https://raw.githubusercontent.com/chef/chef_dictionary/main/chef.txt' --output chef_dictionary.txt + - uses: streetsidesoftware/cspell-action@v8.4.0 + + linelint: + runs-on: ubuntu-latest + name: Check if all files end in newline + steps: + - name: Checkout + uses: actions/checkout@v6 + - name: Linelint + uses: fernandrone/linelint@master + id: linelint diff --git a/.gitignore b/.gitignore index a0ce24b..5064e3c 100644 --- a/.gitignore +++ b/.gitignore @@ -14,4 +14,4 @@ erl_crash.dump Gemfile.lock */tags *~ -vendor/ \ No newline at end of file +vendor/ diff --git a/.linelint.yml b/.linelint.yml new file mode 100644 index 0000000..f62a320 --- /dev/null +++ b/.linelint.yml @@ -0,0 +1,8 @@ +rules: + end-of-file: + enable: true + single-new-line: true + ignore: + # these files are changed by automated processes + - CHANGELOG.md + - VERSION diff --git a/.rubocop.yml b/.rubocop.yml index ab93472..94d8028 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -8,4 +8,4 @@ Lint/UnderscorePrefixedVariableName: # Configuration parameters: ContextCreatingMethods. Lint/UselessAccessModifier: Exclude: - - 'lib/mixlib/shellout/windows/core_ext.rb' \ No newline at end of file + - 'lib/mixlib/shellout/windows/core_ext.rb' diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index 3ae9e77..9b008ec 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -1,3 +1,3 @@ # Chef Code of Conduct -Participants in this project must adhere to the [Chef Code of Conduct](https://chef.github.io/chef-oss-practices/policies/code-of-conduct/). \ No newline at end of file +Participants in this project must adhere to the [Chef Code of Conduct](https://chef.github.io/chef-oss-practices/policies/code-of-conduct/). diff --git a/COPYRIGHT.md b/COPYRIGHT.md index 9809de5..24f4dd0 100644 --- a/COPYRIGHT.md +++ b/COPYRIGHT.md @@ -1 +1 @@ -Copyright © 2011-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. \ No newline at end of file +Copyright © 2011-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. diff --git a/README.md b/README.md index 49cfae2..9b454b0 100644 --- a/README.md +++ b/README.md @@ -98,4 +98,4 @@ limitations under the License. ``` # Copyright -See [COPYRIGHT.md](./COPYRIGHT.md). \ No newline at end of file +See [COPYRIGHT.md](./COPYRIGHT.md). diff --git a/cspell.json b/cspell.json new file mode 100644 index 0000000..d4bbb9d --- /dev/null +++ b/cspell.json @@ -0,0 +1,1691 @@ +// cSpell Settings +{ + "version": "0.2", + // language - current active spelling language + "language": "en", + "dictionaryDefinitions": [ + { + "name": "chef", + "path": "https://raw.githubusercontent.com/chef/chef_dictionary/main/chef.txt", + "description": "Custom Chef Dictionary" + } + ], + "dictionaries": ["chef"], + // words - list of words to be always considered correct + "words": [ + "abcz", + "abdulin", + "ABORTIFHUNG", + "ACCOUNTDISABLE", + "activationkey", + "ADAP", + "addlock", + "addormodify", + "addrs", + "ADMINI", + "adminonly", + "Afile", + "afonov", + "agrs", + "archscore", + "airgapped", + "aixinit", + "akzhan", + "Alam", + "Albenzi", + "Alloc", + "alloc", + "Allowlist", + "allowlist", + "allowlisted", + "allowlisting", + "allowlists", + "allowselfservice", + "alnum", + "almalinux", + "alwayslastline", + "amazonlinux", + "Anson", + "anonymized", + "APISSL", + "applewood", + "approle", + "Appscript", + "appscript", + "ARCHITEW", + "archq", + "argdup", + "arity", + "armhf", + "arry", + "Arțăriși", + "ASSIGNPRIMARYTOKEN", + "astring", + "ATTRIBS", + "attribs", + "attrname", + "AUTHN", + "AUTHROOT", + "Autoconverted", + "AUTODATASEG", + "autodetect", + "autodetected", + "autogenerated", + "autohome", + "automake", + "autoneg", + "autoreconf", + "autorefresh", + "autoreplacing", + "Autorun", + "autostr", + "autotest", + "autotools", + "Autovivification", + "autovivifies", + "autovivify", + "autovivifying", + "avishai", + "azureuser", + "Backcompat", + "backcompat", + "backends", + "backoff", + "BACKOFFICE", + "backslashing", + "backtraces", + "backupfile", + "BADDB", + "BADKEY", + "badssl", + "balatero", + "barbaz", + "basch", + "basearch", + "basenames", + "basepath", + "baseurl", + "baseurls", + "Bcast", + "bcast", + "benesch", + "bianco", + "binfile", + "binlink", + "binlinking", + "binmode", + "binread", + "bitmask", + "bkup", + "blackduck", + "BLDR", + "bldr", + "blockdev", + "bobo", + "bobotclown", + "bootstrapper", + "bootstrappers", + "borat", + "bsearch", + "bsevn", + "BSTR", + "bufptr", + "bufsize", + "bugfixing", + "BUNDER", + "bypassproxy", + "bytesize", + "cabfile", + "Calastone", + "CALLGATE", + "calloc", + "CANTOPEN", + "CANTREAD", + "CANTWRITE", + "carg", + "caron", + "Cavallo", + "ccdata", + "certfile", + "certpassword", + "Certstore", + "certstore", + "CFPREFERENCES", + "cfprefsd", + "chaput", + "chardev", + "chatops", + "chdev", + "checksummed", + "checksumming", + "chefbin", + "chefcli", + "chefclientbootstraptask", + "chefclientinstalldone", + "CHEFCONFIG", + "chefdir", + "chefignored", + "chefignores", + "chefscriptresult", + "CHEFSERVERURL", + "cheftest", + "CHEFUTILS", + "chefzero", + "chgrpmem", + "childitem", + "CHINESEBIG", + "chocolateyinstall", + "CIFS", + "ckbk", + "cksum", + "cleanpath", + "cleanpaths", + "cleanroom", + "CLEARTEXT", + "CLIENTAUTHISSUER", + "CLIENTNAME", + "clientname", + "clitoken", + "CLOEXEC", + "cmdline", + "CMDS", + "cmds", + "Cmnd", + "CMPL", + "CNAME", + "cname", + "codepage", + "codepath", + "codepaths", + "codeql", + "CODESEG", + "COLORINDEX", + "COLORREF", + "COLORSPACE", + "COMBOBOX", + "commandline", + "compat", + "COMPOSITECHECK", + "computerlevel", + "COMPUTERNAME", + "computername", + "computersystem", + "COMSPEC", + "comspec", + "Cond", + "confd", + "confdef", + "configfetcher", + "configurables", + "configurationdata", + "confnew", + "confold", + "constructor", + "CONSTS", + "consts", + "containername", + "containerpath", + "contruct", + "Convertto", + "cookbookname", + "copypasta", + "coreutils", + "corretto", + "cpio", + "Crae", + "CREAT", + "createhomedir", + "Createobject", + "creds", + "crlfile", + "crlnum", + "Crory", + "Crosta", + "CRYPTOPROTECT", + "CRYPTPROTECT", + "cssh", + "csum", + "ctfs", + "CTRY", + "CTYPE", + "curr", + "Cxxx", + "cygwin", + "DACL", + "Dacl", + "dacl", + "Daemonization", + "DATACENTER", + "Datacenter", + "datacenter", + "DATAFILE", + "DATALINK", + "datas", + "dbag", + "DBATCH", + "DBCS", + "dctoken", + "DDTHH", + "dearmor", + "dearmored", + "Decompressor", + "decompressor", + "Decryptor", + "decryptor", + "dedup", + "DEFAULTCHAR", + "defaultguard", + "defn", + "defns", + "deinstall", + "delegators", + "deletable", + "deletin", + "delim", + "deliminates", + "DELIMS", + "delims", + "depsolved", + "DESCR", + "deserialization", + "destdir", + "devaux", + "devel", + "DEVICEEVENT", + "devicename", + "DEVIOCTL", + "devmode", + "devuan", + "Dfsn", + "DFSR", + "dgrade", + "Dialup", + "DIDNT", + "diffable", + "dirglob", + "disablerepo", + "DISCARDABLE", + "DISCARDNS", + "displayname", + "Distros", + "distros", + "DMGs", + "dnephin", + "docgen", + "domainandname", + "DOMAINNAME", + "domainname", + "domainuser", + "Doppel", + "dos2unix", + "DOSDUPHANDLE", + "dotdeb", + "dotdirs", + "dotfile", + "dotfiles", + "dotglob", + "DOTMATCH", + "downcased", + "downcases", + "downto", + "DPAPI", + "Dreamcat", + "dscacheutil", + "dscresource", + "dslocal", + "DUPEUX", + "DWORDLONG", + "DYNALINK", + "DYNLINK", + "EAGAIN", + "EASTEUROPE", + "eastus", + "ebusy", + "eckey", + "ecparam", + "edir", + "efivarfs", + "egid", + "egrep", + "ELOOP", + "EMBEDDEDNT", + "EMBEDDEDSERVER", + "enableable", + "ENABLEDELAYEDEXPANSION", + "enablegroups", + "enablement", + "enablerepo", + "encap", + "Encryptor", + "encryptor", + "endlocal", + "entriesread", + "envdata", + "ENVVAR", + "Errno", + "erroraction", + "errorhandler", + "ERRORLEVEL", + "Eruby", + "eruby", + "escapepath", + "ESRCH", + "etags", + "euca", + "euid", + "EVENTNAME", + "EXCED", + "executability", + "executionpolicy", + "execvp", + "exitcode", + "expandproperty", + "expandtab", + "EXTGLOB", + "extname", + "extrastuff", + "Exts", + "exts", + "FACs", + "failburger", + "FAILCRITICALERRORS", + "failovermethod", + "fakeweb", + "FAPI", + "fastestmirror", + "fastrestart", + "faststart", + "faststop", + "fatals", + "fcntl", + "Fcontext", + "fcontext", + "featurename", + "FEFF", + "FFLAGS", + "fflags", + "Fichter", + "fieldname", + "Fileexists", + "filehandle", + "FILEMARK", + "fileno", + "filesets", + "filesize", + "filespecificity", + "filestat", + "filesystems", + "FILETIME", + "filterm", + "finalizer", + "findfs", + "Fixnums", + "flushcache", + "fmri", + "fname", + "foorb", + "forcearch", + "FORCECLOSEAPPLICATIONS", + "FORCEMINIMIZE", + "FORCEOFFFEEDBACK", + "FORCEONFEEDBACK", + "forwardslashes", + "fpath", + "FSCTL", + "ftype", + "FUGLY", + "fullpath", + "fullpolicy", + "FULLSCREEN", + "fuzzify", + "Fuzzyurl", + "fuzzyurl", + "gaffneyc", + "gecos", + "gempath", + "gencaches", + "getaddrinfo", + "getbinaryfile", + "getc", + "getenforce", + "GETFD", + "GETFL", + "getgr", + "getgrgid", + "getgrnam", + "gethostbyname", + "getlogin", + "getmodhandle", + "getnode", + "getobj", + "getopts", + "getppid", + "getprint", + "getprocaddr", + "getpw", + "getremotelogin", + "getsebool", + "getspnam", + "gettext", + "GETTHUMBPRINTCODE", + "gettime", + "gettimezone", + "gettype", + "getwd", + "gids", + "gilles", + "globalstate", + "Globbing", + "globbing", + "globsafe", + "globstar", + "gmake", + "gmetric", + "gname", + "googlechrome", + "GOPRIVATE", + "GOTOU", + "gotoyuzo", + "Gpasswd", + "gpasswd", + "gpgautoimportkeys", + "grafana", + "grafanaserviceapi", + "Graty", + "Groh", + "groupinstall", + "groupmembership", + "GROUPNAME", + "groupname", + "grype", + "gzipped", + "habfile", + "habicat", + "HACCEL", + "hacky", + "halp", + "HANGEUL", + "hardstatus", + "HARDWAREPROFILECHANGE", + "haselwanter", + "hashify", + "hawtness", + "HBITMAP", + "HBRUSH", + "HCOLORSPACE", + "HCONV", + "HCONVLIST", + "HCURSOR", + "HDDEDATA", + "HDESK", + "hdidutil", + "HDROP", + "HDWP", + "Heinen", + "HENHMETAFILE", + "hexencode", + "HFILE", + "HFONT", + "HGDIOBJ", + "HGLOBAL", + "HHOOK", + "HIBYTE", + "HICON", + "Hinderliter", + "HINSTANCE", + "hintname", + "hivename", + "HIWORD", + "HLOCAL", + "HMENU", + "HMETAFILE", + "HMOD", + "HMODULE", + "HMONITOR", + "homebrew-apple", + "HOMESHARE", + "hongli", + "Hostnames", + "hostnames", + "hostport", + "hostspec", + "hostspecific", + "hoststr", + "HPALETTE", + "HPEN", + "HRESULT", + "HRGN", + "HRSRC", + "Huon", + "HWADDR", + "hwaddr", + "hwaddress", + "HWINSTA", + "HWND", + "HWNDS", + "ichannel", + "iconlocation", + "idmv", + "iface", + "ifdef", + "IGNORECASE", + "igroups", + "illumos", + "imageinfo", + "Immutablize", + "immutablize", + "inact", + "includedir", + "includepkgs", + "includer", + "Indentable", + "indentable", + "INET", + "inet", + "infc", + "INFLOOP", + "iniparse", + "Inout", + "inout", + "inpipe", + "INPORT", + "inputformat", + "Insserv", + "insserv", + "installable", + "installondemand", + "installonlypkgs", + "installp", + "installshield", + "instanceid", + "INTERDOMAIN", + "interfacetype", + "interpolatedexitcode", + "Intility", + "ints", + "Invokercd", + "invokercd", + "invokereturnasis", + "IOAV", + "Ionuț", + "IOPL", + "IPACK", + "IPADDR", + "ipaddr", + "ipaddress", + "IPPROTO", + "ireton", + "isalnum", + "isalpha", + "isatty", + "isdigit", + "ivname", + "IVNAMES", + "Jagtap", + "jailmode", + "janky", + "javatooling", + "jbcs", + "jeppe", + "jesai", + "JOHAB", + "juanje", + "jxvf", + "Kauppila", + "Keane", + "keeppackages", + "keychain", + "keyfile", + "keygen", + "keyid", + "keyivgen", + "KEYNAME", + "keyname", + "keypair", + "keyrings", + "keyscan", + "keysign", + "KEYTAB", + "keytab", + "kool", + "Kouznetsov", + "KSEC", + "kwargs", + "laco", + "Landauer", + "langenbach", + "LANGID", + "lastcmdlet", + "LASTDAY", + "lastday", + "LASTEXITCODE", + "lastexitcode", + "Lavey", + "lchmod", + "lchown", + "LCID", + "LCTYPE", + "ldif", + "LEADBYTE", + "Leff", + "leinartas", + "lgrmi", + "lgrpi", + "LGRPID", + "LHND", + "libmariadb", + "libdnf", + "libopenssl", + "libruby", + "libselinux", + "linuxbrew", + "linuxmint", + "LISTBOX", + "listprop", + "lita", + "literalpath", + "ljust", + "lltstype", + "LMEM", + "LMSHARE", + "LMSTR", + "LOBYTE", + "localdomain", + "LOCALGROUP", + "localgroupname", + "localip", + "localmachine", + "localname", + "localport", + "localsystem", + "localtime", + "LOCKCOUNT", + "logfile", + "loginclass", + "loginwindow", + "LOGLOCATION", + "logopts", + "logstring", + "LONGLONG", + "losetup", + "lowercased", + "LOWORD", + "LPARAM", + "LPBOOL", + "LPBY", + "LPBYTE", + "LPCOLORREF", + "LPCSTR", + "LPCTSTR", + "LPCVOID", + "LPCWSTR", + "lpdw", + "LPDWORD", + "LPHANDLE", + "LPINT", + "LPLONG", + "lplp", + "LPOSVERSIONINFO", + "LPOVERLAPPED", + "LPSECURITY", + "LPSTR", + "lpsz", + "LPTR", + "LPTSTR", + "lptstr", + "LPVOID", + "LPWIN", + "LPWORD", + "LPWSTR", + "LRESULT", + "lsfs", + "lslpp", + "lssrc", + "lstchg", + "lsuser", + "ltrace", + "lucene", + "LUID", + "Luid", + "luid", + "LUIDS", + "MACCP", + "machinename", + "macterm", + "madsen", + "magick", + "mailservers", + "MAILSLOT", + "mailslot", + "MAILTO", + "mailto", + "mainloop", + "Mainmodule", + "makecache", + "makedirs", + "MAKELONG", + "MAKEWORD", + "margs", + "Masayoshi", + "mashify", + "matchdot", + "Mathieson", + "MAXARGS", + "MAXDWORD", + "maxlogins", + "MDICHILD", + "MEDIUMBUSINESS", + "memcpy", + "memlock", + "MESSAGEDEST", + "MESSAGENAME", + "METAFILE", + "metafile", + "metalink", + "metaparameter", + "metasearch", + "miah", + "middlewares", + "Midgley", + "miimon", + "MINALLOCSIZE", + "minmax", + "mirrorlist", + "mirrorlists", + "miscutils", + "MITM", + "mkgroup", + "mkmf", + "mkpath", + "MKTEMP", + "mktemp", + "mktmpdir", + "mname", + "mntfs", + "modname", + "MODULETYPE", + "mollison", + "monkeypatch", + "Monkeypatches", + "monologger", + "MONTHLYDATE", + "MONTHLYDOW", + "monthlydow", + "moodle", + "mountpoint", + "mounttab", + "mpkg", + "MPSSVC", + "MSDNQTR", + "MSGBOX", + "msgmax", + "msgqueue", + "MSIERRORCODE", + "MSIHANDLE", + "MSVCRT", + "MSXML", + "MSYSTEM", + "MULTILINE", + "multiline", + "multipackage", + "multiplatform", + "Multiresource", + "multiresource", + "multitenant", + "multithreaded", + "Multiuser", + "multivalue", + "munge", + "Mutators", + "mutexes", + "MUXWAITERS", + "myapp", + "myawesomea", + "mycert", + "mycorp", + "myecrequest", + "myfail", + "mygem", + "myname", + "myorg", + "myprop", + "myrecipe", + "myrsarequest", + "mysignedcert", + "mytoken", + "myworkgroup", + "namespacing", + "namp", + "NCRC", + "nejsum", + "NERR", + "netaddr", + "netapi", + "NETBINDADD", + "NETBINDCHANGE", + "NETBINDDISABLE", + "NETBINDENABLE", + "NETBINDREMOVE", + "NETCARD", + "nethttp", + "NETLOGON", + "netmsg", + "NETNAME", + "NETPATH", + "netpbm", + "Nevra", + "nevra", + "nevras", + "newcron", + "newfile", + "newguard", + "newpkg", + "newval", + "nginxserviceapi", + "nillable", + "nistp", + "nlist", + "NOACCESS", + "NOACTION", + "NOALIGNMENTFAULTEXCEPT", + "noarch", + "noauth", + "noauto", + "nobrowse", + "NOCHANGES", + "NOCOMPACT", + "noconfirm", + "nocreate", + "Nodearray", + "NODELAY", + "Nodename", + "nodename", + "NODISCARD", + "nodocument", + "NOEXEC", + "noexec", + "NOFILE", + "nofile", + "NOFOLLOW", + "NOFORCE", + "noforce", + "NOGPFAULTERRORBOX", + "nogpgcheck", + "nokeys", + "NOLICPROMPT", + "NOLOGON", + "NONBLOCK", + "NONINTERACTIVE", + "noninteractive", + "nonio", + "NONPAGED", + "NONZEROLHND", + "NONZEROLPTR", + "NOOPENFILEERRORBOX", + "noprofile", + "noprogressbar", + "NORESTART", + "norestart", + "nospace", + "nospinner", + "notapplicable", + "notauser", + "notconfigured", + "notdoingit", + "notfound", + "NOTIMEOUTIFNOTHUNG", + "notlike", + "NOTUSED", + "noverify", + "NOWAIT", + "NPAS", + "nproc", + "nread", + "NTSTATUS", + "nupkg", + "objfs", + "OBJS", + "objs", + "OEMCP", + "ojeda", + "oldguard", + "OLDLOGLOCATION", + "oldpackage", + "oldval", + "ONBOOT", + "onboot", + "Onddo", + "oneshot", + "onidle", + "onlogon", + "ONPARENT", + "onparent", + "onstart", + "OPLOCK", + "optarg", + "optind", + "optstr", + "ORGNAME", + "orgname", + "osquery", + "OSVERSIONINFOEX", + "otherfiles", + "outform", + "outpipe", + "outputpath", + "Overridable", + "overridable", + "Overriders", + "ovpn", + "OXID", + "packageinfo", + "Packageprovider", + "packagesource", + "pagefiles", + "pagefileset", + "parallelizer", + "PARAMCHANGE", + "parms", + "Partof", + "passstr", + "passthru", + "passw", + "PASSWORDNAME", + "passwordprompt", + "PATCHLEVEL", + "pathed", + "PATHEXT", + "PATHFINDING", + "Pathnames", + "pbkdf", + "PBOOL", + "PBOOLEAN", + "PBYTE", + "pcch", + "PCHAR", + "pconfig", + "PCRYPTPROTECT", + "PCSTR", + "PCTSTR", + "PCWSTR", + "PDATA", + "pdata", + "PDWORD", + "PDWORDLONG", + "performant", + "permissives", + "PFILETIME", + "PFLOAT", + "PGENERICMAPPING", + "phabricator", + "PHALF", + "PHANDLE", + "Philis", + "PHKEY", + "PIDFILE", + "pidfiles", + "pkgconfig", + "pkgin", + "pkginfos", + "pkgrm", + "pkgs", + "PKINIT", + "PLCID", + "PLISTBUDDY", + "plistbuddy", + "plists", + "PLONG", + "PLONGLONG", + "PLSA", + "PLUID", + "PLUTIL", + "plutil", + "PNAME", + "Policybuilder", + "policycoreutils", + "POLICYNAME", + "portageq", + "portcon", + "PORTVERSION", + "POSI", + "POST'ing", + "postprocess", + "postrm", + "POWEREVENT", + "powershellget", + "ppid", + "prco", + "Precompiled", + "PRECOMPOSED", + "precreated", + "prefixlen", + "prefmaxlen", + "prefname", + "preinstall", + "PREPARSE", + "prepended", + "prepender", + "Prepending", + "preprod", + "prereqs", + "preseed", + "preseeding", + "PRESHUTDOWN", + "primarygroupid", + "PRINC", + "PRINTPROCESSOR", + "PRINTQ", + "processname", + "PROCNUM", + "procs", + "productversion", + "progname", + "programdata", + "PROMPTSTRUCT", + "PROTO", + "proto", + "PROTSEQ", + "PROTSEQS", + "Proxified", + "proxified", + "Proxifier", + "proxifier", + "PSAPI", + "psapi", + "Pscx", + "Psec", + "PSECURITY", + "PSHORT", + "PSIZE", + "psobject", + "psrepository", + "PSSIZE", + "PSTR", + "pswd", + "PTBYTE", + "PTCHAR", + "PTSTR", + "pubkey", + "pubkeys", + "PUCHAR", + "PUHALF", + "PUINT", + "PULONG", + "PULONGLONG", + "PUSHORT", + "putc", + "PUTing", + "PVOID", + "PWCHAR", + "pwdp", + "pwent", + "PWIN", + "PWORD", + "PWSTR", + "PYTHONUNBUFFERED", + "Páll", + "qstr", + "Qube", + "queryformat", + "questionmark", + "rassoc", + "rbag", + "rcscript", + "rcvar", + "RDWR", + "readdir", + "readlink", + "realloc", + "realname", + "realpath", + "Rebooter", + "rebooter", + "rebootnow", + "rebuilddb", + "reconfig", + "Recurses", + "redhatrcd", + "REDIR", + "redirections", + "REDIRECTOR", + "redist", + "redownloading", + "Reenable", + "reenable", + "reenabled", + "reenabling", + "refcount", + "Referer", + "regen", + "regexes", + "regextype", + "REGSAM", + "reimplement", + "reimplementing", + "REINITIALIZATION", + "reldep", + "RELOC", + "RELR", + "remoteaccess", + "remoteip", + "remoteport", + "remotesigned", + "removelock", + "REMOVEME", + "removerepo", + "relocs", + "relr", + "renaud", + "renewall", + "REPARSE", + "Reparse", + "reparse", + "reparses", + "reparsing", + "REPLACESTR", + "repocontrols", + "repodata", + "repoid", + "repolist", + "repomd", + "repos", + "repositoryid", + "Reregister", + "reregister", + "reregistered", + "Resolv", + "resolv", + "resourcelist", + "restorecon", + "resumehandle", + "retriable", + "rfind", + "rhash", + "rhosts", + "rindex", + "rjust", + "rmatch", + "rmgroup", + "RMODE", + "rmtree", + "rname", + "roundrobin", + "rpartition", + "rpath", + "rpmdb", + "rpmdep", + "rpmds", + "rpmvercmp", + "rquery", + "rsakey", + "RTLD", + "RSAT", + "RUNFULLSCREEN", + "runid", + "runlock", + "runneradmin", + "runpid", + "runrun", + "rvmrc", + "RXACT", + "rxhash", + "rxvlan", + "SACL", + "Sacl", + "sacl", + "SAST", + "savetime", + "SAWANOBORI", + "Sbzl", + "schtasks", + "SCODE", + "scopeid", + "scpath", + "screenrc", + "Scriptable", + "SCROLLBAR", + "SCROLLBARS", + "secontext", + "secoption", + "secopts", + "secp", + "secretkey", + "securestring", + "SECURITYPOLICY", + "secvalue", + "SEGDPL", + "SEGLIM", + "seinfo", + "selinuxenabled", + "SELINUXTYPE", + "selinuxtype", + "semanage", + "semodule", + "SEPCHARS", + "SERENUM", + "sertelon", + "servername", + "SERVERR", + "serverurl", + "servicecheck", + "servicelevel", + "SERVICENAME", + "SESS", + "SESSIONCHANGE", + "SESSIONID", + "SETCOUNT", + "setenforce", + "SETFD", + "SETFL", + "setlocal", + "SETLOCALDEFS", + "SETMARK", + "setobj", + "setools", + "setprop", + "setremotelogin", + "setsebool", + "setsid", + "setsockopt", + "settimezone", + "SETTINGCHANGE", + "setuid", + "SETX", + "SHARENAME", + "SHAs", + "shas", + "shellcmd", + "shellescape", + "shelljoin", + "shellsplit", + "Shellwords", + "shellwords", + "SHIFTJIS", + "shiftwidth", + "shopt", + "shortname", + "Shouldnotexist", + "showcerts", + "SHOWDEFAULT", + "showhold", + "SHOWMAXIMIZED", + "SHOWMINIMIZED", + "SHOWMINNOACTIVE", + "SHOWNA", + "SHOWNOACTIVATE", + "SHOWNORMAL", + "showpkg", + "SHOWWIN", + "sideload", + "sierles", + "signedheaderauth", + "sigpending", + "SIGPIPE", + "SIGQUIT", + "SIGUSR", + "silentlycontinue", + "SINGLELINE", + "singleline", + "Singleuser", + "SINGLEUSERTS", + "sitearchdir", + "SITENAME", + "skus", + "skylerto", + "SMALLBUSINESS", + "SMARTCARD", + "SMARTCARDROOT", + "Smokish", + "SMTO", + "softtabstop", + "solv", + "somedir", + "somefile", + "someotherfile", + "someuser", + "sonarqube", + "sourceline", + "spawninstance", + "specdoc", + "splunkserviceapi", + "srand", + "SRCCHARSET", + "SRCCODEPAGE", + "SRCFONTSIG", + "SRCLOCALE", + "srcs", + "SSIZE", + "sslcacert", + "sslclientcert", + "sslclientkey", + "sslverify", + "STACKSEG", + "stacktraces", + "Stanislav", + "STARTF", + "startsrc", + "STARTSSH", + "STARTUPINFO", + "stdcall", + "Stepable", + "stepable", + "stopsrc", + "strftime", + "strptime", + "Struct", + "struct", + "stubabble", + "stubbable", + "subclassable", + "subclassing", + "subcollections", + "SUBCOMMANDS", + "subcommands", + "subcontext", + "Subdir", + "subdir", + "subdirs", + "subfeatures", + "SUBFOLDERS", + "SUBKEY", + "subkeys", + "subklass", + "sublicensable", + "submodules", + "subprocesses", + "subrecords", + "subresource", + "subresources", + "subsession", + "SUBSTED", + "sunsetting", + "SUPPRESSMSGBOXES", + "svcadm", + "svccfg", + "svcs", + "SWAPERROR", + "swapfiles", + "swappable", + "symlinking", + "syntaxcache", + "sysadm", + "sysconfig", + "sysctld", + "sysctls", + "Sysexits", + "sysread", + "systemdrive", + "systemrestart", + "systemsetup", + "systemshare", + "SYSTEMSTART", + "Systemtime", + "syswrite", + "Taddeo", + "TAKAHASHI", + "targetmode", + "TBYTE", + "TCBS", + "TCHAR", + "tempadmin", + "tempcron", + "tempdir", + "Tempfile", + "tempfile", + "tempfiles", + "Templating", + "tempname", + "TERMSRV", + "testswapfile", + "testswapfiledir", + "testuser", + "texteditor", + "tfile", + "Theaker", + "THRDS", + "THREADID", + "tilesize", + "TIMECHANGE", + "timh", + "tmap", + "tmpdir", + "Tmpname", + "tnodename", + "Tolstov", + "toplevel", + "totalentries", + "traceback", + "traceroute", + "trainwreck", + "triaging", + "TRIGGEREVENT", + "trivy", + "TRIVY", + "trixie", + "trufflehog", + "TRUNC", + "TRUSTEDDEVICES", + "TRUSTEDPEOPLE", + "TRUSTEDPUBLISHER", + "TSTDUP", + "TSTOVFL", + "tuid", + "tvfs", + "typecode", + "ucanhaz", + "UCHAR", + "uchar", + "ucrt", + "udiff", + "UHALF", + "ULONG", + "ulong", + "ULONGLONG", + "UNAVAIL", + "uncask", + "Uncompressing", + "Undock", + "unescaping", + "UNEXP", + "UNEXPORTED", + "Unforked", + "unforked", + "Unformatter", + "unformatter", + "unhold", + "unignored", + "unins", + "uninst", + "unintuitive", + "unixy", + "Unjoin", + "unlazied", + "unlazies", + "unlazying", + "Unmanaged", + "unmanaged", + "unmerge", + "unmergeables", + "unmount", + "unmounting", + "unparsable", + "Unprocessable", + "unredacted", + "Unregister", + "unregister", + "Unregistering", + "unregistering", + "Unregisters", + "unscoped", + "unscrubbed", + "unsecure", + "Unsets", + "UNSPEC", + "untaint", + "untampered", + "untap", + "untar", + "untarred", + "untracked", + "Untriaged", + "Unversioned", + "unversioned", + "UNWRITABLE", + "uploaded", + "Uploader", + "uploader", + "uploaders", + "upsert", + "uptodate", + "urandom", + "urllib", + "urlopen", + "usag", + "usags", + "usebackq", + "usecount", + "USECOUNTCHARS", + "USEFILLATTRIBUTE", + "USEGLYPHCHARS", + "usename", + "USEPOSITION", + "userdel", + "USERDOMAIN", + "USEREXIT", + "USERINFO", + "userinfo", + "userland", + "Usermod", + "usermod", + "USESHOWWINDOW", + "USESIZE", + "USESTDHANDLES", + "USHORT", + "ushort", + "usri", + "ustring", + "utime", + "uuidgen", + "vaidas", + "valclient", + "varargs", + "vargo", + "variablevalue", + "Vasiliy", + "versioncompare", + "versioninfo", + "versionlock", + "VERYSILENT", + "VFSTAB", + "vfstab", + "VIOKBD", + "Virender", + "virt", + "Vivek", + "VMBUS", + "voidcmd", + "vxfs", + "Waddr", + "waitfor", + "waitpid", + "waitsem", + "wakeup", + "waym", + "Wbem", + "WBITS", + "WCHAR", + "wchar", + "wchars", + "WEBHOSTING", + "webroot", + "webserver", + "WEBTEAM", + "webteam", + "whatavailable", + "whateverd", + "Whatif", + "whatif", + "whatinstalled", + "whatprovides", + "whereis", + "whoami", + "willem", + "WINAPI", + "winbase", + "windef", + "windir", + "windmc", + "windowspowershell", + "WINDOWSTATION", + "windres", + "winerror", + "winevt", + "winget", + "winmgmts", + "winprog", + "WINVER", + "WKSTA", + "WMIGUID", + "woot", + "workdir", + "WPARAM", + "WSCHILD", + "wstring", + "wtime", + "xabcz", + "xabier", + "xchar", + "xdigit", + "XEEDS", + "XFORM", + "XMLHTTP", + "yardoc", + "yieldparam", + "zabbix", + "zanetti", + "Zapp", + "zeproc", + "ZEROINIT", + "zipfile", + "zolo", + "zombiejs", + "zuazo", + "zypp", + "Ásgeirsson", + "ümlauts", + "customfield" + ], + // flagWords - list of words to be always considered incorrect + // This is useful for offensive words and common spelling errors. + // For example "hte" should be "the" + "flagWords": ["hte"], + "ignorePaths": [ + "CHEF_MVPS.md", + "CHANGELOG.md", + "CLA_ARCHIVE.md", + "sonar-project.properties", + "**/*.gemspec", + "**/Gemfile.lock", + "**/Gemfile", + ".expeditor/**/*", + "**/*.yml", + "**/*.toml", + "**/Berksfile", + "dangerfile.js", + "lib/chef/provider/package/yum/simplejson/**/*", + "lib/chef/provider/package/yum/simplejson/*", + "omnibus/resources/chef/**/*", + "kitchen-tests/cookbooks/end_to_end/files/**/*", + "spec/**", + "docs_site", + "cspell.json", + ".mailmap", + "NOTICE" + ], + "ignoreRegExpList": [ + // Ignore "'s" at the end of a word. If "Chef" is an accepted word, so is "Chef's". + "/'s\\b/", + // Ignore "'d" at the end of a word. If "dup" is an accepted word, so is "dup'd". + "/'d\\b/" + ] +} diff --git a/sonar-project.properties b/sonar-project.properties index 9f24f0f..a6fee6a 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -41,4 +41,4 @@ sonar.ruby.coverage.reportPaths=coverage/coverage.json # skip C-language processor sonar.c.file.suffixes=- sonar.cpp.file.suffixes=- -sonar.objc.file.suffixes=- \ No newline at end of file +sonar.objc.file.suffixes=-