Skip to content

Enforce code styling and editor config #33

Closed

Description

@Arlodotexe

The Labs repo is using default settings for code styling and .editorconfig. We need to bring in the .editorconfig and other code styling analyzers from the main repo.

Activity

  1. michael-hawker commented on Mar 30, 2022

    @michael-hawker
    Member

    Reading more, looks like .editorconfig should handle most of our needs these days. It should be able to specify stuff in the IDE, but also in our CI.

    Resources for CI enforcement:

    https://docs.microsoft.com/en-us/visualstudio/code-quality/use-roslyn-analyzers?view=vs-2022#command-line-usage
    https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/overview#enable-on-build

    Info on running XAML Styler on commit here as well: https://github.com/Xavalon/XamlStyler/wiki/Git-Hook

    Looking at seeing if I can add this stuff in, so assigning to myself.

  2. michael-hawker commented on Mar 30, 2022

    @michael-hawker
    Member

    Investigated looking at a tools manifest to help us with things: https://docs.microsoft.com/en-us/dotnet/core/tools/local-tools-how-to-use

    And of course the Git Hooks docs: https://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks

  3. michael-hawker commented on Mar 30, 2022

    @michael-hawker
    Member

    Script integration info for XAML Styler: https://github.com/Xavalon/XamlStyler/wiki/Script-Integration

    Though running into some issues getting it to run.

  4. Jay-o-Way commented on Nov 14, 2023

    @Jay-o-Way
    Contributor

    FYI: the nugget wasn't updated for a while, but v3.2311.2 has been published about two hours ago
    Xavalon/XamlStyler#429 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions