Commit 4160a8dd authored by Stan Hu's avatar Stan Hu

Enable frozen_string_literal

parent ff3291e5
# frozen_string_literal: true
module BitbucketServer module BitbucketServer
class Client class Client
attr_reader :connection attr_reader :connection
......
# frozen_string_literal: true
module BitbucketServer module BitbucketServer
class Collection < Enumerator class Collection < Enumerator
def initialize(paginator) def initialize(paginator)
......
# frozen_string_literal: true
module BitbucketServer module BitbucketServer
class Connection class Connection
include ActionView::Helpers::SanitizeHelper include ActionView::Helpers::SanitizeHelper
DEFAULT_API_VERSION = '1.0'.freeze DEFAULT_API_VERSION = '1.0'
attr_reader :api_version, :base_uri, :username, :token attr_reader :api_version, :base_uri, :username, :token
......
# frozen_string_literal: true
module BitbucketServer module BitbucketServer
class Page class Page
attr_reader :attrs, :items attr_reader :attrs, :items
......
# frozen_string_literal: true
module BitbucketServer module BitbucketServer
class Paginator class Paginator
PAGE_LENGTH = 25 PAGE_LENGTH = 25
......
# frozen_string_literal: true
module BitbucketServer module BitbucketServer
module Representation module Representation
class Activity < Representation::Base class Activity < Representation::Base
...@@ -6,7 +8,7 @@ module BitbucketServer ...@@ -6,7 +8,7 @@ module BitbucketServer
end end
def comment? def comment?
action == 'COMMENTED'.freeze action == 'COMMENTED'
end end
def inline_comment? def inline_comment?
......
# frozen_string_literal: true
module BitbucketServer module BitbucketServer
module Representation module Representation
class Base class Base
......
# frozen_string_literal: true
module BitbucketServer module BitbucketServer
module Representation module Representation
# A general comment with the structure: # A general comment with the structure:
......
# frozen_string_literal: true
module BitbucketServer module BitbucketServer
module Representation module Representation
class PullRequest < Representation::Base class PullRequest < Representation::Base
......
# frozen_string_literal: true
module BitbucketServer module BitbucketServer
module Representation module Representation
# An inline comment with the following structure that identifies # An inline comment with the following structure that identifies
......
# frozen_string_literal: true
module BitbucketServer module BitbucketServer
module Representation module Representation
class Repo < Representation::Base class Repo < Representation::Base
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment