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

Easy dotnet conventions to verify #141

Open
wants to merge 30 commits into
base: master
Choose a base branch
from

Commits on Sep 14, 2023

  1. FileConventions: add failing test

    Add tests for DefiningEmptyStringsWithDoubleQuotes function.
    tehraninasab authored and Mersho committed Sep 14, 2023
    Configuration menu
    Copy the full SHA
    5071790 View commit details
    Browse the repository at this point in the history
  2. FileConventions: implement the function

    Implement DefiningEmptyStringsWithDoubleQuotes function.
    tehraninasab authored and Mersho committed Sep 14, 2023
    Configuration menu
    Copy the full SHA
    854bb84 View commit details
    Browse the repository at this point in the history
  3. FileConventions: add failing test

    Add tests for ProjFilesNamingConvention function.
    tehraninasab authored and Mersho committed Sep 14, 2023
    Configuration menu
    Copy the full SHA
    64aa0ef View commit details
    Browse the repository at this point in the history
  4. FileConventions: implement the function

    Implement ProjFilesNamingConvention function.
    tehraninasab authored and Mersho committed Sep 14, 2023
    Configuration menu
    Copy the full SHA
    ac8e438 View commit details
    Browse the repository at this point in the history
  5. FileConventions: add failing test

    Add tests for NotFollowingNamespaceConvention function.
    tehraninasab authored and Mersho committed Sep 14, 2023
    Configuration menu
    Copy the full SHA
    be96888 View commit details
    Browse the repository at this point in the history
  6. FileConventions: implement the function

    Implement NotFollowingNamespaceConvention function.
    tehraninasab authored and Mersho committed Sep 14, 2023
    Configuration menu
    Copy the full SHA
    2ad886c View commit details
    Browse the repository at this point in the history
  7. FileConventions.Test: add failing test

    Add more tests for NotFollowingNamespaceConvention fn.
    tehraninasab authored and Mersho committed Sep 14, 2023
    Configuration menu
    Copy the full SHA
    4cb987e View commit details
    Browse the repository at this point in the history
  8. FileConventions: fix the function

    Fix NotFollowingNamespaceConvention function.
    tehraninasab authored and Mersho committed Sep 14, 2023
    Configuration menu
    Copy the full SHA
    bf64190 View commit details
    Browse the repository at this point in the history
  9. FileConventions: add failing test

    Add one more test for NotFollowingNamespaceConvention function.
    Mersho committed Sep 14, 2023
    Configuration menu
    Copy the full SHA
    f95737a View commit details
    Browse the repository at this point in the history
  10. FileConventions: fix csharp namespace

    Function DoesNamespaceInclude doesn't working on *.cs namespace.
    Mersho committed Sep 14, 2023
    Configuration menu
    Copy the full SHA
    fe91fed View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    2e5b0cc View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    842e3c1 View commit details
    Browse the repository at this point in the history
  13. FileConventions: use BetterAssert() & update Fsdk

    We updated fsdk to the latest version becuase the old
    version of fsdk does not have `Misc.BetterAssert` and
    we use `Misc.BetterAssert()` becuase assert is for
    debug mode.
    Mersho committed Sep 14, 2023
    Configuration menu
    Copy the full SHA
    040d85d View commit details
    Browse the repository at this point in the history
  14. FileConventions(.Test): applying f# standard style

    Using RemoveEmptyEntries for split & removing extra parans
    & Regex does not require a new keyword & string formatting
    has been corrected.
    Mersho committed Sep 14, 2023
    Configuration menu
    Copy the full SHA
    b85986b View commit details
    Browse the repository at this point in the history
  15. FileConventions: add failing test

    Add tests for NotFollowingConsoleAppConvention() function.
    Mersho committed Sep 14, 2023
    Configuration menu
    Copy the full SHA
    4cbf1bc View commit details
    Browse the repository at this point in the history
  16. FileConventions: fix the function

    Ensure that projects that aren't console applications don't
    have source files with console methods.
    
    Co-authored-by: Parham <[email protected]>
    Mersho and parhamsaremi committed Sep 14, 2023
    Configuration menu
    Copy the full SHA
    c15b542 View commit details
    Browse the repository at this point in the history
  17. FileConventions: add failing test

    Add tests for NotFollowingConsoleAppConvention function
    and we fix ConsoleAppConvention2 test so that project
    name does not contradict new tests.
    Mersho committed Sep 14, 2023
    Configuration menu
    Copy the full SHA
    e532e35 View commit details
    Browse the repository at this point in the history
  18. FileConvention: fix the function

    Fix NotFollowingConsoleAppConvention() function.
    Mersho committed Sep 14, 2023
    Configuration menu
    Copy the full SHA
    cc7b70e View commit details
    Browse the repository at this point in the history
  19. FileConventions: add failing test

    Add tests for async project, Async.RunSynchronously only
    allowed in console applications.
    Mersho committed Sep 14, 2023
    Configuration menu
    Copy the full SHA
    86db3b3 View commit details
    Browse the repository at this point in the history
  20. FileConvention: fix the function

    Fix NotFollowingConsoleAppConvention() function.
    Mersho committed Sep 14, 2023
    Configuration menu
    Copy the full SHA
    4ee7a19 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    18e91ea View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    2f8f770 View commit details
    Browse the repository at this point in the history
  23. FileConventions: add failing test

    Add test for NotFollowingNamespaceConvention fn.
    Mersho committed Sep 14, 2023
    Configuration menu
    Copy the full SHA
    f937c57 View commit details
    Browse the repository at this point in the history
  24. FileConvention: fix the function

    A .fs/fsx file might not have a namespace sometimes.
    Mersho committed Sep 14, 2023
    Configuration menu
    Copy the full SHA
    edd540f View commit details
    Browse the repository at this point in the history
  25. FileConventions.Test: add failing test

    `Contains()` method catches a lot of false-positives and not
    suitable for this situation so we used regex.
    
    Co-authored-by: Parham <[email protected]>
    Mersho and parhamsaremi committed Sep 14, 2023
    Configuration menu
    Copy the full SHA
    e71117f View commit details
    Browse the repository at this point in the history
  26. FileConventions: fix empty string false-positives

    Fix `DefiningEmptyStringsWithDoubleQuotes()` function by
    using regex insted of `Contains()`.
    
    Co-authored-by: Parham <[email protected]>
    Mersho and parhamsaremi committed Sep 14, 2023
    Configuration menu
    Copy the full SHA
    071e30a View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    1731514 View commit details
    Browse the repository at this point in the history
  28. FileConventions: improvements to Library.fs

    Finding printf and console methods in files & removed
    printf methods used for debugging purposes & added
    file filter to ReturnAllProjectSourceFile.
    Mersho committed Sep 14, 2023
    Configuration menu
    Copy the full SHA
    f1bfbb0 View commit details
    Browse the repository at this point in the history
  29. scripts: add dotNetFileConventions.fsx

    The newly developed script can detect wrong empty strings,
    wrong project directories, incorrect namespace usage,
    and incorrect methods in non-console applications.
    Mersho committed Sep 14, 2023
    Configuration menu
    Copy the full SHA
    e6dd18d View commit details
    Browse the repository at this point in the history
  30. FileConventions: improvements to Library.fs

    An assert error message has been added for *.fsx files &
    renaming the func.
    Mersho committed Sep 14, 2023
    Configuration menu
    Copy the full SHA
    280d634 View commit details
    Browse the repository at this point in the history