Skip to content

Commit

Permalink
Merge pull request #86 from worksome/feature/conditional-tags
Browse files Browse the repository at this point in the history
feat: JIRA-14002 Improve conditional tags
  • Loading branch information
owenvoke authored Dec 2, 2024
2 parents e7757f5 + bdd19a7 commit b99d48e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
14 changes: 8 additions & 6 deletions larastan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ includes:

parameters:
worksomeLaravel:
disallowEnvironmentChecks: true
enforceKebabCaseArtisanCommands: true
requireWithoutTimestamps: true
allRules: true
disallowEnvironmentChecks: %worksomeLaravel.allRules%
enforceKebabCaseArtisanCommands: %worksomeLaravel.allRules%
requireWithoutTimestamps: %worksomeLaravel.allRules%
namespaceAndSuffix:
App\Events: Event
App\Listener: Listener
Expand All @@ -26,9 +27,10 @@ parameters:

parametersSchema:
worksomeLaravel: structure([
disallowEnvironmentChecks: bool()
enforceKebabCaseArtisanCommands: bool()
requireWithoutTimestamps: bool()
allRules: anyOf(bool(), arrayOf(bool())),
disallowEnvironmentChecks: anyOf(bool(), arrayOf(bool())),
enforceKebabCaseArtisanCommands: anyOf(bool(), arrayOf(bool())),
requireWithoutTimestamps: anyOf(bool(), arrayOf(bool())),
])

services:
Expand Down
14 changes: 8 additions & 6 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,18 @@ parameters:
message: 'calls to Pest''s "only()" method should not be pushed to development.'
namespaceAndSuffix: []
worksome:
declareStrictTypes: true
disallowPhpunit: true
namespaceBasedSuffix: true
allRules: true
declareStrictTypes: %worksome.allRules%
disallowPhpunit: %worksome.allRules%
namespaceBasedSuffix: %worksome.allRules%

parametersSchema:
namespaceAndSuffix: arrayOf(string(), string())
worksome: structure([
declareStrictTypes: bool()
disallowPhpunit: bool()
namespaceBasedSuffix: bool()
allRules: anyOf(bool(), arrayOf(bool())),
declareStrictTypes: anyOf(bool(), arrayOf(bool())),
disallowPhpunit: anyOf(bool(), arrayOf(bool())),
namespaceBasedSuffix: anyOf(bool(), arrayOf(bool())),
])

services:
Expand Down

0 comments on commit b99d48e

Please sign in to comment.