{"id":15401904,"url":"https://github.com/wilfred/emacs-refactor","last_synced_at":"2025-12-17T10:48:05.663Z","repository":{"id":7845510,"uuid":"9217256","full_name":"Wilfred/emacs-refactor","owner":"Wilfred","description":"language-specific refactoring in Emacs","archived":false,"fork":false,"pushed_at":"2023-01-29T05:54:44.000Z","size":506,"stargazers_count":350,"open_issues_count":22,"forks_count":27,"subscribers_count":17,"default_branch":"master","last_synced_at":"2025-05-25T22:03:57.242Z","etag":null,"topics":["emacs","lisp","refactoring"],"latest_commit_sha":null,"homepage":"","language":"Emacs Lisp","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Wilfred.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-04-04T12:05:51.000Z","updated_at":"2025-04-24T22:51:04.000Z","dependencies_parsed_at":"2023-02-15T21:00:38.345Z","dependency_job_id":null,"html_url":"https://github.com/Wilfred/emacs-refactor","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/Wilfred/emacs-refactor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wilfred%2Femacs-refactor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wilfred%2Femacs-refactor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wilfred%2Femacs-refactor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wilfred%2Femacs-refactor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Wilfred","download_url":"https://codeload.github.com/Wilfred/emacs-refactor/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wilfred%2Femacs-refactor/sbom","scorecard":{"id":151361,"data":{"date":"2025-08-11","repo":{"name":"github.com/Wilfred/emacs-refactor","commit":"cac1b52932926f56d7f6d2923732d20bbd20670d"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.6,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":2,"reason":"Found 8/30 approved changesets -- score normalized to 2","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/test.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/Wilfred/emacs-refactor/test.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/Wilfred/emacs-refactor/test.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/Wilfred/emacs-refactor/test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/Wilfred/emacs-refactor/test.yml/master?enable=pin","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: COPYING:0","Info: FSF or OSI recognized license: GNU General Public License v3.0: COPYING:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 8 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-16T10:45:58.544Z","repository_id":7845510,"created_at":"2025-08-16T10:45:58.544Z","updated_at":"2025-08-16T10:45:58.544Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27781934,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-12-17T02:00:08.291Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["emacs","lisp","refactoring"],"created_at":"2024-10-01T15:59:40.033Z","updated_at":"2025-12-17T10:48:05.643Z","avatar_url":"https://github.com/Wilfred.png","language":"Emacs Lisp","funding_links":[],"categories":[],"sub_categories":[],"readme":"# emacs-refactor\n\n[![Coverage Status](https://coveralls.io/repos/Wilfred/emacs-refactor/badge.svg)](https://coveralls.io/r/Wilfred/emacs-refactor)\n[![MELPA](http://melpa.org/packages/emr-badge.svg)](http://melpa.org/#/emr)\n[![MELPA stable](http://stable.melpa.org/packages/emr-badge.svg)](http://stable.melpa.org/#/emr)\n\nEmacs Refactor (EMR) is a framework for providing language-specific\nrefactoring in Emacs. It includes refactoring commands for a variety\nof languages, including elisp itself!\n\n- [Summary](#user-content-summary)\n- [Installation](#user-content-installation)\n- [Language support](#user-content-language-support)\n    - [General](#user-content-general)\n    - [C](#user-content-c)\n    - [Lisps](#user-content-lisps)\n    - [Elisp](#user-content-elisp)\n    - [JavaScript](#user-content-javascript)\n    - [Ruby](#user-content-ruby)\n    - [Scheme](#user-content-scheme)\n- [Extension](#user-content-extension)\n\n## Summary\n\nTo use EMR when editing, simply move point to an expression and \n`M-x emr-show-refactor-menu`.\n\n![Example][example-pic]\n\nEMR ships with many refactoring commands, and pull requests for extensions are\nwelcome. See [Extension](#user-content-extension) for details on extending EMR\nto other language modes. It's easy (honest!).\n\n## Installation\n\nInstall `emr` from [MELPA](http://www.melpa.org/), then configure your\ninit.el:\n\n```emacs-lisp\n(define-key prog-mode-map (kbd \"M-RET\") 'emr-show-refactor-menu)\n```\n\n## Language support\n\nMost EMR commands are context-sensitive and are available through the\nrefactor menu. Some actions affect the whole buffer and are available in\nthe menu bar.\n\n### General\n\nThese commands are available for all programming languages.\n\nThe following context-sensitive refactoring commands are available:\n\n* *comment region*\n* *uncomment region*\n\n### C\n\nThe following context-sensitive refactoring commands are available:\n\n* *tidy includes*\n\nThe following buffer-wide actions are available:\n\n* *insert include*\n\nRefactoring support for C is a work in progress. Contributions are welcome.\n\n### Lisps\n\nThese commands are available to all Lisp dialects, including Clojure, Elisp\nand Common Lisp.\n\nThe following context-sensitive refactoring commands are available:\n\n* *comment form*\n* *uncomment block*\n\n### Elisp\n\nThe following context-sensitive refactoring commands are available:\n\n* *delete unused definition*\n* *delete unused let binding form*\n* *eval and replace*\n* *extract autoload*\n* *extract constant*\n* *extract function*\n* *extract to let*\n* *extract variable*\n* *implement function*\n* *inline function*\n* *inline let variable*\n* *inline variable*\n* *insert autoload directive*\n* *tidy autoloads*\n\nThe following buffer-wide actions are available:\n\n* *find unused definitions*\n\n### JavaScript\n\nJavaScript refactoring support requires [js2 refactor][].\n\nThe following refactoring commands are available:\n\n* *extract function*\n* *extract method*\n* *extract variable*\n* *add parameter*\n* *local variable to instance variable*\n* *log region*\n\n### Ruby\n\nRuby refactoring support requires [ruby refactor][].\n\nThe following refactoring commands are available:\n\n* *extract function*\n* *extract variable*\n* *extract constant*\n* *add parameter*\n* *extract to let*\n\n### Scheme\n\nThe following refactoring commands are available:\n\n* *extract function*\n* *extract variable*\n\n## Extension\n\nUse the `emr-declare-command` function to declare a refactoring action. The\naction will automatically become available in the refactoring popup menu.\n\nThis function supports predicate expressions, allowing the options displayed to\nbe context-sensitive.\n\nAs an example, here is the declaration for a refactoring command that ships with\nEMR:\n\n```lisp\n(emr-declare-command 'emr-el-extract-constant\n  :title \"constant\"\n  :description \"defconst\"\n  :modes 'emacs-lisp-mode\n  :predicate (lambda ()\n               (not (or (emr-el:looking-at-definition?)\n                        (emr-el:looking-at-let-binding-symbol?)))))\n```\n\nThis wires the `emr-el-extract-constant` function to be displayed in\n`emacs-lisp-mode`, provided point is not looking at an Elisp definition or\nlet-binding form.\n\nIf your favourite language mode already offers refactoring commands, it is\nsimple to wire them up with EMR using this interface.\n\n[example-pic]: https://raw.github.com/Wilfred/emacs-refactor/master/assets/emr.png\n[js2 refactor]: https://github.com/magnars/js2-refactor.el\n[ruby refactor]: https://github.com/ajvargo/ruby-refactor\n[git]: http://git-scm.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwilfred%2Femacs-refactor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwilfred%2Femacs-refactor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwilfred%2Femacs-refactor/lists"}