{"record":{"id":"380c52d43164e941","repo":"puppetlabs/puppet","slug":"copyright-takes-the-owners-names-then-the-years-c","errorCode":null,"errorMessage":"copyright takes the owners names, then the years covered","messagePattern":"copyright takes the owners names, then the years covered","errorType":"validation","errorClass":"ArgumentError","httpStatus":null,"severity":"error","filePath":"lib/puppet/interface/documentation.rb","lineNumber":255,"sourceCode":"    end\n    alias :authors= :author=\n\n    # Sets the copyright owner and year. This returns the copyright\n    # string, so it can be called with no arguments retrieve that string\n    # without side effects.\n    # @param owner [String, Array<String>] The copyright owner or an\n    #   array of owners\n    # @param years [Integer, Range<Integer>, Array<Integer,Range<Integer>>]\n    #   The copyright year or years. Years can be specified with integers,\n    #   a range of integers, or an array of integers and ranges of\n    #   integers.\n    # @return [String] A string describing the copyright on this object.\n    # @api public\n    # @dsl Faces\n    def copyright(owner = nil, years = nil)\n      if years.nil? and !owner.nil? then\n        # TRANSLATORS 'copyright' is an attribute name and should not be translated\n        raise ArgumentError, _('copyright takes the owners names, then the years covered')\n      end\n\n      self.copyright_owner = owner unless owner.nil?\n      self.copyright_years = years unless years.nil?\n\n      if copyright_years or copyright_owner then\n        \"Copyright #{copyright_years} by #{copyright_owner}\"\n      else\n        \"Unknown copyright owner and years.\"\n      end\n    end\n\n    # Sets the copyright owner\n    # @param value [String, Array<String>] The copyright owner or\n    #   owners.\n    # @return [String] Comma-separated list of copyright owners\n    # @api private\n    attr_reader :copyright_owner","sourceCodeStart":237,"sourceCodeEnd":273,"githubUrl":"https://github.com/puppetlabs/puppet/blob/e227c27540975c25aa22d533a52424a9d2fc886a/lib/puppet/interface/documentation.rb#L237-L273","documentation":"Error \"copyright takes the owners names, then the years covered\" thrown in puppetlabs/puppet.","triggerScenarios":"Thrown at lib/puppet/interface/documentation.rb:255 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"e227c27540975c25aa22d533a52424a9d2fc886a","analyzedAt":"2026-08-21T20:49:46.650Z","schemaVersion":2},"datasetVersion":"2026-08-21T23:17:16.201Z"}