Skip to content

Commit

Permalink
Merge pull request #29 from tattersoftware/retool
Browse files Browse the repository at this point in the history
Update DevKit
  • Loading branch information
MGatner committed May 20, 2022
2 parents ffff873 + 965e2de commit 11f929a
Show file tree
Hide file tree
Showing 4 changed files with 204 additions and 214 deletions.
22 changes: 11 additions & 11 deletions composer.json
@@ -1,15 +1,14 @@
{
"name": "tatter/menus",
"type": "library",
"description": "Dynamic menus for CodeIgniter 4",
"license": "MIT",
"type": "library",
"keywords": [
"codeigniter",
"codeigniter4",
"menus",
"navigation"
],
"homepage": "https://github.com/tattersoftware/codeigniter4-menus",
"license": "MIT",
"authors": [
{
"name": "Matthew Gatner",
Expand All @@ -18,6 +17,7 @@
"role": "Developer"
}
],
"homepage": "https://github.com/tattersoftware/codeigniter4-menus",
"require": {
"php": "^7.4 || ^8.0",
"spatie/menu": "^2.10 || ^3.0"
Expand All @@ -26,12 +26,8 @@
"codeigniter4/framework": "^4.1",
"tatter/tools": "^2.0"
},
"config": {
"allow-plugins": {
"ergebnis/composer-normalize": true,
"phpstan/extension-installer": true
}
},
"minimum-stability": "dev",
"prefer-stable": true,
"autoload": {
"psr-4": {
"Tatter\\Menus\\": "src"
Expand All @@ -45,8 +41,12 @@
"Tests\\Support\\": "tests/_support"
}
},
"minimum-stability": "dev",
"prefer-stable": true,
"config": {
"allow-plugins": {
"ergebnis/composer-normalize": true,
"phpstan/extension-installer": true
}
},
"scripts": {
"analyze": "phpstan analyze",
"ci": [
Expand Down
155 changes: 0 additions & 155 deletions depfile.yaml

This file was deleted.

156 changes: 156 additions & 0 deletions deptrac.yaml
@@ -0,0 +1,156 @@
parameters:
paths:
- ./src/
- ./vendor/codeigniter4/framework/system/
exclude_files:
- '#.*test.*#i'
layers:
- name: Model
collectors:
- type: bool
must:
- type: className
regex: .*[A-Za-z]+Model$
must_not:
- type: directory
regex: vendor/.*
- name: Vendor Model
collectors:
- type: bool
must:
- type: className
regex: .*[A-Za-z]+Model$
- type: directory
regex: vendor/.*
- name: Controller
collectors:
- type: bool
must:
- type: className
regex: .*\/Controllers\/.*
must_not:
- type: directory
regex: vendor/.*
- name: Vendor Controller
collectors:
- type: bool
must:
- type: className
regex: .*\/Controllers\/.*
- type: directory
regex: vendor/.*
- name: Config
collectors:
- type: bool
must:
- type: directory
regex: src/Config/.*
must_not:
- type: className
regex: .*Services
- type: directory
regex: vendor/.*
- name: Vendor Config
collectors:
- type: bool
must:
- type: directory
regex: vendor/.*/Config/.*
must_not:
- type: className
regex: .*Services
- name: Entity
collectors:
- type: bool
must:
- type: directory
regex: src/Entities/.*
must_not:
- type: directory
regex: vendor/.*
- name: Vendor Entity
collectors:
- type: bool
must:
- type: directory
regex: vendor/.*/Entities/.*
- name: View
collectors:
- type: bool
must:
- type: directory
regex: src/Views/.*
must_not:
- type: directory
regex: vendor/.*
- name: Vendor View
collectors:
- type: bool
must:
- type: directory
regex: vendor/.*/Views/.*
- name: Service
collectors:
- type: className
regex: .*Services.*
ruleset:
Entity:
- Config
- Model
- Service
- Vendor Config
- Vendor Entity
- Vendor Model
Config:
- Service
- Vendor Config
Model:
- Config
- Entity
- Service
- Vendor Config
- Vendor Entity
- Vendor Model
Service:
- Config
- Vendor Config

# Ignore anything in the Vendor layers
Vendor Model:
- Config
- Service
- Vendor Config
- Vendor Controller
- Vendor Entity
- Vendor Model
- Vendor View
Vendor Controller:
- Service
- Vendor Config
- Vendor Controller
- Vendor Entity
- Vendor Model
- Vendor View
Vendor Config:
- Config
- Service
- Vendor Config
- Vendor Controller
- Vendor Entity
- Vendor Model
- Vendor View
Vendor Entity:
- Service
- Vendor Config
- Vendor Controller
- Vendor Entity
- Vendor Model
- Vendor View
Vendor View:
- Service
- Vendor Config
- Vendor Controller
- Vendor Entity
- Vendor Model
- Vendor View
skip_violations:

0 comments on commit 11f929a

Please sign in to comment.