Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -350,4 +350,3 @@ MigrationBackup/

.idea
.DS_Store
.devcontainer
14 changes: 14 additions & 0 deletions docs/.devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# [Choice] Debian OS version (use bullseye on local arm64/Apple Silicon): bullseye, buster
ARG VARIANT=bullseye
FROM mcr.microsoft.com/vscode/devcontainers/jekyll:0-${VARIANT}

# [Choice] Node.js version: none, lts/*, 16, 14, 12, 10
ARG NODE_VERSION="none"
RUN if [ "${NODE_VERSION}" != "none" ]; then su vscode -c "umask 0002 && . /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"; fi

# [Optional] Uncomment this section to install additional OS packages.
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
# && apt-get -y install --no-install-recommends <your-package-list-here>

# [Optional] Uncomment this line to install global node packages.
# RUN su vscode -c "source /usr/local/share/nvm/nvm.sh && npm install -g <your-package-here>" 2>&1
26 changes: 26 additions & 0 deletions docs/.devcontainer/base.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# [Choice] Debian OS version (use 2.7-bullseye on local arm64/Apple Silicon): 2.7-bullseye, 2.7-buster
ARG VARIANT=2.7-bullseye
FROM mcr.microsoft.com/vscode/devcontainers/ruby:${VARIANT}
COPY library-scripts/meta.env /usr/local/etc/vscode-dev-containers
Copy link

Copilot AI Feb 3, 2026

Choose a reason for hiding this comment

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

The base.Dockerfile references "library-scripts/meta.env" which does not exist in the repository. If this file is intended to be used (though it currently appears unused), this COPY instruction would fail during build.

Suggested change
COPY library-scripts/meta.env /usr/local/etc/vscode-dev-containers

Copilot uses AI. Check for mistakes.

# ENV Variables required by Jekyll
ENV LANG=en_US.UTF-8 \
LANGUAGE=en_US:en \
TZ=Etc/UTC \
LC_ALL=en_US.UTF-8 \
LANG=en_US.UTF-8 \
Copy link

Copilot AI Feb 3, 2026

Choose a reason for hiding this comment

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

The LANG environment variable is set twice (lines 7 and 11) with the same value. The duplicate on line 11 should be removed.

Suggested change
LANG=en_US.UTF-8 \

Copilot uses AI. Check for mistakes.
LANGUAGE=en_US

# Install bundler, latest jekyll, and github-pages for older jekyll
RUN gem install bundler jekyll github-pages

# [Choice] Node.js version: none, lts/*, 16, 14, 12, 10
ARG NODE_VERSION="none"
RUN if [ "${NODE_VERSION}" != "none" ]; then su vscode -c "umask 0002 && . /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"; fi

# [Optional] Uncomment this section to install additional OS packages.
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
# && apt-get -y install --no-install-recommends <your-package-list-here>

# [Optional] Uncomment this line to install global node packages.
# RUN su vscode -c "source /usr/local/share/nvm/nvm.sh && npm install -g <your-package-here>" 2>&1
Comment on lines +1 to +26
Copy link

Copilot AI Feb 3, 2026

Choose a reason for hiding this comment

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

The base.Dockerfile file is not referenced anywhere in the devcontainer configuration. The devcontainer.json uses "Dockerfile" (not "base.Dockerfile"), and Dockerfile doesn't reference base.Dockerfile either. This file appears to be unused and should either be removed or properly integrated into the build configuration if it was intended to be used.

Copilot uses AI. Check for mistakes.
35 changes: 35 additions & 0 deletions docs/.devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
// https://github.com/microsoft/vscode-dev-containers/tree/v0.205.2/containers/jekyll
Copy link

Copilot AI Feb 3, 2026

Choose a reason for hiding this comment

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

The reference URL points to the deprecated vscode-dev-containers repository at a specific old version (v0.205.2 from 2021). Microsoft deprecated this repository in favor of the devcontainers organization. While the URL may still work for reference, consider updating to point to current documentation at https://containers.dev or https://github.com/devcontainers/templates for a more future-proof reference.

Suggested change
// https://github.com/microsoft/vscode-dev-containers/tree/v0.205.2/containers/jekyll
// https://github.com/devcontainers/templates/tree/main/src/jekyll

Copilot uses AI. Check for mistakes.
Copy link
Member

Choose a reason for hiding this comment

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

