Skip to content
This repository has been archived by the owner on Sep 24, 2020. It is now read-only.

Give some analyzers more configs #258

Merged
merged 2 commits into from
Nov 6, 2016
Merged

Conversation

ddmler
Copy link
Collaborator

@ddmler ddmler commented Oct 14, 2016

Hey!

Type: new feature

Link to issue: #234

This pull request affects the following components (please check boxes):

  • Core
  • Analyzer
  • Compiler
  • Control Flow Graph
  • Documentation

In raising this pull request, I confirm the following (please check boxes):

  • I have read and understood the Contributing Guidelines.
  • I have checked that another pull request for this purpose does not exist.
  • I wrote some tests for this PR.

Small description of change:

MissingDocblock, Deprecated Functions/Ini have now extra settings to disable some parts of the analyzer.
What do you think about it?

@ddmler ddmler added the WIP label Oct 14, 2016
@ddmler
Copy link
Collaborator Author

ddmler commented Oct 14, 2016

issue is resolved

@ddmler ddmler removed the WIP label Oct 14, 2016
@ddmler ddmler changed the title Make MissingDocblock configurable Give some analyzers more configs Oct 14, 2016
@@ -95,6 +99,9 @@ phpsa:
# Checks for use of deprecated functions and gives alternatives if available.
deprecated_functions:
enabled: true
check_5_3: true
check_5_5: true
check_7_1: true
Copy link
Collaborator

Choose a reason for hiding this comment

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

Shouldn't we use the language_level setting to determine the checks that need to be done?

Copy link
Owner

Choose a reason for hiding this comment

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

I suggest to use language_level as @K-Phoen said, because using 100500 configuration is a stupid way

@ddmler
Copy link
Collaborator Author

ddmler commented Nov 4, 2016

For now i removed deprecated functions/ini from this PR.

@ovr ovr merged commit 7c55c5f into ovr:master Nov 6, 2016
@ovr
Copy link
Owner

ovr commented Nov 6, 2016

Thanks @ddmler 👍

@ddmler ddmler deleted the missing-docblock-config branch November 6, 2016 10:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants