Skip to content

Commit 2ac178e

Browse files
committed
✨ feat: add licensing information and restructure PHPMD extension codebase
1 parent 2cc561c commit 2ac178e

19 files changed

+726
-240
lines changed

.github/workflows/publish.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# This file is part of the vscode-ddev-phpmd extension.
2+
# © OpenForgeProject
3+
# Licensed under the GNU General Public License v3.0 (GPL-3.0)
4+
15
name: Build and Publish
26

37
on:
@@ -6,6 +10,10 @@ on:
610
- 'v*'
711
workflow_dispatch:
812

13+
permissions:
14+
contents: read
15+
packages: read
16+
917
jobs:
1018
build:
1119
name: Build and Publish Extension

.github/workflows/test.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# This file is part of the vscode-ddev-phpmd extension.
2+
# © OpenForgeProject
3+
# Licensed under the GNU General Public License v3.0 (GPL-3.0)
4+
15
name: Extension Tests
26

37
on:
@@ -7,6 +11,10 @@ on:
711
branches: [ main ]
812
workflow_dispatch:
913

14+
permissions:
15+
contents: read
16+
packages: read
17+
1018
jobs:
1119
test:
1220
name: Test Extension

.vscode-test.mjs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
/*
2+
* This file is part of the vscode-ddev-phpmd extension.
3+
*
4+
* © OpenForgeProject
5+
*
6+
* This program is free software: you can redistribute it and/or modify
7+
* it under the terms of the GNU General Public License as published by
8+
* the Free Software Foundation, either version 3 of the License, or
9+
* (at your option) any later version.
10+
*
11+
* This program is distributed in the hope that it will be useful,
12+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
* GNU General Public License for more details.
15+
*
16+
* You should have received a copy of the GNU General Public License
17+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
18+
*/
19+
120
import { defineConfig } from '@vscode/test-cli';
221

322
export default defineConfig({

.vscode/extensions.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// This file is part of the vscode-ddev-phpmd extension.
2+
// © OpenForgeProject
3+
// Licensed under the GNU General Public License v3.0 (GPL-3.0)
14
{
25
// See http://go.microsoft.com/fwlink/?LinkId=827846
36
// for the documentation about the extensions.json format

.vscode/launch.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// This file is part of the vscode-ddev-phpmd extension.
2+
// © OpenForgeProject
3+
// Licensed under the GNU General Public License v3.0 (GPL-3.0)
4+
//
15
// A launch configuration that compiles the extension and then opens it inside a new window
26
// Use IntelliSense to learn about possible attributes.
37
// Hover to view descriptions of existing attributes.

.vscode/settings.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// This file is part of the vscode-ddev-phpmd extension.
2+
// © OpenForgeProject
3+
// Licensed under the GNU General Public License v3.0 (GPL-3.0)
4+
//
15
// Place your settings in this file to overwrite default and user settings.
26
{
37
"files.exclude": {
@@ -10,4 +14,4 @@
1014
},
1115
// Turn off tsc task auto detection since we have the necessary tasks as npm scripts
1216
"typescript.tsc.autoDetect": "off"
13-
}
17+
}

.vscode/tasks.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// This file is part of the vscode-ddev-phpmd extension.
2+
// © OpenForgeProject
3+
// Licensed under the GNU General Public License v3.0 (GPL-3.0)
4+
//
15
// See https://go.microsoft.com/fwlink/?LinkId=733558
26
// for the documentation about the tasks.json format
37
{

.vscodeignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# This file is part of the vscode-ddev-phpmd extension.
2+
# © OpenForgeProject
3+
# Licensed under the GNU General Public License v3.0 (GPL-3.0)
4+
15
.trunk/**
26
.vscode/**
37
.vscode-test/**

esbuild.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
/*
2+
* This file is part of the vscode-ddev-phpmd extension.
3+
*
4+
* © OpenForgeProject
5+
*
6+
* This program is free software: you can redistribute it and/or modify
7+
* it under the terms of the GNU General Public License as published by
8+
* the Free Software Foundation, either version 3 of the License, or
9+
* (at your option) any later version.
10+
*
11+
* This program is distributed in the hope that it will be useful,
12+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
* GNU General Public License for more details.
15+
*
16+
* You should have received a copy of the GNU General Public License
17+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
18+
*/
19+
120
const esbuild = require("esbuild");
221

322
const production = process.argv.includes('--production');

eslint.config.mjs

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
/*
2+
* This file is part of the vscode-ddev-phpmd extension.
3+
*
4+
* © OpenForgeProject
5+
*
6+
* This program is free software: you can redistribute it and/or modify
7+
* it under the terms of the GNU General Public License as published by
8+
* the Free Software Foundation, either version 3 of the License, or
9+
* (at your option) any later version.
10+
*
11+
* This program is distributed in the hope that it will be useful,
12+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
* GNU General Public License for more details.
15+
*
16+
* You should have received a copy of the GNU General Public License
17+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
18+
*/
19+
120
import typescriptEslint from "@typescript-eslint/eslint-plugin";
221
import tsParser from "@typescript-eslint/parser";
322

@@ -25,4 +44,4 @@ export default [{
2544
"no-throw-literal": "warn",
2645
semi: "warn",
2746
},
28-
}];
47+
}];

0 commit comments

Comments
 (0)