diff --git a/.rubocop.yml b/.rubocop.yml index ba15f93e..cb97d6bf 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -196,6 +196,8 @@ Style/Dir: Style/DisableCopsWithinSourceCodeDirective: Enabled: true + Exclude: + - Rakefile Style/DocumentDynamicEvalDefinition: Enabled: false diff --git a/Rakefile b/Rakefile index 5e407733..ee772c3d 100644 --- a/Rakefile +++ b/Rakefile @@ -148,3 +148,7 @@ task :check_non_ruby do # nix fmt doesn't have check: https://github.com/NixOS/nix/issues/6918 sh("git ls-files '*.nix' | xargs nixfmt --check") end + +task :tag do + sh(%q!ruby -r './lib/ulid/version' -e 'puts "v#{ULID::VERSION}"' | xargs --no-run-if-empty --max-lines=1 git tag!) # rubocop:disable Line/InterpolationCheck +end