From f175d45b6eed9eb8d43cd7de4a53153049b0d7af Mon Sep 17 00:00:00 2001 From: Phil Dibowitz Date: Mon, 6 Apr 2026 14:16:20 -0700 Subject: [PATCH] First pass at making this repo work According to chef/chef#15847 this is going to become the authoritative repo for knife. Other things need to happen for that, but this is a first-pass at cleaning things up. * add lint * add unit * add DCO * fix line endings * fix spellcheck * Update various configs for new paths and non existent paths * Add CODEOWNERS * Add dependabot config * add .editorconfig * add Gemfile.lock Signed-off-by: Phil Dibowitz --- .editorconfig | 19 + .../buildkite/artifact.habitat.test.ps1 | 2 +- .expeditor/buildkite/artifact.habitat.test.sh | 2 +- .expeditor/verify.pipeline.yml | 2 +- .github/CODEOWNERS | 4 + .github/dependabot.yml | 23 +- .github/labeler.yml | 6 + .github/workflows/allchecks.yml | 18 + .../archived/ci-main-pull-request-stub.yml | 109 -- .github/workflows/archived/sonarqube.yml | 34 - .../ci-main-pull-request-stub-1.0.7.yml | 2 +- .github/workflows/dco.yml | 22 + .github/workflows/labeler.yml | 16 + .github/workflows/lint.yml | 46 + .github/workflows/unit_specs.yml | 99 + .linelint.yml | 18 + CHANGELOG.md | 2 +- Gemfile | 1 - Gemfile.lock | 497 +++++ README.md | 2 +- cspell.json | 1674 +++++++++++++++++ habitat/plan.ps1 | 2 +- habitat/tests/test.sh | 2 +- sonar-project.properties | 2 +- spec/data/bad-config.rb | 2 +- .../cb_version_cookbooks/tatft/README.rdoc | 2 +- .../tatft/definitions/runit_service.rb | 2 +- .../tatft/libraries/ownage.rb | 2 +- .../tatft/providers/lwp.rb | 2 +- .../tatft/recipes/default.rb | 2 +- .../tatft/resources/lwr.rb | 2 +- spec/data/checksum/random.txt | 2 +- spec/data/config.rb | 1 - .../data/cookbooks/apache2/recipes/default.rb | 2 +- spec/data/cookbooks/borken/recipes/default.rb | 2 +- .../borken/templates/default/borken.erb | 2 +- .../cookbooks/ignorken/recipes/default.rb | 2 +- .../cookbooks/ignorken/recipes/ignoreme.rb | 2 +- .../java/files/default/java.response | 2 +- .../name-mismatch-versionnumber/README.md | 1 - .../name-mismatch-versionnumber/metadata.rb | 1 - .../openldap/files/default/.ssh/id_rsa | 2 +- .../default/remotedir/remote_dir_file1.txt | 2 +- .../default/remotedir/remote_dir_file2.txt | 2 +- .../remotesubdir/remote_subdir_file1.txt | 2 +- .../remotesubdir/remote_subdir_file2.txt | 2 +- .../templates/default/openldap_stuff.conf.erb | 2 +- spec/data/cookbooks/starter/files/sample.txt | 2 +- spec/data/definitions/test.rb | 2 +- spec/data/environment-config.rb | 2 +- .../incomplete-metadata/README.md | 1 - .../incomplete-metadata/metadata.rb | 1 - .../invalid-metadata/README.md | 1 - .../kitchen/openldap/attributes/robinson.rb | 2 +- .../openldap/definitions/drewbarrymore.rb | 2 +- .../data/kitchen/openldap/recipes/gigantor.rb | 2 +- .../data/kitchen/openldap/recipes/ignoreme.rb | 2 +- .../test_explicit_category.rb | 2 +- .../remote_directory_data/remote_dir_file.txt | 2 +- .../remote_subdir_file.txt | 2 +- spec/data/rubygems.org/nonexistent_gem-info | 2 +- .../cookbooks/circular-dep1/libraries/lib.rb | 1 - .../cookbooks/circular-dep2/libraries/lib.rb | 1 - .../cookbooks/dependency1/libraries/lib.rb | 1 - .../cookbooks/dependency2/libraries/lib.rb | 1 - .../test-with-circular-deps/libraries/lib.rb | 1 - .../cookbooks/test/recipes/default.rb | 2 - spec/data/sample_msu1.xml | 1 - spec/data/sample_msu2.xml | 1 - spec/data/sample_msu3.xml | 1 - spec/data/standalone_cookbook/Gemfile | 2 +- .../standalone_cookbook/recipes/default.rb | 2 +- .../gems/multi_json-1.9.0/lib/multi_json.rb | 2 +- .../chef-seattle20160930-4388-1crv7ef.txt | 2 +- .../chef-seattle20160930-4388-jjfoae.txt | 2 +- .../chef-seattle20160930-4388-umeq2c.txt | 2 +- spec/data/templates/seattle.txt | 2 +- spec/knife_spec_helper.rb | 2 +- spec/unit/knife/configure_spec.rb | 8 +- 79 files changed, 2487 insertions(+), 219 deletions(-) create mode 100644 .editorconfig create mode 100644 .github/CODEOWNERS create mode 100644 .github/labeler.yml create mode 100644 .github/workflows/allchecks.yml delete mode 100644 .github/workflows/archived/ci-main-pull-request-stub.yml delete mode 100644 .github/workflows/archived/sonarqube.yml create mode 100644 .github/workflows/dco.yml create mode 100644 .github/workflows/labeler.yml create mode 100644 .github/workflows/lint.yml create mode 100644 .github/workflows/unit_specs.yml create mode 100644 .linelint.yml create mode 100644 Gemfile.lock create mode 100644 cspell.json 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/buildkite/artifact.habitat.test.ps1 b/.expeditor/buildkite/artifact.habitat.test.ps1 index a77642f..0b86942 100755 --- a/.expeditor/buildkite/artifact.habitat.test.ps1 +++ b/.expeditor/buildkite/artifact.habitat.test.ps1 @@ -105,4 +105,4 @@ try { finally { # Ensure we always return to the original directory Pop-Location -} \ No newline at end of file +} diff --git a/.expeditor/buildkite/artifact.habitat.test.sh b/.expeditor/buildkite/artifact.habitat.test.sh index 4de7d87..269f08d 100755 --- a/.expeditor/buildkite/artifact.habitat.test.sh +++ b/.expeditor/buildkite/artifact.habitat.test.sh @@ -72,4 +72,4 @@ export PATH echo "PATH is $PATH" echo "--- :mag_right: Testing $PLAN" -${project_root}/habitat/tests/test.sh "$pkg_ident" || error 'failures during test of executables' \ No newline at end of file +${project_root}/habitat/tests/test.sh "$pkg_ident" || error 'failures during test of executables' diff --git a/.expeditor/verify.pipeline.yml b/.expeditor/verify.pipeline.yml index f2ffaff..bf64e5b 100644 --- a/.expeditor/verify.pipeline.yml +++ b/.expeditor/verify.pipeline.yml @@ -79,4 +79,4 @@ steps: - FORCE_FFI_YAJL=ext - EXPIRE_CACHE=true - CHEF_LICENSE=accept-no-persist - - CHEF_LICENSE_SERVER=http://hosted-license-service-lb-8000-606952349.us-west-2.elb.amazonaws.com:8000/ \ No newline at end of file + - CHEF_LICENSE_SERVER=http://hosted-license-service-lb-8000-606952349.us-west-2.elb.amazonaws.com:8000/ diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..55b8989 --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1,4 @@ +# Order is important. The last matching pattern has the most precedence. + +* @chef/chef-infra-reviewers @chef/chef-infra-approvers @chef/chef-infra-owners @jaymzh +.expeditor/ @chef/build-engineering-systems-team diff --git a/.github/dependabot.yml b/.github/dependabot.yml index c496bc7..bff63c0 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,11 +1,18 @@ -# To get started with Dependabot version updates, you'll need to specify which -# package ecosystems to update and where the package manifests are located. -# Please see the documentation for all configuration options: -# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file - version: 2 updates: - - package-ecosystem: "bundler" # See documentation for possible values - directory: "/" # Location of package manifests + - package-ecosystem: bundler + directory: "/" + target-branch: "main" + schedule: + interval: daily + open-pull-requests-limit: 20 + labels: + - "Type: Chore" + + - package-ecosystem: github-actions + directory: "/" schedule: - interval: "weekly" + interval: daily + open-pull-requests-limit: 10 + labels: + - "Type: Chore" diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000..c9ccc71 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,6 @@ +documentation: + - changed-files: + - any-glob-to-any-file: + - 'README.md' + - 'CODE_OF_CONDUCT.md' + - 'CONTRIBUTING.md' diff --git a/.github/workflows/allchecks.yml b/.github/workflows/allchecks.yml new file mode 100644 index 0000000..79c4530 --- /dev/null +++ b/.github/workflows/allchecks.yml @@ -0,0 +1,18 @@ +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@v2 + with: + checks_exclude: ".*(SonarCloud Code Analysis).*" + # Retry every minute for 30 minutes... + retries: 90 + verbose: true diff --git a/.github/workflows/archived/ci-main-pull-request-stub.yml b/.github/workflows/archived/ci-main-pull-request-stub.yml deleted file mode 100644 index 7659df6..0000000 --- a/.github/workflows/archived/ci-main-pull-request-stub.yml +++ /dev/null @@ -1,109 +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 chef/common-github-actions/ with same name as this stub -# -# secrets are inherited from the calling workflow, typically SONAR_TOKEN, SONAR_HOST_URL, GH_TOKEN, AKEYLESS_JWT_ID, POLARIS_SERVER_URL and POLARIS_ACCESS_TOKEN - -name: CI Pull Request on Main Branch - -on: - pull_request: - branches: [ main, develop, release/** ] - push: - branches: [ main, develop, release/** ] - - workflow_dispatch: - -permissions: - contents: read - -env: - STUB_VERSION: "1.0.5" - -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 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/* - - # if version specified, it takes precedence; can be a semver like 1.0.2-xyz or a tag like "latest" - version: '19.0.73' # ${{ github.event.repository.version }} - detect-version-source-type: 'none' # options include "none" (do not detect), "file", "github-tag" or "github-release" - detect-version-source-parameter: '' # use for file name - language: 'ruby' # Go, Ruby, Rust, JavaScript, TypeScript, Python, Java, C#, PHP, other - used for build and SonarQube language setting - - # 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 - - # trivy dependency and container scanning - perform-trivy-scan: true - - # BlackDuck SAST (Polaris) and SCA scans (requires a build or download to do SAST) - # requires these secrets: POLARIS_SERVER_URL, POLARIS_ACCESS_TOKEN - perform-blackduck-polaris: true - polaris-application-name: "Chef-Agents" # one of these: Chef-Agents, Chef-Automate, Chef-Chef360, Chef-Habitat, Chef-Infrastructure-Server, Chef-Shared-Services, Chef-Other, Chef-Non-Product - polaris-project-name: ${{ github.event.repository.name }} - polaris-blackduck-executable: 'path/to/blackduck/binary' - polaris-executable-detect-path: 'path/to/detect' - - # 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: true - # perform-sonar-build: true - # build-profile: 'default' - # report-unit-test-coverage: true - - perform-docker-scan: false # scan Dockerfile and built images with Docker Scout or Trivy; see repo custom properties matching "container" - - # report to central developer dashboard - report-to-atlassian-dashboard: false - quality-product-name: 'Chef-Agents' # product name for quality reporting, like Chef360, Courier, Inspec - # 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 - perform-blackduck-sca-scan: true # combined with generate sbom & generate github-sbom, also needs version above - blackduck-project-group-name: 'Chef-Agents' # typically one of (Chef), Chef-Agents, Chef-Automate, Chef-Chef360, Chef-Habitat, Chef-Infrastructure-Server, Chef-Shared-Services, Chef-Non-Product' - blackduck-project-name: ${{ github.event.repository.name }} # BlackDuck project name, typically the repository name - generate-blackduck-sbom: false # obsolete, use perform-blackduck-sca-scan instead - - 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/archived/sonarqube.yml b/.github/workflows/archived/sonarqube.yml deleted file mode 100644 index 2aea17b..0000000 --- a/.github/workflows/archived/sonarqube.yml +++ /dev/null @@ -1,34 +0,0 @@ -name: SonarQube scan -on: - # Trigger analysis when pushing to your main branches, and when creating a pull request. - push: - branches: - - main # or the name of your main branch - - develop - - 'release/**' - pull_request: - types: [opened, synchronize, reopened] - -jobs: - sonarqube: - runs-on: ubuntu-latest-4-cores -# runs-on: ubuntu-latest -# needs: [build] - steps: - - uses: actions/checkout@v4 - with: - # Disabling shallow clone is recommended for improving relevancy of reporting - fetch-depth: 0 - - name: SonarQube Scan - uses: sonarsource/sonarqube-scan-action@master - env: - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} - # If you wish to fail your job when the Quality Gate is red, uncomment the - # following lines. This would typically be used to fail a deployment. - # We do not recommend to use this in a pull request. Prefer using pull request - # decoration instead. - # - uses: sonarsource/sonarqube-quality-gate-action@master - # timeout-minutes: 5 - # env: - # SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/ci-main-pull-request-stub-1.0.7.yml b/.github/workflows/ci-main-pull-request-stub-1.0.7.yml index 4fae9dd..199160f 100644 --- a/.github/workflows/ci-main-pull-request-stub-1.0.7.yml +++ b/.github/workflows/ci-main-pull-request-stub-1.0.7.yml @@ -158,4 +158,4 @@ jobs: # udf1: 'default' # user defined flag 1 # udf2: 'default' # user defined flag 2 - # udf3: 'default' # user defined flag 3 \ No newline at end of file + # udf3: 'default' # user defined flag 3 diff --git a/.github/workflows/dco.yml b/.github/workflows/dco.yml new file mode 100644 index 0000000..2b3d08c --- /dev/null +++ b/.github/workflows/dco.yml @@ -0,0 +1,22 @@ +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: tim-actions/get-pr-commits@master + id: 'get-pr-commits' + with: + token: ${{ secrets.GITHUB_TOKEN }} + - name: DCO Check + uses: tim-actions/dco@master + with: + commits: ${{ steps.get-pr-commits.outputs.commits }} diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 0000000..ffb4722 --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,16 @@ +name: "Pull Request Labeler" +on: + pull_request_target: + branches: + - main +concurrency: + group: labeler--${{ github.event.pull_request.number || github.run_id }} + cancel-in-progress: true + +jobs: + triage: + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@v6.0.1 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..1595e5f --- /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 rake style + + 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.3.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/.github/workflows/unit_specs.yml b/.github/workflows/unit_specs.yml new file mode 100644 index 0000000..bc520ab --- /dev/null +++ b/.github/workflows/unit_specs.yml @@ -0,0 +1,99 @@ +--- +name: unit_specs + +"on": + pull_request: + branches: [main, "chef-*"] + push: + branches: [main, "chef-*"] + +permissions: + contents: read + +concurrency: + group: unit-specs-${{ github.event.pull_request.number || github.run_id }} + cancel-in-progress: true + +env: + CHEF_LICENSE: accept-no-persist + FORCE_FFI_YAJL: ext + +jobs: + unit: + strategy: + fail-fast: false + matrix: + os: + - ubuntu-22.04 + - ubuntu-24.04 + - windows-2022 + - windows-2025 + - macos-14 + - macos-15 + ruby: ["3.4"] + runs-on: ${{ matrix.os }} + timeout-minutes: 60 + steps: + - name: Configure git line endings (Windows) + if: runner.os == 'Windows' + run: git config --global core.autocrlf false + shell: pwsh + - uses: actions/checkout@v6 + with: + clean: true + - name: Install native deps (Ubuntu) + if: startsWith(matrix.os, 'ubuntu') + run: | + sudo apt-get update + sudo apt-get install -y libssl-dev libarchive-dev libffi-dev libyaml-dev + - uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby }} + bundler-cache: false + - name: Create unit test node fixtures + run: mkdir -p spec/data/nodes && touch spec/data/nodes/test.rb spec/data/nodes/default.rb spec/data/nodes/test.example.com.rb + shell: bash + - run: bundle install + - name: Set RUBY_DLL_PATH for chef-powershell (Windows) + if: runner.os == 'Windows' + shell: pwsh + run: | + $gem_lib = gem which chef-powershell 2>$null | Select-Object -First 1 + if ($gem_lib) { + $gem_path = Split-Path $gem_lib | Split-Path + echo "RUBY_DLL_PATH=$gem_path/bin/ruby_bin_folder/$env:PROCESSOR_ARCHITECTURE" >> $env:GITHUB_ENV + } + - run: bundle exec rake spec + + unit-rocky: + strategy: + fail-fast: false + matrix: + include: + - runs-on: ubuntu-24.04 + container: chefes/omnibus-toolchain-rocky-9:3.0.39 + - runs-on: ubuntu-24.04-arm + container: chefes/omnibus-toolchain-rocky-9:aarch64 + runs-on: ${{ matrix.runs-on }} + container: ${{ matrix.container }} + timeout-minutes: 60 + steps: + - uses: actions/checkout@v6 + with: + clean: true + - name: Install dependencies and Ruby via rbenv + run: | + dnf clean metadata + dnf install -y --enablerepo=devel openssl-devel libarchive-devel libffi-devel libyaml-devel readline-devel zlib-devel + curl -fsSL https://github.com/rbenv/rbenv-installer/raw/HEAD/bin/rbenv-installer | bash + export PATH="$HOME/.rbenv/bin:$PATH" + eval "$(rbenv init -)" + rbenv install 3.4.8 + rbenv global 3.4.8 + gem install bundler + echo "$HOME/.rbenv/bin" >> $GITHUB_PATH + echo "$HOME/.rbenv/shims" >> $GITHUB_PATH + - name: Create unit test node fixtures + run: mkdir -p spec/data/nodes && touch spec/data/nodes/test.rb spec/data/nodes/default.rb spec/data/nodes/test.example.com.rb + - run: bundle install + - run: bundle exec rake spec diff --git a/.linelint.yml b/.linelint.yml new file mode 100644 index 0000000..175e04a --- /dev/null +++ b/.linelint.yml @@ -0,0 +1,18 @@ +rules: + end-of-file: + enable: true + single-new-line: true + ignore: + # leaving security stuff alone + - .github/workflows/ci-main-pull-request-stub.yml + # these are not text files, leave them as-is + - spec/data/apt/var/www/apt/dists/sid/main/binary-amd64/Packages + - spec/data/cb_version_cookbooks/tatft/files/default/giant_blob.tgz + # tests of specific line ending stuff + - spec/data/cookbooks/openldap/templates/default/all_windows_line_endings.erb + - spec/data/cookbooks/openldap/templates/default/no_windows_line_endings.erb + - spec/data/cookbooks/openldap/templates/default/some_windows_line_endings.erb + - spec/data/ssl/private_key_with_whitespace.pem + # automatically generated + - CHANGELOG.md + - VERSION diff --git a/CHANGELOG.md b/CHANGELOG.md index e07007e..e3dd169 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -54,4 +54,4 @@ - [CHEF-33284] Fix spurious SERVER COMMANDS in knife --help [#71](https://github.com/chef/knife/pull/71) ([ashiqueps](https://github.com/ashiqueps)) - Revert "[CHEF-33284] Fix spurious SERVER COMMANDS in knife --help" [#75](https://github.com/chef/knife/pull/75) ([ashiqueps](https://github.com/ashiqueps)) - Update config for knife gem release [#70](https://github.com/chef/knife/pull/70) ([nikhil2611](https://github.com/nikhil2611)) - \ No newline at end of file + diff --git a/Gemfile b/Gemfile index 11ff7e9..6611d7f 100644 --- a/Gemfile +++ b/Gemfile @@ -41,4 +41,3 @@ group :omnibus_package, :pry do gem "pry-byebug" gem "pry-stack_explorer" end - diff --git a/Gemfile.lock b/Gemfile.lock new file mode 100644 index 0000000..c95b4c6 --- /dev/null +++ b/Gemfile.lock @@ -0,0 +1,497 @@ +PATH + remote: . + specs: + knife (19.0.103) + abbrev + bcrypt_pbkdf (~> 1.1) + chef-licensing (~> 1.2) + chef-vault + ed25519 (>= 1.2, < 2.0) + erubis (~> 2.7) + ffi (>= 1.15, < 1.18.0) + ffi-yajl (~> 2.2) + highline (>= 1.6.9, < 3) + license-acceptance (>= 1.0.5, < 3) + mixlib-archive (>= 0.4, < 2.0) + mixlib-cli (>= 2.1.1, < 3.0) + net-ssh (>= 5.1, < 8) + net-ssh-multi (~> 1.2, >= 1.2.1) + pastel + proxifier2 (~> 1.1) + train-core (~> 3.13, >= 3.13.4) + train-winrm (>= 0.2.17) + tty-prompt (~> 0.21) + tty-screen (~> 0.6) + tty-table (~> 0.11) + +GEM + remote: https://rubygems.org/ + specs: + abbrev (0.1.2) + addressable (2.9.0) + public_suffix (>= 2.0.2, < 8.0) + ast (2.4.3) + aws-eventstream (1.4.0) + aws-partitions (1.1235.0) + aws-sdk-core (3.244.0) + aws-eventstream (~> 1, >= 1.3.0) + aws-partitions (~> 1, >= 1.992.0) + aws-sigv4 (~> 1.9) + base64 + bigdecimal + jmespath (~> 1, >= 1.6.1) + logger + aws-sdk-kms (1.123.0) + aws-sdk-core (~> 3, >= 3.244.0) + aws-sigv4 (~> 1.5) + aws-sdk-s3 (1.218.0) + aws-sdk-core (~> 3, >= 3.244.0) + aws-sdk-kms (~> 1) + aws-sigv4 (~> 1.5) + aws-sdk-secretsmanager (1.129.0) + aws-sdk-core (~> 3, >= 3.244.0) + aws-sigv4 (~> 1.5) + aws-sigv4 (1.12.1) + aws-eventstream (~> 1, >= 1.0.2) + base64 (0.3.0) + bcrypt_pbkdf (1.1.2) + bcrypt_pbkdf (1.1.2-arm64-darwin) + bcrypt_pbkdf (1.1.2-x86_64-darwin) + benchmark (0.5.0) + bigdecimal (4.1.1) + binding_of_caller (2.0.0) + debug_inspector (>= 1.2.0) + builder (3.3.0) + byebug (13.0.0) + reline (>= 0.6.0) + chef (19.2.12) + addressable + aws-sdk-s3 (~> 1.91) + aws-sdk-secretsmanager (~> 1.46) + bcrypt_pbkdf (~> 1.0) + chef-config (= 19.2.12) + chef-licensing (~> 1.3) + chef-utils (= 19.2.12) + chef-vault + chef-zero (~> 15.1.0) + corefoundation (~> 0.3.4) + csv (~> 3.3.5) + diff-lcs (~> 1.6.0) + ed25519 (~> 1.2) + erubis (~> 2.7) + ffi (>= 1.15.5, < 1.18.0) + ffi-libarchive (~> 1.0, >= 1.0.3) + ffi-yajl (~> 2.2) + iniparse (~> 1.4) + inspec-core (~> 7.0.107) + license-acceptance (>= 1.0.5, < 3) + mixlib-archive (>= 0.4, < 2.0) + mixlib-authentication (>= 2.1, < 4) + mixlib-cli (>= 2.1.1, < 3.0) + mixlib-log (>= 2.0.3, < 4.0) + mixlib-shellout (~> 3.3.8) + net-ftp + net-sftp (>= 2.1.2, < 5.0) + ohai (~> 19.0) + plist (~> 3.2) + proxifier2 (~> 1.1) + syslog + syslog-logger (~> 1.6) + train-core (~> 3.13, >= 3.13.4) + train-rest (>= 0.4.1) + train-winrm (>= 0.2.17) + unf_ext (~> 0.0.9.1) + uri (~> 1.0.4) + vault (~> 0.18.2) + chef-config (19.2.12) + addressable + chef-utils (= 19.2.12) + fuzzyurl + mixlib-config (>= 2.2.12, < 4.0) + mixlib-shellout (>= 2.0, < 4.0) + racc + tomlrb (~> 1.2) + chef-gyoku (1.5.0) + builder (>= 2.1.2) + rexml (~> 3.4) + chef-licensing (1.4.1) + chef-config (>= 15) + faraday (>= 1, < 3) + faraday-http-cache + mixlib-log (~> 3.0) + ostruct (~> 0.6.0) + pstore (~> 0.1.1) + tty-prompt (~> 0.23) + tty-spinner (~> 0.9.3) + chef-telemetry (1.1.1) + chef-config + concurrent-ruby (~> 1.0) + chef-utils (19.2.12) + concurrent-ruby + chef-vault (4.2.9) + syslog (~> 0.3) + chef-winrm (2.5.0) + builder (>= 2.1.2) + chef-gyoku (~> 1.5) + erubi (~> 1.8) + gssapi (~> 1.2) + httpclient (~> 2.2, >= 2.2.0.2) + logging (>= 1.6.1, < 3.0) + nori (~> 2.7) + rexml (>= 3.4.2, < 4.0) + rubyntlm (~> 0.6.0, >= 0.6.3) + chef-winrm-elevated (1.2.5) + chef-winrm (>= 2.3.11) + chef-winrm-fs (>= 1.3.7) + erubi (~> 1.8) + chef-winrm-fs (1.4.2) + benchmark (~> 0.5.0) + chef-winrm (~> 2.4) + csv (~> 3.3) + erubi (>= 1.7) + logging (>= 1.6.1, < 3.0) + rubyzip (~> 2.0) + chef-zero (15.1.0) + ffi-yajl (>= 2.2, < 4.0) + hashie (>= 2.0, < 6.0) + mixlib-log (>= 2.0, < 4.0) + rack (~> 3.1, >= 3.1.16) + rackup (~> 2.2, >= 2.2.1) + unf_ext (~> 0.0.8) + uuidtools (~> 2.1) + webrick + cheffish (17.1.8) + chef-utils (>= 17.0) + chef-zero (>= 14.0) + logger (< 1.6.0) + net-ssh + coderay (1.1.3) + concurrent-ruby (1.3.6) + cookstyle (8.6.10) + rubocop (= 1.84.2) + corefoundation (0.3.13) + ffi (>= 1.15.0) + crack (0.4.5) + rexml + csv (3.3.5) + date (3.5.1) + debug_inspector (1.2.0) + diff-lcs (1.6.2) + domain_name (0.6.20240107) + ed25519 (1.4.0) + erubi (1.13.1) + erubis (2.7.0) + faraday (2.14.1) + faraday-net_http (>= 2.0, < 3.5) + json + logger + faraday-follow_redirects (0.5.0) + faraday (>= 1, < 3) + faraday-http-cache (2.6.1) + faraday (>= 0.8) + faraday-net_http (3.4.2) + net-http (~> 0.5) + ffi (1.17.4) + ffi (1.17.4-aarch64-linux-gnu) + ffi (1.17.4-aarch64-linux-musl) + ffi (1.17.4-arm-linux-gnu) + ffi (1.17.4-arm-linux-musl) + ffi (1.17.4-arm64-darwin) + ffi (1.17.4-x86-linux-gnu) + ffi (1.17.4-x86-linux-musl) + ffi (1.17.4-x86_64-darwin) + ffi (1.17.4-x86_64-linux-gnu) + ffi (1.17.4-x86_64-linux-musl) + ffi-libarchive (1.1.14) + ffi (~> 1.0) + ffi-yajl (2.7.7) + libyajl2 (>= 2.1) + yajl + fuzzyurl (0.9.0) + gssapi (1.3.1) + ffi (>= 1.0.1) + hashdiff (1.2.1) + hashie (5.1.0) + logger + highline (2.1.0) + http-accept (1.7.0) + http-cookie (1.1.3) + domain_name (~> 0.5) + httpclient (2.9.0) + mutex_m + iniparse (1.5.0) + inspec-core (7.0.107) + addressable (~> 2.4) + chef-licensing (>= 1.2.0) + chef-telemetry (~> 1.0, >= 1.0.8) + cookstyle + csv (~> 3.0) + faraday (>= 1, < 3) + faraday-follow_redirects (~> 0.3) + hashie (>= 3.4, < 6.0) + license-acceptance (>= 0.2.13, < 3.0) + method_source (>= 0.8, < 2.0) + mixlib-log (~> 3.0) + multipart-post (~> 2.0) + ostruct (>= 0.1, < 0.7) + parallel (~> 1.9) + parslet (>= 1.5, < 3.0) + pry (~> 0.13) + rspec (>= 3.9, <= 3.14) + rspec-its (>= 1.2, < 3.0) + rubyzip (>= 1.2.2, < 4.0) + semverse (~> 3.0) + sslshake (~> 1.2) + syslog (~> 0.1) + thor (>= 0.20, < 1.5.0) + tomlrb (>= 1.3, < 2.1) + train-core (~> 3.16, >= 3.16.1) + tty-prompt (~> 0.17) + tty-table (~> 0.10) + io-console (0.8.2) + ipaddress (0.8.3) + jmespath (1.6.2) + json (2.19.3) + language_server-protocol (3.17.0.5) + libyajl2 (2.1.0) + license-acceptance (2.1.13) + pastel (~> 0.7) + tomlrb (>= 1.2, < 3.0) + tty-box (~> 0.6) + tty-prompt (~> 0.20) + lint_roller (1.1.0) + little-plugger (1.1.4) + logger (1.5.3) + logging (2.4.0) + little-plugger (~> 1.1) + multi_json (~> 1.14) + method_source (1.1.0) + mime-types (3.7.0) + logger + mime-types-data (~> 3.2025, >= 3.2025.0507) + mime-types-data (3.2026.0331) + mixlib-archive (1.3.3) + mixlib-log + mixlib-authentication (3.0.10) + mixlib-cli (2.1.8) + mixlib-config (3.0.27) + tomlrb + mixlib-log (3.2.3) + ffi (>= 1.15.5) + mixlib-shellout (3.3.9) + chef-utils + multi_json (1.19.1) + multipart-post (2.4.1) + mutex_m (0.3.0) + net-ftp (0.3.9) + net-protocol + time + net-http (0.9.1) + uri (>= 0.11.1) + net-protocol (0.2.2) + timeout + net-scp (4.1.0) + net-ssh (>= 2.6.5, < 8.0.0) + net-sftp (4.0.0) + net-ssh (>= 5.0.0, < 8.0.0) + net-ssh (7.3.2) + net-ssh-gateway (2.0.0) + net-ssh (>= 4.0.0) + net-ssh-multi (1.2.1) + net-ssh (>= 2.6.5) + net-ssh-gateway (>= 1.2.0) + netrc (0.11.0) + nori (2.7.1) + bigdecimal + ohai (19.1.24) + base64 + chef-config (>= 14.12, < 20) + chef-utils (>= 16.0, < 20) + ffi (>= 1.15.5) + ffi-yajl (~> 2.2) + ipaddress + mixlib-cli (>= 1.7.0) + mixlib-config (>= 2.0, < 4.0) + mixlib-log (>= 2.0.1, < 4.0) + mixlib-shellout (~> 3.3.6) + plist (~> 3.1) + train-core + wmi-lite (~> 1.0) + ostruct (0.6.3) + parallel (1.28.0) + parser (3.3.11.1) + ast (~> 2.4.1) + racc + parslet (2.0.0) + pastel (0.8.0) + tty-color (~> 0.5) + plist (3.7.2) + prism (1.9.0) + proxifier2 (1.1.0) + pry (0.16.0) + coderay (~> 1.1) + method_source (~> 1.0) + reline (>= 0.6.0) + pry-byebug (3.12.0) + byebug (~> 13.0) + pry (>= 0.13, < 0.17) + pry-stack_explorer (0.6.2) + binding_of_caller (>= 1.0) + pry (~> 0.13) + pstore (0.1.4) + public_suffix (7.0.5) + racc (1.8.1) + rack (3.2.6) + rackup (2.3.1) + rack (>= 3) + rainbow (3.1.1) + rake (13.3.1) + regexp_parser (2.12.0) + reline (0.6.3) + io-console (~> 0.5) + rest-client (2.1.0) + http-accept (>= 1.7.0, < 2.0) + http-cookie (>= 1.0.2, < 2.0) + mime-types (>= 1.16, < 4.0) + netrc (~> 0.8) + rexml (3.4.4) + rspec (3.13.2) + rspec-core (~> 3.13.0) + rspec-expectations (~> 3.13.0) + rspec-mocks (~> 3.13.0) + rspec-core (3.13.6) + rspec-support (~> 3.13.0) + rspec-expectations (3.13.5) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.13.0) + rspec-its (2.0.0) + rspec-core (>= 3.13.0) + rspec-expectations (>= 3.13.0) + rspec-mocks (3.13.8) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.13.0) + rspec-support (3.13.7) + rubocop (1.84.2) + json (~> 2.3) + language_server-protocol (~> 3.17.0.2) + lint_roller (~> 1.1.0) + parallel (~> 1.10) + parser (>= 3.3.0.2) + rainbow (>= 2.2.2, < 4.0) + regexp_parser (>= 2.9.3, < 3.0) + rubocop-ast (>= 1.49.0, < 2.0) + ruby-progressbar (~> 1.7) + unicode-display_width (>= 2.4.0, < 4.0) + rubocop-ast (1.49.1) + parser (>= 3.3.7.2) + prism (~> 1.7) + ruby-progressbar (1.13.0) + rubyntlm (0.6.5) + base64 + rubyzip (2.4.1) + semverse (3.0.2) + socksify (1.8.1) + sslshake (1.3.1) + strings (0.2.1) + strings-ansi (~> 0.2) + unicode-display_width (>= 1.5, < 3.0) + unicode_utils (~> 1.4) + strings-ansi (0.2.0) + syslog (0.4.0) + logger + syslog-logger (1.6.8) + thor (1.4.0) + time (0.4.2) + date + timeout (0.6.1) + tomlrb (1.3.0) + train-core (3.16.1) + addressable (~> 2.5) + ffi (>= 1.16.0, < 1.18) + json (>= 1.8, < 3.0) + mixlib-shellout (>= 2.0, < 4.0) + net-scp (>= 1.2, < 5.0) + net-ssh (>= 2.9, < 8.0) + train-rest (0.5.0) + aws-sigv4 (~> 1.5) + rest-client (~> 2.1) + train-core (~> 3.0) + train-winrm (0.4.3) + chef-winrm (>= 2.4.4, < 3.0) + chef-winrm-elevated (>= 1.2.5, < 2.0) + chef-winrm-fs (>= 1.4.1, < 2.0) + socksify (~> 1.8) + tty-box (0.7.0) + pastel (~> 0.8) + strings (~> 0.2.0) + tty-cursor (~> 0.7) + tty-color (0.6.0) + tty-cursor (0.7.1) + tty-prompt (0.23.1) + pastel (~> 0.8) + tty-reader (~> 0.8) + tty-reader (0.9.0) + tty-cursor (~> 0.7) + tty-screen (~> 0.8) + wisper (~> 2.0) + tty-screen (0.8.2) + tty-spinner (0.9.3) + tty-cursor (~> 0.7) + tty-table (0.12.0) + pastel (~> 0.8) + strings (~> 0.2.0) + tty-screen (~> 0.8) + unf_ext (0.0.9.1) + unicode-display_width (2.6.0) + unicode_utils (1.4.0) + uri (1.0.4) + uuidtools (2.2.0) + vault (0.18.2) + aws-sigv4 + webmock (3.26.2) + addressable (>= 2.8.0) + crack (>= 0.3.2) + hashdiff (>= 0.4.0, < 2.0.0) + webrick (1.9.2) + wisper (2.0.1) + wmi-lite (1.0.7) + yajl (0.3.4) + +PLATFORMS + aarch64-linux-gnu + aarch64-linux-musl + arm-linux-gnu + arm-linux-musl + arm64-darwin + ruby + x86-linux-gnu + x86-linux-musl + x86_64-darwin + x86_64-linux-gnu + x86_64-linux-musl + +DEPENDENCIES + abbrev + benchmark + chef (>= 19.1) + chef-config (>= 19.1) + chef-utils (>= 19.1) + cheffish (>= 14) + crack (< 0.4.6) + csv + knife! + libyajl2 (>= 2.1) + mixlib-authentication (= 3.0.10) + ohai (>= 19.1) + ostruct + pry + pry-byebug + pry-stack_explorer + rake (>= 12.3.3) + reline + rspec + syslog + webmock + +BUNDLED WITH + 2.6.6 diff --git a/README.md b/README.md index fb7afe0..88cf636 100644 --- a/README.md +++ b/README.md @@ -36,4 +36,4 @@ See the [Developer's Guide](docs/dev/README.md) for development setup and guidel ## License -Apache License, Version 2.0 \ No newline at end of file +Apache License, Version 2.0 diff --git a/cspell.json b/cspell.json new file mode 100644 index 0000000..e1681b6 --- /dev/null +++ b/cspell.json @@ -0,0 +1,1674 @@ +// 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", + "airgapped", + "aixinit", + "akzhan", + "Alam", + "Albenzi", + "Alloc", + "alloc", + "Allowlist", + "allowlist", + "allowlisted", + "allowlisting", + "allowlists", + "allowselfservice", + "alnum", + "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", + "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", + "RELOC", + "remoteaccess", + "remoteip", + "remoteport", + "remotesigned", + "removelock", + "REMOVEME", + "removerepo", + "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", + "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": [ + "CHANGELOG.md", + "**/*.gemspec", + "**/Gemfile.lock", + "**/Gemfile", + ".expeditor/**/*", + "**/*.yml", + "**/*.toml", + "**/Berksfile", + "dangerfile.js", + "spec/**", + "docs_site", + "cspell.json", + ".mailmap", + "NOTICE", + "sonar-project.properties" + ], + "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/habitat/plan.ps1 b/habitat/plan.ps1 index af5f65d..6cb240d 100644 --- a/habitat/plan.ps1 +++ b/habitat/plan.ps1 @@ -141,4 +141,4 @@ function Install-ChefOfficialDistribution { # Ignore errors during cleanup } } -} \ No newline at end of file +} diff --git a/habitat/tests/test.sh b/habitat/tests/test.sh index b402a28..809f80b 100755 --- a/habitat/tests/test.sh +++ b/habitat/tests/test.sh @@ -26,4 +26,4 @@ echo $actual_version if [[ "$actual_version" != *"$package_version"* ]]; then error "knife version is not the expected version. Expected '$package_version', got '$actual_version'" -fi \ No newline at end of file +fi diff --git a/sonar-project.properties b/sonar-project.properties index a617700..ed61480 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -41,4 +41,4 @@ sonar.tests=spec # 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=- diff --git a/spec/data/bad-config.rb b/spec/data/bad-config.rb index 5477a69..0ae6cb8 100644 --- a/spec/data/bad-config.rb +++ b/spec/data/bad-config.rb @@ -1 +1 @@ -monkey_soup("tastes nice") \ No newline at end of file +monkey_soup("tastes nice") diff --git a/spec/data/cb_version_cookbooks/tatft/README.rdoc b/spec/data/cb_version_cookbooks/tatft/README.rdoc index 460d96b..103517b 100644 --- a/spec/data/cb_version_cookbooks/tatft/README.rdoc +++ b/spec/data/cb_version_cookbooks/tatft/README.rdoc @@ -1,3 +1,3 @@ = THIS RECIPE * is for testing CookbookLoader/CookbookVersion -* has at least one of every kind of file that cookbooks can have \ No newline at end of file +* has at least one of every kind of file that cookbooks can have diff --git a/spec/data/cb_version_cookbooks/tatft/definitions/runit_service.rb b/spec/data/cb_version_cookbooks/tatft/definitions/runit_service.rb index 3912b37..8b9f134 100644 --- a/spec/data/cb_version_cookbooks/tatft/definitions/runit_service.rb +++ b/spec/data/cb_version_cookbooks/tatft/definitions/runit_service.rb @@ -1 +1 @@ -# IRL the runit_service is a definition to set up runit services \ No newline at end of file +# IRL the runit_service is a definition to set up runit services diff --git a/spec/data/cb_version_cookbooks/tatft/libraries/ownage.rb b/spec/data/cb_version_cookbooks/tatft/libraries/ownage.rb index fea05ba..490c0ee 100644 --- a/spec/data/cb_version_cookbooks/tatft/libraries/ownage.rb +++ b/spec/data/cb_version_cookbooks/tatft/libraries/ownage.rb @@ -1 +1 @@ -# 0wnage \ No newline at end of file +# 0wnage diff --git a/spec/data/cb_version_cookbooks/tatft/providers/lwp.rb b/spec/data/cb_version_cookbooks/tatft/providers/lwp.rb index 977ad19..2aa056f 100644 --- a/spec/data/cb_version_cookbooks/tatft/providers/lwp.rb +++ b/spec/data/cb_version_cookbooks/tatft/providers/lwp.rb @@ -1 +1 @@ -# a LWP \ No newline at end of file +# a LWP diff --git a/spec/data/cb_version_cookbooks/tatft/recipes/default.rb b/spec/data/cb_version_cookbooks/tatft/recipes/default.rb index 48eacf8..3db8a65 100644 --- a/spec/data/cb_version_cookbooks/tatft/recipes/default.rb +++ b/spec/data/cb_version_cookbooks/tatft/recipes/default.rb @@ -1 +1 @@ -# the default recipe \ No newline at end of file +# the default recipe diff --git a/spec/data/cb_version_cookbooks/tatft/resources/lwr.rb b/spec/data/cb_version_cookbooks/tatft/resources/lwr.rb index 987114f..cda9440 100644 --- a/spec/data/cb_version_cookbooks/tatft/resources/lwr.rb +++ b/spec/data/cb_version_cookbooks/tatft/resources/lwr.rb @@ -1 +1 @@ -# a LWR # \ No newline at end of file +# a LWR # diff --git a/spec/data/checksum/random.txt b/spec/data/checksum/random.txt index 9570fff..45f087a 100644 --- a/spec/data/checksum/random.txt +++ b/spec/data/checksum/random.txt @@ -1 +1 @@ -e4010abcac515ef3b78e92ee1f848a0d3bc3a526fcb826e7b4d39a6d516aa0487085c9b1be35e8d909617b250dca36dd4a55f01b7cdd310826bfd748cb27e0e43dd52b22968383c8086b06ee2d16e13574f98c058ce2bc3475b92ecf9c16e504022d60b132643986a8e7908d067526e20b4bafe1eb75349f27a4d3de02b077e76a2f59b73c14413f11e7208ae0bf6a408d51a97d490530e23476960ab8780ad86349947d82f1c9e57c85f86d71f80a6709b58be5f993a6a6df80c5a0857627d4a01e71484f6a6e983985089c00fe538e947230813c3a3e19baf6dae6db7082d07392a239ec1be385646356db3e3d76571488a6c72f0b96997f6191beea9846fc99f82a828f05af95cfc234cf681002f830915b1f3d35b2178b54a861c05d2694c5f6cfeb613a4a3670d849180461cdedf2c3cbb022608d8b19c86179d2d6da6b9acefccfc34b59663ef1282fec262bef79b2fbdd9b6669c90d6817b3762164dc309616469b33b83b1ded3420ae9177bc8f456d83939ff3c91b0a3683f3157401ceadf679c9f876da2aa413e081ee4c41d4b04f49e0c254d0082fd9bf2cb8eb8b966285be2cdcaab0ab70ea970737244b6683283598c30bdc206a05df72048b342eb40c2cd750c815d5fa944167b103ec40d60a99c49941a9e76d874149524f35ca294d081cf221757df77e027640556d983978be6b4b51aff26cd74a2f300d71 \ No newline at end of file +e4010abcac515ef3b78e92ee1f848a0d3bc3a526fcb826e7b4d39a6d516aa0487085c9b1be35e8d909617b250dca36dd4a55f01b7cdd310826bfd748cb27e0e43dd52b22968383c8086b06ee2d16e13574f98c058ce2bc3475b92ecf9c16e504022d60b132643986a8e7908d067526e20b4bafe1eb75349f27a4d3de02b077e76a2f59b73c14413f11e7208ae0bf6a408d51a97d490530e23476960ab8780ad86349947d82f1c9e57c85f86d71f80a6709b58be5f993a6a6df80c5a0857627d4a01e71484f6a6e983985089c00fe538e947230813c3a3e19baf6dae6db7082d07392a239ec1be385646356db3e3d76571488a6c72f0b96997f6191beea9846fc99f82a828f05af95cfc234cf681002f830915b1f3d35b2178b54a861c05d2694c5f6cfeb613a4a3670d849180461cdedf2c3cbb022608d8b19c86179d2d6da6b9acefccfc34b59663ef1282fec262bef79b2fbdd9b6669c90d6817b3762164dc309616469b33b83b1ded3420ae9177bc8f456d83939ff3c91b0a3683f3157401ceadf679c9f876da2aa413e081ee4c41d4b04f49e0c254d0082fd9bf2cb8eb8b966285be2cdcaab0ab70ea970737244b6683283598c30bdc206a05df72048b342eb40c2cd750c815d5fa944167b103ec40d60a99c49941a9e76d874149524f35ca294d081cf221757df77e027640556d983978be6b4b51aff26cd74a2f300d71 diff --git a/spec/data/config.rb b/spec/data/config.rb index 0b3340c..6068de1 100644 --- a/spec/data/config.rb +++ b/spec/data/config.rb @@ -3,4 +3,3 @@ # cookbook_path "/etc/chef/cookbook", "/etc/chef/site-cookbook" - diff --git a/spec/data/cookbooks/apache2/recipes/default.rb b/spec/data/cookbooks/apache2/recipes/default.rb index c2fa53b..3a0013d 100644 --- a/spec/data/cookbooks/apache2/recipes/default.rb +++ b/spec/data/cookbooks/apache2/recipes/default.rb @@ -1,3 +1,3 @@ # # Nothing ot see here -# \ No newline at end of file +# diff --git a/spec/data/cookbooks/borken/recipes/default.rb b/spec/data/cookbooks/borken/recipes/default.rb index caf40b3..8063e32 100644 --- a/spec/data/cookbooks/borken/recipes/default.rb +++ b/spec/data/cookbooks/borken/recipes/default.rb @@ -1,2 +1,2 @@ a cat walked on the keyboard one day... -(*&(*&(*&(*&(*^%$%^%#^^&(*)(*{}}}}}}}}+++++===)))))) \ No newline at end of file +(*&(*&(*&(*&(*^%$%^%#^^&(*)(*{}}}}}}}}+++++===)))))) diff --git a/spec/data/cookbooks/borken/templates/default/borken.erb b/spec/data/cookbooks/borken/templates/default/borken.erb index cbb32c1..3532126 100644 --- a/spec/data/cookbooks/borken/templates/default/borken.erb +++ b/spec/data/cookbooks/borken/templates/default/borken.erb @@ -1,2 +1,2 @@ a cat walked on the keyboard one day... -<%= (*&)(*^^^^*******++_+_--- }}}}]]]end)%> \ No newline at end of file +<%= (*&)(*^^^^*******++_+_--- }}}}]]]end)%> diff --git a/spec/data/cookbooks/ignorken/recipes/default.rb b/spec/data/cookbooks/ignorken/recipes/default.rb index 0f3b3a5..921f800 100644 --- a/spec/data/cookbooks/ignorken/recipes/default.rb +++ b/spec/data/cookbooks/ignorken/recipes/default.rb @@ -1 +1 @@ -# This is fine! \ No newline at end of file +# This is fine! diff --git a/spec/data/cookbooks/ignorken/recipes/ignoreme.rb b/spec/data/cookbooks/ignorken/recipes/ignoreme.rb index caf40b3..8063e32 100644 --- a/spec/data/cookbooks/ignorken/recipes/ignoreme.rb +++ b/spec/data/cookbooks/ignorken/recipes/ignoreme.rb @@ -1,2 +1,2 @@ a cat walked on the keyboard one day... -(*&(*&(*&(*&(*^%$%^%#^^&(*)(*{}}}}}}}}+++++===)))))) \ No newline at end of file +(*&(*&(*&(*&(*^%$%^%#^^&(*)(*{}}}}}}}}+++++===)))))) diff --git a/spec/data/cookbooks/java/files/default/java.response b/spec/data/cookbooks/java/files/default/java.response index eb4aa3c..ca275ec 100644 --- a/spec/data/cookbooks/java/files/default/java.response +++ b/spec/data/cookbooks/java/files/default/java.response @@ -1,2 +1,2 @@ # Hi, I'm pretending to be the preseed file for installing the Sun JDK on debian -# or Ubuntu \ No newline at end of file +# or Ubuntu diff --git a/spec/data/cookbooks/name-mismatch-versionnumber/README.md b/spec/data/cookbooks/name-mismatch-versionnumber/README.md index a61dc9a..6e550bc 100644 --- a/spec/data/cookbooks/name-mismatch-versionnumber/README.md +++ b/spec/data/cookbooks/name-mismatch-versionnumber/README.md @@ -1,4 +1,3 @@ # name-mismatch TODO: Enter the cookbook description here. - diff --git a/spec/data/cookbooks/name-mismatch-versionnumber/metadata.rb b/spec/data/cookbooks/name-mismatch-versionnumber/metadata.rb index 81775bd..9e01b5d 100644 --- a/spec/data/cookbooks/name-mismatch-versionnumber/metadata.rb +++ b/spec/data/cookbooks/name-mismatch-versionnumber/metadata.rb @@ -5,4 +5,3 @@ description 'Installs/Configures name-mismatch' long_description 'Installs/Configures name-mismatch' version '0.1.0' - diff --git a/spec/data/cookbooks/openldap/files/default/.ssh/id_rsa b/spec/data/cookbooks/openldap/files/default/.ssh/id_rsa index 20a3ea4..ed61f6b 100644 --- a/spec/data/cookbooks/openldap/files/default/.ssh/id_rsa +++ b/spec/data/cookbooks/openldap/files/default/.ssh/id_rsa @@ -1 +1 @@ -FAKE KEY \ No newline at end of file +FAKE KEY diff --git a/spec/data/cookbooks/openldap/files/default/remotedir/remote_dir_file1.txt b/spec/data/cookbooks/openldap/files/default/remotedir/remote_dir_file1.txt index 7632730..8a90b78 100644 --- a/spec/data/cookbooks/openldap/files/default/remotedir/remote_dir_file1.txt +++ b/spec/data/cookbooks/openldap/files/default/remotedir/remote_dir_file1.txt @@ -1,3 +1,3 @@ # remote directory # file specificity: default -# relpath: remotedir/remote_dir_file1.txt \ No newline at end of file +# relpath: remotedir/remote_dir_file1.txt diff --git a/spec/data/cookbooks/openldap/files/default/remotedir/remote_dir_file2.txt b/spec/data/cookbooks/openldap/files/default/remotedir/remote_dir_file2.txt index fab0433..0e3509a 100644 --- a/spec/data/cookbooks/openldap/files/default/remotedir/remote_dir_file2.txt +++ b/spec/data/cookbooks/openldap/files/default/remotedir/remote_dir_file2.txt @@ -1,3 +1,3 @@ # remote directory # file specificity: default -# relpath: remotedir/remote_dir_file2.txt \ No newline at end of file +# relpath: remotedir/remote_dir_file2.txt diff --git a/spec/data/cookbooks/openldap/files/default/remotedir/remotesubdir/remote_subdir_file1.txt b/spec/data/cookbooks/openldap/files/default/remotedir/remotesubdir/remote_subdir_file1.txt index 611294c..b970be4 100644 --- a/spec/data/cookbooks/openldap/files/default/remotedir/remotesubdir/remote_subdir_file1.txt +++ b/spec/data/cookbooks/openldap/files/default/remotedir/remotesubdir/remote_subdir_file1.txt @@ -1,3 +1,3 @@ # remote directory # file specificity: default -# relpath: remotedir/remotesubdir/remote_dir_file1.txt \ No newline at end of file +# relpath: remotedir/remotesubdir/remote_dir_file1.txt diff --git a/spec/data/cookbooks/openldap/files/default/remotedir/remotesubdir/remote_subdir_file2.txt b/spec/data/cookbooks/openldap/files/default/remotedir/remotesubdir/remote_subdir_file2.txt index e039654..a82def8 100644 --- a/spec/data/cookbooks/openldap/files/default/remotedir/remotesubdir/remote_subdir_file2.txt +++ b/spec/data/cookbooks/openldap/files/default/remotedir/remotesubdir/remote_subdir_file2.txt @@ -1,3 +1,3 @@ # remote directory # file specificity: default -# relpath: remotedir/remotesubdir/remote_dir_file2.txt \ No newline at end of file +# relpath: remotedir/remotesubdir/remote_dir_file2.txt diff --git a/spec/data/cookbooks/openldap/templates/default/openldap_stuff.conf.erb b/spec/data/cookbooks/openldap/templates/default/openldap_stuff.conf.erb index af82f1d..ca40f84 100644 --- a/spec/data/cookbooks/openldap/templates/default/openldap_stuff.conf.erb +++ b/spec/data/cookbooks/openldap/templates/default/openldap_stuff.conf.erb @@ -1 +1 @@ -slappiness is <%= node[:slappiness] -%> \ No newline at end of file +slappiness is <%= node[:slappiness] -%> diff --git a/spec/data/cookbooks/starter/files/sample.txt b/spec/data/cookbooks/starter/files/sample.txt index e635a0f..48a7e6e 100644 --- a/spec/data/cookbooks/starter/files/sample.txt +++ b/spec/data/cookbooks/starter/files/sample.txt @@ -1 +1 @@ -This is a Chef cookbook file. It is used to copy content verbatim on to a server. \ No newline at end of file +This is a Chef cookbook file. It is used to copy content verbatim on to a server. diff --git a/spec/data/definitions/test.rb b/spec/data/definitions/test.rb index b0d0eff..aaec15b 100644 --- a/spec/data/definitions/test.rb +++ b/spec/data/definitions/test.rb @@ -2,4 +2,4 @@ zen_master "test" do something "#{params[:rich]}" end -end \ No newline at end of file +end diff --git a/spec/data/environment-config.rb b/spec/data/environment-config.rb index a157ecf..984017b 100644 --- a/spec/data/environment-config.rb +++ b/spec/data/environment-config.rb @@ -2,4 +2,4 @@ # Sample Chef Config File # -environment "production" \ No newline at end of file +environment "production" diff --git a/spec/data/incomplete-metadata-chef-repo/incomplete-metadata/README.md b/spec/data/incomplete-metadata-chef-repo/incomplete-metadata/README.md index 3ac2a4f..b197824 100644 --- a/spec/data/incomplete-metadata-chef-repo/incomplete-metadata/README.md +++ b/spec/data/incomplete-metadata-chef-repo/incomplete-metadata/README.md @@ -1,4 +1,3 @@ # incomplete-metadata TODO: Enter the cookbook description here. - diff --git a/spec/data/incomplete-metadata-chef-repo/incomplete-metadata/metadata.rb b/spec/data/incomplete-metadata-chef-repo/incomplete-metadata/metadata.rb index 50284be..4b2d04f 100644 --- a/spec/data/incomplete-metadata-chef-repo/incomplete-metadata/metadata.rb +++ b/spec/data/incomplete-metadata-chef-repo/incomplete-metadata/metadata.rb @@ -10,4 +10,3 @@ description 'Installs/Configures incomplete-metadata' long_description 'Installs/Configures incomplete-metadata' version '0.1.0' - diff --git a/spec/data/invalid-metadata-chef-repo/invalid-metadata/README.md b/spec/data/invalid-metadata-chef-repo/invalid-metadata/README.md index a41867f..5e015ac 100644 --- a/spec/data/invalid-metadata-chef-repo/invalid-metadata/README.md +++ b/spec/data/invalid-metadata-chef-repo/invalid-metadata/README.md @@ -1,4 +1,3 @@ # invalid-metadata TODO: Enter the cookbook description here. - diff --git a/spec/data/kitchen/openldap/attributes/robinson.rb b/spec/data/kitchen/openldap/attributes/robinson.rb index 9d6b44d..8c7d52c 100644 --- a/spec/data/kitchen/openldap/attributes/robinson.rb +++ b/spec/data/kitchen/openldap/attributes/robinson.rb @@ -1,3 +1,3 @@ # # Smokey lives here -# \ No newline at end of file +# diff --git a/spec/data/kitchen/openldap/definitions/drewbarrymore.rb b/spec/data/kitchen/openldap/definitions/drewbarrymore.rb index 510f0c3..e8c0b97 100644 --- a/spec/data/kitchen/openldap/definitions/drewbarrymore.rb +++ b/spec/data/kitchen/openldap/definitions/drewbarrymore.rb @@ -1,3 +1,3 @@ # # Was in people magazine this month... -# \ No newline at end of file +# diff --git a/spec/data/kitchen/openldap/recipes/gigantor.rb b/spec/data/kitchen/openldap/recipes/gigantor.rb index 70a4196..0ac8a9b 100644 --- a/spec/data/kitchen/openldap/recipes/gigantor.rb +++ b/spec/data/kitchen/openldap/recipes/gigantor.rb @@ -1,3 +1,3 @@ cat "blanket" do pretty_kitty true -end \ No newline at end of file +end diff --git a/spec/data/kitchen/openldap/recipes/ignoreme.rb b/spec/data/kitchen/openldap/recipes/ignoreme.rb index 1509598..d80a313 100644 --- a/spec/data/kitchen/openldap/recipes/ignoreme.rb +++ b/spec/data/kitchen/openldap/recipes/ignoreme.rb @@ -1,3 +1,3 @@ # # this file will never be seen -# \ No newline at end of file +# diff --git a/spec/data/knife_subcommand/test_explicit_category.rb b/spec/data/knife_subcommand/test_explicit_category.rb index 96d5069..2b68c16 100644 --- a/spec/data/knife_subcommand/test_explicit_category.rb +++ b/spec/data/knife_subcommand/test_explicit_category.rb @@ -4,4 +4,4 @@ class TestExplicitCategory < Chef::Knife # category instead of cookbook (which is what would be assumed) category "cookbook site" end -end \ No newline at end of file +end diff --git a/spec/data/remote_directory_data/remote_dir_file.txt b/spec/data/remote_directory_data/remote_dir_file.txt index 17aa3a6..96efb55 100644 --- a/spec/data/remote_directory_data/remote_dir_file.txt +++ b/spec/data/remote_directory_data/remote_dir_file.txt @@ -1 +1 @@ -I'm a file inside a the root remote_directory source dir. \ No newline at end of file +I'm a file inside a the root remote_directory source dir. diff --git a/spec/data/remote_directory_data/remote_subdirectory/remote_subdir_file.txt b/spec/data/remote_directory_data/remote_subdirectory/remote_subdir_file.txt index a73728a..2531df2 100644 --- a/spec/data/remote_directory_data/remote_subdirectory/remote_subdir_file.txt +++ b/spec/data/remote_directory_data/remote_subdirectory/remote_subdir_file.txt @@ -1 +1 @@ -I'm a file in a subdirectory inside a remote_directory source \ No newline at end of file +I'm a file in a subdirectory inside a remote_directory source diff --git a/spec/data/rubygems.org/nonexistent_gem-info b/spec/data/rubygems.org/nonexistent_gem-info index 7e88a0e..e8cfe1b 100644 --- a/spec/data/rubygems.org/nonexistent_gem-info +++ b/spec/data/rubygems.org/nonexistent_gem-info @@ -1 +1 @@ -This gem could not be found \ No newline at end of file +This gem could not be found diff --git a/spec/data/run_context/cookbooks/circular-dep1/libraries/lib.rb b/spec/data/run_context/cookbooks/circular-dep1/libraries/lib.rb index b20b648..cdf7771 100644 --- a/spec/data/run_context/cookbooks/circular-dep1/libraries/lib.rb +++ b/spec/data/run_context/cookbooks/circular-dep1/libraries/lib.rb @@ -1,2 +1 @@ LibraryLoadOrder.record("circular-dep1") - diff --git a/spec/data/run_context/cookbooks/circular-dep2/libraries/lib.rb b/spec/data/run_context/cookbooks/circular-dep2/libraries/lib.rb index ce0acc1..948fc70 100644 --- a/spec/data/run_context/cookbooks/circular-dep2/libraries/lib.rb +++ b/spec/data/run_context/cookbooks/circular-dep2/libraries/lib.rb @@ -1,2 +1 @@ LibraryLoadOrder.record("circular-dep2") - diff --git a/spec/data/run_context/cookbooks/dependency1/libraries/lib.rb b/spec/data/run_context/cookbooks/dependency1/libraries/lib.rb index 10dbb37..3b4e8de 100644 --- a/spec/data/run_context/cookbooks/dependency1/libraries/lib.rb +++ b/spec/data/run_context/cookbooks/dependency1/libraries/lib.rb @@ -1,2 +1 @@ LibraryLoadOrder.record("dependency1") - diff --git a/spec/data/run_context/cookbooks/dependency2/libraries/lib.rb b/spec/data/run_context/cookbooks/dependency2/libraries/lib.rb index 27b3be1..7166a4e 100644 --- a/spec/data/run_context/cookbooks/dependency2/libraries/lib.rb +++ b/spec/data/run_context/cookbooks/dependency2/libraries/lib.rb @@ -1,2 +1 @@ LibraryLoadOrder.record("dependency2") - diff --git a/spec/data/run_context/cookbooks/test-with-circular-deps/libraries/lib.rb b/spec/data/run_context/cookbooks/test-with-circular-deps/libraries/lib.rb index 76108f0..c42f611 100644 --- a/spec/data/run_context/cookbooks/test-with-circular-deps/libraries/lib.rb +++ b/spec/data/run_context/cookbooks/test-with-circular-deps/libraries/lib.rb @@ -1,2 +1 @@ LibraryLoadOrder.record("test-with-circular-deps") - diff --git a/spec/data/run_context/cookbooks/test/recipes/default.rb b/spec/data/run_context/cookbooks/test/recipes/default.rb index d769dc8..c11bebc 100644 --- a/spec/data/run_context/cookbooks/test/recipes/default.rb +++ b/spec/data/run_context/cookbooks/test/recipes/default.rb @@ -1,5 +1,3 @@ - cat "einstein" do pretty_kitty true end - diff --git a/spec/data/sample_msu1.xml b/spec/data/sample_msu1.xml index cc68dbf..cf73c68 100644 --- a/spec/data/sample_msu1.xml +++ b/spec/data/sample_msu1.xml @@ -7,4 +7,3 @@ - diff --git a/spec/data/sample_msu2.xml b/spec/data/sample_msu2.xml index 6f95e04..326e494 100644 --- a/spec/data/sample_msu2.xml +++ b/spec/data/sample_msu2.xml @@ -11,4 +11,3 @@ - diff --git a/spec/data/sample_msu3.xml b/spec/data/sample_msu3.xml index 0ef09da..8f0679d 100644 --- a/spec/data/sample_msu3.xml +++ b/spec/data/sample_msu3.xml @@ -13,4 +13,3 @@ - diff --git a/spec/data/standalone_cookbook/Gemfile b/spec/data/standalone_cookbook/Gemfile index 9c96184..6701c21 100644 --- a/spec/data/standalone_cookbook/Gemfile +++ b/spec/data/standalone_cookbook/Gemfile @@ -1 +1 @@ -source "https://rubygems.org/" \ No newline at end of file +source "https://rubygems.org/" diff --git a/spec/data/standalone_cookbook/recipes/default.rb b/spec/data/standalone_cookbook/recipes/default.rb index c2fa53b..3a0013d 100644 --- a/spec/data/standalone_cookbook/recipes/default.rb +++ b/spec/data/standalone_cookbook/recipes/default.rb @@ -1,3 +1,3 @@ # # Nothing ot see here -# \ No newline at end of file +# diff --git a/spec/data/standalone_cookbook/vendor/bundle/ruby/2.0.0/gems/multi_json-1.9.0/lib/multi_json.rb b/spec/data/standalone_cookbook/vendor/bundle/ruby/2.0.0/gems/multi_json-1.9.0/lib/multi_json.rb index 3b992ad..708468d 100644 --- a/spec/data/standalone_cookbook/vendor/bundle/ruby/2.0.0/gems/multi_json-1.9.0/lib/multi_json.rb +++ b/spec/data/standalone_cookbook/vendor/bundle/ruby/2.0.0/gems/multi_json-1.9.0/lib/multi_json.rb @@ -1 +1 @@ -# This is a dummy ruby file \ No newline at end of file +# This is a dummy ruby file diff --git a/spec/data/templates/chef-seattle20160930-4388-1crv7ef.txt b/spec/data/templates/chef-seattle20160930-4388-1crv7ef.txt index f476ccd..3135883 100644 --- a/spec/data/templates/chef-seattle20160930-4388-1crv7ef.txt +++ b/spec/data/templates/chef-seattle20160930-4388-1crv7ef.txt @@ -1 +1 @@ -Do do do do, do do do do, do do do do, do do do do \ No newline at end of file +Do do do do, do do do do, do do do do, do do do do diff --git a/spec/data/templates/chef-seattle20160930-4388-jjfoae.txt b/spec/data/templates/chef-seattle20160930-4388-jjfoae.txt index f476ccd..3135883 100644 --- a/spec/data/templates/chef-seattle20160930-4388-jjfoae.txt +++ b/spec/data/templates/chef-seattle20160930-4388-jjfoae.txt @@ -1 +1 @@ -Do do do do, do do do do, do do do do, do do do do \ No newline at end of file +Do do do do, do do do do, do do do do, do do do do diff --git a/spec/data/templates/chef-seattle20160930-4388-umeq2c.txt b/spec/data/templates/chef-seattle20160930-4388-umeq2c.txt index f476ccd..3135883 100644 --- a/spec/data/templates/chef-seattle20160930-4388-umeq2c.txt +++ b/spec/data/templates/chef-seattle20160930-4388-umeq2c.txt @@ -1 +1 @@ -Do do do do, do do do do, do do do do, do do do do \ No newline at end of file +Do do do do, do do do do, do do do do, do do do do diff --git a/spec/data/templates/seattle.txt b/spec/data/templates/seattle.txt index 19f6290..e1b2fe0 100644 --- a/spec/data/templates/seattle.txt +++ b/spec/data/templates/seattle.txt @@ -1 +1 @@ -Seattle is a great town. Next time you visit, you should buy me a beer. \ No newline at end of file +Seattle is a great town. Next time you visit, you should buy me a beer. diff --git a/spec/knife_spec_helper.rb b/spec/knife_spec_helper.rb index a57c601..0b9bc43 100644 --- a/spec/knife_spec_helper.rb +++ b/spec/knife_spec_helper.rb @@ -132,7 +132,7 @@ def self.from(system_exit) config.filter_run_excluding volatile_on_solaris: true if solaris? config.filter_run_excluding volatile_from_verify: false - config.filter_run_excluding skip_buildkite: true if ENV["BUILDKITE"] + config.filter_run_excluding skip_buildkite: true if ENV["BUILDKITE"] || ENV["GITHUB_ACTIONS"] config.filter_run_excluding windows_only: true unless windows? config.filter_run_excluding unix_only: true unless unix? diff --git a/spec/unit/knife/configure_spec.rb b/spec/unit/knife/configure_spec.rb index 906d8d4..6183a63 100644 --- a/spec/unit/knife/configure_spec.rb +++ b/spec/unit/knife/configure_spec.rb @@ -148,17 +148,19 @@ end it "writes the new data to a config file" do + user = "some-user" + allow(Etc).to receive(:getlogin).and_return(user) allow(Chef::Util::PathHelper).to receive(:home).with(".chef").and_return("/home/you/.chef") allow(File).to receive(:expand_path).with("/home/you/.chef/credentials").and_return("/home/you/.chef/credentials") - allow(File).to receive(:expand_path).with("/home/you/.chef/#{Etc.getlogin}.pem").and_return("/home/you/.chef/#{Etc.getlogin}.pem") + allow(File).to receive(:expand_path).with("/home/you/.chef/#{user}.pem").and_return("/home/you/.chef/#{user}.pem") allow(File).to receive(:expand_path).with(default_admin_key).and_return(default_admin_key) expect(FileUtils).to receive(:mkdir_p).with("/home/you/.chef") config_file = StringIO.new expect(::File).to receive(:open).with("/home/you/.chef/credentials", "w").and_yield config_file @knife.config[:repository] = "/home/you/chef-repo" @knife.run - expect(config_file.string).to match(/^client_name\s+=\s+'#{Regexp.escape(Etc.getlogin)}'$/) - expect(config_file.string).to match(/^client_key\s+=\s+'#{Regexp.escape("/home/you/.chef/#{Etc.getlogin}.pem")}'$/) + expect(config_file.string).to match(/^client_name\s+=\s+'#{Regexp.escape(user)}'$/) + expect(config_file.string).to match(/^client_key\s+=\s+'#{Regexp.escape("/home/you/.chef/#{user}.pem")}'$/) expect(config_file.string).to match(/^chef_server_url\s+=\s+'#{Regexp.escape(default_server_url)}'$/) end