Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replace libdparse in style guidelines visitor #64

Closed
wants to merge 36 commits into from

Conversation

lucica28
Copy link
Collaborator

Look at function/variable/class names to respect the style guidelines. Example of problematic code:

module AMODULE; // [warn]: Module/package name 'AMODULE' does not match style guidelines.
class cat {} // [warn]: Class name 'cat' does not match style guidelines.
interface puma {} // [warn]: Interface name 'puma' does not match style guidelines.
struct dog {} // [warn]: Struct name 'dog' does not match style guidelines.
enum racoon { a } // [warn]: Enum name 'racoon' does not match style guidelines.

Also changed the declaration of the analyzeDmd method to have a reference to the ModuleDeclaration so we can check declarations like module x;

RazvanN7 and others added 30 commits October 27, 2022 15:56
…n with dmd (#17)

* replace libdparse in objectconst functionality + unittests integration with dmd

* updated dmd

* run tests

* use templates

* visit aggregate declaration

* updated dmd

* solve linter seg fault

* get rid of dup + refactor

* fix typo
* replace libdparse in delete check

* delete comment
* Update README

* Add dmd-as-a-library submodule (#2)

* Add GH Actions build script (#4)

* Removed libdparse from imports print functionality (#3)

* Fix failing tester + add unittest for imports (#7)

* Add style checker (#9)

* Update action to build dlang fork

* Fix linter errors

* Add dmd dependencies to dub.json

* Add dmd dependencies to build.bat

* Replace libdparse in enum array functionality

* replace libdparse in objectconst functionality + unittests integration with dmd (#17)

* replace libdparse in objectconst functionality + unittests integration with dmd

* updated dmd

* run tests

* use templates

* visit aggregate declaration

* updated dmd

* solve linter seg fault

* get rid of dup + refactor

* fix typo

* update dmd to latest version

Co-authored-by: RazvanN7 <razvan.nitu1305@gmail.com>
Co-authored-by: Eduard Staniloiu <edi33416@gmail.com>
* update dmd

* update dmd
* replace libdparse in imports sortedness visitor

* minor refactor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants