You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
Go to file
Hugo Thunnissen 56eaa3b36d
continuous-integration/drone/push Build is failing Details
Replace index-thread with more generic and encapsulated worker type
The new implementaiton makes the background thread more extensible in terms of
the types of tasks that it can execute. It also allows for the injection of a
worker as dependency of project instances, which will make automated testing
easier in the future.
2 years ago
test Replace index-thread with more generic and encapsulated worker type 2 years ago
.drone.yml Add drone.yml 2 years ago
.gitignore Add resolvecontext structure and optimze type resolving process 3 years ago
COPYING Add license information 3 years ago
README.md Update README with new development repository location 2 years ago
phpinspect-cache.el Replace index-thread with more generic and encapsulated worker type 2 years ago
phpinspect-class.el Fix tests and patch bugs that came to light in the process 2 years ago
phpinspect-index.bash Index new files when no FQN can be found for a type 3 years ago
phpinspect-index.el Replace index-thread with more generic and encapsulated worker type 2 years ago
phpinspect-parser.el WIP: Split code up into separate files 2 years ago
phpinspect-project.el Replace index-thread with more generic and encapsulated worker type 2 years ago
phpinspect-serialize.el Fix tests and patch bugs that came to light in the process 2 years ago
phpinspect-type.el Fix tests and patch bugs that came to light in the process 2 years ago
phpinspect-util.el WIP: Split code up into separate files 2 years ago
phpinspect-worker.el Replace index-thread with more generic and encapsulated worker type 2 years ago
phpinspect.el Replace index-thread with more generic and encapsulated worker type 2 years ago

README.md

phpinspect.el

WIP. More documentation is in the making.

Example config

;;;###autoload
(defun my-php-personal-hook ()
  ;; It is important to enable `company-mode' before setting
  ;; the variables below.
  (company-mode)
  (setq-local company-minimum-prefix-length 0)
  (setq-local company-tooltip-align-annotations t)
  (setq-local company-idle-delay 0.1)
  (setq-local company-backends '(phpinspect-company-backend))

  ;; Shortcut to add use statements for classes you use.
  (define-key php-mode-map (kbd "C-c u") 'phpinspect-fix-uses-interactive)

  ;; Shortcuts to quickly search/open files of PHP classes.
  (global-set-key (kbd "C-c a") 'phpinspect-find-class-file)
  (global-set-key (kbd "C-c c") 'phpinspect-find-own-class-file)

  (phpinspect-mode))

(add-hook 'php-mode-hook #'my-php-personal-hook)

Install

git clone https://git.snorba.art/hugo/phpinspect.el ~/projects/phpinspect.el
(add-to-list 'load-path "~/projects/phpinspect.el")
(require 'phpinspect)

Development

Running tests

Tests are implemented using ert. You can run them in batch mode with the following command:

emacs -batch -l ert -l ./phpinspect.el -l ./test/phpinspect-test.el -f ert-run-tests-batch-and-exit