{
"name": "Jekyll",
"build": {
"dockerfile": "Dockerfile",
"args": {
// Update 'VARIANT' to pick a Debian OS version: bullseye, buster
// Use bullseye when on local arm64/Apple Silicon.
"VARIANT": "bullseye",
// Enable Node.js: pick the latest LTS version
"NODE_VERSION": "lts/*"
}
Copy link

Copilot AI Feb 3, 2026

Choose a reason for hiding this comment

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

Trailing whitespace after the closing brace. This should be removed for consistency.

Suggested change
}
}

Copilot uses AI. Check for mistakes.
},

// Set *default* container specific settings.json values on container create.
"settings": {},

// Add the IDs of extensions you want installed when the container is created.
"extensions": [],

// Use 'forwardPorts' to make a list of ports inside the container available locally.
"forwardPorts": [
// Jekyll server
4000,
// Live reload server
35729
],

// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "sh .devcontainer/post-create.sh",

// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
"remoteUser": "vscode"
}
12 changes: 12 additions & 0 deletions docs/.devcontainer/post-create.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/sh

# Install the version of Bundler.
if [ -f Gemfile.lock ] && grep "BUNDLED WITH" Gemfile.lock > /dev/null; then
cat Gemfile.lock | tail -n 2 | grep -C2 "BUNDLED WITH" | tail -n 1 | xargs gem install bundler -v
Copy link

Copilot AI Feb 3, 2026

Choose a reason for hiding this comment

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

The command pipeline to extract the bundler version is overly complex and potentially fragile. The use of "grep -C2" (2 context lines) followed by "tail -n 1" to get the version number is convoluted. A simpler and more robust approach would be: "grep -A 1 'BUNDLED WITH' Gemfile.lock | tail -n 1 | xargs gem install bundler -v". This eliminates the unnecessary "cat" and the confusing use of context lines.

Suggested change
cat Gemfile.lock | tail -n 2 | grep -C2 "BUNDLED WITH" | tail -n 1 | xargs gem install bundler -v
grep -A 1 "BUNDLED WITH" Gemfile.lock | tail -n 1 | xargs gem install bundler -v

Copilot uses AI. Check for mistakes.
fi

# If there's a Gemfile, then run `bundle install`
# It's assumed that the Gemfile will install Jekyll too
if [ -f Gemfile ]; then
bundle install
fi
3 changes: 3 additions & 0 deletions docs/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
* text=auto

*.sh text eol=lf
26 changes: 26 additions & 0 deletions docs/.vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "Serve",
"type": "shell",
"command": "bundle exec jekyll serve --livereload",
"group": {
"kind": "test",
"isDefault": true
Comment on lines +10 to +12
Copy link

Copilot AI Feb 3, 2026

Choose a reason for hiding this comment

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

The PR description states that contributors can "run the default task (F5)" but F5 is typically the keyboard shortcut for debugging/running, not for executing tasks. The "Serve" task is configured as a "test" task (not a build task), and default tasks are typically run via the Command Palette or Ctrl+Shift+P > "Tasks: Run Task" or Ctrl+Shift+B for build tasks. Consider either: 1) updating the PR description to reflect the correct way to run the task, or 2) changing the task configuration to use "kind": "build" instead of "kind": "test" so it can be run with Ctrl+Shift+B, or 3) adding a launch.json configuration that runs this task when F5 is pressed.

Copilot uses AI. Check for mistakes.
},
"isBackground": true,
Copy link

Copilot AI Feb 3, 2026

Choose a reason for hiding this comment

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

Trailing comma after "isBackground: true" should be removed. JSON does not allow trailing commas in standard parsers, although some tools may be lenient. For consistency with the root .vscode/tasks.json which doesn't use trailing commas, and to ensure maximum compatibility, this should be removed.

Copilot uses AI. Check for mistakes.
},
{
"label": "Build",
"type": "shell",
"command": "bundle exec jekyll build",
"group": {
"kind": "build",
"isDefault": true
},
}
Copy link

Copilot AI Feb 3, 2026

Choose a reason for hiding this comment

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

Trailing comma after the closing brace should be removed. JSON does not allow trailing commas in standard parsers. For consistency with the root .vscode/tasks.json which doesn't use trailing commas, and to ensure maximum compatibility, this should be removed.

Copilot uses AI. Check for mistakes.
]
}
1 change: 1 addition & 0 deletions docs/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ title: IntelliTect Guidelines
description: IntelliTect's guidelines for coding and architecture. Documentation for IntelliTect's .NET Compiler Platform (Roslyn) Analyzers.
baseurl: "/CodingGuidelines" # the subpath of your site, e.g. /blog
url: "https://intellitect.github.io/" # the base hostname & protocol for your site, e.g. http://example.com
repository: IntelliTect/CodingGuidelines

# Build settings
markdown: kramdown
Expand Down
Loading