Skip to content
This repository was archived by the owner on Feb 23, 2018. It is now read-only.

Commit 5d7852a

Browse files
committed
✨ Gert-dev/php-integrator-linter#43
1 parent 2a93bce commit 5d7852a

File tree

4 files changed

+15
-0
lines changed

4 files changed

+15
-0
lines changed

lib/AtomConfig.coffee

+4
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ class AtomConfig extends Config
2828
@set('showUnknownGlobalFunctions', atom.config.get("#{@packageName}.showUnknownGlobalFunctions"))
2929
@set('showUnknownGlobalConstants', atom.config.get("#{@packageName}.showUnknownGlobalConstants"))
3030
@set('showUnusedUseStatements', atom.config.get("#{@packageName}.showUnusedUseStatements"))
31+
@set('showMissingDocs', atom.config.get("#{@packageName}.showMissingDocs"))
3132
@set('validateDocblockCorrectness', atom.config.get("#{@packageName}.validateDocblockCorrectness"))
3233

3334
###*
@@ -49,5 +50,8 @@ class AtomConfig extends Config
4950
atom.config.onDidChange "#{@packageName}.showUnusedUseStatements", () =>
5051
@set('showUnusedUseStatements', atom.config.get("#{@packageName}.showUnusedUseStatements"))
5152

53+
atom.config.onDidChange "#{@packageName}.showMissingDocs", () =>
54+
@set('showMissingDocs', atom.config.get("#{@packageName}.showMissingDocs"))
55+
5256
atom.config.onDidChange "#{@packageName}.validateDocblockCorrectness", () =>
5357
@set('validateDocblockCorrectness', atom.config.get("#{@packageName}.validateDocblockCorrectness"))

lib/Config.coffee

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ class Config
2727
showUnknownGlobalFunctions : true
2828
showUnknownGlobalConstants : true
2929
showUnusedUseStatements : true
30+
showMissingDocs : true
3031
validateDocblockCorrectness : true
3132

3233
@load()

lib/Main.coffee

+9
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,15 @@ module.exports =
4848
default : true
4949
order : 5
5050

51+
showMissingDocs:
52+
title : 'Show missing phpdocumentations'
53+
description : '''
54+
Highlights any missing php documentation on functions/methods/classes/fields.
55+
'''
56+
type : 'boolean'
57+
default : true
58+
order : 6
59+
5160
validateDocblockCorrectness:
5261
title : 'Validate docblock correctness'
5362
description : '''

lib/SemanticLintProvider.coffee

+1
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ class IndexingProvider
140140
noUnknownGlobalFunctions : not @config.get('showUnknownGlobalFunctions')
141141
noUnknownGlobalConstants : not @config.get('showUnknownGlobalConstants')
142142
noUnusedUseStatements : not @config.get('showUnusedUseStatements')
143+
noMissingDocs : not @config.get('showMissingDocs')
143144
noDocblockCorrectness : not @config.get('validateDocblockCorrectness')
144145
}
145146

0 commit comments

Comments
 (0)