Skip to content
Merged
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
21 changes: 9 additions & 12 deletions .codacy.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
# Codacy configuration.
#
# TSLint is deprecated, and Codacy can still run it on JSON files. It is
# turned off from here in two ways: tslint.json enables no rule, and the paths
# below keep every file away from the tool. The two JSON files are named as
# well, because they are what it flags: it asks for trailing commas and sorted
# keys, which JSON and npm's lock file cannot have. Every other tool still
# reads every file.
---
# Codacy configuration

engines:
tslint:
# Lizard reads the lock files as source code and reports their length.
# Composer and npm generate them; nobody writes them by hand.
lizard:
exclude_paths:
- "**"
- "**/*"
- "package.json"
- "composer.lock"
- "package-lock.json"
- "**/composer.lock"
- "**/package-lock.json"
6 changes: 2 additions & 4 deletions .github/scripts/check-plugin-package.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,8 @@ def tracked_files(root: Path, *options: str) -> set[str]:


def check_distignore(root: Path, tracked: set[str], names: set[str]) -> None:
"""Require .distignore to keep exactly the tracked files that the allowlist ships.

Git matches the patterns, so they mean what they mean to `wp dist-archive`.
"""
"""Require .distignore to keep exactly the tracked files that the allowlist ships."""
# Git matches the patterns, so they mean what they mean to `wp dist-archive`.
distignore = root / ".distignore"
if distignore.is_symlink() or not distignore.is_file():
raise ValueError("The .distignore file is missing.")
Expand Down
7 changes: 3 additions & 4 deletions .github/scripts/test-automation.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
#!/usr/bin/env python3
"""Standard-library regression fixtures, executed by GitHub's package-check job.
"""Standard-library regression fixtures, executed by GitHub's package-check job."""

These fixtures do not bootstrap WordPress or replace workflow-generated PHP tests.
All mutation is confined to a temporary fixture repository on the runner.
"""
# These fixtures do not bootstrap WordPress or replace workflow-generated PHP tests.
# All mutation is confined to a temporary fixture repository on the runner.

from __future__ import annotations

Expand Down
Loading