Skip to content

Commit

Permalink
Linter
Browse files Browse the repository at this point in the history
  • Loading branch information
guibranco committed Nov 14, 2023
1 parent 365b376 commit 3aedef1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
6 changes: 2 additions & 4 deletions .githooks/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ LC_ALL=C

local_branch="$(git rev-parse --abbrev-ref HEAD)"

valid_branch_regex="^(feature|fix|docs|style|refactor|perf|hotfix|test|chore|create)\/[a-z0-9._-]+$"
valid_branch_regex="^(dependabot|feature|fix|docs|style|refactor|perf|hotfix|test|chore|create)(\/[a-zA-Z0-9._-]+)+$"

message="There is something wrong with your branch name. Branch names in this project must adhere to this contract: $valid_branch_regex. Your commit will be rejected. You should rename your branch to a valid name and try again."

Expand All @@ -13,6 +13,4 @@ then
exit 1
fi

dotnet tool restore && dotnet csharpier --check

exit 0
dotnet tool restore && dotnet csharpier . --check
4 changes: 2 additions & 2 deletions Src/SugestaoDeProdutos/Controllers/SuggestionController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
// <summary></summary>
// ***********************************************************************

using System;
using System.Threading;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using SugestaoDeProdutos.Commands;
using SugestaoDeProdutos.Models;
using SugestaoDeProdutos.Queries;
using System;
using System.Threading;

namespace SugestaoDeProdutos.Controllers
{
Expand Down
6 changes: 3 additions & 3 deletions Src/SugestaoDeProdutos/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@
// </copyright>
// <summary></summary>
// ***********************************************************************
using System;
using System.IO;
using System.Reflection;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Microsoft.OpenApi.Models;
using System;
using System.IO;
using System.Reflection;

namespace SugestaoDeProdutos
{
Expand Down

0 comments on commit 3aedef1

Please sign in to comment.